Welcome! Log In Create A New Profile

Advanced

My Cloud Mirror Gen2 u-boot

Posted by hmartin 
My Cloud Mirror Gen2 u-boot
July 05, 2017 01:04PM
As a follow up from this post could a My Cloud Mirror Gen2 user please try to kwboot the attached u-boot?

You will need to decompress it first using gzip:
$ gunzip u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin.gz

You will also need to use a patched kwboot binary (amd64 / arm):
./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1

The timing is not perfect you may have to try multiple times. Follow these instructions if you cannot get your MCM Gen 2 to kwboot.

md5sum: 6ce0bbc1aa78a5aaafb5196985aebc47
sha1sum: 3de55e90354ab670d17583b37cf9afc4214239bd
sha256sum: 07f15a654cb9c78657c70a011ed6910f66e1a10a0a6d9230b145a54802261d7d



Edited 1 time(s). Last edit at 07/19/2017 02:08AM by hmartin.
Attachments:
open | download - u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin.gz (458.2 KB)
mcmg2
Re: My Cloud Mirror Gen2
July 05, 2017 10:23PM
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...-

it just stops here
mcmg2
Re: My Cloud Mirror Gen2
July 05, 2017 10:28PM
-^Cmint@mint ~/kwboot $ sudo ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38randTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|
BootRO/ - 1.73
Bootin from NAND flash

General -nitialization - Version: 1.0.0
Detected Device ID 6820
High sp\ed PHY - Versio: 2.0

Load WD GrandTeton Serdes Config:
boar| SerDes lanes topology details:
 | Lane #  | Speed |  Tpe    /  |
 --------------------------------
 |   0    |  06   |  SAT-0	|
 |   1    |  05   |  PCIe0	|
 |   2    |  06   |  SAA1	|
\|   3    |  05   |  USB3 HOST1	|
 |   4    |  05   |  US3 HOST|	|
 |  5    |  00   |  SGMII2	
 --------------------------/--
|PCIe, /dx 0: detected no link
High speed PHY - Ended Successfully
DD-3 Training Sequence - Ver TIP-1.26.0
m\SysEnvGetTopologyUpdateInfo: TWSI Read failed
|DDR/ Training Sequence - Swtching XBAR Winow to FastPath Window 
-DR3 Training Sequence - Ended Successfully
|BootROM: Image checksum ver/ficatio\ PASSE|

never send image
mcmg2
Re: My Cloud Mirror Gen2
July 05, 2017 10:32PM
|^Cmint@mint ~/kwboot $ sudo ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38randTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message
mint@mint ~/kwboot $

or bad image.
mcmg2
Re: My Cloud Mirror Gen2
July 05, 2017 10:36PM
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 % [......................................................................]
 76 % [......................................................................]
 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_v1.04 (Jul 05 2017 - 16:59:05) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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: 2/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>>
finally...
Re: My Cloud Mirror Gen2
July 06, 2017 01:59AM
Quote
mcmg2
finally...

Yeah, welcome to the club! kwboot isn't predictable sadly.

Okay, so this proves at least that the WD u-boot sources are correct and you can kwboot the My Cloud Mirror Gen 2 (so you have an unbrick option if you manage to corrupt u-boot on nand). Both good news.

I'm not entirely up on why the MCM Gen 2 can't boot Debian. Is it because u-boot is missing saveenv?

According to peacemaker's instructions, the MCM Gen 2 is identical to the EX2 Ultra, except with less NAND flash (256MB instead of 512MB).

mcmg2, have you tried peacemaker's instructions to boot Debian on the MCM Gen 2?

Alternatively, could you try the below instructions with bodhi's mvebu rootfs for USB booting? I've attached the MCM Gen 2 DTB to this post.

setenv bootdev usb
setenv device '0:1'
setenv dtb_file '/boot/dts/armada-385-wd-mcmg2.dtb'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
run bootcmd_usb

Please post the log output if it does not boot to login prompt so we can diagnose what's wrong.

Edit: you don't need to run kwboot with sudo if your permissions on /dev/ttyUSB0 are correct. Check the owner of the device and add your user to the group (it's usually something like dialout) so you can run it as a normal user. Once adding yourself to the group, you'll need to log out of the GUI session or SSH to localhost for the group changes to take effect. Or you can just reboot.



Edited 2 time(s). Last edit at 07/06/2017 02:06AM by hmartin.
Attachments:
open | download - armada-385-wd-mcmg2.dtb (16.2 KB)
mcmg2
Re: My Cloud Mirror Gen2
July 06, 2017 03:19AM
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 % [......................................................................]
 76 % [......................................................................]
 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_v1.04 (Jul 05 2017 - 16:59:05) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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: 2/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 dtb_file '/boot/dts/armada-385-wd-mcmg2.dtb'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading DTB /boot/dts/armada-385-wd-mcmg2.dtb ...
** Bad device usb 0 **
Bad Linux ARM zImage magic!
resetting ...

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

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


U-Boot 2013.01_v1.02 (Jun 25 2015 - 17:06:32) 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:0x1ff95bd4
       BSS:			0x1ffef254
       Stack:			0x1f9cdf20
       Heap:			0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  mvNfcInit

mvNfcReset()
ret = 0x0
read Nand Flash ID
ID: daad ,nand reg = 0x.8ff8166
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: 2/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
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: root=/dev/ram console=ttyS0,115200
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    :   921.600 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    346 MB/s
raid6: int32x4    446 MB/s
raid6: int32x8    384 MB/s
raid6: using algorithm int32x4 (446 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
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
hub 5-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
usb 4-1: new high-speed USB device number 2 using xhci-hcd
usb 4-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
usb 4-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
usb-storage 4-1:1.0: USB Mass Storage device detected
scsi2 : usb-storage 4-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-06 07:15:56 UTC (1499325356)
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) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 256K (c0718000 - c0758000)
init started: BusyBox v1.20.2 (2014-10-30 15:28:59 CST)
starting pid 1261, tty '': '/etc/rc.sh'
** Mounting /etc/fstab
umount: can't umount /proc: Invalid argument
umount: can't umount /usr/local/modules: Invalid argument
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
sh: hotPlug.sh: not found
offset_flag=1,vaule_flag=1,bit_flag=0
offset_flag=1,vaule_flag=1,bit_flag=0
offset_flag=1,vaulUBI: attaching mtd5 to ubi0
e_flag=1,bit_flag=0
offset_flag=1,vaule_flag=1,bit_flag=0
UBI: scanning is finished
UBI: attached mtd5 (name "config", size 20 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 160, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 11/6, WL threshold: 4096, image sequence number: 1847991382
UBI: available PEBs: 22, total reserved PEBs: 138, PEBs reserved for bad PEB handling: 10
UBI: background thread "ubi_bgt0d" started, PID 1291
UBI device number 0, total 160 LEBs (20316160 bytes, 19.4 MiB), available 22 LEBs (2793472 bytes, 2.7 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt0_0" started, PID 1296
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "config"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 14475264 bytes (13 MiB, 114 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 683702 bytes (667 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 12CDA789-300F-44B7-B437-4B5666A1DA39, small LPT model
umount: can't umount /usr/local/tmp/image.cfs: No such file or directory
rm: can't remove '/usr/local/tmp/image.cfs': No such file or directory
umount: can't umount /usr/local/tmp: Invalid argument
first good block is 0
image len = 109391872 , image checksum = dd9447db
umount: can't umount /usr/local/tmp: Invalid argument
dump image checksum=dd9447db
mount cmd:busybox mount -t squashfs -o loop /usr/local/tmp/image.cfs /usr/local/modules
cp: can't stat '/tmp1/*': No such file or directory
ln: /usr/sbin/./transmission-daemon: File exists
ln: /usr/sbin/./transmission-remote: File exists
ln: /lib/./liblber-2.4.so.2.5.6: File exists
ln: /lib/./libminiupnpc.so: File exists
ln: /lib/./libnatpmp.so: File exists
ln: /lib/./libpam.so.0.81.6: File exists
ln: /usr/local/sbin/alert_email_config.sh: File exists
ln: /usr/sbin/language.sh: File exists
dev.raid.speed_limit_max = 1000
egiga0    Link encap:Ethernet  HWaddr 00:50:43:02:02:01  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:193 

egiga2    Link encap:Ethernet  HWaddr 00:50:43:02:02:03  
   egiga0: mac address changed
       BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:195 

Do Lan Port Switch
egiga2: mac address changed
not_egiga0: mac address changed
jnl: driver (UFSD_HEAD UFSD_HEAD_r244402_b37, LBD=ON) loaded at bf000000
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd:: trace mask set to 0000000f
ufsd: driver (UFSD_HEAD UFSD_HEAD_r244402_b37, build_host("swtest6"), acl, ioctl, bdi, sd2(0), fua, bz, tr, rsrc) loaded at bf020000
NTFS support included
Hfs+/HfsJ support included
optimized: speed
Build_for__WD_Yellowstone_k3.10.39_2015-02-12_16T_UFSD_HEAD_r244402_b37

bio: create slab <bio-1> at 1
Btrfs loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
lrwxrwxrwx    1 root     0               17 Jul  6 07:16 /usr/sbin//raid_config -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 07:16 /usr/sbin//raid_expand -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 07:16 /usr/sbin//raid_expand_disks -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 07:16 /usr/sbin//raid_update_info -> /usr/sbin/diskmgr
hardware init
pool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga1: link up
egiga1: started
pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga2: link up
egiga2: started
mtd check v1.06.06032015
config mtd type is UBIFS
device = /usr/local/config
Total size     = 12384 Kbytes
Used size     = 276 Kbytes
Free size     = 12108 Kbytes
percentage = 2
/usr/local/config free size is 12398592
** copy config files
*** Copy orion.db from flash ****
cp: can't stat '/usr/local/modules/files/fan_temperature.txt': No such file or directory
*** symlink onbrd.ini from flash ****
** set loopback interface
UBI: attaching mtd6 to ubi1
UBI: scanning is finished
UBI: attached mtd6 (name "reserve1", size 10 MiB) to ubi1
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 3272890495
UBI: available PEBs: 30, total reserved PEBs: 50, PEBs reserved for bad PEB handling: 12
UBI device numbeUBI: background thread "ubi_bgt1d" started, PID 3403
r 1, total 80 LEBs (10158080 bytes, 9.7 MiB), available 30 LEBs (3809280 bytes, 3.6 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt1_0" started, PID 3422
UBIFS: mounted UBI device 1, volume 0, name "reserve"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 143937 bytes (140 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 97276231-A8BE-4582-B00E-6E13A8E42CC4, small LPT model
UBIFS: un-mount UBI device 1, volume 0
UBIFS: background thread "ubifs_bgt1_0" stops
UBI: attaching mtd7 to ubi2
UBI: scanning is finished
UBI: attached mtd7 (name "reserve2", size 10 MiB) to ubi2
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1028955252
UBI: available PEBs: 20, total reserved PEBs: 60, PEBs reserved for bad PEB handling: 14
UBI: background thread "ubi_bgt2d" started, PID 3437
UBI device number 2, total 80 LEBs (10158080 bytes, 9.7 MiB), available 20 LEBs (2539520 bytes, 2.4 MiB), LEB size 126976 bytes (124.0 KiB)
mknod: /dev/mtd7: File exists
UBIFS: background thread "ubifs_bgt2_0" started, PID 3450
UBIFS: mounted UBI device 2, volume 0, name "reserve2"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 4063232 bytes (3 MiB, 32 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 191915 bytes (187 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID FA6CE2D6-E019-4D9D-BB0E-A7959C06E8CF, small LPT model
/dev/mtd7 mount ok(ubi)
cp: can't stat '/mnt/ubi2/hidden_eccryption': No such file or directory
UBIFS: un-mount UBI device 2, volume 0
UBIFS: background thread "ubifs_bgt2_0" stops
mac1 = 00:90:A9:E8:2B:9C
lan0:ifconfig egiga0 hegiga0: mac address changed
w ether 00:90:A9:E8:2B:9C
pool #2: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga0: link up
egiga0: started
set lan0 speed
Model ID : GT
GT
ln: /usr/local/model/web/pages/images/./icon: File exists
hidden encryption: 0
Not support chk_sata
old firmware ver:2.10.310.1013.2015
new firmware ver:2.10.310.1013.2015
rm: can't remove '/tmp/fix_wd_config': No such file or directory
*** execute rc.init.sh
awk: /var/run/udhcpc0.pid: No such file or directory
udhcpc (v1.20.2) started
cat: can't open '/tmp/setip.0': No such file or directory
Sending discover...
Sending select for 192.168.2.107...
Lease of 192.168.2.107 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
killall: crond: no process killed
crond[3661]: crond: crond (busybox 1.20.2) started, log level 8
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
call load_module network
Initializing UPnP Sdk with
	ipaddress = (null) port = 0
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49152
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49152/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
crond[3718]: crond: crond (busybox 1.20.2) started, log level 8
--2017-07-06 07:16:27--  http://download.wdc.com/nas/WDMyCloudMirror_HDD_Blacklist.xml
Resolving download.wdc.com... Initializing UPnP Sdk with
	ipaddress = (null) port = 0
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49153
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49153/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
sh: you need to specify whom to kill
Advertisements Sent
Advertisements Sent
54.187.253.198, 52.24.240.198, 52.35.218.173, ...
Connecting to download.wdc.com|54.187.253.198|:80... connected.
HTTP request sent, awaiting response... *** Copy CacheVolume data from flash ****
*** set Time Zone ****
$Usage: apache {start|stop|restart} {web/dav}
Thu Jul  6 07:16:28 PDT 2017
*** get Time from rtc and set it into system ****
403 Forbidden
2017-07-06 07:16:28 ERROR 403: Forbidden.

rtc: RTC time = 2017/7/6 Thu 7:16:29
Thu Jul  6 00:16:29 PDT 2017
Set Date & time : sntp -K /dev/null -S -r time.windows.com
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)

Module IPC SERVER Version:(1.00.20090706)

ads=0
2017-07-06 00:16:29.604437 (+0800) +1.198621 +/- 0.831678 time.windows.com 13.65.245.138 s2
NTP Server connected successfully!!!
created mail daemon thread 0
POWER ON DEVICE!!

Up_Send_Ctl : Can not find specified command "ErrStatus"
mount: mount point /proc/bus/usb does not exist
WD hwlib start..............
Starting system message bus
Starting wdtms
wdtms started
PHY_LAN_NUMBER=1
BOND_ENABLE=0
VLAN0_ENABLE=0
VLAN1_ENABLE=0
--2017-07-06 00:16:33--  http://download.wdc.com/apps/WDMyCloudMirrorG2/WDMyCloudMirrorG2.xml
Resolving download.wdc.com... I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
52.33.117.19, 52.89.214.250, 54.201.207.64, ...
Connecting to download.wdc.com|52.33.117.19|:80... /usr/local/modules/script/system_init: line 1062: /mnt/tmp6/ibuki/avahi_tm_serv: not found
cat: can't open '/var/run/traceroute_wd.pid': No such file or directory
ash: you need to specify whom to kill
killall: traceroute: no process killed

 -------------use hwlib instead of fan_control b c------------- 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 47925 (47K) [text/xml]
Saving to: '/var/www/xml/app_info.xml'

100%[======================================>] 47,925       136KB/s   in 0.3s   

2017-07-06 00:16:34 (136 KB/s) - '/var/www/xml/app_info.xml' saved [47925/47925]

I/O warning : failed to load external entity "/var/www/xml/app_update.xml"
[ERROR] Unable to open (null)
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
restart sysinfod...
sysinfod: full update begin...
sysinfod: disk connected: previous=0xffffffff, now=0x0
--2017-07-06 00:16:35--  http://download.wdc.com/nas/WDMyCloudMirror_HDD_Blacklist.xml
Resolving download.wdc.com... 52.24.240.198, 52.35.218.173, 54.201.207.64, ...
Connecting to download.wdc.com|52.24.240.198|:80... connected.
HTTP request sent, awaiting response... rtc: system time: 2017/7/6 Thu 7:16:35
setRTCTime
403 Forbidden
2017-07-06 00:16:35 ERROR 403: Forbidden.

waiting : [10]
Failed to restart apache, ret = 1
mcu version 1.06
chk_io v1.04.20141112
I/O warning : failed to load external entity "/var/www/xml/usb_backup.xml"
I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
system daemon v1.04.20141211
Thu Jul  6 00:16:41 PDT 2017 - %W - Communication Manager - startup is disabled, use 'enable' to start process
dev.raid.speed_limit_max = 200000

Please press Enter to activate this console. Failed to restart apache, ret = 1
killall: chk_hotplug: no process killed
scandisk for power failure now.

*ERROR* main(): scandisk [-a] [(null)]

sacndisk for power failure(fs_error_count=0)
cat: can't open '/var/run/xmldb_sock_scandisk_config.pid': No such file or directory

Up_Send_Ctl : Can not find specified command "ErrStatus"
call load_module
### create systemfile ###
/usr/sbin/load_module: line 541: can't create /sys/block/sdb/queue/read_ahead_kb: nonexistent directory
### sata_reload_application start ###
Initializing UPnP Sdk with
	ipaddress = (null) port = 0
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49154
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49154/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
Starting atopacctd
cannot switch on process accounting: Function not implemented
Starting atop system monitor  atop
atop started
*** APKG Daemon is starting ... ***
sh: you need to specify whom to kill
Rename is FAILE
USE 2nd Rename 
sh: you need to specify whom to kill
LOCK itunes.sh
Touch itunes tmp file
killall: smbd: no process killed
sh: you need to specify whom to kill
Advertisements Sent
Starting wdnotifier
wdnotifier started
Starting wdmcserver
EXT2-fs (sda1): error: ext2_check_page: bad entry in directory #32770: : unaligned directory entry - offset=0, inode=3637925604, rec_len=3034, name_len=134
EXT2-fs (sda1): error: ext2_readdir: bad page in #32770
mt-daapd db path no found .....
UNLOCK itunes.sh
Starting wdphotodbmerger
WDPhotodbmerger started  0
Thu Jul  6 00:16:53 PDT 2017 /etc/init.d/onbrdnetloccommd - Start
killall: smbd: no process killed
EXT2-fs (sda1): error: ext2_check_page: bad entry in directory #32769: : unaligned directory entry - offset=0, inode=4136380826, rec_len=42382, name_len=203
EXT2-fs (sda1): error: ext2_readdir: bad page in #32769
killall: chk_blockip: no process killed
killall: chk_blockip: no process killed
I/O warning : failed to load external entity "/mnt/USB/USB1_a1/.timeMachine.xml"
Document parsed unsuccessfully. 
sysinfod: full update begin...
 3911 root      4096 S    avahi-daemon: running [WDMyCloudMirror.local]
killall: elephantdriveDaemon: no process killed
Failed to restart apache, ret = 1
Setting up docker
mkdir: can't create directory '/mnt/HD/HD_a2/Nas_Prog/_docker': No such file or directory
Loading ipv6
NET: Registered protocol family 10
Loading drivers
Loading /usr/local/modules/driver/nf_conntrack.ko
nf_conntrack version 0.5.0 (8034 buckets, 32136 max)
Loading /usr/local/modules/driver/nf_nat.ko
Loading /usr/local/modules/driver/nf_defrag_ipv4.ko
Loading /usr/local/modules/driver/nf_conntrack_ipv4.ko
Loading /usr/local/modules/driver/nf_nat_ipv4.ko
Loading /usr/local/modules/driver/x_tables.ko
Loading /usr/local/modules/driver/xt_conntrack.ko
Loading /usr/local/modules/driver/xt_addrtype.ko
Loading /usr/local/modules/driver/xt_tcpudp.ko
Loading /usr/local/modules/driver/xt_nat.ko
Loading /usr/local/modules/driver/ipt_MASQUERADE.ko
Loading /usr/local/modules/driveip_tables: (C) 2000-2006 Netfilter Core Team
r/ip_tables.ko
Loading /usr/local/modules/driver/iptable_filter.ko
Loading /usr/local/modules/driver/iptable_nat.ko
Loading /usr/local/modules/driver/llc.ko
Loading /usr/local/modules/driver/stp.ko
Loading /usr/local/modules/driver/bridge.ko
Bridge firewalling registered
Setting up cgroup
Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
wdappmgr_auto_start finished modifying wd apps exit code
Starting Docker
Docker is not setup! Run docker_daemon.sh setup
umount: /mnt/HD/HD_a2/Nas_Prog/_docker/devicemapper: not found
Total RAM: 514176 KB
Creating /sys/fs/cgroup/memory/docker
Docker quota: 171392 KB
Set memory quota for docker: 175505408
Docker pid 5612
/usr/sbin/docker_daemon.sh: line 194: /var/lib/docker/docker.log: No such file or directory
Stopping wdappmgr
wdappmgr is already stopped
Starting wdappmgr
parent exiting!
wdappmgr started
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
### sata_reload_application end ###
rm: /shares/Volume_1: is a directory
Create USB dev node
rm: can't remove '/tmp/disk_uuid': No such file or directory
sysinfod: full update begin...
sysinfod: inform: all drives status=No Drives.
LED_POWER_ON

I put uImage,, but not sure
Re: My Cloud Mirror Gen2
July 06, 2017 03:56AM
All,

You don't need to boot with zImage. It is simpler to boot with uImage and DTB append to it. Booting zImage has advantage, but need to be figured out. Booting with uImage should get it working quicker.

And make sure you follow the instruction in this thread very closely:
http://forum.doozan.com/read.php?2,32146
to create the rootfs.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
mcmg2
Re: My Cloud Mirror Gen2
July 06, 2017 04:45AM
I made a new usb with Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2 (04 Feb 2017)

but unable to load from usb

 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [.........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 05 2017 - 16:59:05) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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: 2/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 dtb_file '/boot/dts/armada-385-wd-mcmg2.dtb'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dsetenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=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=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
dtb_file=/boot/dts/armada-385-wd-mcmg2.dtb
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:1a:29:2c
eth1mtu=1500
eth2addr=00:50:43:1a:3c:2c
eth2mtu=1500
eth3addr=00:50:43:29:3c:1a
eth3mtu=1500
ethact=egiga2
ethaddr=00:50:43:3c:29:2c
ethmtu=1500
ethprime=egiga2
fdt_addr=2040000
fdt_skip_update=no
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_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1000000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage
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:2c:3c:1a
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_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4008/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading DTB /boot/dts/armada-385-wd-mcmg2.dtb ...
** Bad device usb 0 **
Bad Linux ARM zImage magic!
resetting ...

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

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


U-Boot 2013.01_v1.02 (Jun 25 2015 - 17:06:32) 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:0x1ff95bd4
       BSS:			0x1ffef254
       Stack:			0x1f9cdf20
       Heap:			0x1f9ce000:0x1fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  mvNfcInit

mvNfcReset()
ret = 0x0
read Nand Flash ID
ID: daad ,nand reg = 0x.8ff8166
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: 2/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
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: root=/dev/ram console=ttyS0,115200
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  :  1424.000 MB/sec
   8regs     :   940.800 MB/sec
   32regs    :   921.600 MB/sec
xor: using function: arm4regs (1424.000 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    446 MB/s
raid6: int32x8    384 MB/s
raid6: using algorithm int32x4 (446 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
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
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
usb 4-1: new high-speed USB device number 2 using xhci-hcd
usb 4-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
usb 4-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
usb-storage 4-1:1.0: USB Mass Storage device detected
scsi2 : usb-storage 4-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-06 08:42:43 UTC (1499330563)
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) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 256K (c0718000 - c0758000)
init started: BusyBox v1.20.2 (2014-10-30 15:28:59 CST)
starting pid 1261, tty '': '/etc/rc.sh'
** Mounting /etc/fstab
umount: can't umount /proc: Invalid argument
umount: can't umount /usr/local/modules: Invalid argument
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
sh: hotPlug.sh: not found
offset_flag=1,vaule_flag=1,bit_flag=0
offset_flag=1,vaule_flag=1,bit_flag=0
offset_flag=1,vaulUBI: attaching mtd5 to ubi0
e_flag=1,bit_flag=0
offset_flag=1,vaule_flag=1,bit_flag=0
UBI: scanning is finished
UBI: attached mtd5 (name "config", size 20 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 160, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 11/6, WL threshold: 4096, image sequence number: 1847991382
UBI: available PEBs: 22, total reserved PEBs: 138, PEBs reserved for bad PEB handling: 10
UBI: background thread "ubi_bgt0d" started, PID 1292
UBI device number 0, total 160 LEBs (20316160 bytes, 19.4 MiB), available 22 LEBs (2793472 bytes, 2.7 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt0_0" started, PID 1297
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "config"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 14475264 bytes (13 MiB, 114 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 683702 bytes (667 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 12CDA789-300F-44B7-B437-4B5666A1DA39, small LPT model
umount: can't umount /usr/local/tmp/image.cfs: No such file or directory
rm: can't remove '/usr/local/tmp/image.cfs': No such file or directory
umount: can't umount /usr/local/tmp: Invalid argument
first good block is 0
image len = 109391872 , image checksum = dd9447db
umount: can't umount /usr/local/tmp: Invalid argument
dump image checksum=dd9447db
mount cmd:busybox mount -t squashfs -o loop /usr/local/tmp/image.cfs /usr/local/modules
cp: can't stat '/tmp1/*': No such file or directory
ln: /usr/sbin/./transmission-daemon: File exists
ln: /usr/sbin/./transmission-remote: File exists
ln: /lib/./liblber-2.4.so.2.5.6: File exists
ln: /lib/./libminiupnpc.so: File exists
ln: /lib/./libnatpmp.so: File exists
ln: /lib/./libpam.so.0.81.6: File exists
ln: /usr/local/sbin/alert_email_config.sh: File exists
ln: /usr/sbin/language.sh: File exists
dev.raid.speed_limit_max = 1000
egiga0    Link encap:Ethernet  HWaddr 00:50:43:02:02:01  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:193 

egiga2    Link encap:Ethernet  HWaddr 00:50:43:02:02:03  
          BROADCASTegiga0: mac address changed
 MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:195 

Do Lan Port Switch
egiga2: mac address changed
not_egiga0: mac address changed
jnl: driver (UFSD_HEAD UFSD_HEAD_r244402_b37, LBD=ON) loaded at bf000000
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd:: trace mask set to 0000000f
ufsd: driver (UFSD_HEAD UFSD_HEAD_r244402_b37, build_host("swtest6"), acl, ioctl, bdi, sd2(0), fua, bz, tr, rsrc) loaded at bf020000
NTFS support included
Hfs+/HfsJ support included
optimized: speed
Build_for__WD_Yellowstone_k3.10.39_2015-02-12_16T_UFSD_HEAD_r244402_b37

bio: create slab <bio-1> at 1
Btrfs loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
lrwxrwxrwx    1 root     0               17 Jul  6 08:43 /usr/sbin//raid_config -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 08:43 /usr/sbin//raid_expand -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 08:43 /usr/sbin//raid_expand_disks -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jul  6 08:43 /usr/sbin//raid_update_info -> /usr/sbin/diskmgr
hardware init
pool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga1: link up
egiga1: started
pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga2: link up
egiga2: started
mtd check v1.06.06032015
config mtd type is UBIFS
device = /usr/local/config
Total size     = 12384 Kbytes
Used size     = 276 Kbytes
Free size     = 12108 Kbytes
percentage = 2
/usr/local/config free size is 12398592
** copy config files
*** Copy orion.db from flash ****
cp: can't stat '/usr/local/modules/files/fan_temperature.txt': No such file or directory
*** symlink onbrd.ini from flash ****
** set loopback interface
UBI: attaching mtd6 to ubi1
UBI: scanning is finished
UBI: attached mtd6 (name "reserve1", size 10 MiB) to ubi1
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 3272890495
UBI: available PEBs: 30, total reserved PEBs: 50, PEBs reserved for bad PEB handling: 12
UBI device numbeUBI: background thread "ubi_bgt1d" started, PID 3402
r 1, total 80 LEBs (10158080 bytes, 9.7 MiB), available 30 LEBs (3809280 bytes, 3.6 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt1_0" started, PID 3420
UBIFS: mounted UBI device 1, volume 0, name "reserve"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 143937 bytes (140 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 97276231-A8BE-4582-B00E-6E13A8E42CC4, small LPT model
UBIFS: un-mount UBI device 1, volume 0
UBIFS: background thread "ubifs_bgt1_0" stops
UBI: attaching mtd7 to ubi2
UBI: scanning is finished
UBI: attached mtd7 (name "reserve2", size 10 MiB) to ubi2
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1028955252
UBI: available PEBs: 20, total reserved PEBs: 60, PEBs reserved for bad PEB handling: 14
UBI: background thread "ubi_bgt2d" started, PID 3435
UBI device number 2, total 80 LEBs (10158080 bytes, 9.7 MiB), available 20 LEBs (2539520 bytes, 2.4 MiB), LEB size 126976 bytes (124.0 KiB)
mknod: /dev/mtd7: File exists
UBIFS: background thread "ubifs_bgt2_0" started, PID 3448
UBIFS: mounted UBI device 2, volume 0, name "reserve2"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 4063232 bytes (3 MiB, 32 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 191915 bytes (187 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID FA6CE2D6-E019-4D9D-BB0E-A7959C06E8CF, small LPT model
/dev/mtd7 mount ok(ubi)
cp: can't stat '/mnt/ubi2/hidden_eccryption': No such file or directory
UBIFS: un-mount UBI device 2, volume 0
UBIFS: background thread "ubifs_bgt2_0" stops
mac1 = 00:90:A9:E8:2B:9C
lan0:ifconfig egiga0 hegiga0: mac address changed
w ether 00:90:A9:E8:2B:9C
pool #2: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga0: link up
egiga0: started
set lan0 speed
Model ID : GT
GT
ln: /usr/local/model/web/pages/images/./icon: File exists
hidden encryption: 0
Not support chk_sata
old firmware ver:2.10.310.1013.2015
new firmware ver:2.10.310.1013.2015
rm: can't remove '/tmp/fix_wd_config': No such file or directory
*** execute rc.init.sh
awk: /var/run/udhcpc0.pid: No such file or directory
udhcpc (v1.20.2) started
cat: can't open '/tmp/setip.0': No such file or directory
Sending discover...
Sending select for 192.168.2.107...
Lease of 192.168.2.107 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
killall: crond: no process killed
crond[3659]: crond: crond (busybox 1.20.2) started, log level 8
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
call load_module network
Initializing UPnP Sdk with
	ipaddress = (null) port = 0
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49152
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49152/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
crond[3716]: crond: crond (busybox 1.20.2) started, log level 8
--2017-07-06 08:43:14--  http://download.wdc.com/nas/WDMyCloudMirror_HDD_Blacklist.xml
Resolving download.wdc.com... Initializing UPnP Sdk with
	ipaddress = (null) port = 0
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49153
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49153/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
sh: you need to specify whom to kill
Advertisements Sent
52.89.214.250, 52.33.117.19, 52.35.218.173, ...
Connecting to download.wdc.com|52.89.214.250|:80... Advertisements Sent
connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-07-06 08:43:15 ERROR 403: Forbidden.

*** Copy CacheVolume data from flash ****
*** set Time Zone ****
$Usage: apache {start|stop|restart} {web/dav}
Thu Jul  6 08:43:15 PDT 2017
*** get Time from rtc and set it into system ****
rtc: RTC time = 2017/7/6 Thu 8:43:16
Thu Jul  6 01:43:16 PDT 2017
Set Date & time : sntp -K /dev/null -S -r time.windows.com
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)

Module IPC SERVER Version:(1.00.20090706)

ads=0
2017-07-06 01:43:16.619784 (+0800) +1.409759 +/- 0.974237 time.windows.com 13.65.245.138 s2
NTP Server connected successfully!!!
created mail daemon thread 0
POWER ON DEVICE!!

Up_Send_Ctl : Can not find specified command "ErrStatus"
mount: mount point /proc/bus/usb does not exist
WD hwlib start..............
Starting system message bus
Starting wdtms
PHY_LAN_NUMBER=1
wdtms started
BOND_ENABLE=0
VLAN0_ENABLE=0
VLAN1_ENABLE=0
--2017-07-06 01:43:20--  http://download.wdc.com/apps/WDMyCloudMirrorG2/WDMyCloudMirrorG2.xml
Resolving download.wdc.com... I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
54.187.253.198, 54.201.207.64, 52.24.240.198, ...
Connecting to download.wdc.com|54.187.253.198|:80... /usr/local/modules/script/system_init: line 1062: /mnt/tmp6/ibuki/avahi_tm_serv: not found
cat: can't open '/var/run/traceroute_wd.pid': No such file or directory
ash: you need to specify whom to kill
killall: traceroute: no process killed

 -------------use hwlib instead of fan_control b c------------- 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 47925 (47K) [text/xml]
Saving to: '/var/www/xml/app_info.xml'

100%[======================================>] 47,925      90.0KB/s   in 0.5s   

2017-07-06 01:43:21 (90.0 KB/s) - '/var/www/xml/app_info.xml' saved [47925/47925]

I/O warning : failed to load external entity "/var/www/xml/app_update.xml"
[ERROR] Unable to open (null)
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
restart sysinfod...
sysinfod: full update begin...
sysinfod: disk connected: previous=0xffffffff, now=0x0
--2017-07-06 01:43:22--  http://download.wdc.com/nas/WDMyCloudMirror_HDD_Blacklist.xml
Resolving download.wdc.com... 52.33.117.19, 52.35.218.173, 52.24.240.198, ...
Connecting to download.wdc.com|52.33.117.19|:80... connected.
HTTP request sent, awaiting response... rtc: system time: 2017/7/6 Thu 8:43:22
setRTCTime
403 Forbidden
2017-07-06 01:43:22 ERROR 403: Forbidden.

waiting : [10]
Failed to restart apache, ret = 1
mcu version 1.06
chk_io v1.04.20141112
I/O warning : failed to load external entity "/var/www/xml/usb_backup.xml"
system daemon v1.04.20141211
I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
Thu Jul  6 01:43:28 PDT 2017 - %W - Communication Manager - startup is disabled, use 'enable' to start process
dev.raid.speed_limit_max = 200000

Please press Enter to activate this console. Failed to restart apache, ret = 1
killall: chk_hotplug: no process killed
scandisk for power failure now.

*ERROR* main(): scandisk [-a] [(null)]

sacndisk for power failure(fs_error_count=0)
cat: can't open '/var/run/xmldb_sock_scandisk_config.pid': No such file or directory

Up_Send_Ctl : Can not find specified command "ErrStatus"
call load_module
### create systemfile ###
/usr/sbin/load_module: line 541: can't create /sys/block/sdb/queue/read_ahead_kb: nonexistent directory
### sata_reload_application start ###
Initializing UPnP Sdk with
	ipaddress = (null) port = 0
Starting atopacctd
UPnP Initialized
	ipaddress= 192.168.2.107 port = 49154
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
	 with desc_doc_url: http://192.168.2.107:49154/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
cannot switch on process accounting: Function not implemented
Starting atop system monitor  atop
atop started
*** APKG Daemon is starting ... ***
sh: you need to specify whom to kill
sh: you need to specify whom to kill
killall: smbd: no process killed
Starting wdnotifier
Rename is FAILE
USE 2nd Rename 
LOCK itunes.sh
Touch itunes tmp file
sh: you need to specify whom to kill
Advertisements Sent
wdnotifier started
Starting wdmcserver
mt-daapd db path no found .....
UNLOCK itunes.sh
Starting wdphotodbmerger
WDPhotodbmerger started  0
Thu Jul  6 01:43:40 PDT 2017 /etc/init.d/onbrdnetloccommd - Start
killall: smbd: no process killed
killall: chk_blockip: no process killed
killall: chk_blockip: no process killed
Failed to restart apache, ret = 1
I/O warning : failed to load external entity "/mnt/USB/USB1_a1/.timeMachine.xml"
Document parsed unsuccessfully. 
sysinfod: full update begin...
 3909 root      4224 S    avahi-daemon: running [WDMyCloudMirror.local]
killall: elephantdriveDaemon: no process killed
Setting up docker
mkdir: can't create directory '/mnt/HD/HD_a2/Nas_Prog/_docker': No such file or directory
Loading ipv6
NET: Registered protocol family 10
Loading drivers
Loading /usr/local/modules/driver/nf_conntrack.ko
nf_conntrack version 0.5.0 (8034 buckets, 32136 max)
Loading /usr/local/modules/driver/nf_nat.ko
Loading /usr/local/modules/driver/nf_defrag_ipv4.ko
Loading /usr/local/modules/driver/nf_conntrack_ipv4.ko
Loading /usr/local/modules/driver/nf_nat_ipv4.ko
Loading /usr/local/modules/driver/x_tables.ko
Loading /usr/local/modules/driver/xt_conntrack.ko
Loading /usr/local/modules/driver/xt_addrtype.ko
Loading /usr/local/modules/driver/xt_tcpudp.ko
Loading /usr/local/modules/driver/xt_nat.ko
Loading /usr/local/modules/driver/ipt_MASQUERADE.ko
Loading /usr/local/modules/driveip_tables: (C) 2000-2006 Netfilter Core Team
r/ip_tables.ko
Loading /usr/local/modules/driver/iptable_filter.ko
Loading /usr/local/modules/driver/iptable_nat.ko
Loading /usr/local/modules/driver/llc.ko
Loading /usr/local/modules/driver/stp.ko
Loading /usr/local/modules/driver/bridge.ko
Bridge firewalling registered
Setting up cgroup
Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
wdappmgr_auto_start finished modifying wd apps exit code
Starting Docker
Docker is not setup! Run docker_daemon.sh setup
umount: /mnt/HD/HD_a2/Nas_Prog/_docker/devicemapper: not found
Total RAM: 514176 KB
Creating /sys/fs/cgroup/memory/docker
Docker quota: 171392 KB
Set memory quota for docker: 175505408
/usr/sbin/docker_daemon.sh: line 194: /var/lib/docker/docker.log: No such file or directory
Docker pid 5647
Stopping wdappmgr
wdappmgr is already stopped
Starting wdappmgr
parent exiting!
wdappmgr started
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
### sata_reload_application end ###
rm: /shares/Volume_1: is a directory
Create USB dev node
rm: can't remove '/tmp/disk_uuid': No such file or directory
sysinfod: full update begin...
sysinfod: inform: all drives status=No Drives.
LED_POWER_ON


Re: My Cloud Mirror Gen2
July 06, 2017 05:48AM
mcmg2 & hmartin,

On this WD Mirror Gen 2, you need to boot the same way as the WD My Cloud EX4100.

On your new rootfs Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2 on USB, append the Mirror Gen2 DTB to uImage. Assuming the USB drive is /media/sdb1.

cd /media/sdb1/boot
cp -a zImage-4.9.0-mvebu-tld-12  zImage.fdt
cat dts/armada-385-wd-mcmg2.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d zImage.fdt  uImage

kwboot, interrupt serial console and,

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'
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'
run bootcmd_usb

I'll upload the patch for hmartin to build a new patched MCM2 u-boot for you, mcmg2. It is needed so that the bootcmd will not be wiped out, and the USB rootfs will be active for the kernel to mount it.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: My Cloud Mirror Gen2
July 06, 2017 10:10AM
Quote
bodhi
On this WD Mirror Gen 2, you need to boot the same way as the WD My Cloud EX4100.

That isn't the problem here. u-boot is not picking up the USB stick:
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...

There is an 8GB USB stick plugged in and formatted ext2/3/4. It is detected by the WD firmware during boot:
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
...
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended

Did you end up making any modifications to the u-boot sources for EX4100 to initialise USB? On the EX2100 we don't have this problem.



Edited 3 time(s). Last edit at 07/06/2017 10:13AM by hmartin.
mcmg2
Re: My Cloud Mirror Gen2
July 06, 2017 05:01PM
 98 % [......................................................................]
 99 % [.........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 05 2017 - 16:59:05) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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: 2/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... 1 USB Device(s) found
       scanning usb for storage devices... 0 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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
Marvell>>

another try with bodhi
mcmg2
Re: My Cloud Mirror Gen2
July 06, 2017 05:04PM
including printenv

 98 % [......................................................................]
 99 % [.........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 05 2017 - 16:59:05) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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: 2/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... 1 USB Device(s) found
       scanning usb for storage devices... 0 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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
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
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3868/524284 bytes
Marvell>> 

Re: My Cloud Mirror Gen2
July 06, 2017 05:36PM
@mcmg2,

hmartin is right, tt seems this u-boot does not bring up the USB drive, does not have power! How many USB ports this box has? did you try other USB port?

scanning usb for storage devices... 0 Storage Device(s) found

@hmartin,

Use the patch I've attached in the WD EXT4100 u-boot instruction post:
http://forum.doozan.com/read.php?2,34103,35255#msg-35255

@all,

Try booting with uImage to make it simpler. zImage can be tried later if you need it.

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



Edited 1 time(s). Last edit at 07/06/2017 05:38PM by bodhi.
Re: My Cloud Mirror Gen2
July 07, 2017 01:05AM
Quote
bodhi
hmartin is right, tt seems this u-boot does not bring up the USB drive, does not have power! How many USB ports this box has? did you try other USB port?

It has two USB 3 ports on the backside: https://www.allround-pc.com/wp-content/uploads/2016/04/WD-MyCloud-Mirror-R%C3%BCckseite.jpg

I doubt the other port will make any difference. Let me take a look at the u-boot patch you posted, maybe we can get USB functional during u-boot on the MCM Gen 2.

Edit: looking at your u-boot patch now. The MCM Gen 2 u-boot source is a bit different. It doesn't seem to be disabling USB power:
#if 0   //ALPHA_CUSTOMIZE, Casper marked, 20150525
        ulong value32=0;
        
        /* disable USB led */
        /* TODO: unplug USB power via uP */
        value32 = *((ulong  *)(0xF1018140));
        value32 &= ~(1<<(48-32));
        *((ulong  *)(0xF1018140)) = value32;
#endif

The whole section is wrapped in if 0, so this won't be in the final binary...



Edited 1 time(s). Last edit at 07/07/2017 02:23AM by hmartin.
mcmg2
Re: My Cloud Mirror Gen2
July 08, 2017 04:42AM
hmartin, are you still working on patched uboot?

I'm waiting for new kwboot binary.
Re: My Cloud Mirror Gen2
July 08, 2017 06:09AM
Quote
mcmg2
hmartin, are you still working on patched uboot?

Yes, I am still working on u-boot for the My Cloud Mirror Gen 2.

However until we figure out why USB is not being initialized during u-boot, there cannot be any progress toward booting Debian from USB.

I am not really sure how to proceed from here. I do not own the MCM Gen 2, and according to the u-boot source, USB should be active. I (and maybe bodhi) will need to look deeper into the u-boot source to try and figure out how to enable USB during u-boot. Alternatively, you can try a different USB stick/port and see if u-boot is able to detect it at all. I didn't have this problem on the EX2100, USB works in stock u-boot.

Quote
mcmg2
I'm waiting for new kwboot binary.

If you're looking to have this solved quickly, I don't think that will happen. If you check the EX4100 thread, it was still weeks of debugging before we got things working. Western Digital publishes the GPL source code for the My Cloud Mirror Gen 2, so if you are impatient for us, you can always try to build u-boot yourself.



Edited 1 time(s). Last edit at 07/08/2017 06:13AM by hmartin.
Re: My Cloud Mirror Gen2
July 08, 2017 06:30AM
After reviewing the source more and looking at the u-boot changes for ClearFrog, it seems that Western Digital has maybe disabled USB in u-boot. However this doesn't make any sense to me, since I assume MCM Gen 2 still allows for USB firmware recovery, and I do not see in u-boot source where they are enabling USB before loading the kernel/ramdisk from USB.

ClearFrog source has #define ENV_USB_ACTIVE "1" and in the GrandTeton source this is 0. I changed to 1.

Please try the following to see if USB is initialized:
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'
run load_image

Edit: attached my changes to u-boot source if someone else wants to start working.



Edited 2 time(s). Last edit at 07/08/2017 06:38AM by hmartin.
Attachments:
open | download - u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart-20170708.bin.gz (458.2 KB)
open | download - GrandTeton-20170708.patch (3.2 KB)
Re: My Cloud Mirror Gen2
July 08, 2017 05:12PM
@hmartin,

Quote

After reviewing the source more and looking at the u-boot changes for ClearFrog, it seems that Western Digital has maybe disabled USB in u-boot. However this doesn't make any sense to me, since I assume MCM Gen 2 still allows for USB firmware recovery, and I do not see in u-boot source where they are enabling USB before loading the kernel/ramdisk from USB.

Look in the source GPL for where they allow to push the button to activate USB. There is a button somewhere on this box, I assume.

setenv bootdev 'usb'
setenv device '0:1'
setenv load_image_addr '0x02000000'
setenv load_initrd_addr '0x2900000'
setenv load_image 'usb start; echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
run load_image

We need "usb start" above.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
mcmg2
Re: My Cloud Mirror Gen2
July 08, 2017 05:21PM
 98 % [......................................................................]
 99 % [..........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 08 2017 - 10:27:15) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff96000
       BSS:			0x3ffef654
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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 'usb start; echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> run load_image
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
Marvell>> 

Re: My Cloud Mirror Gen2
July 08, 2017 05:27PM
mcmg2
Re: My Cloud Mirror Gen2
July 08, 2017 05:40PM
 98 % [......................................................................]
 99 % [..........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 08 2017 - 10:27:15) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff96000
       BSS:			0x3ffef654
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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 'usb start; echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> run load_image
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
Marvell>> run load_image
(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 ...
3921006 bytes read in 422 ms (8.9 MiB/s)
Marvell>>

I removed usb on port 1 and put back on port2 and tried to run load_imge.
it reads first image and stops???
Re: My Cloud Mirror Gen2
July 08, 2017 05:46PM
mcmg2,

> I removed usb on port 1 and put back on port2 and

:)) that's what I thought and suggested before. Apparently, only one USB port is activated in u-boot.

You are good to go:
scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3921006 bytes read in 422 ms (8.9 MiB/s)

OK. Try the these at the u-boot prompt:

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'
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'
run bootcmd_usb

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
mcmg2
Re: My Cloud Mirror Gen2
July 08, 2017 08:29PM
 98 % [......................................................................]
 99 % [..........................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.04 (Jul 08 2017 - 10:27:15) 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:  1 GiB

Map:   Code:			0x3fece000:0x3ff96000
       BSS:			0x3ffef654
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
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 ...
3921006 bytes read in 422 ms (8.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 490 ms (12.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-06  20:09:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3920942 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD MyCloud Mirror gen2 (Armada 385)
[    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 @ef7cb000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019924K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 28652K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic.c:1295 gic_of_setup+0x6c/0xb8
[    0.000000] unable to map gic dist registers
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       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 [<c04e8c20>] (gic_of_setup+0x6c/0xb8)
[    0.000000] [<c04e8c20>] (gic_of_setup) from [<c0c2e290>] (gic_of_init+0x64/0x240)
[    0.000000] [<c0c2e290>] (gic_of_init) from [<c0c3d450>] (of_irq_init+0x190/0x2e8)
[    0.000000] [<c0c3d450>] (of_irq_init) from [<c0c08b20>] (mvebu_init_irq+0x8/0x64)
[    0.000000] [<c0c08b20>] (mvebu_init_irq) from [<c0c02708>] (init_IRQ+0x28/0x88)
[    0.000000] [<c0c02708>] (init_IRQ) from [<c0c00ad8>] (start_kernel+0x1f4/0x390)
[    0.000000] [<c0c00ad8>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace f68728a0d3053b52 ]---
[    0.000000] OF: of_irq_init: children remain, but no parents
[    0.000000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    0.000000] pgd = c0004000
[    0.000000] [00000000] *pgd=00000000
[    0.000000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] task: c0d08480 task.stack: c0d00000
[    0.000000] PC is at scu_enable+0x0/0x50
[    0.000000] LR is at mvebu_init_irq+0x34/0x64
[    0.000000] pc : [<c01146fc>]    lr : [<c0c08b4c>]    psr: a00000d3
[    0.000000] sp : c0d01fb0  ip : 00000018  fp : 00000000
[    0.000000] r10: 00000000  r9 : c0c51a28  r8 : efffcd00
[    0.000000] r7 : c0d04100  r6 : ffffffff  r5 : c0daca40  r4 : ef7ed75c
[    0.000000] r3 : c0dacf10  r2 : ffffffff  r1 : ffffffff  r0 : 00000000
[    0.000000] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.000000] Process swapper/0 (pid: 0, stack limit = 0xc0d00220)
[    0.000000] Stack: (0xc0d01fb0 to 0xc0d02000)
[    0.000000] 1fa0:                                     c0c51a18 c0c02708 00000001 c0c00ad8
[    0.000000] 1fc0: ffffffff ffffffff 00000000 c0c00694 00000000 c0c51a28 00000000 c0daccd4
[    0.000000] 1fe0: c0d04118 c0c51a24 c0d09910 0000406a 414fc091 0000807c 00000000 00000000
[    0.000000] [<c01146fc>] (scu_enable) from [<c0c51a18>] (0xc0c51a18)
[    0.000000] Code: e12fff1e c0d08140 c0114388 c0ab2954 (e5903000) 
[    0.000000] ---[ end trace f68728a0d3053b53 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task!


Re: My Cloud Mirror Gen2
July 08, 2017 11:08PM
mcmg2
Re: My Cloud Mirror Gen2
July 09, 2017 12:39AM
I used dtb file on this page by hmartin.
Re: My Cloud Mirror Gen2
July 09, 2017 01:44AM
mcmg2,

> I used dtb file on this page by hmartin.

I have not seen the Mirror Gen 2 DTS before so not sure. Let hmartin help you. If you guys need to ask question later, I'll come back to this thread.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: My Cloud Mirror Gen2
July 09, 2017 04:23AM
Quote
bodhi
I have not seen the Mirror Gen 2 DTS before so not sure. Let hmartin help you.

Implying I have any idea about hardware I have never seen ;-)

Quote
mcmg2
I used dtb file on this page by hmartin.

I built the file you linked to from Google Drive. I have no idea if this is the correct DTS for the My Cloud Mirror Gen 2 or not. Seems like not!

Please try the attached DTB. It's for EX2U, but the hardware is similar enough it may work. Alternatively, try to boot with the uImage from peacemaker which includes the same DTB as attached.

I assume that you appended the DTB to the uImage?

Just to inform you, I am travelling for the next week and won't be able to work on this.



Edited 1 time(s). Last edit at 07/09/2017 04:23AM by hmartin.
Attachments:
open | download - armada-385-wd.dtb (15.7 KB)
mcmg2
Re: My Cloud Mirror Gen2
July 09, 2017 07:24AM
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 421 ms (8.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 490 ms (12.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-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 @ef7cc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    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: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019928K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 28648K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.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.023628] 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.043006] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049681] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057258] CPU: Testing write buffer coherency: ok
[    0.062350] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068091] Setting up static identity map for 0x100000 - 0x100058
[    0.074521] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079804] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283604] Booting CPU 1
[    0.286475] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286532] Brought up 2 CPUs
[    0.295294] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301614] CPU: All CPU(s) started in SVC mode.
[    0.306885] devtmpfs: initialized
[    0.312771] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320755] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330692] prandom: seed boundary self test passed
[    0.337655] prandom: 100 self tests passed
[    0.341816] pinctrl core: initialized pinctrl subsystem
[    0.347850] NET: Registered protocol family 16
[    0.353009] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417536] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425610] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483819] vgaarb: loaded
[    0.486858] SCSI subsystem initialized
[    0.491156] usbcore: registered new interface driver usbfs
[    0.496812] usbcore: registered new interface driver hub
[    0.502247] usbcore: registered new device driver usb
[    0.507598] media: Linux media interface: v0.10
[    0.512242] Linux video capture interface: v2.00
[    0.517922] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554187] VFS: Disk quotas dquot_6.6.0
[    0.558258] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573535] NET: Registered protocol family 2
[    0.578403] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585545] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592140] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598601] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604596] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611149] NET: Registered protocol family 1
[    0.615837] RPC: Registered named UNIX socket transport module.
[    0.621830] RPC: Registered udp transport module.
[    0.626596] RPC: Registered tcp transport module.
[    0.631385] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638023] Unpacking initramfs...
[    0.885851] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891957] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898730] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908074] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914285] audit: initializing netlink subsys (disabled)
[    0.919790] audit: type=2000 audit(0.910:1): initialized
[    0.925621] Initialise system trusted keyrings
[    0.930300] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936870] zbud: loaded
[    0.940049] NFS: Registering the id_resolver key type
[    0.945171] Key type id_resolver registered
[    0.949436] Key type id_legacy registered
[    0.953517] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960281] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966845] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.974289] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980927] orangefs_init: module version upstream loaded
[    0.988534] Key type asymmetric registered
[    0.992698] Asymmetric key parser 'x509' registered
[    0.997667] bounce: pool size: 64 pages
[    1.001667] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009126] io scheduler noop registered
[    1.013114] io scheduler deadline registered
[    1.017463] io scheduler cfq registered (default)
[    1.023155] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031823] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038772] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045095] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052034] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.058042] PCI: bus0: Fast back to back transfers disabled
[    1.063679] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071751] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.079932] PCI: bus1: Fast back to back transfers enabled
[    1.085607] PCI: bus2: Fast back to back transfers enabled
[    1.091211] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096242] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101767] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168404] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176022] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238391] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.296777] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.304734] console [ttyS0] disabled
[    1.328476] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337504] console [ttyS0] enabled
[    1.337504] console [ttyS0] enabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.373980] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.383998] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393108] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.402790] scsi host0: ahci-mvebu
[    1.406516] scsi host1: ahci-mvebu
[    1.410173] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415249] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423212] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428295] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.436787] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.444695] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451091] nand: Hynix H27U2G8F2CTR-BC
[    1.454945] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462560] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.469769] Bad block table found at page 131008, version 0x01
[    1.475967] Bad block table found at page 130944, version 0x01
[    1.482069] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488200] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.493627] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509457] 0x000000500000-0x000000a00000 : "uImage"
[    1.525183] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.541078] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.557798] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.573813] 0x00000d700000-0x00000eb00000 : "config"
[    1.589607] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.605530] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.622079] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.628901] libphy: Fixed MDIO Bus: probed
[    1.633327] libphy: mdio_driver_register: mv88e6085
[    1.638430] libphy: orion_mdio_bus: probed
[    1.647959] mvneta f1034000.ethernet eth0: Using random mac address 9e:d4:26:33:24:1a
[    1.656016] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.662597] ehci-pci: EHCI PCI platform driver
[    1.667104] ehci-orion: EHCI orion driver
[    1.671447] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.676797] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.684411] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.693022] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.698913] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.705733] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.712997] usb usb1: Product: xHCI Host Controller
[    1.717896] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.724374] usb usb1: SerialNumber: f10f0000.usb3
[    1.729493] hub 1-0:1.0: USB hub found
[    1.733283] hub 1-0:1.0: 1 port detected
[    1.737414] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.742773] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.750358] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.758565] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759227] ata1: SATA link down (SStatus 0 SControl 320)
[    1.769178] ata2: SATA link down (SStatus 0 SControl 320)
[    1.776247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.783510] usb usb2: Product: xHCI Host Controller
[    1.788417] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.794885] usb usb2: SerialNumber: f10f0000.usb3
[    1.799970] hub 2-0:1.0: USB hub found
[    1.803756] hub 2-0:1.0: 1 port detected
[    1.807990] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.813338] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.820934] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.829533] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.835396] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.842352] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.849628] usb usb3: Product: xHCI Host Controller
[    1.854528] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.861005] usb usb3: SerialNumber: f10f8000.usb3
[    1.866073] hub 3-0:1.0: USB hub found
[    1.869872] hub 3-0:1.0: 1 port detected
[    1.874009] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.879362] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.886929] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.895140] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.901970] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.909304] usb usb4: Product: xHCI Host Controller
[    1.914203] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.920681] usb usb4: SerialNumber: f10f8000.usb3
[    1.925747] hub 4-0:1.0: USB hub found
[    1.929544] hub 4-0:1.0: 1 port detected
[    1.933779] usbcore: registered new interface driver usblp
[    1.939378] usbcore: registered new interface driver usb-storage
[    1.945598] mousedev: PS/2 mouse device common for all mice
[    1.951814] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.959705] i2c /dev entries driver
[    1.975164] orion_wdt: Initial timeout 171 sec
[    1.981593] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.988978] hidraw: raw HID events driver (C) Jiri Kosina
[    1.994735] usbcore: registered new interface driver usbhid
[    2.000347] usbhid: USB HID core driver
[    2.004365] drop_monitor: Initializing network drop monitor service
[    2.010713] Netfilter messages via NETLINK v0.30.
[    2.015450] ip_set: protocol 6
[    2.018787] NET: Registered protocol family 10
[    2.023821] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.030805] NET: Registered protocol family 17
[    2.035435] 8021q: 802.1Q VLAN Support v1.8
[    2.039770] Key type dns_resolver registered
[    2.044191] ThumbEE CPU extension supported.
[    2.048499] Registering SWP/SWPB emulation handler
[    2.053825] registered taskstats version 1
[    2.057957] Loading compiled-in X.509 certificates
[    2.062804] zswap: loaded using pool lzo/zbud
[    2.111841] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.122562] Key type big_key registered
[    2.130450] Key type encrypted registered
[    2.135579] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 11:21:42 UTC (1499599302)
[    2.145944] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.191854] systemd-udevd[1315]: starting version 215
[    2.198013] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.290290] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.297041] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.305334] usb 1-1: Product: POLLEX 8G
[    2.309211] usb 1-1: Manufacturer: SRT
[    2.312979] usb 1-1: SerialNumber: 033113111111135234000373
[    2.319103] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.335489] scsi host2: usb-storage 1-1:1.0
[    2.479908] usbcore: registered new interface driver uas
[    3.368653] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379416] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385091] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.393830] sd 2:0:0:0: [sda] Write Protect is off
[    3.399344] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404681] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.413691]  sda: sda1
[    3.418386] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.457617] 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.613718] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.622373] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.629297] EXT4-fs (sda1): write access will be enabled during recovery
[   17.671725] EXT4-fs (sda1): recovery complete
[   17.684412] 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.604414] 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.905031] 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.
[   21.178679] 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/9e:d4:26:33:24:1a
Sending on   LPF/eth0/9e:d4:26:33:24:1a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   25.368394] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   25.376278] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   33.770652] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
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.109 -- renewal in 40836 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...
2444 (syslogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2443 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login:

looks like it boots ok.
mcmg2
Re: My Cloud Mirror Gen2
July 09, 2017 07:37AM
debian login: root
Password: 
Last login: Fri Feb  3 22:22:51 PST 2017 from 192.168.0.100 on pts/0
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.109
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
 04:26:58 up 5 min,  1 user,  load average: 0.01, 0.06, 0.03
root@debian:~# printenv
SHELL=/bin/bash
TERM=linux
HUSHLOGIN=FALSE
USER=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
SHLVL=1
HOME=/root
LOGNAME=root
_=/usr/bin/printenv
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00500000 00020000 "uImage"
mtd2: 00500000 00020000 "uRamdisk"
mtd3: 0b900000 00020000 "image.cfs"
mtd4: 00f00000 00020000 "rescue fw"
mtd5: 01400000 00020000 "config"
mtd6: 00a00000 00020000 "reserve1"
mtd7: 00a00000 00020000 "reserve2"
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
baudrate=115200
stdin=serial,cros-ec-keyb
stdout=serial,lcd
stderr=serial,lcd
root@debian:~# 

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: