This year in March, Massimo Banzi announced on the Arduino blog the production of a new revision (Rev.2) of the Arduino Yun board.
In addition to some improvements on the hardware design, the new revision offers a complete update of the software side of the Yun, that is the Linux distribution (OpenWrt) running on the board. The original Yun was indeed stuck to a distribution released in 2014 (still available in the download section of Arduino website) and that distribution contained outdated software packages which also presented some security vulnerabilites.
Who now buy a new Yun board, has the new OS version pre-installed. If you own a “Rev.1” board, in this article you’ll learn how to update it…
Updater
In the Arduino forum, Martino Facchin (one of the contributors of the OpenWrt porting to Yun) published a post with links to an automatic updater for the different platforms (Windows, Linux, Mac). The application updates both the bootloader and the operating system (rootfs). You have to also update the bootloader because of the new OS requires a bigger partition than the original one.
Before running the updater process, there are 3 prerequisites:
[checklist]
- the Yun board must be connected both to your computer via USB and to your home router/switch using an ethernet cable (the update process cannot happen using wifi)
- your computer, which runs the updater application, must be connected to the same home network the Yun is connected to
- your computer must not run softwares (like firewalls) that could block incoming connections
[/checklist]
The third point in particular is the one that can give more problems… for example I use the Eset Internet Security suite and I had to temporary disable the protection:
An additional suggestion is to disable other network cards in your computer, keeping active only the one connected to the home network:
If you’re using Windows 10, it may happen that the yun-go-updater.exe program is blocked… in this case you have to cancel the block from the file properties:
If you run the program, the update process should go automatically. When complete, if you connect to the Yun board you should see the new version:
DHCP
During the update process, the Yun board requests a valid IP address for your network using the DHCP protocol. Sometimes this request could fail; in this case you can assign a static IP to the board answering “n” to the first question:
Salve Luca, anzitutto grazie per questo sito e per tutto il tempo che ci dedichi, quando mi serve aiuto per la realizzazione dei miei progetti questo è il primo posto dove vado a cercare informazioni!
Io mi sono appassionato al mondo arduino e raspberry da un paio d’anni e tutto ciò che sono riuscito ad imparare l’ho acquisito da autodidatta.
Ora sto lavorando su un progettino di stazione di rilevamento dati ambientali dati che una volta raccolti vorrei mettere in rete con dei grafici.
Ho pensato di utilizzare una vecchia arduino yun trovata in un cassetto e mai utilizzata anche per imparare qualche cosa embedded di cui conosco ben poco.
ed ora arriviamo al punto ho visto questo tuo tutorial sull’aggiornamento di arduino yun ad una versione più recente (ho già aggiornato all’ultima disponibile sul sito ufficiale ma risulta del 2014… come giustamente hai scritto pure tu) ho scaricato dal link segnalato la versione windows dell’updater ma quando lo lancio alla prima domanda mi sorgono già dei dubbi, ho risposto di no per inserire gli indirizzi IP manualmente ma per indirizzo del server credo di non aver ben presente a cosa si riferisce… riusciresti ad illuminarmi?
Grazie
Massi
Buongiorno, solo per comunicare che ho trovato la procedura corretta sul sito ufficiale di arduino… ha funzionato perfettamente ed ora la mia vecchia yun risulta aggiornata al 04 Dec 2017 che presumo sia l’ultima versione di Open-Wrt rilasciata!
Grazie ancora
Massi
P.S. L’IP del server è l’IP del PC al quale la scheda è collegata col cavetto USB
Ciao Luca,
cercando di fare l’upgrade del firmware della Yun mi si è brikata e non riesco più a farne niente.
Ho provato a caricare lo sketch YunSerialTerminal e l’output è il seguente:
## Booting image at 9fea0000 …
Image Name: MIPS OpenWrt Linux-3.18.23
Created: 2016-05-10 8:20:47 UTC
[…]
ciao! sembra che uBoot sia funzionante quindi puoi provare la procedura di recovery.
Ciao Luca, seguo la tua “rivista” con molto interesse. Ho un arduino YUN rev 2 e l’altro giorno dopo alcuni mesi che non l’usavo volendo fare degli esperimenti l’ho collegato al compiuter e non riesco a fargli sentire la porta. Infatti quando vado nella casella strumenti la voce porta non è visibile. questo succede con Windows 10 2 11.
Ho forse bruciato la scheda?
Attendendo una tua risposta ti ringrazio
Pietro
Ciao Pietro, prova a fare il reset completo… almeno come porta seriale dovresti poterlo vedere a meno che sia proprio saltato il chip.