[FS#835] ar71xx: ens202ext: boot failure

LEDE Bugs lede-bugs at lists.infradead.org
Fri Jun 9 19:00:11 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - ntzrmtthihu777 (ntzrmtthihu777) 

Attached to Project - LEDE Project
Summary - ar71xx: ens202ext: boot failure
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details -  - EnGenius ENS202EXT
 - snapshot build
 - Install factory image either via the vendor's firmware upgrade menu or failsafe_boot in uboot.

As it currently stands the snapshot image lede-ar71xx-generic-ens202ext-squashfs-factory.bin will
install, properly validate its checksums in u-boot, begin the process of erasing the jffs2 stuffs,
and shortly thereafter kpanic due to no working init, reboot, then fail to validate the rootfs's
md5sum and fall back to the failsafe_boot.

Log:

/tmp/firmware.img Not existed.
doupgrade
device ath0 left promiscuous mode
br-lan: port 2(ath0) entering disabled state
ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=833641c0 arg=83b502c0
ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=833641c0 arg=83b502c0
ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=83363e7c arg=83b502c0
wlan_vap_delete : enter. vaphandle=0x831b6000
wlan_vap_delete : exit. vaphandle=0x831b6000
ath_ahb: driver unloaded
Removing athdebug proc file
ath_dev: driver unloaded
ath_rate_atheros: driver unloaded
ath_hal: driver unloaded
Umount /jffs..
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
Umount /jffs..Done
Writing kernel...
Writing rootfs...
Upgrade completed, rebooting system...
Restarting system.


U-Boot 1.1.4 (Sep 17 2012 - 16:57:54)

ENS202EXT (ar934x) U-boot
DRAM:  
sri
Wasp 1.1
wasp_ddr_initial_config(276): Wasp (16bit) ddr1 init
wasp_ddr_initial_config(426): Wasp ddr init done
Tap value selected = 0xf [0x0 - 0x1f]
Setting 0xb8116290 to 0x38702d0f
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 229k for U-Boot at: 83fc4000
Reserving 192k for malloc() at: 83f94000
Reserving 44 Bytes for Board Info at: 83f93fd4
Reserving 36 Bytes for Global Data at: 83f93fb0
Reserving 128k for boot params() at: 83f73fb0
Stack Pointer at: 83f73f98
Now running in RAM - U-Boot at: 83fc4000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
Fetching MAC Address from 0x83feb088
Fetching MAC Address from 0x83feb088
 wasp  reset mask:c03300 
WASP ----> S27 PHY 
: cfg1 0x80000000 cfg2 0x7114
eth0: 88:dc:96:52:24:83
s27 reg init 
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
WASP ----> S27 PHY 
: cfg1 0xf cfg2 0x7214
eth1: 88:dc:96:52:24:83
s27 reg init lan 
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :50
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0, eth1
eth_set_enetaddr(num=0, addr=88:dc:96:52:24:83)
Setting new HW address on eth0
New Address is             88:DC:96:52:24:83
eth_set_enetaddr(num=0, addr=88:dc:96:52:24:83)
Setting new HW address on eth0
New Address is             88:DC:96:52:24:83
eth_set_enetaddr(num=1, addr=88:dc:96:52:24:83)
Setting new HW address on eth1
New Address is             88:DC:96:52:24:83
Hit any key to stop autoboot:  0 
---first go around the kernel and rootfs validate properly---
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
   Image Name:   MIPS LEDE Linux-4.4.71
   Created:      2017-06-09  14:44:04 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1370015 Bytes =  1.3 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f0a0040 ...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 4.4.71 (buildbot at crazyhorse) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4293-7f91431) ) #0 Thu Jun 8 16:04:31 UTC 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9341 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] No valid device tree found, continuing without
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    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:  board=ENS202EXT mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,13632k(firmware),2048k(failsafe)ro,64k(art)ro console=ttyS0,115200 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: 59968K/65536K available (3124K kernel code, 160K rwdata, 780K rodata, 280K init, 205K bss, 5568K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:535.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7144898866 ns
[    0.000010] sched_clock: 32 bits at 267MHz, resolution 3ns, wraps every 8027976190ns
[    0.008316] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248)
[    0.091156] pid_max: default: 32768 minimum: 301
[    0.096212] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103268] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.113875] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.124406] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.132332] NET: Registered protocol family 16
[    0.138804] MIPS: machine is EnGenius ENS202EXT
[    0.619095] clocksource: Switched to clocksource MIPS
[    0.625993] NET: Registered protocol family 2
[    0.631728] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.639227] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.646010] TCP: Hash tables configured (established 1024 bind 1024)
[    0.652893] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.659170] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.666212] NET: Registered protocol family 1
[    0.676316] Crashlog allocated RAM at address 0x3f00000
[    0.699004] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.705291] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.718832] io scheduler noop registered
[    0.723075] io scheduler deadline registered (default)
[    0.728933] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.738864] console [ttyS0] disabled
[    0.762794] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.771993] console [ttyS0] enabled
[    0.771993] console [ttyS0] enabled
[    0.779421] bootconsole [early0] disabled
[    0.779421] bootconsole [early0] disabled
[    0.794180] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.800119] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.805276] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.811303] Creating 6 MTD partitions on "spi0.0":
[    0.816171] 0x000000000000-0x000000040000 : "u-boot"
[    0.823922] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.831264] 0x000000050000-0x0000000a0000 : "custom"
[    0.838161] 0x0000000a0000-0x000000df0000 : "firmware"
[    0.862391] 2 uimage-fw partitions found on MTD device firmware
[    0.868421] 0x0000000a0000-0x0000001f0000 : "kernel"
[    0.875118] 0x0000001f0000-0x000000df0000 : "rootfs"
[    0.882115] mtd: device 5 (rootfs) set to be root filesystem
[    0.887893] mtdsplit: no squashfs found in "rootfs"
[    0.892936] 0x000000df0000-0x000000ff0000 : "failsafe"
[    0.900131] 0x000000ff0000-0x000001000000 : "art"
[    0.924682] libphy: ag71xx_mdio: probed
[    1.511181] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY]
[    1.521233] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.110875] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.153317] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.162134] NET: Registered protocol family 10
[    2.171947] NET: Registered protocol family 17
[    2.176561] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.189552] 8021q: 802.1Q VLAN Support v1.8
[    2.195856] hctosys: unable to open rtc device (rtc0)
[    2.203640] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x6873 instead
[    2.213332] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xb602 instead
[    2.222958] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x34b4 instead
[    2.232584] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x0d00 instead
[    2.242211] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0x0400 instead
[    2.251837] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0xc006 instead
[    2.261465] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x0400 instead
[    2.271091] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0x751a instead
[    2.280719] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030028: 0x322d instead
[    2.290346] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030030: 0x2a2d instead
[    2.299967] jffs2: Further such events for this erase block will not be printed
---Whole lotta the above---
[    6.342741] jffs2_scan_eraseblock(): End of filesystem marker found at 0x220000
[    6.350229] jffs2_build_filesystem(): unlocking the mtd device... done.
[    6.356942] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   56.308974] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   56.324601] VFS: Mounted root (jffs2 filesystem) readonly on device 31:5.
[   56.333354] Freeing unused kernel memory: 280K (8045a000 - 804a0000)
[   56.339928] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[   56.356689] Rebooting in 1 seconds..

U-Boot 1.1.4 (Sep 17 2012 - 16:57:54)

ENS202EXT (ar934x) U-boot
DRAM:  
sri
Wasp 1.1
wasp_ddr_initial_config(276): Wasp (16bit) ddr1 init
wasp_ddr_initial_config(426): Wasp ddr init done
Tap value selected = 0xf [0x0 - 0x1f]
Setting 0xb8116290 to 0x38702d0f
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 229k for U-Boot at: 83fc4000
Reserving 192k for malloc() at: 83f94000
Reserving 44 Bytes for Board Info at: 83f93fd4
Reserving 36 Bytes for Global Data at: 83f93fb0
Reserving 128k for boot params() at: 83f73fb0
Stack Pointer at: 83f73f98
Now running in RAM - U-Boot at: 83fc4000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
Fetching MAC Address from 0x83feb088
Fetching MAC Address from 0x83feb088
 wasp  reset mask:c03300 
WASP ----> S27 PHY 
: cfg1 0x80000000 cfg2 0x7114
eth0: 88:dc:96:52:24:83
s27 reg init 
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
WASP ----> S27 PHY 
: cfg1 0xf cfg2 0x7214
eth1: 88:dc:96:52:24:83
s27 reg init lan 
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :50
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0, eth1
eth_set_enetaddr(num=0, addr=88:dc:96:52:24:83)
Setting new HW address on eth0
New Address is             88:DC:96:52:24:83
eth_set_enetaddr(num=0, addr=88:dc:96:52:24:83)
Setting new HW address on eth0
New Address is             88:DC:96:52:24:83
eth_set_enetaddr(num=1, addr=88:dc:96:52:24:83)
Setting new HW address on eth1
New Address is             88:DC:96:52:24:83
Hit any key to stop autoboot:  0 
---after kpanic rootfs does not validate---
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Failed!
    d8b71f8322b30ba35cb65a3d63e9572e != ee57f9e8a1871b3180932c9874aa64b6

Data validation failed!
---Failsafe image booting---
## Booting image at 9fdf0000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.31
   Created:      2012-09-17  14:43:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1559991 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9fdf0040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=835



More information about the lede-bugs mailing list