OPENWRT-YÚN 1.6.2 - Upgrade failed

Hello All,

The good news, a new firmware for our Yun is available. The bad news, after upgrading my yun is not working anymore.

I've uploaded the serialyunsketch and have the following output:

U-Boot 1.1.4-dirty (Apr 10 2014 - 15:12:15)

Arduino Yun (ar9331) U-boot

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 142k for U-Boot at: 83fdc000
Reserving 192k for malloc() at: 83fac000
Reserving 44 Bytes for Board Info at: 83fabfd4
Reserving 36 Bytes for Global Data at: 83fabfb0
Reserving 128k for boot params() at: 83f8bfb0
Stack Pointer at: 83f8bf98
Now running in RAM - U-Boot at: 83fdc000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16777216, sector count = 256
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  4  3  2  1  0 
## Booting image at 9fea0000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.23
   Created:      2016-05-10   8:20:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1207736 Bytes =  1.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9fea0040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 3.18.23 (admin@compile-01-prod) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48749) ) #34 Tue May 10 08:20:13 UTC 2016
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),14656k(rootfs),1280k(uImage),64k(NVRAM),64k(ART) mem=64M rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60676K/65536K available (2935K kernel code, 142K rwdata, 332K rodata, 228K init, 201K bss, 4860K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] NET: Registered protocol family 16
[    0.090000] MIPS: machine is Generic AR71XX/AR724X/AR913X based board
[    0.110000] Switched to clocksource MIPS
[    0.120000] NET: Registered protocol family 2
[    0.120000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.120000] TCP: reno registered
[    0.120000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.120000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.130000] NET: Registered protocol family 1
[    0.130000] RPC: Registered named UNIX socket transport module.
[    0.130000] RPC: Registered udp transport module.
[    0.130000] RPC: Registered tcp transport module.
[    0.140000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.140000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.150000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.160000] NFS: Registering the id_resolver key type
[    0.160000] Key type id_resolver registered
[    0.160000] Key type id_legacy registered
[    0.160000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.170000] msgmni has been set to 118
[    0.170000] io scheduler noop registered
[    0.170000] io scheduler deadline registered (default)
[    0.170000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.180000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.180000] TCP: cubic registered
[    0.190000] NET: Registered protocol family 17
[    0.190000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.190000] 8021q: 802.1Q VLAN Support v1.8
[    0.200000] Key type dns_resolver registered
[    0.200000] bootconsole [early0] disabled

So it stops with [ 0.200000] bootconsole [early0] disabled. Any idea what todo next? Any help is welcome!

Thanks for your support. Martijn

So, some what solved. After the upgrade I had an ethernet cable connected to the yun. After the first boot sequence it will halt as described above. When the ethernet cable is unplugged it will fully boot. Afterwards you can put the cable back in again.

After upgrade 1.6.2,I met wireless function can not be used. Use the official website of the [bootloader update procedure] returned to normal. 8)

bootloader update procedure >> https://www.arduino.cc/en/Tutorial/YunUBootReflash

@opq01001, Thanks for your reply. Strange that your wireless is not working. I'm now running 1.6.2 (only needed to take out the ethernet cable) and also Wifi as an AP is working.

I'm curious about your update procedure. Did you download the old 1.5.3 image file? And what procedure did you follow? The 1.6.2 image consists out of 3 files (uboot, kernel and openwrt/yun image). The 1.5.3 has only one file. The procedure https://www.arduino.cc/en/Tutorial/YunUBootReflash describes a procedure with 3 files...

Hello all!

i have the same problem as Martijn. I tried to reflash - nothing changed. I tried without Ethernetcable - nothing changed. Could some one help? (am besten in deutsch)

Thank you! Josef

Official explanation @ https://www.arduino.cc/en/Tutorial/YunSysupgrade If you have a Yún with an older firmware: (1.5.3) before proceed you need to to upgrade the bootloader following the bootloader update procedure. If you don't upgrade the bootloader first, your Yún will become unusable.

Hi,

i upgrades all 3 bin Files to Version 1.6.2 then i run the firstrun script and everything was all right. Ethernet and WLAN was enabled and had function. I loged in to the arduino WLAN and the Frontend told me "i found a new Firmware on your sd card" --> it was the upgrade2Version 1.6.2. and i click "yes!" since then i had this failure.. i dont recognized that you can damage it when upgrade to the same version!?

greets Josef

i make exactly this: 1. https://www.arduino.cc/en/Tutorial/YunUBootReflash 2. https://www.arduino.cc/en/Tutorial/YunSysupgrade

U-Boot 1.1.4-gd995931a-dirty (Aug 7 2013 - 16:16:04)

Arduino Yun (ar9331) U-boot

DRAM: 64 MB Top of RAM usable for U-Boot at: 84000000 Reserving 142k for U-Boot at: 83fdc000 Reserving 192k for malloc() at: 83fac000 Reserving 44 Bytes for Board Info at: 83fabfd4 Reserving 36 Bytes for Global Data at: 83fabfb0 Reserving 128k for boot params() at: 83f8bfb0 Stack Pointer at: 83f8bf98 Now running in RAM - U-Boot at: 83fdc000 Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18 flash size 16777216, sector count = 256 Flash: 16 MB Using default environment

In: serial Out: serial Err: serial Net: ag7240_enet_initialize... No valid address in Flash. Using fixed address No valid address in Flash. Using fixed address : cfg1 0x5 cfg2 0x7114 eth0: 00:03:7f:09:0b:ad eth0 up : cfg1 0xf cfg2 0x7214 eth1: 00:03:7f:09:0b:ad athrs26_reg_init_lan ATHRS26: resetting s26 ATHRS26: s26 reset done eth1 up eth0, eth1 Hit any key to stop autoboot: 0

Booting image at 9fea0000 ...

Image Name: MIPS OpenWrt Linux-3.18.23 Created: 2016-05-10 8:20:47 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1207736 Bytes = 1.2 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x9fea0040 ...OK Uncompressing Kernel Image ... OK No initrd

Transferring control to Linux (at address 80060000) ...

Giving linux memsize in bytes, 67108864

Starting kernel ...

[ 0.000000] Linux version 3.18.23 (admin@compile-01-prod) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48749) ) #34 Tue May 10 08:20:13 UTC 2016 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Atheros AR9330 rev 1 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x03ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x03ffffff] [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 root=31:02 rootfstype= squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),14656 k(rootfs),1280k(uImage),64k(NVRAM),64k(ART) mem=64M rootfstype=squashfs,jffs2 no initrd [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 60676K/65536K available (2935K kernel code, 142K rwdata, 332K rodata, 228K init, 201K bss, 4860K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.00 0MHz [ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090000] NET: Registered protocol family 16 [ 0.090000] MIPS: machine is Generic AR71XX/AR724X/AR913X based board [ 0.110000] Switched to clocksource MIPS [ 0.120000] NET: Registered protocol family 2 [ 0.120000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.120000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.120000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.120000] TCP: reno registered [ 0.120000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.120000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.130000] NET: Registered protocol family 1 [ 0.130000] RPC: Registered named UNIX socket transport module. [ 0.130000] RPC: Registered udp transport module. [ 0.130000] RPC: Registered tcp transport module. [ 0.140000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.140000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.150000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.160000] NFS: Registering the id_resolver key type [ 0.160000] Key type id_resolver registered [ 0.160000] Key type id_legacy registered [ 0.160000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT Y) (c) 2001-2006 Red Hat, Inc. [ 0.170000] msgmni has been set to 118 [ 0.170000] io scheduler noop registered [ 0.170000] io scheduler deadline registered (default) [ 0.170000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.180000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 15 62500) is a AR933X UART [ 0.180000] TCP: cubic registered [ 0.190000] NET: Registered protocol family 17 [ 0.190000] bridge: automatic filtering via arp/ip/ip6tables has been depreca ted. Update your scripts to load br_netfilter if you need this. [ 0.190000] 8021q: 802.1Q VLAN Support v1.8 [ 0.200000] Key type dns_resolver registered [ 0.200000] bootconsole [early0] disabled

Make sure you upgrade 1.5.2 firmware first. It's easy to miss this step.

I've also posted the steps that worked for me. Hopefully this helps a few others.

Hi all,

in my case helped the following steps: 1. upload the Yun Serial terminal on the Yun and open a serial monitor 2. press YUN RST button 3. when on serial monitor you read: a. "type 'ard' to enter u-boot console" -> type ard and press enter b. "type 'lin' to enter u-boot console" -> type lin and press enter This way you enter in U-boot and the ar7240> or linino> console is shown 4. Copy and paste the following command line: setenv bootargs board=YUN console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd

4.1 nothing happens then type in : boot 4.2 login via webbrowser to wlan and go to luci flash image and select the 1.5.3 upgrade image Im my case it stopped here because if i try to upgrade again to 1.6.2 nothing happens again.

  1. Yun should start booting the 1.6.2 image. Once OpenWRT (chaos calmer) finished booting and you have access to the console (root@arduino#:) you can run sysupgrade to restore the 1.5.3 image (link above) as described in the tutorial: https://www.arduino.cc/en/Tutorial/YunSysupgrade
  2. next reboot should succeed

Hi, I have the same problem. at the line [ 0.200000] bootconsole [early0] disabled. all is stopped. In the serial monitor I do not read any "type 'ard' to enter u-boot console" or "type 'lin' to enter u-boot console". It is all frozen at the above line [ 0.200000] bootconsole...

I tried also to type ard command in serial monitor and lin but nothing happens. But ar7240> promt command It does not appear.

You have some suggestion?!

Thx inadvanced, Marco

Marcomo [ 0.200000] bootconsole [early0] disabled. all is stopped. is message from kernel (booting kernel) after boot loader happen (ar7240 etc...), so first of all u dont see output from serial console when boot loader starting - maybe try different console speed, use YUN reset button and hit "ard" or "lin" when it starts

Second problem is your YUN us not booting like mine, i had similar problem after i upgraded from 1.5.3 to 1.6.2 (downloaded from here) and used sysupgrade. After fer hours of testing i figured there is probably bad kernel in 1.6.2 bin, after i flash linino kernel it start working.

This link will maybe helps: http://www.arduino.org/learning/tutorials/advanced-guides/how-to-upgrade-lininoio-os-from-u-boot