Skip to content

Instantly share code, notes, and snippets.

@fatihyasar
Created November 12, 2019 16:57
Show Gist options
  • Save fatihyasar/c463e17403a73dee779bc364aceb4f9f to your computer and use it in GitHub Desktop.
Save fatihyasar/c463e17403a73dee779bc364aceb4f9f to your computer and use it in GitHub Desktop.
Upgrading The Arduino Yun to the latest Linino Image
root@Arduino:/# source /etc/profile
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
root@Arduino:/# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 8.
root@Arduino:/# ping download.linino.org
PING download.linino.org (88.198.63.58): 56 data bytes
64 bytes from 88.198.63.58: seq=0 ttl=48 time=14.912 ms
64 bytes from 88.198.63.58: seq=1 ttl=48 time=14.394 ms
^C
--- download.linino.org ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 14.394/14.653/14.912 ms
root@Arduino:/# cd /tmp
root@Arduino:/tmp# wget http://download.linino.org/linino_distro/master/latest/openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin
--2014-06-25 11:25:44-- http://download.linino.org/linino_distro/master/latest/openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin
Resolving download.linino.org... 2a01:4f8:131:49::3, 88.198.63.58
Connecting to download.linino.org|2a01:4f8:131:49::3|:80... failed: Address family not supported by protocol.
Connecting to download.linino.org|88.198.63.58|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16073650 (15M) [application/octet-stream]
Saving to: `openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin'
100%[=============================================================================================================================================================>] 16,073,650 4.90M/s in 3.2s
2014-06-25 11:25:47 (4.79 MB/s) - `openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin' saved [16073650/16073650]
root@Arduino:/tmp#
root@Arduino:/tmp# sysupgrade -v openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin
Saving config files...
etc/uhttpd.crt
etc/uhttpd.key
etc/uhttpd.key
etc/uhttpd.crt
etc/sysctl.conf
etc/shells
etc/shadow
etc/rc.local
etc/profile
etc/passwd
etc/inittab
etc/hosts
etc/group
etc/dropbear/dropbear_rsa_host_key
etc/dropbear/dropbear_dss_host_key
etc/config/wireless
etc/config/uhttpd
etc/config/ucitrack
etc/config/ubootenv
etc/config/system
etc/config/network
etc/config/luci
etc/config/fstab
etc/config/firewall
etc/config/dropbear
etc/config/dhcp
etc/config/arduino
Sending TERM to remaining processes ... uhttpd dbus-daemon dnsmasq avahi-daemon thd ntpd uSDaemon sleep syslogd klogd hotplug2 ubusd netifd
Sending KILL to remaining processes ... uhttpd
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...
Writing from <stdin> to firmware ... [w]
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware...
Writing from <stdin> to firmware ... [w]TRX header not found
Error fixing up TRX header
Upgrade completed
Rebooting system...
Write failed: Broken pipe
chriss-mbp:nodejswb chris$ ssh [email protected]
[email protected]'s password:
BusyBox v1.19.4 (2014-06-16 12:15:15 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
___ ___ ___ ___
/\__\ ___ /\__\ ___ /\__\ /\ \
/:/ / /\ \ /::| | /\ \ /::| | /::\ \
/:/ / \:\ \ /:|:| | \:\ \ /:|:| | /:/\:\ \
/:/ / /::\__\ /:/|:| |__ /::\__\ /:/|:| |__ /:/ \:\ \
/:/__/ __/:/\/__/ /:/ |:| /\__\ __/:/\/__/ /:/ |:| /\__\ /:/__/ \:\__\
\:\ \ /\/:/ / \/__|:|/:/ / /\/:/ / \/__|:|/:/ / \:\ \ /:/ /
\:\ \ \::/__/ |:/:/ / \::/__/ |:/:/ / \:\ /:/ /
\:\ \ \:\__\ |::/ / \:\__\ |::/ / \:\/:/ /
\:\__\ \/__/ /:/ / \/__/ /:/ / \::/ /
\/__/ \/__/ \/__/ \/__/
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
root@Arduino:~# opkg update
Downloading http://download.linino.org/linino_distro/master/latest/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
Downloading http://download.linino.org/linino_distro/master/latest/packages/Packages.sig.
Signature check passed.
root@Arduino:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment