Arduino yun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 43: | Line 43: | ||
Connecting to download.linino.org (88.198.63.58:80) | Connecting to download.linino.org (88.198.63.58:80) | ||
serialTerminal.hex 100% |*******************************| 17420 0:00:00 ETA | serialTerminal.hex 100% |*******************************| 17420 0:00:00 ETA | ||
</pre> | |||
* install the latest serial terminal on the Yun | * install the latest serial terminal on the Yun |
Revision as of 17:49, 6 November 2014
Upgrading an Arduino Yun
background
Essentially the task I'm documenting is outlined here: http://linino.org/doku.php?id=wiki:upgradetolininoio
But I'm adding a bit of background that I was missing since this is my first exposure to the Yun. See? I didn't even spell it with the proper accent over the U.
I'm pleased that the Yun has such good documentation:
- http://arduino.cc/en/Guide/ArduinoYun#toc6
- http://playground.arduino.cc/Hardware/Yun#restoring_a_yun
I didn't end up using this sketch, but it included some nice hints about using the stock Serial Terminal in the Arduino IDE
This was the most succinct and useful documentation I found on setting up the tftpd server that is needed for the upgrade
http://www.df.lth.se/~triad/krad/tftpserver.html
environment
- I'm using a Fedora 20 system connected via usb to provide power and access to serial terminal
- The Yun is connected via wired ethernet to a network with a dhcp server providing IP config
- I have an apache server providing binaries for download to the Yun
- I have a tftp server providing binaries for download to the Yun
- I have installed the version of the Arduino IDE that is new enough to support the Yun
prep the Yun
- boot the Yun, that is provide power
- log in via ssh. I have yun in my /etc/hosts with the IP address provided by dhcp. I'll be doing several of these boards and each time the image changes, the host id changes, so let's not fiddle with those. The default password is doghunter.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@yun
- download the latest serial terminal to the Yun
root@j17:~# cd /tmp root@j17:/tmp# wget http://download.linino.org/pkg-bin/serialTerminal.hex Connecting to download.linino.org (88.198.63.58:80) serialTerminal.hex 100% |*******************************| 17420 0:00:00 ETA
- install the latest serial terminal on the Yun
root@j17:/tmp# run-avrdude /tmp/serialTerminal.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9587 avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "0xFF" avrdude: writing lfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of lfuse written avrdude: verifying lfuse memory against 0xFF: avrdude: load data lfuse data from input file 0xFF: avrdude: input file 0xFF contains 1 bytes avrdude: reading on-chip lfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of lfuse verified avrdude: reading input file "0xD8" avrdude: writing hfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of hfuse written avrdude: verifying hfuse memory against 0xD8: avrdude: load data hfuse data from input file 0xD8: avrdude: input file 0xD8 contains 1 bytes avrdude: reading on-chip hfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of hfuse verified avrdude: reading input file "0xFB" avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against 0xFB: avrdude: load data efuse data from input file 0xFB: avrdude: input file 0xFB contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of efuse verified avrdude: reading input file "/tmp/serialTerminal.hex" avrdude: writing flash (6188 bytes): Writing | ################################################## | 100% 3.61s avrdude: 6188 bytes of flash written avrdude: verifying flash memory against /tmp/serialTerminal.hex: avrdude: load data flash data from input file /tmp/serialTerminal.hex: avrdude: input file /tmp/serialTerminal.hex contains 6188 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 3.37s avrdude: verifying ... avrdude: 6188 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you.