[LEDE-DEV] WRT1900ACS - Kernel 4.4.11 boot failure

Dheeran Senthilvel dheeranmech at gmail.com
Sat May 21 05:05:39 PDT 2016


Hi Guys,
	
Nice work there getting everything to Linux 4.4.11. Tested the new build (r321 dated 20/05/2016) Everything is seems to work pretty decently, except that upon reboot (both manually or through command line) the device is struck. When serially accessed an error is seen 


 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2013.01 (Mar 27 2015 - 16:50:46) Marvell version: 2014_T3.0p6

Boot version : v1.0.13

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 800 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:                    0x1fea9000:0x1ff7632c
       BSS:                     0x1ffef6b4
       Stack:                   0x1f9a8f20
       Heap:                    0x1f9a9000:0x1fea9000
raise: Signal # 8 caught
U-ENV offset == 0x200000
raise: Signal # 8 caught
U-ENV offset == 0x200000
       U-Boot Environment:      0x00200000:0x00220000 (NAND)

NAND:  128 MiB
MMC:   mv_sdh: 0
DEVINFO offset == 0x900000
U-ENV offset == 0x200000
U-ENV offset == 0x200000
S-ENV offset == 0x240000


#### auto_recovery ####
[u_env] get auto_recovery == yes
[u_env] get auto_recovery == yes
[u_env] get boot_part == <NULL>
set boot_part=1 as default value at u_env
[u_env] get boot_part_ready == <NULL>
set boot_part_ready=3 as default value at u_env
auto_recovery enabled:1, boot_part:1, boot_part_ready:3

S-ENV offset == 0x240000
[boot_count_read] block:0x240000, size:128KB, records:64
[boot_count_read_record] boot_count:0, next_record:51

[boot_count_write] erase:0, auto_recovery->block_offset:0x240000 offset=0x259800

Updating boot_count ...
[boot_count_write] offset:0x259800 , length:2048
done

PCI-e 0 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
PCI-e 1 (IF 1 - bus 1) Root Complex Interface, Detected Link X1, GEN 1.1
USB2.0 0: Host Mode
USB3.0 1: Host Mode
USB3.0 0: Host Mode
Board configuration detected:
mvEthE6171SwitchBasicInit init
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
| egiga1 |   SGMII   |     0x00     |
egiga0 [PRIME], egiga1
auto_recovery_check changes bootcmd: run nandboot
Hit any key to stop autoboot:  0
## Error: "nandboot" not defined
Marvell>>


################## The env variables during error boot is as follows ##################

Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
auto_recovery=yes
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
boot_part=1
boot_part_ready=3
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_para
ms clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=
$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$boo
targs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootdelay=5
cacheShare=no
console=console=ttyS0,115200
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:87:dd:02
eth1mtu=1500
eth2addr=00:50:43:87:9c:02
eth2mtu=1500
eth3addr=00:50:43:dd:9c:87
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:9c:dd:02
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
ide_path=/
image_name=uImage
initrd_name=uInitrd
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16 at 60
lcd_panel=0
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:8m(boot)ro,8m at 8m(kernel),-(rootfs)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:02:9c:87
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netretry=no
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=2
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 2975/131068 bytes


########### After reseting the env variables as below and performing a reboot, the device is able to reboot ########

Marvell>> resetenv
Erasing 0x200000 - 0x240000:[Done]
Warning: Default Environment Variables will take effect Only after RESET
Marvell>> reset


############ After reboot the serial looks something like this ############


 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2013.01 (Mar 27 2015 - 16:50:46) Marvell version: 2014_T3.0p6

Boot version : v1.0.13

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 800 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:                    0x1fea9000:0x1ff7632c
       BSS:                     0x1ffef6b4
       Stack:                   0x1f9a8f20
       Heap:                    0x1f9a9000:0x1fea9000
raise: Signal # 8 caught
U-ENV offset == 0x200000
raise: Signal # 8 caught
U-ENV offset == 0x200000
       U-Boot Environment:      0x00200000:0x00220000 (NAND)

NAND:  128 MiB
MMC:   mv_sdh: 0
DEVINFO offset == 0x900000
U-ENV offset == 0x200000
U-ENV offset == 0x200000
*** Warning - bad CRC, using default environment

S-ENV offset == 0x240000


#### auto_recovery ####
[u_env] get auto_recovery == yes
[u_env] get auto_recovery == yes
[u_env] get boot_part == 1
[u_env] get boot_part_ready == 3
auto_recovery enabled:1, boot_part:1, boot_part_ready:3

S-ENV offset == 0x240000
[boot_count_read] block:0x240000, size:128KB, records:64
[boot_count_read_record] boot_count:2, next_record:57

[boot_count_write] erase:0, auto_recovery->block_offset:0x240000 offset=0x25C800

Updating boot_count ...
[boot_count_write] offset:0x25C800 , length:2048
done

PCI-e 0 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
PCI-e 1 (IF 1 - bus 1) Root Complex Interface, Detected Link X1, GEN 1.1
USB2.0 0: Host Mode
USB3.0 1: Host Mode
USB3.0 0: Host Mode
Board configuration detected:
mvEthE6171SwitchBasicInit init
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
| egiga1 |   SGMII   |     0x00     |
egiga0 [PRIME], egiga1
auto_recovery_check changes bootcmd: run nandboot
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa00000, size 0x600000
 6291456 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   ARM LEDE Linux-4.4.11
   Created:      2016-05-20  22:11:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1793921 Bytes = 1.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.11 (buildbot at builds) (gcc version 5.3.0 (LEDE GCC 5.3.0 r321) ) #1 SMP Fri May 20 23:40:46 UTC 2016
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Linksys WRT1900ACS
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 11 pages/cpu @dfbd2000 s13888 r8192 d22976 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock5 ro rootdelay=1 rootfstype=jffs2 earlyprintk mtdparts=armada-nand:2048K(uboot)ro,256
K(u_env),256K(s_env),1m at 9m(devinfo),40m at 10m(kernel),34m at 16m(rootfs),40m at 50m(alt_kernel),34m at 56m(alt_rootfs),80m at 10m(ubifs),- at 90m(syscfg)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 514020K/524288K available (3667K kernel code, 146K rwdata, 1312K rodata, 244K init, 178K bss, 10268K reserved, 0K cma-reserved, 0K highme
m)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04e4ed4   (4980 kB)
[    0.000000]       .init : 0xc04e5000 - 0xc0522000   ( 244 kB)
[    0.000000]       .data : 0xc0522000 - 0xc0546a9c   ( 147 kB)
[    0.000000]        .bss : 0xc0546a9c - 0xc05732c4   ( 179 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000009] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000119] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.000125] pid_max: default: 32768 minimum: 301
[    0.000163] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000167] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000355] CPU: Testing write buffer coherency: ok
[    0.000458] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000483] Setting up static identity map for 0x8280 - 0x82d8
[    0.000563] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.000642] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001050] Booting CPU 1
[    0.001209] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001237] Brought up 2 CPUs
[    0.001243] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.001246] CPU: All CPU(s) started in SVC mode.
[    0.002966] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.003040] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.003081] pinctrl core: initialized pinctrl subsystem
[    0.003467] NET: Registered protocol family 16
[    0.003928] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.029937] cpuidle: using governor ladder
[    0.032099] sram soc:sa-sram0: found no memory resource
[    0.032110] sram: probe of soc:sa-sram0 failed with error -22
[    0.032162] sram soc:sa-sram1: found no memory resource
[    0.032169] sram: probe of soc:sa-sram1 failed with error -22
[    0.032513] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.032520] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.060353] reg-fixed-voltage xhci0-vbus: could not find pctldev for node /soc/internal-regs/pinctrl at 18000/xhci0-vbus-pins, deferring probe
[    0.060897] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.061298] NET: Registered protocol family 2
[    0.061552] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.061577] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.061609] TCP: Hash tables configured (established 4096 bind 4096)
[    0.061634] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.061646] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.061713] NET: Registered protocol family 1
[    0.062116] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.064437] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.064448] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.065031] io scheduler noop registered
[    0.065037] io scheduler deadline registered (default)
[    0.065450] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.065783] irq: Cannot allocate irq_descs @ IRQ44, assuming pre-allocated
[    0.065935] irq: Cannot allocate irq_descs @ IRQ76, assuming pre-allocated
[    0.066226] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.066234] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.066239] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.066244] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.066449] PCI: bus0: Fast back to back transfers disabled
[    0.066455] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.066461] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.066699] PCI: bus1: Fast back to back transfers disabled
[    0.066966] PCI: bus2: Fast back to back transfers disabled
[    0.067023] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe01fffff]
[    0.067029] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0200000-0xe03fffff]
[    0.067037] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit pref]
[    0.067047] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0100000-0xe01fffff 64bit pref]
[    0.067056] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.067062] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe01fffff]
[    0.067069] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    0.067080] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0300000-0xe03fffff 64bit pref]
[    0.067089] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.067094] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe03fffff]
[    0.067197] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.091358] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.091447] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.131341] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.131488] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.132375] console [ttyS0] disabled
[    0.152444] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 12500000) is a 16550A
[    0.864697] console [ttyS0] enabled
[    0.868615] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.876407] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.882798] nand: AMD/Spansion S34ML01G2
[    0.886736] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.894345] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.901496] Bad block table found at page 65472, version 0x01
[    0.907531] Bad block table found at page 65408, version 0x01
[    0.913541] 10 ofpart partitions found on MTD device pxa3xx_nand-0
[    0.919746] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    0.925264] 0x000000000000-0x000000200000 : "u-boot"
[    0.930557] 0x000000200000-0x000000240000 : "u_env"
[    0.935742] 0x000000240000-0x000000280000 : "s_env"
[    0.940925] 0x000000900000-0x000000a00000 : "devinfo"
[    0.946272] 0x000000a00000-0x000003200000 : "kernel1"
[    0.951656] 0x000001000000-0x000003200000 : "ubi"
[    0.956678] 0x000003200000-0x000005a00000 : "kernel2"
[    0.962081] 0x000003800000-0x000005a00000 : "rootfs2"
[    0.967438] 0x000005a00000-0x000008000000 : "syscfg"
[    0.972736] 0x000000280000-0x000000900000 : "unused_area"
[    0.978864] libphy: Fixed MDIO Bus: probed
[    0.983089] libphy: orion_mdio_bus: probed
[    0.988106] mvneta f1034000.ethernet eth0: Using random mac address 9a:9e:b8:64:7f:2a
[    0.996828] mvneta f1070000.ethernet eth1: Using hardware mac address 00:50:43:9c:dd:02
[    1.005680] NET: Registered protocol family 10
[    1.010609] NET: Registered protocol family 17
[    1.015114] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.027794] Bridge firewalling registered
[    1.031828] 8021q: 802.1Q VLAN Support v1.8
[    1.036082] Registering SWP/SWPB emulation handler
[    1.041840] UBI: auto-attach mtd5
[    1.044997] ubi0: attaching mtd5
[    1.121500] ubi0: scanning is finished
[    1.128827] ubi0: attached mtd5 (name "ubi", size 34 MiB)
[    1.134260] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.141168] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.147982] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.154975] ubi0: good PEBs: 272, bad PEBs: 0, corrupted PEBs: 0
[    1.161009] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.168260] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 659193675
[    1.177346] ubi0: available PEBs: 0, total reserved PEBs: 272, PEBs reserved for bad PEB handling: 20
[    1.186622] ubi0: background thread "ubi_bgt0d" started, PID 419
[    1.192990] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.198500] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.205685] mvsw61xx 10.mvsw61xx: Found MV88E6176 at f1072004.mdio-mi:10
[    1.212423] mvsw61xx 10.mvsw61xx: Using direct addressing
[    1.217871] hctosys: unable to open rtc device (rtc0)
[    1.223632] xhci0-vbus: disabling
[    1.227090] Waiting 1 sec before mounting root device...
[    2.242250] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.249542] Freeing unused kernel memory: 244K (c04e5000 - c0522000)
[    2.446742] init: Console is alive
[    2.713918] usbcore: registered new interface driver usbfs
[    2.719452] usbcore: registered new interface driver hub
[    2.724836] usbcore: registered new device driver usb
[    2.732185] SCSI subsystem initialized
[    2.740047] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.746883] ehci-platform: EHCI generic platform driver
[    2.752494] ehci-orion: EHCI orion driver
[    2.756607] orion-ehci f1058000.usb: EHCI Host Controller
[    2.762050] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.769711] orion-ehci f1058000.usb: irq 36, io mem 0xf1058000
[    2.790907] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.797137] hub 1-0:1.0: USB hub found
[    2.800948] hub 1-0:1.0: 1 port detected
[    2.806137] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.815244] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.824656] scsi host0: ahci-mvebu
[    2.828232] scsi host1: ahci-mvebu
[    2.831760] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    2.839711] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    3.190900] ata2: SATA link down (SStatus 0 SControl 300)
[    3.196349] ata1: SATA link down (SStatus 0 SControl 300)
[    3.203479] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.208826] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    3.216449] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    3.225036] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    3.231073] hub 2-0:1.0: USB hub found
[    3.234851] hub 2-0:1.0: 1 port detected
[    3.238889] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.244237] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.251785] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.260108] hub 3-0:1.0: USB hub found
[    3.263893] hub 3-0:1.0: 1 port detected
[    3.270163] usbcore: registered new interface driver usb-storage
[    3.286917] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.559929] random: procd urandom read with 115 bits of entropy available
[    6.566923] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 551
[    6.591048] UBIFS (ubi0:1): recovery needed
[    6.609009] random: nonblocking pool is initialized
[    6.653675] UBIFS (ubi0:1): recovery completed
[    6.658171] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    6.666041] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    6.676000] UBIFS (ubi0:1): FS size: 27807744 bytes (26 MiB, 219 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[    6.686482] UBIFS (ubi0:1): reserved for root: 1313428 bytes (1282 KiB)
[    6.693127] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 0E6CD23D-1347-4237-AFCD-B15A76F90D8B, small LPT model
[    6.706987] mount_root: loading kmods from internal overlay
[    6.795407] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    6.803817] block: extroot: not configured
[    6.831501] mount_root: switching to jffs2 overlay
[    6.870581] ubi1: attaching mtd8
[    6.953289] ubi1: scanning is finished
[    6.960653] ubi1: attached mtd8 (name "syscfg", size 38 MiB)
[    6.966346] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.973252] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.980067] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.987059] ubi1: good PEBs: 296, bad PEBs: 8, corrupted PEBs: 0
[    6.993091] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.000343] ubi1: max/mean erase counter: 186/123, WL threshold: 4096, image sequence number: 1220797378
[    7.009868] ubi1: available PEBs: 0, total reserved PEBs: 296, PEBs reserved for bad PEB handling: 12
[    7.019133] ubi1: background thread "ubi_bgt1d" started, PID 568
UBI device number 1, total 296 LEBs (37584896 by[    7.028501] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 572
tes, 35.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[    7.045734] UBIFS (ubi1:0): recovery needed
[    7.138530] UBIFS (ubi1:0): recovery completed
[    7.143032] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "syscfg"
[    7.150459] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.160422] UBIFS (ubi1:0): FS size: 34283520 bytes (32 MiB, 270 LEBs), journal size 1777664 bytes (1 MiB, 14 LEBs)
[    7.170904] UBIFS (ubi1:0): reserved for root: 1619295 bytes (1581 KiB)
[    7.177548] UBIFS (ubi1:0): media format: w4/r0 (latest is w4/r0), UUID 966E9803-824D-461B-8D6E-52CC0641547D, small LPT model
[    7.193967] procd: - early -
[    7.793299] procd: - ubus -
[    7.846438] procd: - init -
Please press Enter to activate this console.
[    7.921316] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.929007] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796
[    7.936630] Backport generated by backports.git backports-20160216-0-ge3c56e4
[    7.952419] <<Marvell 802.11ac Wireless Network Driver version 10.3.0.17-20160324>>
[    7.959947] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    9.007704] ieee80211 phy0: firmware version: 0x7020902
[    9.031024] ieee80211 phy0: 2G disabled, 5G enabled
[    9.035929] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[    9.041346] pci 0000:00:02.0: enabling device (0140 -> 0142)
[   10.039590] ieee80211 phy1: firmware version: 0x7020902
[   10.059722] ieee80211 phy1: 2G enabled, 5G disabled
[   10.064646] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   10.072007] i2c /dev entries driver
[   10.092769] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.100830] nf_conntrack version 0.5.0 (8035 buckets, 32140 max)
[   10.244198] xt_time: kernel timezone is -0000
[   10.250863] PPP generic driver version 2.4.2
[   10.255530] NET: Registered protocol family 24
[   12.335367] device eth1 entered promiscuous mode
[   12.341139] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   12.355470] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   13.951102] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   14.103408] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   14.109501] device wlan0 entered promiscuous mode
[   14.114282] br-lan: port 2(wlan0) entered forwarding state
[   14.119807] br-lan: port 2(wlan0) entered forwarding state
[   14.125384] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   14.132084] device wlan1 entered promiscuous mode
[   14.136842] br-lan: port 3(wlan1) entered forwarding state
[   14.142377] br-lan: port 3(wlan1) entered forwarding state
[   14.381936] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   14.389808] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   14.412935] br-lan: port 2(wlan0) entered disabled state
[   14.418324] br-lan: port 3(wlan1) entered disabled state
[   14.423711] br-lan: port 1(eth1) entered forwarding state
[   14.429142] br-lan: port 1(eth1) entered forwarding state
[   14.434618] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   16.420896] br-lan: port 1(eth1) entered forwarding state
[   25.979860] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   25.986337] br-lan: port 2(wlan0) entered forwarding state
[   25.991881] br-lan: port 2(wlan0) entered forwarding state
[   27.610055] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   27.616502] br-lan: port 3(wlan1) entered forwarding state
[   27.622040] br-lan: port 3(wlan1) entered forwarding state
[   27.991514] br-lan: port 2(wlan0) entered forwarding state
[   29.621596] br-lan: port 3(wlan1) entered forwarding state



########################### The env variables upon reset is as follows ############################

Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
altFwSize=0x2800000
altKernAddr=0x3200000
altKernSize=0x0600000
altnandboot=setenv bootargs console=ttyS0,115200 root=/dev/mtdblock7 ro rootdelay=1 rootfstype=jffs2 earlyprintk $mtdparts;nand read $defaultLoadAddr $altKernAd
dr $altKernSize; bootm $defaultLoadAddr
auto_recovery=yes
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
boot_part=1
boot_part_ready=3
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_para
ms clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run nandboot
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=
$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$boo
targs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
defaultLoadAddr=0x2000000
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:87:dd:02
eth1mtu=1500
eth2addr=00:50:43:87:9c:02
eth2mtu=1500
eth3addr=00:50:43:dd:9c:87
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:9c:dd:02
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
firmwareName=cobra.img
flash_alt_image=tftpboot $defaultLoadAddr $firmwareName && nand erase $altKernAddr $altFwSize && nand write $defaultLoadAddr $altKernAddr $filesize
flash_pri_image=tftpboot $defaultLoadAddr $firmwareName && nand erase $priKernAddr $priFwSize && nand write $defaultLoadAddr $priKernAddr $filesize
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.1
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16 at 60
lcd_panel=0
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2048K(uboot)ro,256K(u_env),256K(s_env),1m at 9m(devinfo),40m at 10m(kernel),34m at 16m(rootfs),40m at 50m(alt_kernel),34m at 56m(alt_rootfs),80m@
10m(ubifs),- at 90m(syscfg)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:02:9c:87
nandEcc=nfcConfig=4bitecc
nandboot=setenv bootargs console=ttyS0,115200 root=/dev/mtdblock5 ro rootdelay=1 rootfstype=jffs2 earlyprintk $mtdparts;nand read $defaultLoadAddr $priKernAddr
$priKernSize; bootm $defaultLoadAddr
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
priFwSize=0x2800000
priKernAddr=0x0a00000
priKernSize=0x0600000
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=192.168.1.254
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
update_both_images=tftpboot $defaultLoadAddr $firmwareName && nand erase $priKernAddr $priFwSize && nand erase $altKernAddr $altFwSize && nand write $defaultLoa
dAddr $priKernAddr $filesize && nand write $defaultLoadAddr $altKernAddr $filesize
usb0Mode=host
usbActive=0
usbType=2
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4211/131068 bytes


But every power ON & reboot results in this state and requires the above said procedure.


Regards
Dheeran




More information about the Lede-dev mailing list