Re: My Cloud Mirror Gen2
July 18, 2017 12:14AM
Quote
mcmg2
it shows 512MB not 2GB

Huh, not what I was expecting but at least it's correct for this box.

Here's the change:
--- a/tools/marvell/bin_hdr/inc/common/ddr3_hws_hw_training_def.h
+++ b/tools/marvell/bin_hdr/inc/common/ddr3_hws_hw_training_def.h
@@ -97,7 +97,7 @@
 
 #define REG_SDRAM_ADDRESS_CTRL_ADDR                            0x1410
 #define REG_SDRAM_ADDRESS_SIZE_OFFS                            2
-#if 0  //ALPHA_CUSTOMIZE
+#if 1  //ALPHA_CUSTOMIZE
 /* DRAM: 1GB */
 #define REG_SDRAM_ADDRESS_SIZE_HIGH_OFFS               21
 #else

REG_SDRAM_ADDRESS_SIZE_HIGH_OFFS should be 21, not 18.

Quote
mcmg2
after apt-get install build-essential
still not able to build deb

make does not produce a .deb file. From the directory listing it looks like the binary mcm-daemon has been built. Try running it with ./mcm-daemon
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 12:40AM
yes, it works. fan speed down.

please advise me to skip kwboot.
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 05:50AM
mint@mint ~/kwboot $ sudo ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+.....................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 37 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 44 % [......................................................................]
 45 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 51 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 60 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 66 % [......................................................................]
 67 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 75 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 81 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 85 % [......................................................................]
 86 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 89 % [......................................................................]
 90 % [......................................................................]
 91 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01-g7c1da33-dirty_v1.04 (Jul 17 2017 - 18:43:06) Marvell version: 2014_T3.0p6

mvBoardIdIndexGet(boardId) = 1
Board: GrandTeton DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fece000:0x1ff96010
       BSS:			0x1ffef654
       Stack:			0x1f9cdf20
       Heap:			0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  ID: daad ,256 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00000f500000-0x00000ff00000 : "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/0
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 18 (0x00000012)...
Done
Set lan 2 WakeOnLan ok
Enable HD1
Enable HD2
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x00     |
egiga0, egiga1, egiga2 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootdev 'usb'
Marvell>> setenv device '0:1'
Marvell>> setenv load_image_addr '0x02000000'
Marvell>> setenv load_initrd_addr '0x2900000'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> 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'
Marvell>> run bootcmd_usb
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 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 ...
3920526 bytes read in 422 ms (8.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 493 ms (12 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   9:45:53 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3920462 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: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398
[    0.000000] console 'earlycon0' already registered
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04ba5a4>] (dump_stack) from [<c0123ce0>] (__warn+0xc8/0xfc)
[    0.000000] [<c0123ce0>] (__warn) from [<c0123d48>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0123d48>] (warn_slowpath_fmt) from [<c0171b1c>] (register_console+0x3c/0x398)
[    0.000000] [<c0171b1c>] (register_console) from [<c0c04dc0>] (setup_early_printk+0x14/0x24)
[    0.000000] [<c0c04dc0>] (setup_early_printk) from [<c0c00478>] (do_early_param+0x6c/0xbc)
[    0.000000] [<c0c00478>] (do_early_param) from [<c013f774>] (parse_args+0x2dc/0x40c)
[    0.000000] [<c013f774>] (parse_args) from [<c0c0088c>] (parse_early_options+0x2c/0x3c)
[    0.000000] [<c0c0088c>] (parse_early_options) from [<c0c008c8>] (parse_early_param+0x2c/0x44)
[    0.000000] [<c0c008c8>] (parse_early_param) from [<c0c03350>] (setup_arch+0x4fc/0xa24)
[    0.000000] [<c0c03350>] (setup_arch) from [<c0c00934>] (start_kernel+0x50/0x390)
[    0.000000] [<c0c00934>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @dfbcc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 500128K/524288K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 24160K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 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.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019112] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034036] pid_max: default: 32768 minimum: 301
[    0.038804] Security Framework initialized
[    0.043004] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049678] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057251] CPU: Testing write buffer coherency: ok
[    0.062343] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068084] Setting up static identity map for 0x100000 - 0x100058
[    0.074514] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079798] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283603] Booting CPU 1
[    0.286473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286529] Brought up 2 CPUs
[    0.295290] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301610] CPU: All CPU(s) started in SVC mode.
[    0.306846] devtmpfs: initialized
[    0.312747] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320731] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330670] prandom: seed boundary self test passed
[    0.337632] prandom: 100 self tests passed
[    0.341793] pinctrl core: initialized pinctrl subsystem
[    0.347821] NET: Registered protocol family 16
[    0.352986] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383454] cpuidle: using governor ladder
[    0.413421] cpuidle: using governor menu
[    0.417536] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425611] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483823] vgaarb: loaded
[    0.486863] SCSI subsystem initialized
[    0.491159] usbcore: registered new interface driver usbfs
[    0.496815] usbcore: registered new interface driver hub
[    0.502248] usbcore: registered new device driver usb
[    0.507598] media: Linux media interface: v0.10
[    0.512243] Linux video capture interface: v2.00
[    0.517916] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554069] VFS: Disk quotas dquot_6.6.0
[    0.558140] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573419] NET: Registered protocol family 2
[    0.578292] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.585414] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.591979] TCP: Hash tables configured (established 4096 bind 4096)
[    0.598428] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.604328] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.610779] NET: Registered protocol family 1
[    0.615463] RPC: Registered named UNIX socket transport module.
[    0.621458] RPC: Registered udp transport module.
[    0.626223] RPC: Registered tcp transport module.
[    0.631015] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.637640] Unpacking initramfs...
[    0.882396] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.888538] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.895240] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.904558] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.910806] audit: initializing netlink subsys (disabled)
[    0.916287] audit: type=2000 audit(0.900:1): initialized
[    0.922133] Initialise system trusted keyrings
[    0.926798] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.933392] zbud: loaded
[    0.936552] NFS: Registering the id_resolver key type
[    0.941691] Key type id_resolver registered
[    0.945938] Key type id_legacy registered
[    0.950032] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.956786] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.963365] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.970810] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.977427] orangefs_init: module version upstream loaded
[    0.985067] Key type asymmetric registered
[    0.989245] Asymmetric key parser 'x509' registered
[    0.994273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.001730] io scheduler noop registered
[    1.005719] io scheduler deadline registered
[    1.010076] io scheduler cfq registered (default)
[    1.015764] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.024448] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.031399] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.037723] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.044660] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.050661] PCI: bus0: Fast back to back transfers disabled
[    1.056299] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.064371] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.072555] PCI: bus1: Fast back to back transfers enabled
[    1.078240] PCI: bus2: Fast back to back transfers enabled
[    1.083829] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.088876] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.094396] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.158408] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.166031] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.228386] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.287076] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.294965] console [ttyS0] disabled
[    1.318731] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.327756] console [ttyS0] enabled
[    1.327756] console [ttyS0] enabled
[    1.334859] bootconsole [earlycon0] disabled
[    1.334859] bootconsole [earlycon0] disabled
[    1.364242] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.374256] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.383363] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.393069] scsi host0: ahci-mvebu
[    1.396807] scsi host1: ahci-mvebu
[    1.400464] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.405540] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.413505] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.418587] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.427081] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.434994] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.441388] nand: Hynix H27U2G8F2CTR-BC
[    1.445242] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.452857] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.460059] Bad block table found at page 131008, version 0x01
[    1.466260] Bad block table found at page 130944, version 0x01
[    1.472364] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.478495] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.483920] 0x000000000000-0x000000500000 : "U-Boot"
[    1.489744] 0x000000500000-0x000000a00000 : "uImage"
[    1.505468] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.521356] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.538089] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.554081] 0x00000d700000-0x00000eb00000 : "config"
[    1.569869] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.585787] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.602327] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.609141] libphy: Fixed MDIO Bus: probed
[    1.613567] libphy: mdio_driver_register: mv88e6085
[    1.618728] libphy: orion_mdio_bus: probed
[    1.627771] mvneta f1034000.ethernet eth0: Using random mac address 1a:ab:35:b9:8e:f4
[    1.635900] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.642483] ehci-pci: EHCI PCI platform driver
[    1.646992] ehci-orion: EHCI orion driver
[    1.651337] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.656687] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.664297] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672911] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.678800] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685619] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692883] usb usb1: Product: xHCI Host Controller
[    1.697782] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.704260] usb usb1: SerialNumber: f10f0000.usb3
[    1.709377] hub 1-0:1.0: USB hub found
[    1.713165] hub 1-0:1.0: 1 port detected
[    1.717296] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.722656] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.730241] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.738445] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.745265] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.749208] ata1: SATA link down (SStatus 0 SControl 320)
[    1.757975] usb usb2: Product: xHCI Host Controller
[    1.759162] ata2: SATA link down (SStatus 0 SControl 320)
[    1.768299] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.774768] usb usb2: SerialNumber: f10f0000.usb3
[    1.779856] hub 2-0:1.0: USB hub found
[    1.783640] hub 2-0:1.0: 1 port detected
[    1.787854] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.793217] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.800815] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.809433] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.815294] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.822170] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.829433] usb usb3: Product: xHCI Host Controller
[    1.834332] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.840809] usb usb3: SerialNumber: f10f8000.usb3
[    1.845869] hub 3-0:1.0: USB hub found
[    1.849670] hub 3-0:1.0: 1 port detected
[    1.853802] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.859157] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.866724] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.874930] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.881764] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.889096] usb usb4: Product: xHCI Host Controller
[    1.893995] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.900475] usb usb4: SerialNumber: f10f8000.usb3
[    1.905539] hub 4-0:1.0: USB hub found
[    1.909335] hub 4-0:1.0: 1 port detected
[    1.913570] usbcore: registered new interface driver usblp
[    1.919170] usbcore: registered new interface driver usb-storage
[    1.925394] mousedev: PS/2 mouse device common for all mice
[    1.931594] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.939413] i2c /dev entries driver
[    1.954882] orion_wdt: Initial timeout 171 sec
[    1.961316] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.968693] hidraw: raw HID events driver (C) Jiri Kosina
[    1.974440] usbcore: registered new interface driver usbhid
[    1.980052] usbhid: USB HID core driver
[    1.984064] drop_monitor: Initializing network drop monitor service
[    1.990413] Netfilter messages via NETLINK v0.30.
[    1.995151] ip_set: protocol 6
[    1.998482] NET: Registered protocol family 10
[    2.003518] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.010502] NET: Registered protocol family 17
[    2.015131] 8021q: 802.1Q VLAN Support v1.8
[    2.019464] Key type dns_resolver registered
[    2.023885] ThumbEE CPU extension supported.
[    2.028191] Registering SWP/SWPB emulation handler
[    2.033529] registered taskstats version 1
[    2.037646] Loading compiled-in X.509 certificates
[    2.042508] zswap: loaded using pool lzo/zbud
[    2.095311] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.105784] Key type big_key registered
[    2.113426] Key type encrypted registered
[    2.118576] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-18 19:39:32 UTC (1500406772)
[    2.128956] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.171648] systemd-udevd[1315]: starting version 215
[    2.177740] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.270270] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.277017] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.285512] usb 1-1: Product: POLLEX 8G
[    2.289392] usb 1-1: Manufacturer: SRT
[    2.293158] usb 1-1: SerialNumber: 033113111111135234000373
[    2.299280] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.319351] scsi host2: usb-storage 1-1:1.0
[    2.484375] usbcore: registered new interface driver uas
[    3.368663] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.381265] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.386626] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.395583] sd 2:0:0:0: [sda] Write Protect is off
[    3.401106] sd 2:0:0:0: [sda] No Caching mode page found
[    3.406443] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.415836]  sda: sda1
[    3.420704] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.459375] 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.593452] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.610997] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   17.916366] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   17.929957] systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

[   17.979130] systemd[1]: Set hostname to <debian>.
[   18.329472] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   18.346180] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   18.354165] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   18.361854] systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...
[   18.397996] systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   18.437972] systemd[1]: Reached target Remote File Systems (Pre).
[   18.444191] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[  OK  ] Reached target Swap.
[  OK  ] Created slice Root Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Increase datagram queue length...
         Starting Nameserver information manager...
         Mounting Debug File System...
         Starting Create list of required static device nodes...rrent kernel...
         Starting udev Coldplug all Devices...
         Starting Load Kernel Modules...
         Mounting POSIX Message Queue File System...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Reached target Slices.
[   19.215680] fuse init (API version 7.26)
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Increase datagram queue length.
[  OK  ] Started Create list of required static device nodes ...current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
         Starting Initial Check File System Quotas...
         Starting Load/Save Random Seed...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Mounted FUSE Control File System.
[FAILED] Failed to start Load/Save Random Seed.
See 'systemctl status systemd-random-seed.service' for details.
[FAILED] Failed to start Initial Check File System Quotas.
See 'systemctl status quota.service' for details.
[  OK  ] Started Apply Kernel Variables.
[   20.106433] quota-initial-check.sh[1419]: Checking quotas...done.
[  OK  ] Started Create Static Device Nodes in /dev.
[   20.151001] quota-initial-check.sh[1419]: rm: cannot remove ‘/var/lib/quota/new’: Read-only file system
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[   20.277311] systemd-udevd[1441]: starting version 215
         Mounting /tmp...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Mounted /tmp.
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of LVM2 logical volumes...
         Starting Copy rules generated while the root was ro...
         Starting LSB: Tune IDE hard disks...
         Starting LSB: MD array assembly...
[  OK  ] Started Copy rules generated while the root was ro.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Encrypted Volumes.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started LSB: Tune IDE hard disks.
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Started LSB: MD array assembly.
         Starting Monitoring of LVM2 mirrors, snapshots etc. ...ress polling...
[  OK  ] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress polling.
[  OK  ] Reached target Local File Systems.
         Starting Cleanup PHP session files...
         Starting Cleanup monit state file...
         Starting Create Volatile Files and Directories...
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting LSB: Raise network interfaces....
[  OK  ] Started Cleanup PHP session files.
[FAILED] Failed to start Cleanup monit state file.
See 'systemctl status openmediavault-cleanup-monit.service' for details.
[  OK  ] Started Create Volatile Files and Directories.
[   21.643550] systemd-journald[1435]: Received request to flush runtime journal from PID 1
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[FAILED] Failed to start Update UTMP about System Boot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[DEPEND] Dependency failed for Update UTMP about System Runlevel Changes.
[   26.168386] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: RPC portmapper replacement...
[   31.275765] random: crng init done
[  OK  ] Started LSB: RPC portmapper replacement.
[  OK  ] Reached target RPC Port Mapper.
         Starting LSB: NFS support files common to client and server...
[  OK  ] Started LSB: NFS support files common to client and server.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
         Starting The OpenMediaVault engine daemon that proce... RPC request...
         Starting A high performance web server and a reverse proxy server...
         Starting Run anacron jobs...
[  OK  ] Started Run anacron jobs.
         Starting Self Monitoring and Reporting Technology (SMART) Daemon...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting The PHP FastCGI Process Manager...
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting RPC Remote Quota Server...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: Start NTP daemon...
         Starting LSB: Courier IMAP server...
         Starting LSB: Ajenti...
         Starting LSB: start the RRDtool data caching daemon...
         Starting LSB: SNMP agents...
         Starting LSB: Start and stop the mysql database server daemon...
         Starting LSB: Start/stop supervisor...
         Starting LSB: start Samba daemons for the AD DC...
         Starting (null)...
         Starting LSB: service and resource monitoring daemon...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: Kernel NFS server support...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: Starts syslogd...
         Starting LSB: Starts ProFTPD daemon...
         Starting LSB: Courier IMAP-SSL server...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting System Logging Service...
         Starting Permit User Sessions...
         Starting ACPI event daemon...
[  OK  ] Started ACPI event daemon.
[FAILED] Failed to start A high performance web server and a ...e proxy server.
See 'systemctl status nginx.service' for details.
[  OK  ] Started RPC Remote Quota Server.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started LSB: Courier IMAP server.
[FAILED] Failed to start LSB: start the RRDtool data caching daemon.
See 'systemctl status rrdcached.service' for details.
[  OK  ] Started (null).
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: Kernel NFS server support.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started LSB: Courier IMAP-SSL server.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Login Service.
[  OK  ] Started System Logging Service.
         Mounting Arbitrary Executable File Formats File System...
         Starting LSB: Starts klogd...
         Starting LSB: set CPUFreq kernel parameters...
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started The OpenMediaVault engine daemon that proces...he RPC request.
[  OK  ] Started LSB: Starts klogd.
[FAILED] Failed to start The PHP FastCGI Process Manager.
See 'systemctl status php5-fpm.service' for details.
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started LSB: SNMP agents.
[FAILED] Failed to start LSB: Starts ProFTPD daemon.
See 'systemctl status proftpd.service' for details.
         Starting LSB: manage the statistics collection daemon...
[  OK  ] Started LSB: manage the statistics collection daemon.
[FAILED] Failed to start LSB: Start/stop supervisor.
See 'systemctl status supervisor.service' for details.
[  OK  ] Started LSB: Ajenti.
[  OK  ] Started LSB: start Samba daemons for the AD DC.
[FAILED] Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
See 'systemctl status nmbd.service' for details.
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[FAILED] Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
See 'systemctl status smbd.service' for details.

openmediavault 3.0.84 (Erasmus) debian ttyS0
Copyright (C) 2009-2017 by Volker Theile. All rights reserved.

To manage the system visit the openmediavault web control panel:

No network interface(s) available

By default the web control panel administrator account has the
username 'admin' and password 'openmediavault'.
It is recommended that you change the password for this account
within the web control panel or using the 'omv-firstaid' CLI
command.

For more information regarding this appliance, please visit the
web site: http://www.openmediavault.org

debian login: root
Password: 
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
192.168.2.209
Western Digital MyCloud EX2 Ultra
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:45:37 up 1 min,  1 user,  load average: 0.73, 0.24, 0.08
root@debian:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           100M  5.4M   94M   6% /run
/dev/sda1       7.3G  2.2G  4.8G  31% /
tmpfs           248M     0  248M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           248M     0  248M   0% /sys/fs/cgroup
tmpfs           248M     0  248M   0% /tmp

root@debian:~/mcm-daemon# omv-initsystem
/usr/sbin/omv-initsystem: 38: /usr/sbin/omv-initsystem: cannot create /var/log/openmediavault/initsystem.log: Read-only file system
root@debian:~/mcm-daemon#

I installed omv but omv doesnot start after reboot??

is there any reason that it is read only file system?
Re: My Cloud Mirror Gen2
July 18, 2017 03:31PM
Quote
mcmg2
please advise me to skip kwboot.

Download the attached file and decompress.

If you run mtd_debug and you see the following, then you cannot proceed:
root@debian:~# mtd_debug info /dev/mtd0
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_ROM
mtd.size = 5242880 (5M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64 
regions = 0

You must boot with the DTB I posted earlier, which unlocks mtd0 for writing. Make sure the output of mtd_debug matches the below:
# mtd_debug info /dev/mtd0
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 5242880 (5M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64 
regions = 0

Steps:
  1. kwboot a modified u-boot which saves environment variables to 0x100000 (Download from here)
  2. Inside u-boot, run saveenv
  3. Boot Debian from USB or SATA (see instructions earlier in this thread)
  4. Dump u-boot env to a file (nandread)
  5. Erase u-boot portion of mtd0 (flash_erase)
  6. Flash new u-boot (nandwrite, Download the u-boot attached to this post. Do not try to flash the kwboot u-boot to NAND)
  7. Restore environment variables (nandwrite)
  8. Reboot

Dump u-boot env:
# nanddump -s 0x100000 -l 0x80000 -f ubootenv.bin /dev/mtd0

Then erase the old u-boot and flash the new one to NAND:
# flash_erase /dev/mtd0 0 8
# nandwrite -p /dev/mtd0 u-boot-a38x-GrandTeton_2014T3_PQ-nand.bin

Restore u-boot env:
# nandwrite -p /dev/mtd0 -s 0x100000 ubootenv.bin

Reboot and hope it works! (if not you can always kwboot to recover)

Bodhi will provide the correct bootargs for you so it will attempt to boot from USB, and if that fails it will fall back to booting WD firmware.

Edit: there was a mistake in my instructions. This u-boot is the NAND version, you cannot kwboot it. Please kwboot the previous version I posted which is has 512MB RAM defined. Once booted in Debian, then flash the u-boot attached to this post to NAND to permanently install it.



Edited 1 time(s). Last edit at 07/19/2017 01:02AM by hmartin.
Attachments:
open | download - u-boot-a38x-GrandTeton_2014T3_PQ-nand.bin.gz (459.3 KB)
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 05:50PM
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-g7c1da33-dirty_v1.04 (Jul 17 2017 - 18:43:06) Marvell version: 2014_T3.0p6

mvBoardIdIndexGet(boardId) = 1
Board: GrandTeton DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fece000:0x1ff96010
       BSS:			0x1ffef654
       Stack:			0x1f9cdf20
       Heap:			0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  ID: daad ,256 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00000f500000-0x00000ff00000 : "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/0
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 18 (0x00000012)...
Done
Set lan 2 WakeOnLan ok
Enable HD1
Enable HD2
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x00     |
egiga0, egiga1, egiga2 [PRIME]
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x500000, size 0x500000
 5242880 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x500000
 5242880 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-382
   Created:      2015-08-02   3:54:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4093292 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00f00000 ...
   Image Name:   Ramdisk
   Created:      2015-10-13  10:23:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2278194 Bytes = 2.2 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) ) #1 SMP Sun Aug 2 11:53:57 CST 2015 2014T30p5 Build-git3e9fe59
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/381/382/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 @c0930000 s8320 r8192 d16256 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16364
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
PID hash table entries: 2048 (order: -2, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 3, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 2, 131072 bytes)
allocated 131072 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 512MB = 512MB total
Memory: 511744k/511744k available, 12544k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0714278   (7217 kB)
      .init : 0xc0718000 - 0xc075a080   ( 265 kB)
      .data : 0xc075c000 - 0xc07a7e40   ( 304 kB)
       .bss : 0xc07a7e40 - 0xc0871570   ( 806 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.0p5

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... 2655.84 BogoMIPS (lpj=13279232)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc056c2b0 - 0xc056c308
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 (5311.69 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
xor: measuring software checksum speed
   arm4regs  :  1420.800 MB/sec
   8regs     :   940.800 MB/sec
   32regs    :   918.400 MB/sec
xor: using function: arm4regs (1420.800 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 @ IRQ196, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ228, assuming pre-allocated
bio: create slab <bio-0> at 0
raid6: int32x1    355 MB/s
raid6: int32x2    347 MB/s
raid6: int32x4    447 MB/s
raid6: int32x8    384 MB/s
raid6: using algorithm int32x4 (447 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: 4096 (order: 0, 32768 bytes)
TCP bind hash table entries: 4096 (order: 0, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
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: 2176K (c0f08000 - c1128000)
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 1002
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
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
Nand Flash Timing = [WP : 12], [WH : 10]
NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
8 ofpart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "U-Boot"
0x000000500000-0x000000a00000 : "uImage"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00000c800000 : "image.cfs"
0x00000c800000-0x00000d700000 : "rescue fw"
0x00000d700000-0x00000eb00000 : "config"
0x00000eb00000-0x00000f500000 : "reserve1"
0x00000f500000-0x00000ff00000 : "reserve2"
SoC: model = 0x6820, revision = 0x4
mvPncVirtBase = 0xe0e00000, pncTcamSize = 1024
  o 3 Giga ports supported
  o SKB recycle supported (Disabled)
  o NETA acceleration mode 4
  o BM supported for CPU: 4 BM pools
  o PnC supported (Enabled)
  o RX Queue support: 8 Queues * 256 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=2
  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=0, is_rgmii=1, 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)

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

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

libphy: orion_mdio_bus: probed
mdio_bus f1072004.mdio-mi: cannot get PHY at address 2
mdio_bus f1072004.mdio-mi: cannot get PHY at address 1
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
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
hub 5-0:1.0: USB hub found
ata2: SATA link down (SStatus 0 SControl 300)
hub 5-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
usb 2-1: new high-speed USB device number 2 using xhci-hcd
usb 2-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
usb 2-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
usb-storage 2-1:1.0: USB Mass Storage device detected
scsi2 : usb-storage 2-1:1.0
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=256
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c0734f0c)
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
registered taskstats version 1
mvebu-rtc f10a3800.rtc: setting system clock to 2017-07-18 22:16:38 UTC (1500416198)
Waiting 10sec before mounting root device...
scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
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
not found
Please append a correct "root=" boot option; here are the available partitions:
1f00            5120 mtdblock0  (driver?)
1f01            5120 mtdblock1  (driver?)
1f02            5120 mtdblock2  (driver?)
1f03          189440 mtdblock3  (driver?)
1f04           15360 mtdblock4  (driver?)
1f05           20480 mtdblock5  (driver?)
1f06           10240 mtdblock6  (driver?)
1f07           10240 mtdblock7  (driver?)
0800         7864320 sda  driver: sd
  0801         7863296 sda1 0001bf63-01
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 #1
[<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(0xc075df70 to 0xc075dfb8)
df60:                                     ffffffed 001d8000 c076790c c0019c20
df80: c075c000 c0766564 c0570d74 c07a7d2a c07a7d2a 414fc091 00000001 00000000
dfa0: 01000000 c075dfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0056754>] (cpu_startup_entry+0x4c/0x11c)
[<c0056754>] (cpu_startup_entry+0x4c/0x11c) from [<c0718a54>] (start_kernel+0x2e4/0x34c)
[<c0718a54>] (start_kernel+0x2e4/0x34c) from [<00008074>] (0x8074)

BootROM - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6820
High speed PHY - Version: 2.0

Load WD GrandTeton Serdes Config:
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  PCIe0	|
 |   2    |  06   |  SATA1	|
 |   3    |  05   |  USB3 HOST1	|
 |   4    |  05   |  USB3 HOST0	|
 |   5    |  00   |  SGMII2	|
 --------------------------------
PCIe, Idx 0: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

after omv install, usb is read only. so I make an usb again.

booting to stock so I need to stop autoboot and run bootcmd_usb to boot on usb and it works.

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


U-Boot 2013.01-g7c1da33-dirty_v1.04 (Jul 17 2017 - 18:43:06) Marvell version: 2014_T3.0p6

mvBoardIdIndexGet(boardId) = 1
Board: GrandTeton DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fece000:0x1ff96010
       BSS:			0x1ffef654
       Stack:			0x1f9cdf20
       Heap:			0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  ID: daad ,256 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00000f500000-0x00000ff00000 : "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/0
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 18 (0x00000012)...
Done
Set lan 2 WakeOnLan ok
Enable HD1
Enable HD2
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x00     |
egiga0, egiga1, egiga2 [PRIME]
Hit any key to stop autoboot:  0 
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=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
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=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
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_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
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:20:21:3e
eth1mtu=1500
eth2addr=00:50:43:20:f2:3e
eth2mtu=1500
eth3addr=00:50:43:21:f2:20
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:f2:21:3e
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=12
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.11.110
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3e:f2:20
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=192.168.11.114
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_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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4028/524284 bytes
Marvell>> run bootcmd_usb
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 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 ...
3920526 bytes read in 421 ms (8.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 498 ms (11.9 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   9:45:53 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3920462 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: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398
[    0.000000] console 'earlycon0' already registered
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04ba5a4>] (dump_stack) from [<c0123ce0>] (__warn+0xc8/0xfc)
[    0.000000] [<c0123ce0>] (__warn) from [<c0123d48>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0123d48>] (warn_slowpath_fmt) from [<c0171b1c>] (register_console+0x3c/0x398)
[    0.000000] [<c0171b1c>] (register_console) from [<c0c04dc0>] (setup_early_printk+0x14/0x24)
[    0.000000] [<c0c04dc0>] (setup_early_printk) from [<c0c00478>] (do_early_param+0x6c/0xbc)
[    0.000000] [<c0c00478>] (do_early_param) from [<c013f774>] (parse_args+0x2dc/0x40c)
[    0.000000] [<c013f774>] (parse_args) from [<c0c0088c>] (parse_early_options+0x2c/0x3c)
[    0.000000] [<c0c0088c>] (parse_early_options) from [<c0c008c8>] (parse_early_param+0x2c/0x44)
[    0.000000] [<c0c008c8>] (parse_early_param) from [<c0c03350>] (setup_arch+0x4fc/0xa24)
[    0.000000] [<c0c03350>] (setup_arch) from [<c0c00934>] (start_kernel+0x50/0x390)
[    0.000000] [<c0c00934>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @dfbcc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 500128K/524288K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 24160K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 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.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019111] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034034] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043003] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049678] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057253] CPU: Testing write buffer coherency: ok
[    0.062343] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068085] Setting up static identity map for 0x100000 - 0x100058
[    0.074518] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079801] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283603] Booting CPU 1
[    0.286473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286531] Brought up 2 CPUs
[    0.295292] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301613] CPU: All CPU(s) started in SVC mode.
[    0.306844] devtmpfs: initialized
[    0.312765] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320754] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330692] prandom: seed boundary self test passed
[    0.337654] prandom: 100 self tests passed
[    0.341815] pinctrl core: initialized pinctrl subsystem
[    0.347847] NET: Registered protocol family 16
[    0.353037] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417551] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425625] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483820] vgaarb: loaded
[    0.486860] SCSI subsystem initialized
[    0.491161] usbcore: registered new interface driver usbfs
[    0.496818] usbcore: registered new interface driver hub
[    0.502254] usbcore: registered new device driver usb
[    0.507605] media: Linux media interface: v0.10
[    0.512250] Linux video capture interface: v2.00
[    0.517950] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554179] VFS: Disk quotas dquot_6.6.0
[    0.558251] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573572] NET: Registered protocol family 2
[    0.578434] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.585556] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.592117] TCP: Hash tables configured (established 4096 bind 4096)
[    0.598564] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.604464] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.610911] NET: Registered protocol family 1
[    0.615597] RPC: Registered named UNIX socket transport module.
[    0.621589] RPC: Registered udp transport module.
[    0.626355] RPC: Registered tcp transport module.
[    0.631146] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.637768] Unpacking initramfs...
[    0.882800] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.888963] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.895663] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.904978] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.911227] audit: initializing netlink subsys (disabled)
[    0.916709] audit: type=2000 audit(0.900:1): initialized
[    0.922566] Initialise system trusted keyrings
[    0.927229] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.933821] zbud: loaded
[    0.936981] NFS: Registering the id_resolver key type
[    0.942121] Key type id_resolver registered
[    0.946368] Key type id_legacy registered
[    0.950462] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.957215] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.963793] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.971239] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.977857] orangefs_init: module version upstream loaded
[    0.985494] Key type asymmetric registered
[    0.989673] Asymmetric key parser 'x509' registered
[    0.994702] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.002159] io scheduler noop registered
[    1.006147] io scheduler deadline registered
[    1.010506] io scheduler cfq registered (default)
[    1.016195] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.024883] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.031835] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.038167] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.045095] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.051094] PCI: bus0: Fast back to back transfers disabled
[    1.056732] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.064804] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.072991] PCI: bus1: Fast back to back transfers enabled
[    1.078676] PCI: bus2: Fast back to back transfers enabled
[    1.084266] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.089313] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.094837] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.158440] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.166059] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.228418] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.286955] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.294889] console [ttyS0] disabled
[    1.318631] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.327660] console [ttyS0] enabled
[    1.327660] console [ttyS0] enabled
[    1.334761] bootconsole [earlycon0] disabled
[    1.334761] bootconsole [earlycon0] disabled
[    1.364144] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.374164] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.383273] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.392957] scsi host0: ahci-mvebu
[    1.396699] scsi host1: ahci-mvebu
[    1.400362] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.405437] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.413400] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.418485] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.426981] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.434894] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.441291] nand: Hynix H27U2G8F2CTR-BC
[    1.445144] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.452759] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.459962] Bad block table found at page 131008, version 0x01
[    1.466162] Bad block table found at page 130944, version 0x01
[    1.472270] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.478404] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.483828] 0x000000000000-0x000000500000 : "U-Boot"
[    1.499655] 0x000000500000-0x000000a00000 : "uImage"
[    1.505373] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.521260] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.538011] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.554007] 0x00000d700000-0x00000eb00000 : "config"
[    1.569788] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.585712] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.602260] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.609078] libphy: Fixed MDIO Bus: probed
[    1.613498] libphy: mdio_driver_register: mv88e6085
[    1.618598] libphy: orion_mdio_bus: probed
[    1.627575] mvneta f1034000.ethernet eth0: Using random mac address f6:01:60:d3:a9:77
[    1.635652] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.642236] ehci-pci: EHCI PCI platform driver
[    1.646744] ehci-orion: EHCI orion driver
[    1.651094] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.656445] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.664058] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672671] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.678569] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685388] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692653] usb usb1: Product: xHCI Host Controller
[    1.697553] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.704030] usb usb1: SerialNumber: f10f0000.usb3
[    1.709152] hub 1-0:1.0: USB hub found
[    1.712938] hub 1-0:1.0: 1 port detected
[    1.717071] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.722430] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.730015] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.738223] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.745041] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.749271] ata1: SATA link down (SStatus 0 SControl 320)
[    1.757744] usb usb2: Product: xHCI Host Controller
[    1.759191] ata2: SATA link down (SStatus 0 SControl 320)
[    1.768079] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.774548] usb usb2: SerialNumber: f10f0000.usb3
[    1.779636] hub 2-0:1.0: USB hub found
[    1.783421] hub 2-0:1.0: 1 port detected
[    1.787639] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.793002] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.800597] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.809198] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.815063] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.822019] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.829293] usb usb3: Product: xHCI Host Controller
[    1.834192] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.840671] usb usb3: SerialNumber: f10f8000.usb3
[    1.845735] hub 3-0:1.0: USB hub found
[    1.849532] hub 3-0:1.0: 1 port detected
[    1.853671] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.859026] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.866594] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.874797] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.881631] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.888964] usb usb4: Product: xHCI Host Controller
[    1.893865] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.900344] usb usb4: SerialNumber: f10f8000.usb3
[    1.905412] hub 4-0:1.0: USB hub found
[    1.909208] hub 4-0:1.0: 1 port detected
[    1.913442] usbcore: registered new interface driver usblp
[    1.919043] usbcore: registered new interface driver usb-storage
[    1.925268] mousedev: PS/2 mouse device common for all mice
[    1.931488] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.939383] i2c /dev entries driver
[    1.954835] orion_wdt: Initial timeout 171 sec
[    1.961283] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.968660] hidraw: raw HID events driver (C) Jiri Kosina
[    1.974412] usbcore: registered new interface driver usbhid
[    1.980025] usbhid: USB HID core driver
[    1.984037] drop_monitor: Initializing network drop monitor service
[    1.990388] Netfilter messages via NETLINK v0.30.
[    1.995126] ip_set: protocol 6
[    1.998455] NET: Registered protocol family 10
[    2.003494] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.010485] NET: Registered protocol family 17
[    2.015110] 8021q: 802.1Q VLAN Support v1.8
[    2.019443] Key type dns_resolver registered
[    2.023881] ThumbEE CPU extension supported.
[    2.028187] Registering SWP/SWPB emulation handler
[    2.033517] registered taskstats version 1
[    2.037634] Loading compiled-in X.509 certificates
[    2.042494] zswap: loaded using pool lzo/zbud
[    2.095389] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.105853] Key type big_key registered
[    2.113530] Key type encrypted registered
[    2.118676] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-18 22:18:33 UTC (1500416313)
[    2.129067] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.172194] systemd-udevd[1315]: starting version 215
[    2.178402] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.270290] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.277029] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.284725] usb 1-1: Product: POLLEX 8G
[    2.288603] usb 1-1: Manufacturer: SRT
[    2.292371] usb 1-1: SerialNumber: 033113111111135234000373
[    2.298504] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.318122] scsi host2: usb-storage 1-1:1.0
[    2.457327] usbcore: registered new interface driver uas
[    3.368687] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.380074] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.387747] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.393199] sd 2:0:0:0: [sda] Write Protect is off
[    3.399006] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404344] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.413494]  sda: sda1
[    3.421131] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.458324] 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.573485] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.600934] 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.470003] systemd-udevd[1520]: 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.211335] EXT4-fs (sda1): re-mounted. Opts: (null)
[ 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.388720] 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/f6:01:60:d3:a9:77
Sending on   LPF/eth0/f6:01:60:d3:a9:77
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   24.568425] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   24.576310] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.2.1
DHCPACK from 192.168.2.1
bound to 192.168.2.129 -- renewal in 41200 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ 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...
2449 (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.
[   36.523210] random: crng init done
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2448 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Tue Jul 18 14:56:02 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
192.168.2.129
Western Digital MyCloud EX2 Ultra
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
 15:19:29 up 0 min,  1 user,  load average: 0.35, 0.09, 0.03
root@debian:~#


I think it works fine, I just need to adjust uboot to stop enter 'run bootcmd_usb'
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 08:35PM
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(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'

can I use this set of envs from ex4100?
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 09:39PM
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(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'
setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'


I missed last line.
confirm that it boot to stock with usb
and
confirm that it boots to debian with usb

should I run any more test?
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 09:43PM
confirm that it boot to stock without usb
and
confirm that it boots to debian with usb

should I run any more test?
Re: My Cloud Mirror Gen2
July 18, 2017 11:30PM
mcmg2,

You don't need this

setenv bootcmd_custom 'if run bootcmd_usb; then ; fi; run bootcmd_stock; reset'

Other than that, everything looks fine!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mcmg2
Re: My Cloud Mirror Gen2
July 18, 2017 11:52PM
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2013.01-g7c1da33-dirty_v1.04 (Jul 17 2017 - 18:43:06) Marvell version: 2014_T3.0p6

mvBoardIdIndexGet(boardId) = 1
Board: GrandTeton DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:                    0x1fece000:0x1ff96010
       BSS:                     0x1ffef654
       Stack:                   0x1f9cdf20
       Heap:                    0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:      0x00000000:0x00080000 (NAND)

NAND:  ID: daad ,256 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00000f500000-0x00000ff00000 : "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/0
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 18 (0x00000012)...
Done
Set lan 2 WakeOnLan ok
Enable HD1
Enable HD2
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x00     |
egiga0, egiga1, egiga2 [PRIME]
Hit any key to stop autoboot:  0
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=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
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_custom=if run bootcmd_usb; then ; fi; 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=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=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
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:20:21:3e
eth1mtu=1500
eth2addr=00:50:43:20:f2:3e
eth2mtu=1500
eth3addr=00:50:43:21:f2:20
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:f2:21:3e
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=12
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.11.110
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3e:f2:20
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=192.168.11.114
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_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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4304/524284 bytes
Marvell>> setenv bootcmd_custom
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=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
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=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=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
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:20:21:3e
eth1mtu=1500
eth2addr=00:50:43:20:f2:3e
eth2mtu=1500
eth3addr=00:50:43:21:f2:20
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:f2:21:3e
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=12
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.11.110
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3e:f2:20
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=192.168.11.114
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_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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4231/524284 bytes
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Writing to Nand... done
Marvell>> boot
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 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 ...
3920526 bytes read in 423 ms (8.8 MiB/s)
loading uInitrd ...
6210503 bytes read in 498 ms (11.9 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   9:45:53 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3920462 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: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398
[    0.000000] console 'earlycon0' already registered
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04ba5a4>] (dump_stack) from [<c0123ce0>] (__warn+0xc8/0xfc)
[    0.000000] [<c0123ce0>] (__warn) from [<c0123d48>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0123d48>] (warn_slowpath_fmt) from [<c0171b1c>] (register_console+0x3c/0x398)
[    0.000000] [<c0171b1c>] (register_console) from [<c0c04dc0>] (setup_early_printk+0x14/0x24)
[    0.000000] [<c0c04dc0>] (setup_early_printk) from [<c0c00478>] (do_early_param+0x6c/0xbc)
[    0.000000] [<c0c00478>] (do_early_param) from [<c013f774>] (parse_args+0x2dc/0x40c)
[    0.000000] [<c013f774>] (parse_args) from [<c0c0088c>] (parse_early_options+0x2c/0x3c)
[    0.000000] [<c0c0088c>] (parse_early_options) from [<c0c008c8>] (parse_early_param+0x2c/0x44)
[    0.000000] [<c0c008c8>] (parse_early_param) from [<c0c03350>] (setup_arch+0x4fc/0xa24)
[    0.000000] [<c0c03350>] (setup_arch) from [<c0c00934>] (start_kernel+0x50/0x390)
[    0.000000] [<c0c00934>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @dfbcc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 500128K/524288K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 24160K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 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.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019112] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034035] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043004] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049679] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057252] CPU: Testing write buffer coherency: ok
[    0.062343] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068086] Setting up static identity map for 0x100000 - 0x100058
[    0.074517] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079802] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283603] Booting CPU 1
[    0.286473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286531] Brought up 2 CPUs
[    0.295291] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301612] CPU: All CPU(s) started in SVC mode.
[    0.306849] devtmpfs: initialized
[    0.312766] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320751] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330691] prandom: seed boundary self test passed
[    0.337654] prandom: 100 self tests passed
[    0.341815] pinctrl core: initialized pinctrl subsystem
[    0.347851] NET: Registered protocol family 16
[    0.353035] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383454] cpuidle: using governor ladder
[    0.413421] cpuidle: using governor menu
[    0.417553] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425626] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.474480] vgaarb: loaded
[    0.477534] SCSI subsystem initialized
[    0.481836] usbcore: registered new interface driver usbfs
[    0.487493] usbcore: registered new interface driver hub
[    0.492929] usbcore: registered new device driver usb
[    0.498303] media: Linux media interface: v0.10
[    0.502949] Linux video capture interface: v2.00
[    0.508648] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.544868] VFS: Disk quotas dquot_6.6.0
[    0.548939] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.564233] NET: Registered protocol family 2
[    0.569100] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.576222] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.582767] TCP: Hash tables configured (established 4096 bind 4096)
[    0.589213] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.595113] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.601546] NET: Registered protocol family 1
[    0.606233] RPC: Registered named UNIX socket transport module.
[    0.612230] RPC: Registered udp transport module.
[    0.616996] RPC: Registered tcp transport module.
[    0.621771] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.628393] Unpacking initramfs...
[    0.872764] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.878910] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.885608] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.894923] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.901163] audit: initializing netlink subsys (disabled)
[    0.906645] audit: type=2000 audit(0.890:1): initialized
[    0.912495] Initialise system trusted keyrings
[    0.917155] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.923742] zbud: loaded
[    0.926902] NFS: Registering the id_resolver key type
[    0.932046] Key type id_resolver registered
[    0.936293] Key type id_legacy registered
[    0.940387] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.947140] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.953714] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.961160] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.967778] orangefs_init: module version upstream loaded
[    0.975433] Key type asymmetric registered
[    0.979612] Asymmetric key parser 'x509' registered
[    0.984641] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.992099] io scheduler noop registered
[    0.996087] io scheduler deadline registered
[    1.000448] io scheduler cfq registered (default)
[    1.006141] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.014825] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.021776] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.028099] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.035036] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.041035] PCI: bus0: Fast back to back transfers disabled
[    1.046673] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.054745] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.062932] PCI: bus1: Fast back to back transfers enabled
[    1.068604] PCI: bus2: Fast back to back transfers enabled
[    1.074208] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.079250] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.084772] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.149139] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156763] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.219117] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.278049] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.285958] console [ttyS0] disabled
[    1.309712] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.318749] console [ttyS0] enabled
[    1.318749] console [ttyS0] enabled
[    1.325839] bootconsole [earlycon0] disabled
[    1.325839] bootconsole [earlycon0] disabled
[    1.355228] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.365252] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.374362] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.384067] scsi host0: ahci-mvebu
[    1.387790] scsi host1: ahci-mvebu
[    1.391451] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.396527] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.404492] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.409574] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.418067] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.425967] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.432362] nand: Hynix H27U2G8F2CTR-BC
[    1.436215] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.443830] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.451032] Bad block table found at page 131008, version 0x01
[    1.457232] Bad block table found at page 130944, version 0x01
[    1.463341] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.469472] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.474897] 0x000000000000-0x000000500000 : "U-Boot"
[    1.480732] 0x000000500000-0x000000a00000 : "uImage"
[    1.496457] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.512350] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.529107] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.545107] 0x00000d700000-0x00000eb00000 : "config"
[    1.560899] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.576822] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.593354] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.600167] libphy: Fixed MDIO Bus: probed
[    1.604594] libphy: mdio_driver_register: mv88e6085
[    1.609752] libphy: orion_mdio_bus: probed
[    1.618846] mvneta f1034000.ethernet eth0: Using random mac address e2:80:f9:4c:4a:13
[    1.626899] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.633480] ehci-pci: EHCI PCI platform driver
[    1.637987] ehci-orion: EHCI orion driver
[    1.642324] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.647673] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.655286] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.663891] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.669794] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.676614] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.683881] usb usb1: Product: xHCI Host Controller
[    1.688789] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.695258] usb usb1: SerialNumber: f10f0000.usb3
[    1.700373] hub 1-0:1.0: USB hub found
[    1.704160] hub 1-0:1.0: 1 port detected
[    1.708294] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.713652] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.721240] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.729444] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.736264] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.739943] ata1: SATA link down (SStatus 0 SControl 320)
[    1.748975] usb usb2: Product: xHCI Host Controller
[    1.753874] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.759889] ata2: SATA link down (SStatus 0 SControl 320)
[    1.765770] usb usb2: SerialNumber: f10f0000.usb3
[    1.770860] hub 2-0:1.0: USB hub found
[    1.774644] hub 2-0:1.0: 1 port detected
[    1.778879] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.784225] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.791824] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.800441] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.806304] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.813182] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.820447] usb usb3: Product: xHCI Host Controller
[    1.825347] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.831823] usb usb3: SerialNumber: f10f8000.usb3
[    1.836893] hub 3-0:1.0: USB hub found
[    1.840691] hub 3-0:1.0: 1 port detected
[    1.844826] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.850179] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.857745] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.865947] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.872779] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.880042] usb usb4: Product: xHCI Host Controller
[    1.884941] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.891487] usb usb4: SerialNumber: f10f8000.usb3
[    1.896551] hub 4-0:1.0: USB hub found
[    1.900348] hub 4-0:1.0: 1 port detected
[    1.904580] usbcore: registered new interface driver usblp
[    1.910177] usbcore: registered new interface driver usb-storage
[    1.916402] mousedev: PS/2 mouse device common for all mice
[    1.922610] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.930427] i2c /dev entries driver
[    1.945899] orion_wdt: Initial timeout 171 sec
[    1.952350] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.959728] hidraw: raw HID events driver (C) Jiri Kosina
[    1.965481] usbcore: registered new interface driver usbhid
[    1.971093] usbhid: USB HID core driver
[    1.975110] drop_monitor: Initializing network drop monitor service
[    1.981459] Netfilter messages via NETLINK v0.30.
[    1.986197] ip_set: protocol 6
[    1.989528] NET: Registered protocol family 10
[    1.994569] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.001544] NET: Registered protocol family 17
[    2.006176] 8021q: 802.1Q VLAN Support v1.8
[    2.010510] Key type dns_resolver registered
[    2.014947] ThumbEE CPU extension supported.
[    2.019254] Registering SWP/SWPB emulation handler
[    2.024582] registered taskstats version 1
[    2.028713] Loading compiled-in X.509 certificates
[    2.033560] zswap: loaded using pool lzo/zbud
[    2.086664] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.097189] Key type big_key registered
[    2.104814] Key type encrypted registered
[    2.109956] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-19 04:41:51 UTC (1500439311)
[    2.120348] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.163310] systemd-udevd[1315]: starting version 215
[    2.170009] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.261007] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.267746] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.275091] usb 1-1: Product: POLLEX 8G
[    2.285513] usb 1-1: Manufacturer: SRT
[    2.289323] usb 1-1: SerialNumber: 033113111111135234000373
[    2.302834] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.317110] scsi host2: usb-storage 1-1:1.0
[    2.451739] usbcore: registered new interface driver uas
[    3.369385] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.380540] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385903] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.395221] sd 2:0:0:0: [sda] Write Protect is off
[    3.400747] sd 2:0:0:0: [sda] No Caching mode page found
[    3.406084] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.415468]  sda: sda1
[    3.424420] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.465402] 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.584191] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.592845] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.599766] EXT4-fs (sda1): write access will be enabled during recovery
[   38.183491] random: crng init done
[   52.663227] EXT4-fs (sda1): orphan cleanup on readonly fs
[   52.672862] EXT4-fs (sda1): 1 orphan inode deleted
[   52.677676] EXT4-fs (sda1): recovery complete
[   54.111671] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   54.395929] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   54.409485] systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

[   54.459813] systemd[1]: Set hostname to <debian>.
[   54.776489] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   54.793107] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   54.801058] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   54.808731] systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...
[   54.838721] systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   54.878696] systemd[1]: Reached target Remote File Systems (Pre).
[   54.884909] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[  OK  ] Reached target Swap.
[  OK  ] Created slice Root Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Increase datagram queue length...
         Starting Nameserver information manager...
         Mounting Debug File System...
         Starting Create list of required static device nodes...rrent kernel...
         Starting udev Coldplug all Devices...
         Starting Load Kernel Modules...
         Mounting POSIX Message Queue File System...
         Starting Remount Root and Kernel File Systems...
[  OK  [   55.640725] fuse init (API version 7.26)
] Reached target Slices.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Increase datagram queue length.
[  OK  ] Started Create list of required static device nodes ...current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
         Starting Initial Check File System Quotas...
         Starting Load/Save Random Seed...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Mounted FUSE Control File System.
[FAILED] Failed to start Load/Save Random Seed.
See 'systemctl status systemd-random-seed.service' for details.
[  OK  ] Started Apply Kernel Variables.
[FAILED] Failed to start Initial Check File System Quotas.
See 'systemctl status quota.service' for details.
[  OK  ] Started Create Static Device Nodes in /dev.
[   56.477365] quota-initial-check.sh[1424]: Checking quotas...done.
[   56.531107] quota-initial-check.sh[1424]: rm: cannot remove ‘/var/lib/quota/new’: Read-only file system
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[   56.614812] systemd-udevd[1441]: starting version 215
         Mounting /tmp...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Mounted /tmp.
         Starting LSB: Tune IDE hard disks...
         Starting LSB: MD array assembly...
[  OK  ] Started LSB: Tune IDE hard disks.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started LSB: MD array assembly.
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of LVM2 logical volumes...
         Starting Copy rules generated while the root was ro...
[  OK  ] Started Copy rules generated while the root was ro.
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Encrypted Volumes.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Activation of LVM2 logical volumes.
         Starting Monitoring of LVM2 mirrors, snapshots etc. ...ress polling...
[  OK  ] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress polling.
[  OK  ] Reached target Local File Systems.
         Starting Cleanup PHP session files...
         Starting Cleanup monit state file...
         Starting Create Volatile Files and Directories...
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting LSB: Raise network interfaces....
[  OK  ] Started Cleanup PHP session files.
[FAILED] Failed to start Cleanup monit state file.
See 'systemctl status openmediavault-cleanup-monit.service' for details.
[  OK  ] Started Create Volatile Files and Directories.
[   58.227931] systemd-journald[1435]: Received request to flush runtime journal from PID 1
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[FAILED] Failed to start Update UTMP about System Boot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[DEPEND] Dependency failed for Update UTMP about System Runlevel Changes.
[   62.729122] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: RPC portmapper replacement...
[  OK  ] Started LSB: RPC portmapper replacement.
[  OK  ] Reached target RPC Port Mapper.
         Starting LSB: NFS support files common to client and server...
[  OK  ] Started LSB: NFS support files common to client and server.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
         Starting The OpenMediaVault engine daemon that proce... RPC request...
         Starting A high performance web server and a reverse proxy server...
         Starting Run anacron jobs...
[  OK  ] Started Run anacron jobs.
         Starting Self Monitoring and Reporting Technology (SMART) Daemon...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting The PHP FastCGI Process Manager...
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting RPC Remote Quota Server...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: Start NTP daemon...
         Starting LSB: start the RRDtool data caching daemon...
         Starting LSB: SNMP agents...
         Starting LSB: start Samba daemons for the AD DC...
         Starting LSB: service and resource monitoring daemon...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: Postfix Mail Transport Agent...
         Starting LSB: Kernel NFS server support...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: Starts syslogd...
         Starting LSB: Starts ProFTPD daemon...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting System Logging Service...
         Starting Permit User Sessions...
         Starting ACPI event daemon...
[  OK  ] Started ACPI event daemon.
[  OK  ] Started RPC Remote Quota Server.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: Start NTP daemon.
[FAILED] Failed to start LSB: start the RRDtool data caching daemon.
See 'systemctl status rrdcached.service' for details.
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: Postfix Mail Transport Agent.
[FAILED] Failed to start A high performance web server and a ...e proxy server.
See 'systemctl status nginx.service' for details.
[  OK  ] Started LSB: Kernel NFS server support.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started The OpenMediaVault engine daemon that proces...he RPC request.
[  OK  ] Started System Logging Service.
[FAILED] Failed to start LSB: Starts ProFTPD daemon.
See 'systemctl status proftpd.service' for details.
[  OK  ] Started Login Service.
         Mounting Arbitrary Executable File Formats File System...
         Starting LSB: Starts klogd...
[  OK  ] Reached target Mail Transport Agent.
         Starting LSB: set CPUFreq kernel parameters...
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Started LSB: Starts klogd.
[  OK  ] Started LSB: SNMP agents.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[FAILED] Failed to start The PHP FastCGI Process Manager.
See 'systemctl status php5-fpm.service' for details.
         Starting LSB: manage the statistics collection daemon...
[  OK  ] Started LSB: manage the statistics collection daemon.
[  OK  ] Started LSB: start Samba daemons for the AD DC.
[FAILED] Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
See 'systemctl status nmbd.service' for details.
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[FAILED] Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
See 'systemctl status smbd.service' for details.
[  OK  ] Reached target Multi-User System.
         Starting Beep after system start...
[  OK  ] Reached target Graphical Interface.
[  OK  ] Started Beep after system start.


openmediavault 3.0.84 (Erasmus) debian ttyS0
Copyright (C) 2009-2017 by Volker Theile. All rights reserved.

To manage the system visit the openmediavault web control panel:

No network interface(s) available

By default the web control panel administrator account has the
username 'admin' and password 'openmediavault'.
It is recommended that you change the password for this account
within the web control panel or using the 'omv-firstaid' CLI
command.

For more information regarding this appliance, please visit the
web site: http://www.openmediavault.org

debian login: root
Password:
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

Western Digital MyCloud EX2 Ultra
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
 13:44:09 up 2 min,  1 user,  load average: 1.00, 0.37, 0.14
root@debian:~# omv-initsystem
/usr/sbin/omv-initsystem: 38: /usr/sbin/omv-initsystem: cannot create /var/log/openmediavault/initsystem.log: Read-only file system
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=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
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=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=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
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:20:21:3e
eth1mtu=1500
eth2addr=00:50:43:20:f2:3e
eth2mtu=1500
eth3addr=00:50:43:21:f2:20
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:f2:21:3e
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=12
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.11.110
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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3e:f2:20
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=192.168.11.114
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_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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
root@debian:~#

I installed omv again, after reboot, system is read only.

I don't know why???
mcmg2
Re: My Cloud Mirror Gen2
July 19, 2017 12:04AM
root@debian:~/mcm-daemon# omv-initsystem
/usr/sbin/omv-initsystem: 38: /usr/sbin/omv-initsystem: cannot create /var/log/o                penmediavault/initsystem.log: Read-only file system
root@debian:~/mcm-daemon# 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=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$root                path ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_para                ms clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv boo                targs $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 $nandE                cc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$boo                targs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_ena                ble 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; boo                tm 0x2000000;
bootcmd_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv boo                targs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x50                0000;bootm 0xa00000 0xf00000
bootcmd_usb=echo Booting from USB ...; usb start; setenv fdt_skip_update yes; us                b 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
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:20:21:3e
eth1mtu=1500
eth2addr=00:50:43:20:f2:3e
eth2mtu=1500
eth3addr=00:50:43:21:f2:20
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:f2:21:3e
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=12
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.11.110
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 /b                oot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_add                r /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),185m@1                5m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(r                eserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3e:f2:20
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=192.168.11.114
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdpa                rts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdela                y=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(u                Ramdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reser                ve1),10m@245m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
root@debian:~/mcm-daemon# htop
root@debian:~/mcm-daemon# service samba start
Failed to start samba.service: Unit samba.service is masked.
root@debian:~/mcm-daemon#

why is samba.service masked?
Re: My Cloud Mirror Gen2
July 19, 2017 12:08AM
mcmg2,


It might have something to do with this
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.584191] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.592845] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.599766] EXT4-fs (sda1): write access will be enabled during recovery
[   38.183491] random: crng init done
[   52.663227] EXT4-fs (sda1): orphan cleanup on readonly fs
[   52.672862] EXT4-fs (sda1): 1 orphan inode deleted
[   52.677676] EXT4-fs (sda1): recovery complete
[   54.111671] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

Shutdown, bring the USB rootfs to another Linux system, and run check disk, fix errors (answer yes to each question to fix):

Assuming the USB drive is assigned as /dev/sdb1. Look at dmesg output to determine this, it will show that last USB drive inserted and drive letter assigned.

dmesg | tail
And then
umount /dev/sdb1
e2fsck /dev/sdb1

And then sync
sync
Remove the USB drive and put it back to the Mirror Gen2, power up. Let it boot and post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mcmg2
Re: My Cloud Mirror Gen2
July 19, 2017 12:16AM
mint kwboot # dmesg | tail
[43257.191142] sd 3:0:0:0: Attached scsi generic sg2 type 0
[43257.207627] sd 3:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[43257.219325] sd 3:0:0:0: [sda] Write Protect is off
[43257.219328] sd 3:0:0:0: [sda] Mode Sense: 43 00 00 00
[43257.228379] sd 3:0:0:0: [sda] No Caching mode page found
[43257.228385] sd 3:0:0:0: [sda] Assuming drive cache: write through
[43257.301754]  sda: sda1
[43257.362715] sd 3:0:0:0: [sda] Attached SCSI removable disk
[43258.590264] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[43258.653374] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
mint kwboot # umount /dev/sda1
mint kwboot # e2fsck /dev/sda1
e2fsck 1.42.13 (17-May-2015)
rootfs: clean, 58649/491520 files, 427405/1965824 blocks
mint kwboot # sync
mint kwboot #

usb is fine, no error
Re: My Cloud Mirror Gen2
July 19, 2017 01:05AM
Quote
mcmg2
why is samba.service masked?

This thread is only about getting u-boot working on the My Cloud Mirror Gen 2. If you have general Linux questions about packages within Debian, please start a new thread.

Let's keep this focused on u-boot.

@bodhi: do you anticipate any differences in the boot arguments for the My Cloud Mirror Gen 2 from the EX4100? Could mcmg2 use the bootcmd you provided for the EX4100 to have USB boot with fallback to internal firmware?
mcmg2
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 02:12AM
it works great.

it boots to stock without usb and boots to debian with usb attached on port2.

thank you for your help.

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),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(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 'run bootcmd_usb; run bootcmd_stock; reset'
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 02:15AM
Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mcmg2
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 07:26AM
tip for kwboot

you need to solid contact for serial connection. even if you can see the serial log, loose connection needs lots of try.

I use my finger to provide solid connection, once you pass 100% transmission, you don't need to hold it.

no problem to get serial log with loose connection.
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 07:55AM
mcmg2,

What you said is extremely interesting! I need you to describe a little more.

- which kwboot version are you running. And pls post full the command.
- what type of wire are you using to connect, is there a header or you just connect each wire.
- what serial converter module are you using?
- which end was loosen? The serial port on the MCM Gen2 ? Or the wires at serial converter end?
- how loose the wrires were, ie. how did you discover this was the problem?
- when the wire were loose, serial console acts normal? But kwboot was unsuccessful?
- which binary were you using for serial console? picocom or putty, or other binary?

Wrote:
-------------------------------------------------------
> tip for kwboot
>
> you need to solid contact for serial connection. e
> ven if you can see the serial log, loose connectio
> n needs lots of try.
>
> I use my finger to provide solid connection, once
> you pass 100% transmission, you don't need to hold
> it.
>
> no problem to get serial log with loose connection
> .

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 03:17PM
Quote
bodhi
What you said is extremely interesting! I need you to describe a little more.

I am also interested to hear a bit more about kwboot on the MCM Gen 2, since the first posts from mcmg2 showed a lot of trouble getting it to kwboot.

However I want to caution something: I don't think the issues we are having with the EX2100 and EX4100 kwboot are due to a poor connection. You've seen photos of my UART connection, and it's totally solid. Everything I type always ends up in the serial console, whether it's in u-boot, WD firmware, or Debian.

I don't believe that a poor connection to the Rx line of the device is the reason for kwboot not consistently working, at least on the EX2100. saschadd's photos of his UART connection on the EX4100 also seem like it is unlikely there are connectivity issues.



Edited 1 time(s). Last edit at 07/19/2017 03:18PM by hmartin.
mcmg2
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 05:07PM
- which kwboot version are you running. And pls post full the command.

I used kwboot and command from hmartin's post below

hmartin Wrote:
-------------------------------------------------------
> As a follow up from [url=http://forum.doozan.com/r
> ead.php?2,34103,35286#msg-35286]this post[/url] co
> uld a My Cloud Mirror Gen2 user please try to kwbo
> ot the attached u-boot?
>
> You will need to decompress it first using gzip:
> [code]
> $ gunzip u-boot-a38x-GrandTeton_2014T3_PQ-nand-uar
> t.bin.gz
> [/code]
>
> You will also need to use a patched kwboot binary
> ([url=http://forum.doozan.com/file.php?2,file=1357
> ,filename=kwboot-x86_64.gz,download=1]amd64[/url]
> / [url=http://forum.doozan.com/file.php?2,file=136
> 9,filename=kwboot_arm.tar,download=1]arm[/url]):
> [code]
> ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a3
> 8x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1
> [/code]
>
> The timing is not perfect you may have to try mult
> iple times. [url=http://forum.doozan.com/read.php?
> 2,34103,34744#msg-34744]Follow these instructions
> if you cannot get your MCM Gen 2 to kwboot[/url].
>
> md5sum: 6ce0bbc1aa78a5aaafb5196985aebc47
> sha1sum: 3de55e90354ab670d17583b37cf9afc4214239bd
> sha256sum: 07f15a654cb9c78657c70a011ed6910f66e1a10
> a0a6d9230b145a54802261d7d


- what type of wire are you using to connect, is there a header or you just connect each wire.
I used [url=http://www.ieeebcit.org/product/pinheader10m/]pin header[/url] in the empty pcb and connect it with serial to ttl cable and it gives serial log. I did not solder it to pcb.

- what serial converter module are you using?
[url=http://hobbycomponents.com/usb-interface/618-usb-to-rs232-ttl-serial-interface-cable]serial cable[/url]
but I bought from aliexpress($1)


- which end was loosen? The serial port on the MCM Gen2 ? Or the wires at serial converter end?
pin header end.

- how loose the wrires were, ie. how did you discover this was the problem?
I was trying to kwboot and it happens in less than 5 seconds. sometimes it took me more than 1 hours(I've watched 2episode of suit season5). I touched cable by mistake(of course, my eyes on drama and hands moving from keyboard to power cable of my cloud mirror) and it gives some gabage letter.
so I try to move the cable around to see what happens. and I used finger to give it different angle.
by experience, 90 degree(like soldered on pcbboard) and hold steady with finger works good. it took me less than 5 min try.

- when the wire were loose, serial console acts normal? But kwboot was unsuccessful?
yes, I can see the log from serial cable but kwboot takes forever

- which binary were you using for serial console? picocom or putty, or other binary?
putty
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 05:44PM
mcmg2,

Thanks! I'm going to list the info in a way that others can easily repeat the tests you've done.

You are using the kwboot_arm that I uploaded. It was buill from u-boot-master source tree updated and built on June 10, with Kevin Smith's fallback patch. And the -f option was used to activate the fallback logic.

./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1

This male-male pin header was plugged into the empty holes on the board and connected with the femal connectors from the serial converter module.
http://www.ieeebcit.org/product/pinheader10m/

This serial converter module is type PL2303HX and it has 4 female wire connectors.
http://hobbycomponents.com/usb-interface/618-usb-to-rs232-ttl-serial-interface-cable

The pin header end was loosen.

Quote

> I was trying to kwboot and it happens in less than
> 5 seconds. sometimes it took me more than 1 hours(
> I've watched 2episode of suit season5).

Quote

> I touched cable by mistake(of course, my eyes on drama and h
> ands moving from keyboard to power cable of my clo
> ud mirror) and it gives some gabage letter.
> so I try to move the cable around to see what happ
> ens. and I used finger to give it different angle.
> by experience, 90 degree(like soldered on pcbboard
> ) and hold steady with finger works good. it took
> me less than 5 min try.

Good test! that brought back some fun memory for me :)) I did that once, holding the wire during a demo to the customers :))

When the wire were loosen, serial console acts normal. But kwboot would take forever.

And putty was used for serial console.

===========

Follow up questions:

Did you connect only TX, RX, and GND?
When you hold the wires, you hold all these 3 wires?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mcmg2
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 06:04PM
Quote

Did you connect only TX, RX, and GND?
When you hold the wires, you hold all these 3 wires?

yes, only three wires and I use finger on tx pin header only
Re: My Cloud Mirror Gen2 u-boot
July 19, 2017 06:12PM
hmartin,

> I don't believe that a poor connection to the Rx l
> ine of the device is the reason for kwboot not con
> sistently working

It could make it worse. The serial comm binary such as putty/picom/minicom and kwboot were 2 different programs. kwboot is sensitive to the handshake timing. And kwboot use Xmodem protocols.

I think a lot of time. kwboot did not get a good (i.e. whole) sequence from the server, so it does not send a NACK. I have found another related patch that I might try on the NSA326 later.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 07/19/2017 06:17PM by bodhi.
mcmg2
Re: My Cloud Mirror Gen2 u-boot
November 06, 2018 04:31PM
Latest released rootfs: Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 (23 Aug 2017)

do I need to apply dtb file to make uImage for myclould mirror gen2 box or just use rootfs from above?

last time installation is like below
cd /media/sdb1/boot

cp -a zImage-4.12.4-mvebu-tld-1 zImage.fdt

cat dts/armada-385-wd.dtb >> zImage.fdt

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.4-mvebu-tld-1 -d zImage.fdt uImage
Re: My Cloud Mirror Gen2 u-boot
November 06, 2018 10:12PM
mcmg2,

> last time installation is like below
>
> cd /media/sdb1/boot
> 
> cp -a zImage-4.12.4-mvebu-tld-1 zImage.fdt
> 
> cat dts/armada-385-wd.dtb >> zImage.fdt
> 
> mkimage -A arm -O linux -T kernel -C none -a
> 0x00008000 -e 0x00008000 -n
> Linux-4.12.4-mvebu-tld-1 -d zImage.fdt uImage
>

If you did it the last time, then you need to do this at each new kernel installation.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mcmg2
Re: My Cloud Mirror Gen2 u-boot
June 29, 2020 10:59PM
please delete uboot log above.
Re: My Cloud Mirror Gen2 u-boot
March 02, 2024 04:37AM
Can you please share the latest patch (any difference for nand/uart?), and the exact name of the GPL package to download?
I would like to test a patch to allow the change of the CPU frequency.

*** edit ***
Managed to compile the uboot by my own, and found that the build process produces both the nand and uart binary.
To anyone interested, you can find attached the useful patch and a script making the process painless.

# Prerequisite:
Download WDMyCloud_Mirror_GPL_v2.30.165_20170321.tar.gz from https://support-en.wd.com/app/products/product-detailweb/p/137 and copy uboot/u-boot-2013.01-2014_T3.0p2.tar.gz and toolchain/armv7-marvell-linux-gnueabi-softfp_i686_64K_Dev_20131002.tar.gz in the script folder

Fell free to test the patch I've tried (unsuccessfully) to enable TWSI and SatR editing from uboot.
Marvell>> SatR read
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI

Does anyone has any idea to manage to change the cpu frequency?



Edited 2 time(s). Last edit at 03/02/2024 10:47AM by CyberPK.
Attachments:
open | download - GrandTeton-20170708.patch (3.2 KB)
open | download - enable_TWSI.patch (685 bytes)
open | download - build_uboot (1 KB)
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: