Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
June 28, 2017 01:28PM
bodhi,

here is the confirmation.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUf\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 28 2017 - 00:54:18) Marvell version: 2014_T3.0p6 - bodhi-tld-5

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960b0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
Populate envs from NAND ...
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> printenv bootcmd
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Marvell>> setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
Marvell>>
Marvell>> printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 367 ms (16.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-12   5:14:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919625 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    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] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, 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.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049599] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057103] CPU: Testing write buffer coherency: ok
[    0.062171] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067909] Setting up static identity map for 0x100000 - 0x100058
[    0.074213] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079474] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286807] Brought up 2 CPUs
[    0.295566] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307120] devtmpfs: initialized
[    0.312435] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320383] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330309] prandom: seed boundary self test passed
[    0.336934] prandom: 100 self tests passed
[    0.341094] pinctrl core: initialized pinctrl subsystem
[    0.347012] NET: Registered protocol family 16
[    0.352062] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393870] cpuidle: using governor ladder
[    0.423868] cpuidle: using governor menu
[    0.427934] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436004] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441983] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514842] vgaarb: loaded
[    0.517831] SCSI subsystem initialized
[    0.522045] usbcore: registered new interface driver usbfs
[    0.527664] usbcore: registered new interface driver hub
[    0.533096] usbcore: registered new device driver usb
[    0.538412] media: Linux media interface: v0.10
[    0.543048] Linux video capture interface: v2.00
[    0.548536] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579949] VFS: Disk quotas dquot_6.6.0
[    0.583977] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598015] NET: Registered protocol family 2
[    0.602817] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609962] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616513] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622970] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628975] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635480] NET: Registered protocol family 1
[    0.640145] RPC: Registered named UNIX socket transport module.
[    0.646121] RPC: Registered udp transport module.
[    0.650896] RPC: Registered tcp transport module.
[    0.655661] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662272] Unpacking initramfs...
[    0.869128] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.875103] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881869] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.891012] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897216] audit: initializing netlink subsys (disabled)
[    0.902719] audit: type=2000 audit(0.890:1): initialized
[    0.908488] Initialise system trusted keyrings
[    0.913143] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919716] zbud: loaded
[    0.922783] NFS: Registering the id_resolver key type
[    0.927900] Key type id_resolver registered
[    0.932165] Key type id_legacy registered
[    0.936244] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943007] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949554] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.956946] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963548] orangefs_init: module version upstream loaded
[    0.970802] Key type asymmetric registered
[    0.974964] Asymmetric key parser 'x509' registered
[    0.979941] bounce: pool size: 64 pages
[    0.983914] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991368] io scheduler noop registered
[    0.995356] io scheduler deadline registered
[    0.999708] io scheduler cfq registered (default)
[    1.005272] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013695] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020641] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.026963] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.033897] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039825] PCI: bus0: Fast back to back transfers disabled
[    1.045461] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053528] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061692] PCI: bus1: Fast back to back transfers enabled
[    1.067341] PCI: bus2: Fast back to back transfers enabled
[    1.072934] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.077963] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083409] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148941] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156540] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218937] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269260] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.276922] console [ttyS0] disabled
[    1.300651] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309706] console [ttyS0] enabled
[    1.309706] console [ttyS0] enabled
[    1.316796] bootconsole [earlycon0] disabled
[    1.316796] bootconsole [earlycon0] disabled
[    1.326380] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335486] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.345045] scsi host0: ahci-mvebu
[    1.348786] scsi host1: ahci-mvebu
[    1.352395] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360360] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368440] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377539] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386907] scsi host2: ahci-mvebu
[    1.400563] scsi host3: ahci-mvebu
[    1.404127] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412090] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420517] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428370] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434818] nand: Hynix H27U4G8F2DTR-BC
[    1.438689] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446294] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453487] Bad block table found at page 262080, version 0x01
[    1.459676] Bad block table found at page 262016, version 0x01
[    1.465704] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470875] nand_read_bbt: bad block at 0x00000fb00000
[    1.476034] nand_read_bbt: bad block at 0x000012180000
[    1.481201] nand_read_bbt: bad block at 0x0000139a0000
[    1.486362] nand_read_bbt: bad block at 0x000017880000
[    1.491525] nand_read_bbt: bad block at 0x0000178a0000
[    1.496686] nand_read_bbt: bad block at 0x00001a640000
[    1.501853] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507057] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513183] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518613] 0x000000000000-0x000000500000 : "U-Boot"
[    1.534275] 0x000000500000-0x000000f00000 : "uImage"
[    1.549905] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.565702] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.583144] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.588393] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.609935] 0x00001d700000-0x00003c200000 : "config"
[    1.614922] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.636156] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.641330] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.662656] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.667831] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.689623] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.696292] libphy: Fixed MDIO Bus: probed
[    1.699799] ata1: SATA link down (SStatus 0 SControl 300)
[    1.706466] libphy: mdio_driver_register: mv88e6085
[    1.709806] ata2: SATA link down (SStatus 0 SControl 300)
[    1.716954] libphy: orion_mdio_bus: probed
[    1.726667] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.736047] mvneta f1070000.ethernet eth0: Using random mac address d6:ff:43:5b:bc:36
[    1.745845] mvneta f1030000.ethernet eth1: Using random mac address 1a:f0:8e:93:00:dc
[    1.749862] ata3: SATA link down (SStatus 0 SControl 300)
[    1.759366] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.765946] ehci-pci: EHCI PCI platform driver
[    1.770460] ehci-orion: EHCI orion driver
[    1.774500] ata4: SATA link down (SStatus 0 SControl 300)
[    1.780045] orion-ehci f1058000.usb: EHCI Host Controller
[    1.785479] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.793146] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.828550] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.834600] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.841431] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.848690] usb usb1: Product: EHCI Host Controller
[    1.853588] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.860063] usb usb1: SerialNumber: f1058000.usb
[    1.865027] hub 1-0:1.0: USB hub found
[    1.868820] hub 1-0:1.0: 1 port detected
[    1.873199] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878558] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886140] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.894732] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.900606] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.907423] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.914685] usb usb2: Product: xHCI Host Controller
[    1.919590] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.926057] usb usb2: SerialNumber: f10f0000.usb3
[    1.931081] hub 2-0:1.0: USB hub found
[    1.934861] hub 2-0:1.0: 1 port detected
[    1.938971] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.944311] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.951884] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960083] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.966901] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.974161] usb usb3: Product: xHCI Host Controller
[    1.979122] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.985590] usb usb3: SerialNumber: f10f0000.usb3
[    1.990595] hub 3-0:1.0: USB hub found
[    1.994375] hub 3-0:1.0: 1 port detected
[    1.998543] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.003888] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.011470] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.020067] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.025913] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.032739] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.039999] usb usb4: Product: xHCI Host Controller
[    2.044896] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.051408] usb usb4: SerialNumber: f10f8000.usb3
[    2.056400] hub 4-0:1.0: USB hub found
[    2.060197] hub 4-0:1.0: 1 port detected
[    2.064293] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.069642] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.077199] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.085389] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.092261] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.099570] usb usb5: Product: xHCI Host Controller
[    2.104468] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.110944] usb usb5: SerialNumber: f10f8000.usb3
[    2.115942] hub 5-0:1.0: USB hub found
[    2.119733] hub 5-0:1.0: 1 port detected
[    2.123923] usbcore: registered new interface driver usblp
[    2.129512] usbcore: registered new interface driver usb-storage
[    2.135709] mousedev: PS/2 mouse device common for all mice
[    2.141667] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.149342] i2c /dev entries driver
[    2.164124] orion_wdt: Initial timeout 171 sec
[    2.169802] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.177069] hidraw: raw HID events driver (C) Jiri Kosina
[    2.182692] usbcore: registered new interface driver usbhid
[    2.188288] usbhid: USB HID core driver
[    2.192267] drop_monitor: Initializing network drop monitor service
[    2.198605] Netfilter messages via NETLINK v0.30.
[    2.203337] ip_set: protocol 6
[    2.206572] NET: Registered protocol family 10
[    2.211756] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.218414] NET: Registered protocol family 17
[    2.223022] 8021q: 802.1Q VLAN Support v1.8
[    2.227244] Key type dns_resolver registered
[    2.231736] ThumbEE CPU extension supported.
[    2.236029] Registering SWP/SWPB emulation handler
[    2.241190] registered taskstats version 1
[    2.245304] Loading compiled-in X.509 certificates
[    2.250160] zswap: loaded using pool lzo/zbud
[    2.296051] Key type big_key registered
[    2.299941] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.310021] Key type encrypted registered
[    2.314977] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-28 17:21:59 UTC (1498670519)
[    2.325156] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.363741] systemd-udevd[1348]: starting version 215
[    2.369795] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.468772] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.475514] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.487978] hub 2-1:1.0: USB hub found
[    2.493899] hub 2-1:1.0: 4 ports detected
[    2.618797] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.660130] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.666863] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.674615] hub 3-1:1.0: USB hub found
[    2.678626] hub 3-1:1.0: 4 ports detected
[    2.838550] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.969186] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.976093] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.983445] usb 2-1.3: Product: Cruzer Fit
[    2.987558] usb 2-1.3: Manufacturer: SanDisk
[    2.991853] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.998071] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    3.004514] scsi host4: usb-storage 2-1.3:1.0
[    3.010452] usbcore: registered new interface driver uas
[    4.089068] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.099038] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.106065] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.114484] sd 4:0:0:0: [sda] Write Protect is off
[    4.119606] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.131821]  sda: sda1
[    4.135745] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.150389] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.793548] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.809531] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.582623] systemd-udevd[1555]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   19.265381] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631642/7685888 blocks
done.
[   19.383306] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.448948] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/d6:ff:43:5b:bc:36
Sending on   LPF/eth0/d6:ff:43:5b:bc:36
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[   82.185683] random: crng init done
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2493 (syslogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2491 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Tue Jun 27 11:34:56 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
 10:23:30 up 1 min,  1 user,  load average: 0.07, 0.04, 0.01
root@debian:~# fw_printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
root@debian:~# fw_printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
root@debian:~#
Re: Debian on WD MyCloud EX 4100
June 29, 2017 12:57AM
saschadd,


Here is another test version: tld-5.1. Hopefully we'll get more info this time.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.1-nand-uart.bin (933.8 KB)
Re: Debian on WD MyCloud EX 4100
June 29, 2017 02:34AM
bodhi,

same test as before with tld-5.1

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.1-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf\▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [...................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 28 2017 - 21:40:47) Marvell version: 2014_T3.0p6 - bodhi-tld-5.1

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff96100
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
set bootcmd to stock ...
Populate envs from NAND ...
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> printenv bootcmd
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Marvell>> setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
Marvell>> printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4145/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 367 ms (16.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-12   5:14:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919625 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    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] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, 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.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019061] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049599] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057104] CPU: Testing write buffer coherency: ok
[    0.062176] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067914] Setting up static identity map for 0x100000 - 0x100058
[    0.074219] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079479] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283909] Booting CPU 1
[    0.286755] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286804] Brought up 2 CPUs
[    0.295563] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301882] CPU: All CPU(s) started in SVC mode.
[    0.307116] devtmpfs: initialized
[    0.312440] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320384] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330310] prandom: seed boundary self test passed
[    0.336935] prandom: 100 self tests passed
[    0.341095] pinctrl core: initialized pinctrl subsystem
[    0.347008] NET: Registered protocol family 16
[    0.352053] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393866] cpuidle: using governor ladder
[    0.423864] cpuidle: using governor menu
[    0.427930] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.435999] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441977] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450132] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514828] vgaarb: loaded
[    0.517819] SCSI subsystem initialized
[    0.522030] usbcore: registered new interface driver usbfs
[    0.527648] usbcore: registered new interface driver hub
[    0.533080] usbcore: registered new device driver usb
[    0.538394] media: Linux media interface: v0.10
[    0.543029] Linux video capture interface: v2.00
[    0.548525] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.580004] VFS: Disk quotas dquot_6.6.0
[    0.584032] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598033] NET: Registered protocol family 2
[    0.602835] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609981] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616531] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622986] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628991] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635497] NET: Registered protocol family 1
[    0.640161] RPC: Registered named UNIX socket transport module.
[    0.646137] RPC: Registered udp transport module.
[    0.650912] RPC: Registered tcp transport module.
[    0.655676] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662289] Unpacking initramfs...
[    0.868850] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.874824] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881584] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.890728] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.896932] audit: initializing netlink subsys (disabled)
[    0.902436] audit: type=2000 audit(0.890:1): initialized
[    0.908200] Initialise system trusted keyrings
[    0.912861] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919432] zbud: loaded
[    0.922496] NFS: Registering the id_resolver key type
[    0.927621] Key type id_resolver registered
[    0.931887] Key type id_legacy registered
[    0.935968] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.942729] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949278] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.956674] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963279] orangefs_init: module version upstream loaded
[    0.970547] Key type asymmetric registered
[    0.974709] Asymmetric key parser 'x509' registered
[    0.979686] bounce: pool size: 64 pages
[    0.983657] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991113] io scheduler noop registered
[    0.995100] io scheduler deadline registered
[    0.999454] io scheduler cfq registered (default)
[    1.005022] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013456] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020402] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.026724] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.033658] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039586] PCI: bus0: Fast back to back transfers disabled
[    1.045223] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053290] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061455] PCI: bus1: Fast back to back transfers enabled
[    1.067105] PCI: bus2: Fast back to back transfers enabled
[    1.072698] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.077726] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083172] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148930] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156526] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218925] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.268901] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.276557] console [ttyS0] disabled
[    1.300287] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309321] console [ttyS0] enabled
[    1.309321] console [ttyS0] enabled
[    1.316409] bootconsole [earlycon0] disabled
[    1.316409] bootconsole [earlycon0] disabled
[    1.326001] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335108] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.344658] scsi host0: ahci-mvebu
[    1.348338] scsi host1: ahci-mvebu
[    1.351960] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.359928] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368013] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377112] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386484] scsi host2: ahci-mvebu
[    1.390126] scsi host3: ahci-mvebu
[    1.393681] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.401644] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410064] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.417923] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.424315] nand: Hynix H27U4G8F2DTR-BC
[    1.428168] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.435782] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.442974] Bad block table found at page 262080, version 0x01
[    1.449166] Bad block table found at page 262016, version 0x01
[    1.455197] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460366] nand_read_bbt: bad block at 0x00000fb00000
[    1.465526] nand_read_bbt: bad block at 0x000012180000
[    1.470693] nand_read_bbt: bad block at 0x0000139a0000
[    1.475854] nand_read_bbt: bad block at 0x000017880000
[    1.481017] nand_read_bbt: bad block at 0x0000178a0000
[    1.486176] nand_read_bbt: bad block at 0x00001a640000
[    1.491346] nand_read_bbt: bad block at 0x00001e9c0000
[    1.496550] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.502675] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508098] 0x000000000000-0x000000500000 : "U-Boot"
[    1.523774] 0x000000500000-0x000000f00000 : "uImage"
[    1.539406] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555196] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.572718] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.577967] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.599508] 0x00001d700000-0x00003c200000 : "config"
[    1.604496] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.625725] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.630899] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.652235] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.657397] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.679205] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.685891] libphy: Fixed MDIO Bus: probed
[    1.690293] libphy: mdio_driver_register: mv88e6085
[    1.695327] libphy: orion_mdio_bus: probed
[    1.699783] ata1: SATA link down (SStatus 0 SControl 300)
[    1.710327] ata2: SATA link down (SStatus 0 SControl 300)
[    1.710574] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.716841] mvneta f1070000.ethernet eth0: Using random mac address 1a:ea:2c:43:ed:8c
[    1.724588] mvneta f1030000.ethernet eth1: Using random mac address 36:a8:c5:5f:b4:2f
[    1.724836] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.724850] ehci-pci: EHCI PCI platform driver
[    1.724918] ehci-orion: EHCI orion driver
[    1.725015] orion-ehci f1058000.usb: EHCI Host Controller
[    1.725030] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.725084] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.739587] ata3: SATA link down (SStatus 0 SControl 300)
[    1.754705] ata4: SATA link down (SStatus 0 SControl 300)
[    1.758537] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.758664] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.758668] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.758671] usb usb1: Product: EHCI Host Controller
[    1.758674] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.758676] usb usb1: SerialNumber: f1058000.usb
[    1.760389] hub 1-0:1.0: USB hub found
[    1.760431] hub 1-0:1.0: 1 port detected
[    1.760885] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.760897] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.760971] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.760996] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.761145] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.761149] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.761152] usb usb2: Product: xHCI Host Controller
[    1.761155] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.761157] usb usb2: SerialNumber: f10f0000.usb3
[    1.767988] hub 2-0:1.0: USB hub found
[    1.768008] hub 2-0:1.0: 1 port detected
[    1.768172] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.768180] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.768243] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.768316] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.768320] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.768323] usb usb3: Product: xHCI Host Controller
[    1.768326] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.768328] usb usb3: SerialNumber: f10f0000.usb3
[    1.773922] hub 3-0:1.0: USB hub found
[    1.773965] hub 3-0:1.0: 1 port detected
[    1.774193] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.774205] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.774271] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.774293] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.774391] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.774395] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.774397] usb usb4: Product: xHCI Host Controller
[    1.774400] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.774402] usb usb4: SerialNumber: f10f8000.usb3
[    1.779525] hub 4-0:1.0: USB hub found
[    1.779567] hub 4-0:1.0: 1 port detected
[    1.779734] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.779741] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.779794] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.779864] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.779868] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.779870] usb usb5: Product: xHCI Host Controller
[    1.779873] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.779876] usb usb5: SerialNumber: f10f8000.usb3
[    1.784964] hub 5-0:1.0: USB hub found
[    1.785003] hub 5-0:1.0: 1 port detected
[    1.785259] usbcore: registered new interface driver usblp
[    1.785329] usbcore: registered new interface driver usb-storage
[    1.797652] mousedev: PS/2 mouse device common for all mice
[    1.804992] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.805136] i2c /dev entries driver
[    1.834309] orion_wdt: Initial timeout 171 sec
[    1.835709] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.835811] hidraw: raw HID events driver (C) Jiri Kosina
[    1.841996] usbcore: registered new interface driver usbhid
[    1.841998] usbhid: USB HID core driver
[    1.842100] drop_monitor: Initializing network drop monitor service
[    1.842133] Netfilter messages via NETLINK v0.30.
[    1.842142] ip_set: protocol 6
[    1.870461] NET: Registered protocol family 10
[    1.881889] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.882572] NET: Registered protocol family 17
[    1.882682] 8021q: 802.1Q VLAN Support v1.8
[    1.882708] Key type dns_resolver registered
[    1.882791] ThumbEE CPU extension supported.
[    1.882797] Registering SWP/SWPB emulation handler
[    1.899917] registered taskstats version 1
[    1.899920] Loading compiled-in X.509 certificates
[    1.899953] zswap: loaded using pool lzo/zbud
[    1.995126] Key type big_key registered
[    2.015118] Key type encrypted registered
[    2.024400] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-29 06:22:44 UTC (1498717364)
[    2.038710] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.070116] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.070120] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.070761] hub 3-1:1.0: USB hub found
[    2.071004] hub 3-1:1.0: 4 ports detected
[    2.198540] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.255273] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.293765] systemd-udevd[1350]: starting version 215
[    2.299701] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.368784] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.375539] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.387297] hub 2-1:1.0: USB hub found
[    2.391182] hub 2-1:1.0: 4 ports detected
[    2.708541] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.839176] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.846083] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.853437] usb 2-1.3: Product: Cruzer Fit
[    2.857550] usb 2-1.3: Manufacturer: SanDisk
[    2.861846] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.868001] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.874444] scsi host4: usb-storage 2-1.3:1.0
[    2.880488] usbcore: registered new interface driver uas
[    3.929052] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.939061] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.947057] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.952424] sd 4:0:0:0: [sda] Write Protect is off
[    3.959118] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.971510]  sda: sda1
[    3.980358] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.015388] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.653583] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.669554] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.437283] systemd-udevd[1557]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   19.265016] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631643/7685888 blocks
done.
[   19.382842] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.438950] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/1a:ea:2c:43:ed:8c
Sending on   LPF/eth0/1a:ea:2c:43:ed:8c
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utili[   81.560564] random: crng init done
[ ok  statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2492 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2491 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Wed Jun 28 10:23:30 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
 23:25:59 up 3 min,  1 user,  load average: 0.01, 0.02, 0.00
root@debian:~# fw_printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
root@debian:~# fw_printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
Re: Debian on WD MyCloud EX 4100
June 29, 2017 04:54AM
saschadd,

Yes. bootcmd in memory was overwritten after the envs were loaded from flash. This stock u-boot is getting on my nerve :)

Here is tld-5.2 version. Please try. After you kwboot and interrupt it,

printenv

And don't proceed to boot. Let's take a look at the envs first.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/29/2017 04:56AM by bodhi.
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.2-nand-uart.bin (933.9 KB)
Re: Debian on WD MyCloud EX 4100
June 29, 2017 05:15AM
bodhi,

with tld-5.2

printenv
baudrate=115200
bootargs=root=/dev/ram console=ttyS0,115200
bootdelay=1
ethact=egiga0
ipaddr=2.66.66.203
loads_echo=0
netmask=255.255.255.0
pcieTune=no
rootpath=/srv/nfs/
serverip=2.66.66.32

Environment size: 212/524284 bytes
Marvell>>

here the rest of the log

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.2-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf/▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [...................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 29 2017 - 01:43:47) Marvell version: 2014_T3.0p6 - bodhi-tld-5.2

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff96140
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
set bootcmd to stock ...
Import envs from NAND ...
USB2.0 0: Device Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
mtdids not defined, no default present
Error initializing mtdparts!
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:reserve2", error -19
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi:reserve2' errno=-19!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
    - load file 'filename' to address 'addr'
lan mac_addr :  00 00 00 00 00 00
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0, egiga1
Marvell>> printenv
baudrate=115200
bootargs=root=/dev/ram console=ttyS0,115200
bootdelay=1
ethact=egiga0
ipaddr=2.66.66.203
loads_echo=0
netmask=255.255.255.0
pcieTune=no
rootpath=/srv/nfs/
serverip=2.66.66.32

Environment size: 212/524284 bytes
Marvell>>



Edited 1 time(s). Last edit at 06/29/2017 05:17AM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 29, 2017 05:31AM
saschadd,


OK, pls throw away tld-5.2 :)
Re: Debian on WD MyCloud EX 4100
June 29, 2017 05:34AM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
>
> OK, pls throw away tld-5.2 :)

:) :) :) :) :) :) :)

okay, threw it out of the window.
Re: Debian on WD MyCloud EX 4100
June 29, 2017 05:59AM
saschadd,

Here is version tld-5.3.

We are going to change the envs set up a little bit. We are taking the easy path to get to the result a little quicker. So this u-boot will always execute a customizable bootcmd of our own choosing, no matter what in the envs.

1. kwboot witt this tld-5.3, with USB attached. Interrupt serial console and

printenv bootcmd
expected output
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000

If the expected output is correct, then

setenv bootcmd_custom 'run bootcmd_usb; run bootcmd_stock; reset'

and then boot
printenv
boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 4 time(s). Last edit at 06/29/2017 06:08AM by bodhi.
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin (933.7 KB)
Re: Debian on WD MyCloud EX 4100
June 29, 2017 06:06AM
Hold on. I changed it a litle bit above.

Ok. I'm done.

... and done.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 06/29/2017 06:09AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 29, 2017 12:58PM
bodhi,

i think this looks good so far.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
 ....
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 29 2017 - 02:45:32) Marvell version: 2014_T3.0p6 - bodhi-tld-5.3

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960d0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> printenv bootcmd
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Marvell>> setenv bootcmd_custom 'run bootcmd_usb; run bootcmd_stock; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4284/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 368 ms (16.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-12   5:14:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919625 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    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] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, 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.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038733] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049600] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057102] CPU: Testing write buffer coherency: ok
[    0.062174] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067912] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079476] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286757] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295564] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307121] devtmpfs: initialized
[    0.312450] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320396] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330323] prandom: seed boundary self test passed
[    0.336947] prandom: 100 self tests passed
[    0.341108] pinctrl core: initialized pinctrl subsystem
[    0.347023] NET: Registered protocol family 16
[    0.352074] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427932] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504839] vgaarb: loaded
[    0.507848] SCSI subsystem initialized
[    0.512063] usbcore: registered new interface driver usbfs
[    0.517694] usbcore: registered new interface driver hub
[    0.523127] usbcore: registered new device driver usb
[    0.528452] media: Linux media interface: v0.10
[    0.533087] Linux video capture interface: v2.00
[    0.538592] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570125] VFS: Disk quotas dquot_6.6.0
[    0.574153] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587973] NET: Registered protocol family 2
[    0.592795] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599943] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606493] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612963] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618972] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625481] NET: Registered protocol family 1
[    0.630166] RPC: Registered named UNIX socket transport module.
[    0.636141] RPC: Registered udp transport module.
[    0.640918] RPC: Registered tcp transport module.
[    0.645683] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652306] Unpacking initramfs...
[    0.859822] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865797] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872596] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881747] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887954] audit: initializing netlink subsys (disabled)
[    0.893465] audit: type=2000 audit(0.880:1): initialized
[    0.899246] Initialise system trusted keyrings
[    0.903879] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910457] zbud: loaded
[    0.913527] NFS: Registering the id_resolver key type
[    0.918663] Key type id_resolver registered
[    0.922909] Key type id_legacy registered
[    0.926987] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933750] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940297] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947686] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954292] orangefs_init: module version upstream loaded
[    0.961587] Key type asymmetric registered
[    0.965749] Asymmetric key parser 'x509' registered
[    0.970724] bounce: pool size: 64 pages
[    0.974695] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982152] io scheduler noop registered
[    0.986139] io scheduler deadline registered
[    0.990493] io scheduler cfq registered (default)
[    0.996056] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004488] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011434] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017756] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024690] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030616] PCI: bus0: Fast back to back transfers disabled
[    1.036252] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044320] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052485] PCI: bus1: Fast back to back transfers enabled
[    1.058135] PCI: bus2: Fast back to back transfers enabled
[    1.063728] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068766] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.074197] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138999] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146598] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208992] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259223] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266872] console [ttyS0] disabled
[    1.290602] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299636] console [ttyS0] enabled
[    1.299636] console [ttyS0] enabled
[    1.306723] bootconsole [earlycon0] disabled
[    1.306723] bootconsole [earlycon0] disabled
[    1.316311] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325418] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.334990] scsi host0: ahci-mvebu
[    1.338722] scsi host1: ahci-mvebu
[    1.342330] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350296] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358380] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367480] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386867] scsi host2: ahci-mvebu
[    1.390513] scsi host3: ahci-mvebu
[    1.394070] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402034] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410479] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418349] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.424742] nand: Hynix H27U4G8F2DTR-BC
[    1.428619] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436223] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443413] Bad block table found at page 262080, version 0x01
[    1.449600] Bad block table found at page 262016, version 0x01
[    1.455628] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460798] nand_read_bbt: bad block at 0x00000fb00000
[    1.465958] nand_read_bbt: bad block at 0x000012180000
[    1.471125] nand_read_bbt: bad block at 0x0000139a0000
[    1.476286] nand_read_bbt: bad block at 0x000017880000
[    1.481451] nand_read_bbt: bad block at 0x0000178a0000
[    1.486611] nand_read_bbt: bad block at 0x00001a640000
[    1.491779] nand_read_bbt: bad block at 0x00001e9c0000
[    1.496983] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503110] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508533] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514201] 0x000000500000-0x000000f00000 : "uImage"
[    1.529832] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.545626] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.563123] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.568372] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.589917] 0x00001d700000-0x00003c200000 : "config"
[    1.594904] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616138] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621312] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.632659] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.637833] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.649637] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.656298] libphy: Fixed MDIO Bus: probed
[    1.660697] libphy: mdio_driver_register: mv88e6085
[    1.665783] libphy: orion_mdio_bus: probed
[    1.675439] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.684481] mvneta f1070000.ethernet eth0: Using random mac address 12:42:aa:5e:95:2e
[    1.689859] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699744] mvneta f1030000.ethernet eth1: Using random mac address 8a:1d:3b:68:2c:8a
[    1.699883] ata2: SATA link down (SStatus 0 SControl 300)
[    1.713236] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.719824] ehci-pci: EHCI PCI platform driver
[    1.724328] ehci-orion: EHCI orion driver
[    1.728463] orion-ehci f1058000.usb: EHCI Host Controller
[    1.733919] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.741539] ata3: SATA link down (SStatus 0 SControl 300)
[    1.747028] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.749986] ata4: SATA link down (SStatus 0 SControl 300)
[    1.778609] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.784658] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.791490] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798749] usb usb1: Product: EHCI Host Controller
[    1.803647] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.810121] usb usb1: SerialNumber: f1058000.usb
[    1.815090] hub 1-0:1.0: USB hub found
[    1.818884] hub 1-0:1.0: 1 port detected
[    1.823258] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.828617] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.836202] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.844793] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.850651] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.857469] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.864745] usb usb2: Product: xHCI Host Controller
[    1.869651] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.876118] usb usb2: SerialNumber: f10f0000.usb3
[    1.881139] hub 2-0:1.0: USB hub found
[    1.884920] hub 2-0:1.0: 1 port detected
[    1.889027] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.894368] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.901942] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.910139] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.916958] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.924218] usb usb3: Product: xHCI Host Controller
[    1.929913] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.936382] usb usb3: SerialNumber: f10f0000.usb3
[    1.941388] hub 3-0:1.0: USB hub found
[    1.945167] hub 3-0:1.0: 1 port detected
[    1.949335] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.954679] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.962263] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.970862] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.976709] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.983536] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.990797] usb usb4: Product: xHCI Host Controller
[    1.995695] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.002206] usb usb4: SerialNumber: f10f8000.usb3
[    2.007201] hub 4-0:1.0: USB hub found
[    2.010994] hub 4-0:1.0: 1 port detected
[    2.015087] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.020436] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.027993] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.036184] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.043012] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.050273] usb usb5: Product: xHCI Host Controller
[    2.055170] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.061691] usb usb5: SerialNumber: f10f8000.usb3
[    2.066682] hub 5-0:1.0: USB hub found
[    2.070474] hub 5-0:1.0: 1 port detected
[    2.074663] usbcore: registered new interface driver usblp
[    2.080252] usbcore: registered new interface driver usb-storage
[    2.086452] mousedev: PS/2 mouse device common for all mice
[    2.092459] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.100138] i2c /dev entries driver
[    2.114933] orion_wdt: Initial timeout 171 sec
[    2.120615] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.127887] hidraw: raw HID events driver (C) Jiri Kosina
[    2.133518] usbcore: registered new interface driver usbhid
[    2.139127] usbhid: USB HID core driver
[    2.143096] drop_monitor: Initializing network drop monitor service
[    2.149432] Netfilter messages via NETLINK v0.30.
[    2.154165] ip_set: protocol 6
[    2.157400] NET: Registered protocol family 10
[    2.162452] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.169228] NET: Registered protocol family 17
[    2.173809] 8021q: 802.1Q VLAN Support v1.8
[    2.178030] Key type dns_resolver registered
[    2.182576] ThumbEE CPU extension supported.
[    2.186868] Registering SWP/SWPB emulation handler
[    2.192045] registered taskstats version 1
[    2.196160] Loading compiled-in X.509 certificates
[    2.201016] zswap: loaded using pool lzo/zbud
[    2.248626] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.255323] Key type big_key registered
[    2.262627] Key type encrypted registered
[    2.267582] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-29 16:54:50 UTC (1498755290)
[    2.277757] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.316289] systemd-udevd[1348]: starting version 215
[    2.322279] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.428848] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.435601] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.447421] hub 2-1:1.0: USB hub found
[    2.452417] hub 2-1:1.0: 4 ports detected
[    2.568834] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.600163] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.606895] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.614649] hub 3-1:1.0: USB hub found
[    2.618659] hub 3-1:1.0: 4 ports detected
[    2.768609] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.899242] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.906148] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.913500] usb 2-1.3: Product: Cruzer Fit
[    2.917613] usb 2-1.3: Manufacturer: SanDisk
[    2.921907] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.928128] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.934595] scsi host4: usb-storage 2-1.3:1.0
[    2.940520] usbcore: registered new interface driver uas
[    4.009154] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019457] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.026385] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.034815] sd 4:0:0:0: [sda] Write Protect is off
[    4.039925] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.052094]  sda: sda1
[    4.056009] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.070286] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.733669] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.742730] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.749650] EXT4-fs (sda1): write access will be enabled during recovery
[   17.790786] EXT4-fs (sda1): recovery complete
[   17.797638] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.561555] systemd-udevd[1555]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   19.253227] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631644/7685888 blocks
done.
[   19.369828] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.418999] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/12:42:aa:5e:95:2e
Sending on   LPF/eth0/12:42:aa:5e:95:2e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utili[   82.152110] random: crng init done
[ ok  statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2493 (syslogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2494 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Wed Jun 28 23:47:15 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
 09:56:47 up 1 min,  1 user,  load average: 0.03, 0.02, 0.00
root@debian:~# fw_printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
root@debian:~# fw_printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00a00000 00020000 "uImage"
mtd2: 00f00000 00020000 "uRamdisk"
mtd3: 1c800000 00020000 "image.cfs"
mtd4: 03800000 00020000 "rescue_fw"
mtd5: 02900000 00020000 "config"
mtd6: 01500000 00020000 "reserve1"
mtd7: 00b00000 00020000 "reserve2"
root@debian:~#
Re: Debian on WD MyCloud EX 4100
June 29, 2017 05:21PM
sachadd,

Ok. So in Debian, you can save the env:

fw_setenv bootcmd_custom 'run bootcmd_usb; run bootcmd_stock; reset'

And then do the 3 tests

1. Shutdown and power up without the USB drive. It should boot to stock as if nothing has changed,
2. kwboot without USB drive. It should boot to stock, as it will fall back to stock after failing to find the USB drive.
3. kwboot with USB drive attached. It should boot to Debian on USB.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/29/2017 05:49PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 30, 2017 02:40AM
bodhi Wrote:
-------------------------------------------------------
> sachadd,
>
> Ok. So in Debian, you can save the env:
>
>
> fw_setenv bootcmd_custom 'run bootcmd_usb; run boo
> tcmd_stock; reset'
>
>
> And then do the 3 tests
>
> 1. Shutdown and power up without the USB drive. It should boot to stock as if nothing has changed,

works

> 2. kwboot without USB drive. It should boot to stock, as it will fall back to stock after failing to find the USB drive.

does not work (do i have to save env in debian? No, the bootcmd_custom is already there)

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target.../▒"▒&T▒▒▒"3DUfw▒"3DUf-▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 29 2017 - 02:45:32) Marvell version: 2014_T3.0p6 - bodhi-tld-5.3

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960d0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1718.400 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1718.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-30 06:34:21 UTC (1498804461)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
: applet not fouKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
nd
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xc071bf70 to 0xc071bfb8)
bf60:                                     ffffffed 002b0000 c0727828 c0019b00
bf80: c071a000 c0726564 c0538bf4 c076599e c076599e 414fc091 00000001 00000000
bfa0: 01000000 c071bfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<c06d8a20>] (start_kernel+0x2b0/0x308)
[<c06d8a20>] (start_kernel+0x2b0/0x308) from [<00008074>] (0x8074)


> 3. kwboot with USB drive attached. It should boot to Debian on USB.

this is working



Edited 3 time(s). Last edit at 06/30/2017 03:00AM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 30, 2017 03:19AM
saschadd,

The bootargs was incorrect for stock OS.

Repeat the 2nd test. But interrupt serial console and list the envs, and stop here.

printenv

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 30, 2017 03:31AM
okay, here the printenv output

CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=run bootcmd_usb; run bootcmd_stock; reset
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$bootargs_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;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4284/524284 bytes
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 30, 2017 03:43AM
The envs look good. So I cannot see why.

Let's do this. At the prompt.

setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 30, 2017 03:52AM
Hmm, same thing happens

Marvell>> setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1721.600 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1721.600 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-30 07:50:27 UTC (1498809027)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
: applet not fouPlease append a correct "root=" boot option; here are the available partitions:
nd
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xee0edfa0 to 0xee0edfe8)
dfa0: ffffffed 002b8000 c0727828 c0019b00 ee0ec000 c0726564 c0538bf4 c076599e
dfc0: c076599e 414fc091 00000001 00000000 01000000 ee0edfe8 c000f344 c000f330
dfe0: 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<005265c4>] (0x5265c4)
Re: Debian on WD MyCloud EX 4100
June 30, 2017 03:59AM
See if this is better.

setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
setenv bootcmd_custom 'if run bootcmd_usb; then; else run bootcmd_stock; fi; reset'
boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 30, 2017 04:10AM
Nope.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf\
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 29 2017 - 02:45:32) Marvell version: 2014_T3.0p6 - bodhi-tld-5.3

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960d0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootcmd_custom 'if run bootcmd_usb; then; else run bootcmd_stock; fi; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_usb; then; else run bootcmd_stock; fi; reset
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$bootargs_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;
bootcmd_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4351/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6384.02 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1718.400 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1718.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-30 08:09:44 UTC (1498810184)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
: applet not fouKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
nd
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xc071bf70 to 0xc071bfb8)
bf60:                                     ffffffed 002b0000 c0727828 c0019b00
bf80: c071a000 c0726564 c0538bf4 c076599e c076599e 414fc091 00000001 00000000
bfa0: 01000000 c071bfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<c06d8a20>] (start_kernel+0x2b0/0x308)
[<c06d8a20>] (start_kernel+0x2b0/0x308) from [<00008074>] (0x8074)
Re: Debian on WD MyCloud EX 4100
June 30, 2017 04:46AM
OK. Looks like it failed to find the USB drive and bailed out too early.

See if we can tell where it bailed out, if at all, this time.
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd'

setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000

setenv bootcmd_custom 'run bootcmd_usb; echo Failed booting from USB ... ; run bootcmd_stock'

boot


U-boot syntax is a little bit convoluted :) we might need to revise this further.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/30/2017 05:05AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 30, 2017 05:29AM
bodhi,
just to be sure, i am trying test 2 without usb pen drive attached because test 1 and test 3 were working!

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target.../▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUf-▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 29 2017 - 02:45:32) Marvell version: 2014_T3.0p6 - bodhi-tld-5.3

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960d0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd'
Marvell>> setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootcmd_custom 'run bootcmd_usb; echo Failed booting from USB ... ; run bootcmd_stock'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$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
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_custom; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=run bootcmd_usb; echo Failed booting from USB ... ; run bootcmd_stock
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$bootargs_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;
bootcmd_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
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=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4354/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1718.400 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1110.400 MB/sec
xor: using function: arm4regs (1718.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-30 09:14:08 UTC (1498814048)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrc: applet VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
not found
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xc071bf70 to 0xc071bfb8)
bf60:                                     ffffffed 002b0000 c0727828 c0019b00
bf80: c071a000 c0726564 c0538bf4 c076599e c076599e 414fc091 00000001 00000000
bfa0: 01000000 c071bfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<c06d8a20>] (start_kernel+0x2b0/0x308)
[<c06d8a20>] (start_kernel+0x2b0/0x308) from [<00008074>] (0x8074)



Edited 1 time(s). Last edit at 06/30/2017 05:33AM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 30, 2017 05:48AM
Thanks saschadd!

I expected this test 2 to fail. I just needed a confirmation.

The reason: u-boot env execution semantic is quite quirky. If we have embedded all the envs explicitly in the bootcmd_custom then it will boot correctly. But I had one too many "run <some env>" inside the script, and that has made it bailing out too quicly.

Now, we could script them in similarly convoluted way to meet this requirement. However, that will make it too restricted. So I will make another build to make it failsafe and easier to deal with. Tomorrow.

----

In the mean time, try this for test 2. It looks awkward, but I think it will fall back OK.

setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; set_bootargs_stock; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'

setenv bootcmd_usb 'usb start; run usb_bootcmd'

setenv bootcmd_custom 'run bootcmd_usb'

boot

Update:

Nope :)) NVM, it needs more scripting than the above. Another build will make it easier.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 06/30/2017 05:57AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 30, 2017 07:29PM
saschadd,

Here is tld-6.

To repeat the tests:

1. Shutdown and power up without the USB drive. It should boot to stock. 
2. kwboot with tld-6, without USB drive. It should boot to stock. 
3. kwboot with tld-6, with USB drive attached. It should boot to Debian.

And the current envs for these 2 are:

bootcmd_custom=run bootcmd_usb; run bootcmd_stock; reset
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset


Note: we will want to remove the reset in bootcmd_usb. But that can be done later in Debian.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6-nand-uart.bin (933.8 KB)
Re: Debian on WD MyCloud EX 4100
July 01, 2017 02:56AM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> Here is tld-6.

This seems to have better timing. The kwboot starts at first try.

> To repeat the tests:

> 1. Shutdown and power up without the USB drive. It should boot to stock.

works

> 2. kwboot with tld-6, without USB drive. It should boot to stock.

the envs are correct but same issue i think

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target.../▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf-
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 30 2017 - 16:08:19) Marvell version: 2014_T3.0p6 - bodhi-tld-6

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960f0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
bootcmd: run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> printenv bootcmd_custom
bootcmd_custom=run bootcmd_usb; run bootcmd_stock; reset
Marvell>> printenv bootcmd_usb
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1718.400 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1718.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-07-01 06:53:20 UTC (1498892000)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
: applet not fouPlease append a correct "root=" boot option; here are the available partitions:
nd
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xee0edfa0 to 0xee0edfe8)
dfa0: ffffffed 002b8000 c0727828 c0019b00 ee0ec000 c0726564 c0538bf4 c076599e
dfc0: c076599e 414fc091 00000001 00000000 01000000 ee0edfe8 c000f344 c000f330
dfe0: 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<005265c4>] (0x5265c4)


> 3. kwboot with tld-6, with USB drive attached. It should boot to Debian.

works



Edited 3 time(s). Last edit at 07/01/2017 03:26AM by saschadd.
Re: Debian on WD MyCloud EX 4100
July 01, 2017 03:50AM
Right. It seems the envs did not work as I expected.

Try test 2 with this (remove the reset).
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd'

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 01, 2017 04:11AM
Seems not to work as expected

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
 ...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 30 2017 - 16:08:19) Marvell version: 2014_T3.0p6 - bodhi-tld-6

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 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:  2 GiB

Map:   Code:                    0x7fece000:0x7ff960f0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
bootcmd: run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd'
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1721.600 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1721.600 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-07-01 08:09:46 UTC (1498896586)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
: applet not fouPlease append a correct "root=" boot option; here are the available partitions:
nd
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xee0edfa0 to 0xee0edfe8)
dfa0: ffffffed 002b8000 c0727828 c0019b00 ee0ec000 c0726564 c0538bf4 c076599e
dfc0: c076599e 414fc091 00000001 00000000 01000000 ee0edfe8 c000f344 c000f330
dfe0: 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<005265c4>] (0x5265c4)
Re: Debian on WD MyCloud EX 4100
July 01, 2017 04:21AM
saschadd,

I think it is time to revise the envs to make it more resilient. What we have so far is a simple script that is not yet doing what it can be. From your boot log, I can see the wrong path taken when there is no USB drive in the box.

So I will rescript the bootcmd_usb to make it always return a successful status, even the drive is not found, and then let it boot to stock.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 01, 2017 06:21PM
saschadd,


Here is the whole set of the envs. The last 2 envs were modified, and the env usb_bootcmd is no longer needed.

setenv set_bootargs_stock 'setenv bootargs root=/dev/ram console=ttyS0,115200'
setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
setenv bootdev 'usb'
setenv device '0:1'
setenv load_image_addr '0x02000000'
setenv load_initrd_addr '0x2900000'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)'

setenv bootcmd_usb 'echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi'
setenv bootcmd_custom 'if run bootcmd_usb; then ; fi; run bootcmd_stock; reset'

We should do the tests again. And I've added test 4.

1. Shutdown and power up without the USB drive. It should boot to stock.
2. kwboot with tld-6, without USB drive. It should boot to stock.
3. kwboot with tld-6, with USB drive attached. It should boot to Debian.

4. kwboot with tld-6, without USB drive. Interrupt serial console, and temporarily remove bootcmd_custom. It should boot to stock.
setenv bootcmd_custom
boot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 02, 2017 08:41AM
bodhi,

should i set those 2 changed envs?

and should i save those 2 new envs in debian to nand before testing?

-
happy hacking,

saschadd



Edited 1 time(s). Last edit at 07/02/2017 12:06PM by saschadd.
Re: Debian on WD MyCloud EX 4100
July 02, 2017 05:10PM
saschadd,

> should i set those 2 changed envs?
>
> and should i save those 2 new envs in debian to na
> nd before testing?

Yes. I forgot :) Boot into Debian and

fw_setenv bootcmd_usb 'echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi'
fw_setenv bootcmd_custom 'if run bootcmd_usb; then ; fi; run bootcmd_stock; reset'

And then run these 4 tests.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 02, 2017 05:53PM
bodhi,
well done! : )

1. Shutdown and power up without the USB drive. It should boot to stock.
working : )

2. kwboot with tld-6, without USB drive. It should boot to stock.
working : )

3. kwboot with tld-6, with USB drive attached. It should boot to Debian.
working : )

4. kwboot with tld-6, without USB drive. Interrupt serial console, and temporarily remove bootcmd_custom. It should boot to stock.
working : )
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: