Welcome! Log In Create A New Profile

Advanced

Debian Installation on Thecus N2350 (Marvell Armada 385)

Posted by lordzahl 
Debian Installation on Thecus N2350 (Marvell Armada 385)
February 12, 2018 01:21PM
Hello,

I have bought a Thecus N2350 NAS. It is a Marvell Armada 385 based NAS with 2xSATA and 1GB Ram.
I would like to run Debian on it and was very happy that you guys run Debian on very similar devices:
"Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs"

Since i am new to hack embedded devices, i need some help. I have opened the box to look for UART, but none was marked. You can see a shot of the PCB attached (Source: PCB image source).
If someone can identify an UART on the PCB, let me know. I have a teensy which i could use to read the UART. J5 and J6 are reachable without opening the device. J5 might be a good bet, since it has three pins (two are bridged with a jumper).

Actually i hope that this might not be needed at all, since booting from USB is already supported. Thecus provides a rescue usb image, which you can find here: rescue usb image

Let me cite from the included manual:
Quote
Thecus
A. Download this rescue file.
B. Please unzip and copy the "rescure_fw" folder to an empty 2GB
or above USB driver (recommend USB2.0) (FAT/FAT32) root folder.
C. Power NAS off and eject all HDD out of NAS.
D. Plug USB driver on NAS rear 2nd USB3.0 port (above RJ45 port).
E. Power NAS up and wait about 2~3 mins
F. Since update completed and system would power off automatically.

Examples: USB root.

USB root:
¢x
¢|¢wrescue_fw
bzImage
ramdisk_rescue
rescue_fw.img
rescue_fw.img.md5
u-boot.bin
u-boot.bin.md5
ubifs.img
ubifs.img.md5
N2350_3.02.02.1_rescue_fw.txt or N4350_3.02.02_.1rescue_fw.txt

There is also a u-boot script included (without the non-ascii header) "rescue_fw.img":
mw 0xf1018104 0xfecf3fff
mw 0xf1018108 0x4000

if test ${firstboot} = 1; then
saveenv
fi

fatload usb 0:1 0x2000000 rescue_fw/bzImage
fatload usb 0:1 0x3000000 rescue_fw/ramdisk_rescue
set bootargs 'root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3'
bootm 0x2000000 0x3000000

The header includes two strings, which imply that the "mw" statements enable LEDs.

So i tried booting a usb-stick like in the ""Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs" thread, but i had no luck.
Any help would be appreciated or pointers, where i could get information to start.
Thanks!
Cheers, lordzahl

Edit: I have identified a serial port. J1 is the serial port (see attached images) on the backside of the board. So one has to remove the outer enclosure to reach it. To get there, unscrew the screws under the rubber front stands and pull the fron cover off. Unscrew two screws in the back. Then slide the cover to the front.

J1 serial port has the following connection starting from the arrow/square one:
Arrow/square: Vcc 3.3V
2nd: TX
3rd: RX
4th: Ground

I took two logs, 1st normal booting (seems like i missed the Boot Rom that time). 2nd time i hit a key and stopped autoboot and tried inputting 'help'.
I guess that is all for today.


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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  2  1  0 
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
** Bad device usb 0 **
incorrect device type in spi0=spi_flash
invalid mtd device 'spi_flash'
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000020000000 : "mtd=0"
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=0"
UBI: MTD device size:            512 MiB
UBI: number of good PEBs:        4085
UBI: number of bad PEBs:         11
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     4
UBI: available PEBs:             5
UBI: total number of reserved PEBs: 4080
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 1, name "boot"
UBIFS: mounted read-only
UBIFS: file system size:   91422720 bytes (89280 KiB, 87 MiB, 720 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  0 bytes (0 KiB)
Loading file 'boot/bzImage' to addr 0x02000000 with size 5069915 (0x004d5c5b)...
Done
Loading file 'boot/ramdisk' to addr 0x03000000 with size 16011097 (0x00f44f59)...
Done
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   linux-3.10.thecus.develop-2015_T
   Created:      2017-12-22   8:19:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5069851 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   
   Created:      2017-12-22   8:28:35 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    16011033 Bytes = 15.3 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] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.105.14 (root@localhost.localdomain) (gcc version 4.8.5 (Marvell GCC release 20160307-7f3c83a0) ) #1 SMP Fri Dec 22 16:19:06 CST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c16ab000 s8704 r8192 d15872 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0
[    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] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1011276k/1011276k available, 37300k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09162e4   (9273 kB)
[    0.000000]       .init : 0xc0917000 - 0xc095b200   ( 273 kB)
[    0.000000]       .data : 0xc095c000 - 0xc09c82e0   ( 433 kB)
[    0.000000]        .bss : 0xc09c82e0 - 0xc0a3b714   ( 462 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p9
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.000590] Calibrating delay loop... 2131.55 BogoMIPS (lpj=10657792)
[    0.060021] pid_max: default: 32768 minimum: 301
[    0.060139] Mount-cache hash table entries: 512
[    0.060599] Initializing cgroup subsys memory
[    0.060620] Initializing cgroup subsys devices
[    0.060625] Initializing cgroup subsys freezer
[    0.060630] Initializing cgroup subsys blkio
[    0.060635] Initializing cgroup subsys perf_event
[    0.060664] CPU: Testing write buffer coherency: ok
[    0.060810] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060855] Setting up static identity map for 0xc06d9470 - 0xc06d94c8
[    0.061064] mvebu-pmsu: Initializing Power Management Service Unit
[    0.061120] Initializing CPU Reset module
[    0.061848] CPU1: Booted secondary processor
[    0.120818] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.120893] Brought up 2 CPUs
[    0.120906] SMP: Total of 2 processors activated (4256.56 BogoMIPS).
[    0.120911] CPU: All CPU(s) started in SVC mode.
[    0.121304] devtmpfs: initialized
[    0.124285] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.124518] xor: measuring software checksum speed
[    0.220728]    arm4regs  :  1700.000 MB/sec
[    0.320663]    8regs     :  1257.600 MB/sec
[    0.420601]    32regs    :  1253.600 MB/sec
[    0.420607] xor: using function: arm4regs (1700.000 MB/sec)
[    0.420614] pinctrl core: initialized pinctrl subsystem
[    0.421000] regulator-dummy: no parameters
[    0.421207] NET: Registered protocol family 16
[    0.422046] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.425207] irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
[    0.425739] irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
[    0.429838] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.429845] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.448329] bio: create slab <bio-0> at 0
[    0.610640] raid6: int32x1    123 MB/s
[    0.780545] raid6: int32x2    200 MB/s
[    0.950291] raid6: int32x4    169 MB/s
[    1.120298] raid6: int32x8    193 MB/s
[    1.120303] raid6: using algorithm int32x2 (200 MB/s)
[    1.120308] raid6: using intx1 recovery algorithm
[    1.120636] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.120664] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.120838] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.120849] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.120858] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.120867] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.121229] PCI: bus0: Fast back to back transfers disabled
[    1.121239] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.121248] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.121377] PCI: bus1: Fast back to back transfers enabled
[    1.121524] PCI: bus2: Fast back to back transfers enabled
[    1.121562] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.121573] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.121584] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.121592] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.122083] vgaarb: loaded
[    1.122441] SCSI subsystem initialized
[    1.123088] usbcore: registered new interface driver usbfs
[    1.123175] usbcore: registered new interface driver hub
[    1.123300] usbcore: registered new device driver usb
[    1.123705] Linux video capture interface: v2.00
[    1.123955] pps_core: LinuxPPS API ver. 1 registered
[    1.123961] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.124023] PTP clock support registered
[    1.124853] Bluetooth: Core ver 2.16
[    1.124936] NET: Registered protocol family 31
[    1.124942] Bluetooth: HCI device and connection manager initialized
[    1.124952] Bluetooth: HCI socket layer initialized
[    1.124959] Bluetooth: L2CAP socket layer initialized
[    1.124974] Bluetooth: SCO socket layer initialized
[    1.125408] Switching to clocksource armada_370_xp_clocksource
[    1.125444] cfg80211: Calling CRDA to update world regulatory domain
[    1.134631] NET: Registered protocol family 2
[    1.135153] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135251] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135349] TCP: Hash tables configured (established 8192 bind 8192)
[    1.135393] TCP: reno registered
[    1.135403] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.135457] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.135650] NET: Registered protocol family 1
[    1.137228] RPC: Registered named UNIX socket transport module.
[    1.137235] RPC: Registered udp transport module.
[    1.137240] RPC: Registered tcp transport module.
[    1.137244] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.137362] Trying to unpack rootfs image as initramfs...
[    2.066781] Freeing initrd memory: 15628K (c3001000 - c3f44000)
[    2.067132] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    2.071443] bounce pool size: 64 pages
[    2.088373] VFS: Disk quotas dquot_6.5.2
[    2.088778] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.093312] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.096429] NFS: Registering the id_resolver key type
[    2.096451] Key type id_resolver registered
[    2.096457] Key type id_legacy registered
[    2.096469] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.096914] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    2.097789] fuse init (API version 7.22)
[    2.099219] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    2.102227] msgmni has been set to 1507
[    2.103922] async_tx: api initialized (async)
[    2.104526] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.104911] io scheduler noop registered
[    2.104919] io scheduler deadline registered (default)
[    2.104946] io scheduler cfq registered
[    2.106434] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.107355] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.146010] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.176008] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.176021] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.177334] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.215989] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.246004] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    2.246018] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.316329] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    2.338778] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    3.209143] console [ttyS0] enabled
[    3.216925] brd: module loaded
[    3.394833] loop: loaded (max 210 devices)
[    3.401419] nbd: registered device at major 43
[    3.418368] i2c /dev entries driver
[    3.424072] pca9532_init
[    3.432510] pca9532_id_init
[    3.441176] i2c i2c-0: Found pca9532_id at 0x61
[    3.446003] pca9532_id 0-0061: setting platform data
[    3.480727] thecus_io: board_num: 0h
[    3.484318] thecus_io: board_idx: 0h
[    3.487983] thecus_board = BOARD_N2350, thecus_mbtype = a385!
[    3.496611] SCSI Media Changer driver v0.25 
[    3.502331] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.511179] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    3.522371] scsi0 : ahci_mv_platform
[    3.526799] scsi1 : ahci_mv_platform
[    3.530952] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.538935] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.550713] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.565269] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    3.578122] Bad block table found at page 261824, version 0x01
[    3.585065] Bad block table found at page 261760, version 0x01
[    3.591132] nand_read_bbt: bad block at 0x0000061e0000
[    3.596313] nand_read_bbt: bad block at 0x00000e1c0000
[    3.601472] nand_read_bbt: bad block at 0x00000e1e0000
[    3.606686] nand_read_bbt: bad block at 0x00001ff80000
[    3.611845] nand_read_bbt: bad block at 0x00001ffa0000
[    3.617012] nand_read_bbt: bad block at 0x00001ffc0000
[    3.622170] nand_read_bbt: bad block at 0x00001ffe0000
[    3.627357] 1 ofpart partitions found on MTD device armada-nand
[    3.633301] Creating 1 MTD partitions on "armada-nand":
[    3.638558] 0x000000000000-0x000020000000 : "ubifs"
[    3.647453] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    3.652367] 2 ofpart partitions found on MTD device spi1.0
[    3.657900] Creating 2 MTD partitions on "spi1.0":
[    3.662714] 0x000000000000-0x000000400000 : "U-Boot-img"
[    3.669677] 0x000000100000-0x000000400000 : "U-Boot-env"
[    3.681670] libphy: Fixed MDIO Bus: probed
[    3.686727] SoC: model = 0x6820, revision = 0x4
[    3.691369] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    3.696903]   o 3 Giga ports supported
[    3.700668]   o SKB recycle supported for SWF (Disabled)
[    3.706053]   o NETA acceleration mode 4
[    3.709991]   o BM supported for CPU: 4 BM pools
[    3.714626]   o PnC supported (Enabled)
[    3.718484]   o RX Queue support: 8 Queues * 256 Descriptors
[    3.724166]   o TX Queue support: 8 Queues * 532 Descriptors
[    3.729853]   o GSO supported
[    3.732831]   o GRO supported
[    3.735814]   o Receive checksum offload supported
[    3.740624]   o Transmit checksum offload supported
[    3.745525]   o Driver ERROR statistics enabled
[    3.750072]   o Driver INFO statistics enabled
[    3.754532]   o Driver DEBUG statistics enabled
[    3.759085] 
[    3.761942] port #0: is_sgmii=1, is_rgmii=0, phy_addr=1
[    3.767249]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    3.775603] 
[    3.777100]   o Port 0 is connected to Linux netdevice
[    3.787766]     o eth0, ifindex = 3, GbE port = 0
[    3.795941] 	giga p=0: mtu=1500, mac=be:e7:d9:6e:0c:50 (random)
[    3.801888] 
[    3.804324] libphy: orion_mdio_bus: probed
[    3.810364] PPP generic driver version 2.4.2
[    3.815352] PPP BSD Compression module registered
[    3.820128] PPP Deflate Compression module registered
[    3.825212] PPP MPPE Compression module registered
[    3.830042] NET: Registered protocol family 24
[    3.834768] usbcore: registered new interface driver asix
[    3.840437] usbcore: registered new interface driver ax88179_178a
[    3.846820] usbcore: registered new interface driver cdc_ether
[    3.852892] usbcore: registered new interface driver net1080
[    3.858807] usbcore: registered new interface driver cdc_subset
[    3.864962] usbcore: registered new interface driver zaurus
[    3.870830] usbcore: registered new interface driver cdc_ncm
[    3.876547] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.883103] ehci-pci: EHCI PCI platform driver
[    3.887792] ehci-orion: EHCI orion driver
[    3.891933] orion-ehci f1058000.usb: EHCI Host Controller
[    3.897393] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.905070] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    3.905469] ata2: SATA link down (SStatus 0 SControl 300)
[    3.905502] ata1: SATA link down (SStatus 0 SControl 300)
[    3.935445] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.941436] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.948271] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.955534] usb usb1: Product: EHCI Host Controller
[    3.960434] usb usb1: Manufacturer: Linux 3.10.105.14 ehci_hcd
[    3.966299] usb usb1: SerialNumber: f1058000.usb
[    3.971688] hub 1-0:1.0: USB hub found
[    3.975485] hub 1-0:1.0: 1 port detected
[    3.980174] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.985541] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.993531] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    3.999361] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    4.006194] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.013448] usb usb2: Product: xHCI Host Controller
[    4.018360] usb usb2: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.024218] usb usb2: SerialNumber: f10f0000.usb3
[    4.029682] hub 2-0:1.0: USB hub found
[    4.033460] hub 2-0:1.0: 1 port detected
[    4.037591] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.042943] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    4.050524] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    4.057354] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.064608] usb usb3: Product: xHCI Host Controller
[    4.069514] usb usb3: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.075371] usb usb3: SerialNumber: f10f0000.usb3
[    4.086395] hub 3-0:1.0: USB hub found
[    4.090171] hub 3-0:1.0: 1 port detected
[    4.094287] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.099656] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.107667] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    4.113476] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    4.120313] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.127574] usb usb4: Product: xHCI Host Controller
[    4.132473] usb usb4: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.138341] usb usb4: SerialNumber: f10f8000.usb3
[    4.144066] hub 4-0:1.0: USB hub found
[    4.147855] hub 4-0:1.0: 1 port detected
[    4.151925] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.157278] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    4.164833] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    4.171670] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.178930] usb usb5: Product: xHCI Host Controller
[    4.183830] usb usb5: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.189698] usb usb5: SerialNumber: f10f8000.usb3
[    4.195750] hub 5-0:1.0: USB hub found
[    4.199526] hub 5-0:1.0: 1 port detected
[    4.204820] mv-udc f1058100.udc: successful probe UDC device without clock gating.
[    4.214077] mousedev: PS/2 mouse device common for all mice
[    4.223889] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    4.612553] lm75 0-0049: hwmon0: sensor 'lm75'
[    4.666693] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    4.675764] orion_wdt: Initial timeout 171 sec
[    4.680633] thecus_event : started
[    4.684057] md: linear personality registered for level -1
[    4.689592] md: raid0 personality registered for level 0
[    4.694926] md: raid1 personality registered for level 1
[    4.700280] md: raid10 personality registered for level 10
[    4.705796] md: raid6 personality registered for level 6
[    4.711129] md: raid5 personality registered for level 5
[    4.716469] md: raid4 personality registered for level 4
[    4.721802] md: multipath personality registered for level -4
[    4.728271] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    4.736866] dm_crypt using the OCF package.
[    4.741528] device-mapper: multipath: version 1.6.0 loaded
[    4.747066] device-mapper: multipath round-robin: version 1.0.0 loaded
[    4.753622] device-mapper: multipath queue-length: version 0.1.0 loaded
[    4.760274] device-mapper: multipath service-time: version 0.2.0 loaded
[    4.782099] cpuidle: using governor ladder
[    4.786401] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    4.795800] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
[    4.804899] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff
[    4.814761] mvCesaInit: channels=2, session=640, queue=256
[    4.840241] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    4.850101] cesadev_init(c0937940)
[    4.855702] usbcore: registered new interface driver usbhid
[    4.861306] usbhid: USB HID core driver
[    4.865879] Loading Marvell spi device
[    4.872614] arp_tables: (C) 2002 David S. Miller
[    4.877346] TCP: cubic registered
[    4.880680] Initializing XFRM netlink socket
[    4.887565] NET: Registered protocol family 10
[    4.893522] sit: IPv6 over IPv4 tunneling driver
[    4.899989] NET: Registered protocol family 17
[    4.904492] NET: Registered protocol family 15
[    4.909129] Bridge firewalling registered
[    4.913207] 8021q: 802.1Q VLAN Support v1.8
[    4.917451] Key type dns_resolver registered
[    4.922009] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    4.942236] regulator-dummy: disabling
[    4.966565] UBI: attaching mtd0 to ubi0
[    6.608762] UBI: scanning is finished
[    6.619486] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 45, need 69
[    6.664138] UBI: attached mtd0 (name "ubifs", size 512 MiB) to ubi0
[    6.670494] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.677356] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.684097] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.691039] UBI: good PEBs: 4085, bad PEBs: 11, corrupted PEBs: 0
[    6.697186] UBI: user volume: 4, internal volumes: 1, max. volumes count: 128
[    6.704358] UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 245953803
[    6.713391] UBI: available PEBs: 0, total reserved PEBs: 4085, PEBs reserved for bad PEB handling: 45
[    6.722817] UBI: background thread "ubi_bgt0d" started, PID 1529
[    6.895975] mvebu-rtc f10a3800.rtc: setting system clock to 2018-02-12 21:19:52 UTC (1518470392)
[    6.942145] Freeing unused kernel memory: 272K (c0917000 - c095b000)

starting pid 1634, tty '': '/etc/rc.d/rc.sysinit'
Mounting /proc
Remounting root device read-write...
Mounting other local filesystems...
/var                     : successfully mounted
/dev/pts                 : successfully mounted
/proc                    : already mounted
/sys                     : successfully mounted
Mounting /var under /dev/shm...
[    7.208107] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.225698] uhci_hcd: USB Universal Host Controller Interface driver
[    7.310794] usbcore: registered new interface driver usb-storage
[    7.375258] UBIFS: background thread "ubifs_bgt0_3" started, PID 1729
[    7.436495] UBIFS: mounted UBI device 0, volume 3, name "rom"
[    7.442272] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.451468] UBIFS: FS size: 401498112 bytes (382 MiB, 3162 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    7.461436] UBIFS: reserved for root: 0 bytes (0 KiB)
[    7.466522] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2B0AA742-5411-4988-B342-2DF8A11078C2, small LPT model
[    7.486887] UBIFS: background thread "ubifs_bgt0_3" stops
Setting up loopback networking...
[    7.736090] UBIFS: background thread "ubifs_bgt0_2" started, PID 1749
[    7.766767] UBIFS: recovery needed
[    7.933246] UBIFS: recovery completed
[    7.937014] UBIFS: mounted UBI device 0, volume 2, name "etc"
[    7.942793] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.951983] UBIFS: FS size: 8126464 bytes (7 MiB, 64 LEBs), journal size 1650688 bytes (1 MiB, 13 LEBs)
[    7.961423] UBIFS: reserved for root: 0 bytes (0 KiB)
[    7.966506] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 19DE1F75-8119-4293-BAE6-068A80F2F200, small LPT model
[    8.032836] UBIFS: background thread "ubifs_bgt0_4" started, PID 1757
[    8.062438] UBIFS: recovery needed
[    8.133382] UBIFS: recovery completed
[    8.137135] UBIFS: mounted UBI device 0, volume 4, name "version"
[    8.143264] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.152457] UBIFS: FS size: 6094848 bytes (5 MiB, 48 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[    8.161906] UBIFS: reserved for root: 0 bytes (0 KiB)
[    8.166989] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8A43601A-8B91-47F3-89A8-2D52E4A458F3, small LPT model
[    8.309648] eth0: mac address changed

starting pid 1792, tty '': '/sbin/console'


(none) login: ['', '', '']
('rsync_service', {'status': '1'})
('web_service', {'status': '1'})
('webdav', {'status': '1'})
('awss3', {'status': '1'})
('snmp_service', {'status': '1'})
TELNET 0
('itunes_service', {'status': '1'})
('ha', {'status': '0'})
('ssd_cache', {'status': '0'})
('upnpd', {'status': '1'})
('sed', {'status': '1'})
('tftp', {'status': '1'})
('vpn_server', {'status': '1'})
('swift', {'status': '0'})
('stack', {'status': '1'})
('auto_upgrade', {'status': '1'})
('ftp', {'status': '1'})
('failover', {'status': '1'})
('iso_mount', {'status': '1'})
('nfs', {'status': '1'})
('scale_out', {'status': '0'})
Bonjour 0
('disk_clone_wipe', {'status': '1'})
('ssh_service', {'status': '1'})
IHM 1
Snapshot 1
('iscsi', {'status': '1'})
>>>>>>>>>>>>>>>>>>>>Start: Initial LCM

<<<<<<<<<<<<<<<<<<<<End: Initial LCM

>>>>>>>>>>>>>>>>>>>>Start: Load Drivers

modprobe: FATAL: Module i915 not found.
modprobe: FATAL: Module e1000e not found.
modprobe: FATAL: Module igb not found.
modprobe: FATAL: Module ixgbe not found.
modprobe: FATAL: Module tehuti not found.
modprobe: FATAL: Module i40e not found.
modprobe: FATAL: Module bnx2x not found.
modprobe: FATAL: Module tn40xx not found.
modprobe: FATAL: Module tn4022 not found.
modprobe: FATAL: Module be2net not found.
modprobe: FATAL: Module tg3 not found.
[   14.643322] usbcore: registered new interface driver usblp
[   14.689221] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   14.776228] exFAT: Version 1.2.9
<<<<<<<<<<<<<<<<[   14.859716] Clear Critical Queue. 
<<<<End: Load Drivers

>>>>>>>>>>>>>>>>>>>>Start: Initial Settings

[9;0]Alarm off
[   15.946707] udev: starting version 151
<<<<<<<<<<<<<<<<<<<<End: Initial Settings

>>>>>>>>>>>>>>>>>>>>Start: Check Reset to Default

<<<<<<<<<<<<<<<<<<<<End: Check Reset to Default

>>>>>>>>>>>>>>>>>>>>Start: Config Management

<<<<<<<<<<<<<<<<<<<<End: Config Management

>>>>>>>>>>>>>>>>>>>>Start: Network Initialize

route: ioctl 0x890c failed: No such process
[   17.834820] pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
[   17.842303] eth0: link up
[   17.845053] eth0: started
[   21.591869] eth0: link down
[   25.775330] eth0: link up, full duplex, speed 1 Gbps
<<<<<<<<<<<<<<<<<<<<End: Network Initialize

>>>>>>>>>>>>>>>>>>>>Start: Unlock SED Disk

<<<<<<<<<<<<<<<<<<<<End: Unlock SED Disk

>>>>>>>>>>>>>>>>>>>>Start: Initial Disk

<<<<<<<<<<<<<<<<<<<<End: Initial Disk

>>>>>>>>>>>>>>>>>>>>Start: Factory Test

<<<<<<<<<<<<<<<<<<<<End: Factory Test

>>>>>>>>>>>>>>>>>>>>Start: Assemble RAID

<<<<<<<<<<<<<<<<<<<<End: Assemble RAID

>>>>>>>>>>>>>>>>>>>>Start: Upgrade Firmware Version

<<<<<<<<<<<<<<<<<<<<End: Upgrade Firmware Version

>>>>>>>>>>>>>>>>>>>>Start: Activate Monitor

<<<<<<<<<<<<<<<<<<<<End: Activate Monitor

>>>>>>>>>>>>>>>>>>>>Start: Environment Setting

<<<<<<<<<<<<<<<<<<<<End: Environment Setting

>>>>>>>>>>>>>>>>>>>>Start: Start Service

[   50.770371] Rounding down aligned max_sectors from 4294967295 to 4294967288
[   53.091021] Loading iSCSI transport class v2.0-870.
[   54.096792] ip_tables: (C) 2000-2006 Netfilter Core Team
2018-02-13 05:20:49,779 - ERROR - SSDCacheManager - Fail to load necessary kernel modules.
      cmd = /sbin/modprobe enhanceio
exit_code = 1
   output = 

<<<<<<<<<<<<<<<<<<<<End: Start Service

>>>>>>>>>>>>>>>>>>>>Start: Boot OK

/bin/sh: /usr/bin/sounds/startupsound: No such file or directory
2018-02-13 05:20:54,991 - WARNING - WebDAVService - WebDAV is not process, please start WebDAV first
<<<<<<<<<<<<<<<<<<<<End: Boot OK

>>>>>>>>>>>>>>>>>>>>Boot Process Successful<<<<<<<<<<<<<<<<<<<<

>>>>>>>>>>>>>>>>>>>>Boot Process Finish<<<<<<<<<<<<<<<<<<<<

BootROM - 1.73

Booting from SPI flash



General initialization - Version: 1.0.0

AVS selection from EFUSE disabled (Skip reading EFUSE values)

Overriding default AVS value to: 0x23

Detected Device ID 6820

High speed PHY - Version: 2.0


Init Customer board board SerDes lanes topology details:

 | Lane # | Speed|    Type     |

 ------------------------------|

 |   0    |  0   |  SGMII0     |

 |   1    |  3   |  SATA0      |

 |   2    |  3   |  SATA1      |

 |   4    |  5   |  USB3 HOST0 |

 |   5    |  5   |  USB3 HOST1 |

 -------------------------------

High speed PHY - Ended Successfully

DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0

DDR4 Training Sequence - Switching XBAR Window to FastPath Window 

DDR4 Training Sequence - Ended Successfully

BootROM: Image checksum verification PASSED


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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  2  0 
Marvell>> shelp\n
Unknown command 'shelpn' - try 'help'
Marvell>> help
?       - alias for 'help'
Creset  - Creset	- Run 'reset' or boot command in a loop, while counting.

SatR    - Sample At Reset sub-system
active_units- print active units on board
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
boot_menu- command allows to select boot script from boot device
	example: boot_menu
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
bubt    - bubt	- Burn an image on the Boot flash device.

chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
cpss_env- set cpss environment variables permanently

crc32   - checksum calculation
date    - get/set/reset date & time
ddrPhyRead- ddrPhyRead - Read DDR PHY register

ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- diskboot- boot from IDE device

dma     - dma	- Perform DMA using the XOR engine

echo    - echo args to console
editenv - edit environment variable
eeprom  - EEPROM sub-system
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
flash_part_print- flash_part_print  - print spi/nand FLASH memory information

fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
ide     - ide     - IDE sub-system

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ir      - ir	- reading and changing MV internal register values.

itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - map	- Display address decode windows

md      - memory display
me      - me	- PCIe master enable

mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mp      - mp	- map PCIe BAR

mtdburn - Burn a Linux image and Filesystem` on the NAND/SPI flash.

mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mvsource- mvsource	- Burn a script image on flash device.

mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
pciePhyRead- phyRead	- Read PCI-E Phy register

pciePhyWrite- pciePhyWrite	- Write PCI-E Phy register

phyRead - phyRead	- Read Phy register

phyWrite- phyWrite	- Write Phy register

ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
qsgmii_sel-  Select SFP or QSGMII modes on bc2.

rcvr    - rcvr	- Start recovery process (with TFTP server)

reset   - Perform RESET of the CPU
resetenv- resetenv	- Erase environment sector to reset all variables to default.

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
scsi    - SCSI sub-system
scsiboot- boot from SCSI device
se      - se	- PCIe Slave enable

setenv  - set environment variables
sf      - SPI flash sub-system
sg      - sg	- scanning the PHYs status

showvar - print local hushshell variables
sleep   - delay execution for some time
smiscan - smiscan - Scan for marvell smi devices.

source  - run script from memory
sp      - scan and detect all devices on PCI-e interface
sspi    - SPI utility command
stage_boot- command to load script/image from different devices
	example: stage_boot hd_img pxe
switchCountersRead- switchCntPrint	- Read switch port counters.

switchPhyRegRead- - Read switch register

switchPhyRegWrite- - Write switch register

switchRegRead- switchRegRead	- Read switch register

switchRegWrite- switchRegWrite	- Write switch register

sys_restore- sys_restore	- Search for install script on USB DOK and start installation of linux kernel and rootfs.

sysboot - command to get and boot from syslinux files
temp    - temp	- Display the device temperature.

tempCmd0- tempCmd - This command allocated for monitor extinction

tempCmd1- tempCmd - This command allocated for monitor extinction

tempCmd2- tempCmd - This command allocated for monitor extinction

tempCmd3- tempCmd - This command allocated for monitor extinction

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
training- training	- prints the results of the DDR3 Training.

trainingStability- training	- prints the results of the DDR3 Training.

true    - do nothing, successfully
ts_report- ts_report	- report touch screen coordinate

ts_test - ts_test	- test touch screen

ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
whoAmI  - - reading CPU ID

Marvell>>



Edited 2 time(s). Last edit at 02/13/2018 04:12PM by lordzahl.
Attachments:
open | download - thecus_n2350_board.jpg (177.6 KB)
open | download - IMG_20180212_212746.jpg (324 KB)
open | download - IMG_20180212_212742.jpg (329.5 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 12, 2018 04:41PM
One other observation for the future: The GPL sources provided for the NAS by Thecus only includes one dts file, which matches the "model" string shown by my kernel boot up dump "Marvell Armada 385 Development Board".
I will attach it here for future reference.

Note that the mainline 3.16 kernel has a dts with the exact same model string:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/arch/arm/boot/dts/armada-385-db.dts?h=v3.16.53

Is there any better way to identify the dts by the kernel log?

edit: Please take this with a grain of salt: The provided gpl source is a 4.x kernel. But my NAS clearly uses a 3.10 kernel. Still when i asked for the gpl sources at Thecus, i only got the 4.x kernel source.



Edited 1 time(s). Last edit at 02/12/2018 04:53PM by lordzahl.
Attachments:
open | download - armada-388-db.dts (4.4 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 13, 2018 01:03AM
lordzahl,

> One other observation for the future: The GPL
> sources provided for the NAS by Thecus only
> includes one dts file, which matches the "model"
> string shown by my kernel boot up dump "Marvell
> Armada 385 Development Board".
> I will attach it here for future reference.

Yes. This DTS was basically what I started with. And then I added more specific hardware nodes for the Zyxel NAS326 (info extracted from the GPL source). From there, others did the same for the WD My Cloud EXT2100/4100 series. Others went through the same process for other WD boxes.

You could boot the rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 on USB with this reference DTS at the beginning. And then we'll use some nodes from the Zyxel NAS326 DTS, plus GPL info, and beef up this box DTS.

For now. Interrupt serial console at count down, and get a listing of the u-boot envs:
printenv
The envs will tell how we can boot the rootfs Debian-4.12.4-mvebu-tld-1 on USB on this box.

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



Edited 1 time(s). Last edit at 02/13/2018 01:06AM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 13, 2018 03:05PM
Hi bodhi,

Thanks for helping! Btw. ext2ls on the usb stick with your image is working. I guess from here on i could input something like ex2100 install to uboot,
but replace the initrd address with 0x3000000?
But i am not sure, so i will wait for your answer.

The printenv output is:
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/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0
bootargs_dflt=$console $nandEcc $mtdparts_lgcy $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=:$gatewayip:255.255.255.0:Armada:$netdev:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start;if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;then imi 0x2000000;source 0x2000000;fi;ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000;
bootcmd_auto=setenv bootargs_end :$gatewayip:255.255.255.0:Armada:$netdev:none; stage_boot $boot_order
bootcmd_fdt=setenv bootargs_end :$gatewayip:255.255.255.0:Armada:$netdev:none; 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=setenv bootargs_end :$gatewayip:255.255.255.0:Armada:$netdev:none; 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=setenv bootargs_end :$gatewayip:255.255.255.0:Armada:$netdev:none; tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=setenv bootargs_end :$gatewayip:255.255.255.0:Armada:$netdev:none; tftpboot 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts_lgcy $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end  video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel;  bootm $loadaddr; 
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:00:2b:03
eth1mtu=1500
eth2addr=00:50:43:00:54:03
eth2mtu=1500
eth3addr=00:50:43:2b:54:00
eth3mtu=1500
ethact=egiga0
ethaddr=00:14:FD:19:C3:9D
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x.dtb
filesize=0x18f
firstboot=0
gatewayip=10.4.50.254
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
limit_dram_size=yes
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand,spi0=spi_flash
mtdparts='mtdparts=armada-nand:-(ubifs);spi_flash:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
mtdparts_lgcy='mtdparts=armada-nand:8m(boot)ro,8m@8m(kernel),-(rootfs);spi_flash:4m(boot),-(spi-rootfs);pxa3xx_nand-0:8m(boot)ro,8m@8m(kernel),-(rootfs)'
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:03:54:00
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netdev=eth0
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
run_script=no
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
sd_detection_dat3=no
serverip=10.4.50.38
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts_lgcy root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
thecus_uboot=1.0.9
usb0Mode=host
usbActive=0
usbType=3
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4087/65532 bytes
Marvell>>



Edited 3 time(s). Last edit at 02/13/2018 04:21PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 13, 2018 04:57PM
lordzahl,

> Thanks for helping! Btw. ext2ls on the usb stick
> with your image is working. I guess from here on i
> could input something like
> ex2100
> install
to uboot,
> but replace the initrd address with 0x3000000?
> But i am not sure, so i will wait for your
> answer.

Don't do that! each box is different. The EX2100 instruction or Zyxel NAS326 instruction in the release thread is not applicable to your box.

I'll take a look at your envs and suggest how to add some envs to boot the new rootfs. Until we know that the new envs boot both new Debian rootfs and stock OS, you should not save the envs or flash any thing.

The first important thing to do is to dump NAND mtds, and use mtd0 dump to try kwboot with it. "mtd0_N2350" is the file name for the dump.

nanddump --noecc --omitoob -f mtd0_N2350 /dev/mtd0

From another Linux box:

kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd0_N2350  -p
if that does not work, try
kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd0_N2350  -p  -s 0 -q 1

For detailed explanation about UART booting with kwboot, see: https://forum.doozan.com/read.php?3,7852,7852. This post is old, but applicable to all Marvell Kirwood/Armada SoCs.

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



Edited 1 time(s). Last edit at 02/13/2018 09:14PM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 13, 2018 09:33PM
As you said


Quote

Actually i hope that this might not be needed at all, since booting from USB is already supported. Thecus provides a rescue usb image, which you can find here: rescue usb image

And the bootcmd shows that:

Quote

bootcmd=usb start;if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;then imi 0x2000000;source 0x2000000;fi;ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000;


So we should try

1. Create the rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 on USB. See the release thread section:

Quote

Updated 23 Aug 2017:

This Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 has been uploaded.

Basic Debian stretch armhf rootfs for most MVEBU Armada NAS:

2. Copy the armada-38x.dtb from stock OS to the new rootfs /boot/dts folder.


3. Plug in the USB rootfs, power up, interrupt serial console and


setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-38x.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
run usb_bootcmd

Please post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 14, 2018 01:33AM
I did nanddump:
N2350:~# nanddump --noecc --omitoob -f mtd0_N2350 /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x20000000...
N2350:~#

and copied it with scp on my laptop.
Using kwboot from here i tried

./kwboot-x86_64  -t -B 115200 /dev/ttyACM0 -b mtd0_N2350  -p 
mtd0_N2350: Invalid image.

but it did not work. The result is the same for the other kwboot command you posted.

Looking at the nanddump which has the size (535429120 14. Feb 07:40 mtd0_N2350
)
and the hexdump:
hexdump -C mtd0_N2350 | head -n 30 

00000000  55 42 49 23 01 00 00 00  00 00 00 00 00 00 00 00  |UBI#............|
00000010  00 00 08 00 00 00 10 00  0e a8 f5 0b 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 ad e4 9e 9d  |................|
00000040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000800  55 42 49 21 01 01 00 05  7f ff ef ff 00 00 00 00  |UBI!............|
00000810  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000830  00 00 00 00 00 00 00 00  00 00 00 00 b8 25 64 a8  |.............%d.|
00000840  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00001000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000010a0  00 00 00 00 00 00 00 00  f1 16 c3 6b 00 00 02 db  |...........k....|
000010b0  00 00 00 01 00 00 00 00  01 00 00 04 62 6f 6f 74  |............boot|
000010c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001150  00 00 00 00 18 fe 8b ac  00 00 00 4a 00 00 00 01  |...........J....|
00001160  00 00 00 00 01 00 00 03  65 74 63 00 00 00 00 00  |........etc.....|
00001170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001200  e0 ee 5f c9 00 00 0c 65  00 00 00 01 00 00 00 00  |.._....e........|
00001210  01 00 00 03 72 6f 6d 00  00 00 00 00 00 00 00 00  |....rom.........|
00001220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000012a0  00 00 00 00 00 00 00 00  00 00 00 00 a7 a7 00 7c  |...............||
000012b0  00 00 00 3a 00 00 00 01  00 00 00 00 01 00 00 07  |...:............|
000012c0  76 65 72 73 69 6f 6e 00  00 00 00 00 00 00 00 00  |version.........|
000012d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

I don't know much about kwboot, so i can't make sense of it at the moment.

I then tried to locate the stock armada-38x.dtb which is mentioned in the stock build log.
But i can not find it. /boot is empty. I also searched for it:
N2350:/# find / -name "armada-38x.dtb"
N2350:/#

I then simply gave it a try with armada-388-db.dtb of your image. Also an "usb start" was missing.
So the uboot commands read now:
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-388-db.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
usb start
run usb_bootcmd

Next i'll attach the first boot attempt, which generates a kernel panic:

BootROM - 1.73

Booting from SPI flash



General initialization - Version: 1.0.0

AVS selection from EFUSE disabled (Skip reading EFUSE values)

Overriding default AVS value to: 0x23

Detected Device ID 6820

High speed PHY - Version: 2.0


Init Customer board board SerDes lanes topology details:

 | Lane # | Speed|    Type     |

 ------------------------------|

 |   0    |  0   |  SGMII0     |

 |   1    |  3   |  SATA0      |

 |   2    |  3   |  SATA1      |

 |   4    |  5   |  USB3 HOST0 |

 |   5    |  5   |  USB3 HOST1 |

 -------------------------------

High speed PHY - Ended Successfully

DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0

DDR4 Training Sequence - Switching XBAR Window to FastPath Window 

DDR4 Training Sequence - Ended Successfully

BootROM: Image checksum verification PASSED


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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-388-db.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
Marvell>> run usb_bootcmd
Booting from USB ...
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
Bad Linux ARM zImage magic!
Marvell>> ext2ls 0:1
** No device specified **
Marvell>> usb
usb - USB sub-system

Usage:
usb start - start (scan) USB controller
usb reset - reset (rescan) USB controller
usb stop [f] - stop USB [f]=force stop
usb tree - show USB device tree
usb info [dev] - show available USB devices
usb storage - show details of USB storage devices
usb dev [dev] - show or set current USB storage device
usb part [dev] - print partition table of one or all USB storage devices
usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
    to memory address `addr'
usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'
    from memory address `addr'
Marvell>> usb infpo  o
USB is stopped. Please issue 'usb start' first.
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... cannot reset port 2!?
1 USB Device(s) found
Bad detection, need a second reset...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> usb start         usb info
1: Hub,  USB Revision 3.0
 - u-boot XHCI Host Controller 
 - Class: Hub
 - PacketSize: 9  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

2: Mass Storage,  USB Revision 3.0
 - General USB Flash Disk 1127100000000272
 - Class: (from Interface) Mass Storage
 - PacketSize: 9  Configurations: 1
 - Vendor: 0x1f75  Product 0x0916 Version 0.12
   Configuration: 1
   - Interfaces: 1 Bus Powered 124mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 2
     - Class Mass Storage, Transp. SCSI, Bulk only
     - Endpoint 2 Out Bulk MaxPacket 1024
     - Endpoint 1 In Bulk MaxPacket 1024

Marvell>> usb info        usb start         usb info        usb   ext2ls 0:1          run usb_bootcmd
Booting from USB ...
4021296 bytes read in 202 ms (19 MiB/s)
14889 bytes read in 224 ms (64.5 KiB/s)
7070236 bytes read in 269 ms (25.1 MiB/s)
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 3f300000, end 3f9be1dc ... OK
   Loading Device Tree to 00ff9000, end 00fffa28 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0

[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 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: Marvell Armada 385 Development Board

[    0.000000] bootconsole [earlycon0] enabled

[    0.000000] Memory policy: Data cache writealloc

[    0.000000] ------------[ cut here ]------------

[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/mm/physaddr.c:41 __virt_to_phys+0x54/0x6c

[    0.000000] virt_to_phys used for non-linear address: ff300000 (0xff300000)

[    0.000000] Modules linked in:

[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.12.4-mvebu-tld-1 #1

[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)

[    0.000000] [<c0116150>] (unwind_backtrace) from [<c0110bcc>] (show_stack+0x10/0x14)

[    0.000000] [<c0110bcc>] (show_stack) from [<c04df674>] (dump_stack+0x70/0x8c)

[    0.000000] [<c04df674>] (dump_stack) from [<c0124f2c>] (__warn+0xc8/0xfc)

[    0.000000] [<c0124f2c>] (__warn) from [<c0124f94>] (warn_slowpath_fmt+0x34/0x44)

[    0.000000] [<c0124f94>] (warn_slowpath_fmt) from [<c011d084>] (__virt_to_phys+0x54/0x6c)

[    0.000000] [<c011d084>] (__virt_to_phys) from [<c0c05690>] (arm_memblock_init+0x48/0x178)

[    0.000000] [<c0c05690>] (arm_memblock_init) from [<c0c033a0>] (setup_arch+0x518/0xa40)

[    0.000000] [<c0c033a0>] (setup_arch) from [<c0c00938>] (start_kernel+0x50/0x394)

[    0.000000] [<c0c00938>] (start_kernel) from [<0000807c>] (0x807c)

[    0.000000] ---[ end trace 0000000000000000 ]---

[    0.000000] percpu: Embedded 17 pages/cpu @ef7c9000 s40460 r8192 d20980 u69632

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608

[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi_flash:0x00100000(uboot),0x00010000@0x00100000(uboot_env) 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: 1019072K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29504K reserved, 0K cma-reserved, 255236K 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 - 0xc0db2308   ( 713 kB)

[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)

[    0.000000] Preemptible hierarchical RCU implementation.

[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2

[    0.000000] NR_IRQS:16 nr_irqs:16 16

[    0.000000] 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.007886] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns

[    0.019206] Console: colour dummy device 80x30

[    0.023725] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)

[    0.034124] pid_max: default: 32768 minimum: 301

[    0.038908] Security Framework initialized

[    0.043120] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.049799] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.057410] CPU: Testing write buffer coherency: ok

[    0.062527] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

[    0.103791] Setting up static identity map for 0x100000 - 0x100060

[    0.110123] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4

[    0.115452] mvebu-pmsu: Initializing Power Management Service Unit

[    0.173717] smp: Bringing up secondary CPUs ...

[    0.233757] Booting CPU 1

[    0.236657] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

[    0.236726] smp: Brought up 1 node, 2 CPUs

[    0.246615] SMP: Total of 2 processors activated (100.00 BogoMIPS).

[    0.252937] CPU: All CPU(s) started in SVC mode.

[    0.258328] devtmpfs: initialized

[    0.263980] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

[    0.271964] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.281870] futex hash table entries: 512 (order: 3, 32768 bytes)

[    0.288195] prandom: seed boundary self test passed

[    0.295687] prandom: 100 self tests passed

[    0.299850] pinctrl core: initialized pinctrl subsystem

[    0.305989] NET: Registered protocol family 16

[    0.311347] DMA: preallocated 256 KiB pool for atomic coherent allocations

[    0.319679] cpuidle: using governor ladder

[    0.323896] cpuidle: using governor menu

[    0.328035] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

[    0.336102] hw-breakpoint: maximum watchpoint size is 4 bytes.

[    0.342144] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling

[    0.350298] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling

[    0.393990] vgaarb: loaded

[    0.396988] SCSI subsystem initialized

[    0.401579] usbcore: registered new interface driver usbfs

[    0.407292] usbcore: registered new interface driver hub

[    0.412749] usbcore: registered new device driver usb

[    0.418070] media: Linux media interface: v0.10

[    0.422692] Linux video capture interface: v2.00

[    0.428163] clocksource: Switched to clocksource armada_370_xp_clocksource

[    0.485741] VFS: Disk quotas dquot_6.6.0

[    0.489825] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.503321] NET: Registered protocol family 2

[    0.508303] TCP established hash table entries: 8192 (order: 3, 32768 bytes)

[    0.515456] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

[    0.522079] TCP: Hash tables configured (established 8192 bind 8192)

[    0.528568] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    0.534568] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    0.541190] NET: Registered protocol family 1

[    0.545921] RPC: Registered named UNIX socket transport module.

[    0.551945] RPC: Registered udp transport module.

[    0.556712] RPC: Registered tcp transport module.

[    0.561510] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.568140] Unpacking initramfs...

[    0.571634] Unable to handle kernel paging request at virtual address ff300000

[    0.578907] pgd = c0004000

[    0.581685] [ff300000] *pgd=00000000

[    0.585334] Internal error: Oops: 5 [#1] PREEMPT SMP ARM

[    0.590705] Modules linked in:

[    0.593836] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.12.4-mvebu-tld-1 #1

[    0.602058] Hardware name: Marvell Armada 380/385 (Device Tree)

[    0.608034] task: ef088040 task.stack: ef08a000

[    0.612634] PC is at unpack_to_rootfs+0xc4/0x2bc

[    0.617317] LR is at kmem_cache_alloc_trace+0x3c/0x19c

[    0.622517] pc : [<c0c01e8c>]    lr : [<c0246494>]    psr: 20000113

[    0.622517] sp : ef08bec0  ip : 00000000  fp : 00000000

[    0.634109] r10: c0db9b04  r9 : c0da4c60  r8 : 00000000

[    0.639394] r7 : 00000000  r6 : ff300000  r5 : 006be1dc  r4 : c0c538b8

[    0.645974] r3 : 00000000  r2 : 00000000  r1 : ef7d6170  r0 : 00000000

[    0.652555] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none

[    0.659742] Control: 10c5387d  Table: 0000404a  DAC: 00000051

[    0.665544] Process swapper/0 (pid: 1, stack limit = 0xef08a220)

[    0.671606] Stack: (0xef08bec0 to 0xef08c000)

[    0.676031] bec0: 00000107 00000000 c0c66808 c0c5383c 00000000 00000000 c0a0cdf5 ef08befc

[    0.684257] bee0: ef08a000 c0db9b00 c0db9afc c0c53830 00000107 00000000 c0c66808 c0c5383c

[    0.692482] bf00: 00000000 c0c020d4 ffffe000 c0c02084 c0c53830 c01019b8 c0a30525 c0140b8c

[    0.700707] bf20: c0a18600 ef0c4a00 c0d0e488 c0b06858 00000107 00000005 00000005 c0b07ce4

[    0.708932] bf40: 00000106 c0b07ce4 efffcd8f efffcd9b c0d0e470 00000006 c0db9ac0 c0c5382c

[    0.717156] bf60: 00000006 c0db9ac0 c0c53830 00000107 c0db9ac0 c0c00e10 00000005 00000005

[    0.725381] bf80: 00000000 c0c005b4 00000000 c086e7f0 00000000 00000000 00000000 00000000

[    0.733605] bfa0: 00000000 c086e7f8 00000000 c010c338 00000000 00000000 00000000 00000000

[    0.741829] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[    0.750054] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff 00000000

[    0.758287] [<c0c01e8c>] (unpack_to_rootfs) from [<c0c020d4>] (populate_rootfs+0x50/0xb8)

[    0.766516] [<c0c020d4>] (populate_rootfs) from [<c01019b8>] (do_one_initcall+0xa4/0x14c)

[    0.774744] [<c01019b8>] (do_one_initcall) from [<c0c00e10>] (kernel_init_freeable+0x194/0x258)

[    0.783492] [<c0c00e10>] (kernel_init_freeable) from [<c086e7f8>] (kernel_init+0x8/0x108)

[    0.791723] [<c086e7f8>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)

[    0.799344] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000) 

[    0.805497] ---[ end trace 868534a20afc1551 ]---

[    0.810256] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

[    0.810256] 

[    0.819526] CPU1: stopping

[    0.822310] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.12.4-mvebu-tld-1 #1

[    0.830533] Hardware name: Marvell Armada 380/385 (Device Tree)

[    0.836520] [<c0116150>] (unwind_backtrace) from [<c0110bcc>] (show_stack+0x10/0x14)

[    0.844318] [<c0110bcc>] (show_stack) from [<c04df674>] (dump_stack+0x70/0x8c)

[    0.851596] [<c04df674>] (dump_stack) from [<c0113f10>] (handle_IPI+0x150/0x3b0)

[    0.859045] [<c0113f10>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)

[    0.866666] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)

[    0.874196] Exception stack(0xef0aff80 to 0xef0affc8)

[    0.879311] ff80: 00000001 00000000 00000000 c011ecc0 00000000 00000000 ef0ae000 ef0affd8

[    0.887537] ffa0: c0d04d6c 414fc091 00000000 00000000 0000006c ef0affd0 c010d400 c010d404

[    0.895759] ffc0: 60000013 ffffffff

[    0.899319] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)

[    0.906768] [<c010d404>] (arch_cpu_idle) from [<c015d7fc>] (do_idle+0xd4/0x1cc)

[    0.914131] [<c015d7fc>] (do_idle) from [<c015db64>] (cpu_startup_entry+0x18/0x1c)

[    0.921751] [<c015db64>] (cpu_startup_entry) from [<0010166c>] (0x10166c)

[    0.928597] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

[    0.928597] 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 14, 2018 03:17AM
lordzahl,

> Looking at the nanddump which has the size
> (535429120 14. Feb 07:40 mtd0_N2350)

This is odd. nanddump apparently saw the correct size of the mtd0 which is 0x20000000. But the file is not 512K.

> I then simply gave it a try with armada-388-db.dtb
> of your image.

That's a good one to try.

> Also an "usb start" was missing.

Right :) glad you saw that was the problem.

> Next i'll attach the first boot attempt, which
> generates a kernel panic:

> Booting from USB ...
> 4021296 bytes read in 202 ms (19 MiB/s)
> 14889 bytes read in 224 ms (64.5 KiB/s)
> 7070236 bytes read in 269 ms (25.1 MiB/s)
> ## Loading init Ramdisk from Legacy Image at
> 02900000 ...
> Image Name: initramfs-4.12.4-mvebu-tld-1
> Created: 2017-08-22 11:10:43 UTC
> Image Type: ARM Linux RAMDisk Image (gzip
> compressed)
> Data Size: 7070172 Bytes = 6.7 MiB
> Load Address: 00000000
> Entry Point: 00000000
> ## Flattened Device Tree blob at 01000000
> Booting using the fdt blob at 0x01000000
> Loading Ramdisk to 3f300000, end 3f9be1dc ...
> OK
> Loading Device Tree to 00ff9000, end 00fffa28
> ... OK
>
> Skipping Device Tree update ('fdt_skip_update'
> = yes)
>
> Limit DDR size at 3GB due to power of 2
> requirement of Address decoding
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
> [ 0.000000] Booting Linux on physical CPU 0x0
>
> [ 0.000000] Linux version 4.12.4-mvebu-tld-1
> (root@tldDebianVM) (gcc version 5.4.0 20160609
> (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP
> PREEMPT Sat Jul 29 21:56:37 PDT 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: Marvell
> Armada 385 Development Board
>

Cool that you got to this point so far.

> arch/arm/mm/physaddr.c:41
> __virt_to_phys+0x54/0x6c
>
> [ 0.000000] virt_to_phys used for non-linear
> address: ff300000 (0xff300000)

I suspect the DTB is not quite a correct one to use.

I think you should try the EX2100 DTB and other armada-385 DTB. There are HW nodes in those boxes DTB that are likely not compatible with this Thecus box. Without seeing the GPL source for this box, I'm not sure which will be the closest one. But I think just by looking at the stock serial boot log that you posted above, we can match the closest one to this box.

The EX2100 DTS is in my patch in the release thread.

Quote

Updated 26 Nov 2017:

Kernel linux-4.14.1-mvebu-tld-1 package has been uploaded.

New capabilities in this version:

- Fixed the mvneta drive network problem (thanks musv).

Latest Linux kernel 4.x general release information can be found at:
LinuxChanges log

Download at Dropbox

linux-4.14.1-mvebu-tld-1-bodhi.tar.bz2

md5sum:
c128f156cb13b20184f737b376d09483

sha256sum:
3859d8b83728da8b6b444fe14f4cd9b8ee0e4d6a59251ea85ea880a0076250b4




These DTS are in mainline source tree.
-rw-r--r-- 1 root root 16064 Jul 29  2017 dts/armada-385-db-ap.dtb
-rw-r--r-- 1 root root 18492 Jul 29  2017 dts/armada-385-linksys-caiman.dtb
-rw-r--r-- 1 root root 18464 Jul 29  2017 dts/armada-385-linksys-cobra.dtb
-rw-r--r-- 1 root root 18492 Jul 29  2017 dts/armada-385-linksys-shelby.dtb
-rw-r--r-- 1 root root 17256 Jul 29  2017 dts/armada-385-synology-ds116.dtb
-rw-r--r-- 1 root root 16914 Jul 29  2017 dts/armada-385-turris-omnia.dtb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 14, 2018 12:20PM
Hi,

I have tried several different dtbs now:
armada-385-db-ap.dtb
armada-385-synology-ds116.dtb
armada-385-wd-ex2100.dtb
04_dtbdump_Marvell_Armada_385_Development_Board.dtb

I could extract the last one from the rescue_fw bzImage with extract-dtb. The ubifs.img in rescue_fw (dumped with ubidump) has also a bzImage with the same dtb.
I extracted the dts from this dtb with "dtc", see the attachments.

Unfortunately, none of these work. All fail with a kernel panic and show the
> [ 0.000000] virt_to_phys used for non-linear
> address: ff300000 (0xff300000)
error.

Note that i have moved to your latest 4.14 kernel in the meantime (makes no difference).
Any more ideas?

Ps.: Why did you use address "setenv load_initrd_addr 0x2900000" for initrd? printenv shows 0x3000000, if i understand correctly. Just curious. Also the "Virtual kernel memory layout" is different to stock. Is this because of the different kernel version?



Edited 1 time(s). Last edit at 02/14/2018 12:25PM by lordzahl.
Attachments:
open | download - 04_dtbdump_Marvell_Armada_385_Development_Board.dtb (15 KB)
open | download - 04_dtbdump_Marvell_Armada_385_Development_Board.dts (18.4 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 14, 2018 10:12PM
lordzahl,

> I could extract the last one from the rescue_fw
> bzImage with
> extract-dtb.
> The ubifs.img in rescue_fw (dumped with
> ubidump)
> has also a bzImage with the same dtb.
> I extracted the dts from this dtb with "dtc", see
> the attachments.

Did this one fail to boot with the same error "virt_to_phys used for non-linear address" ?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 15, 2018 12:40AM
Hello bodhi,
Yes it fails with the same error.
Using these uboot cmds (I introduced dtbfilename for convenience):

setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename 04_dtbdump_Marvell_Armada_385_Development_Board.dtb
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
usb start
run usb_bootcmd

I get the log:

BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0 
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename 04_dtbdump_Marvell_Armada_385_Development_Board.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... cannot reset port 2!?
1 USB Device(s) found
Bad detection, need a second reset...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> run usb_bootcmd
Booting from USB ...
4141288 bytes read in 213 ms (18.5 MiB/s)
15347 bytes read in 700 ms (20.5 KiB/s)
7070236 bytes read in 269 ms (25.1 MiB/s)
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 3f300000, end 3f9be1dc ... OK
   Loading Device Tree to 00ff9000, end 00fffbf2 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 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: Marvell Armada 385 Development Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/mm/physaddr.c:42 __virt_to_phys+0x54/0x6c
[    0.000000] virt_to_phys used for non-linear address: ff300000 (0xff300000)
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.1-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[    0.000000] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[    0.000000] [<c08925fc>] (dump_stack) from [<c0125120>] (__warn+0xc8/0xfc)
[    0.000000] [<c0125120>] (__warn) from [<c0125188>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0125188>] (warn_slowpath_fmt) from [<c011d1cc>] (__virt_to_phys+0x54/0x6c)
[    0.000000] [<c011d1cc>] (__virt_to_phys) from [<c0c05268>] (arm_memblock_init+0x48/0x178)
[    0.000000] [<c0c05268>] (arm_memblock_init) from [<c0c03388>] (setup_arch+0x518/0xa38)
[    0.000000] [<c0c03388>] (setup_arch) from [<c0c00938>] (start_kernel+0x4c/0x3a8)
[    0.000000] [<c0c00938>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] random: get_random_bytes called from init_oops_id+0x20/0x40 with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c9000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi_flash:0x00100000(uboot),0x00010000@0x00100000(uboot_env) 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: 1019052K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 29524K reserved, 0K cma-reserved, 255236K 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 - 0xc0db4848   ( 723 kB)
[    0.000000]        .bss : 0xc0dbbf1c - 0xc0e103c4   ( 338 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    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 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 0x46070001
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.14.1-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[    0.000000] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[    0.000000] [<c08925fc>] (dump_stack) from [<c0890dd4>] (Ldiv0+0x8/0x10)
[    0.000000] [<c0890dd4>] (Ldiv0) from [<c055c0dc>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000] [<c055c0dc>] (clk_cpu_recalc_rate) from [<c0558724>] (clk_register+0x38c/0x590)
[    0.000000] [<c0558724>] (clk_register) from [<c0c3224c>] (of_cpu_clk_setup+0x1bc/0x27c)
[    0.000000] [<c0c3224c>] (of_cpu_clk_setup) from [<c0c30ea8>] (of_clk_init+0x174/0x214)
[    0.000000] [<c0c30ea8>] (of_clk_init) from [<c0c03910>] (time_init+0x20/0x2c)
[    0.000000] [<c0c03910>] (time_init) from [<c0c00b0c>] (start_kernel+0x220/0x3a8)
[    0.000000] [<c0c00b0c>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.14.1-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[    0.000000] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[    0.000000] [<c08925fc>] (dump_stack) from [<c0890dd4>] (Ldiv0+0x8/0x10)
[    0.000000] [<c0890dd4>] (Ldiv0) from [<c055c0dc>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000] [<c055c0dc>] (clk_cpu_recalc_rate) from [<c0558724>] (clk_register+0x38c/0x590)
[    0.000000] [<c0558724>] (clk_register) from [<c0c3224c>] (of_cpu_clk_setup+0x1bc/0x27c)
[    0.000000] [<c0c3224c>] (of_cpu_clk_setup) from [<c0c30ea8>] (of_clk_init+0x174/0x214)
[    0.000000] [<c0c30ea8>] (of_clk_init) from [<c0c03910>] (time_init+0x20/0x2c)
[    0.000000] [<c0c03910>] (time_init) from [<c0c00b0c>] (start_kernel+0x220/0x3a8)
[    0.000000] [<c0c00b0c>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.010000] Calibrating delay loop... 2125.00 BogoMIPS (lpj=10625024)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.080000] Security Framework initialized
[    0.080000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090000] CPU: Testing write buffer coherency: ok
[    0.100000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.130000] Setting up static identity map for 0x100000 - 0x100060
[    0.130000] mvebu-pmsu: Initializing Power Management Service Unit
[    0.140000] Hierarchical SRCU implementation.
[    0.140000] smp: Bringing up secondary CPUs ...
[    0.220000] smp: Brought up 1 node, 1 CPU
[    0.220000] SMP: Total of 1 processors activated (2125.00 BogoMIPS).
[    0.230000] CPU: All CPU(s) started in SVC mode.
[    0.230000] devtmpfs: initialized
[    0.250000] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.250000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.260000] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.270000] prandom: seed boundary self test passed
[    0.280000] prandom: 100 self tests passed
[    0.280000] pinctrl core: initialized pinctrl subsystem
[    0.290000] NET: Registered protocol family 16
[    0.290000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.310000] cpuidle: using governor ladder
[    0.310000] cpuidle: using governor menu
[    0.310000] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.320000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.400000] vgaarb: loaded
[    0.400000] SCSI subsystem initialized
[    0.410000] usbcore: registered new interface driver usbfs
[    0.410000] usbcore: registered new interface driver hub
[    0.420000] usbcore: registered new device driver usb
[    0.420000] media: Linux media interface: v0.10
[    0.430000] Linux video capture interface: v2.00
[    0.490000] VFS: Disk quotas dquot_6.6.0
[    0.490000] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.510000] NET: Registered protocol family 2
[    0.510000] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.520000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.530000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.530000] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.540000] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.550000] NET: Registered protocol family 1
[    0.570000] RPC: Registered named UNIX socket transport module.
[    0.570000] RPC: Registered udp transport module.
[    0.580000] RPC: Registered tcp transport module.
[    0.580000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.590000] Unpacking initramfs...
[    0.590000] Unable to handle kernel paging request at virtual address ff300000
[    0.590000] pgd = c0004000
[    0.590000] [ff300000] *pgd=00000000
[    0.590000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.590000] Modules linked in:
[    0.590000] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.1-mvebu-tld-1 #1
[    0.590000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.590000] task: ef088040 task.stack: ef08a000
[    0.590000] PC is at unpack_to_rootfs+0xc4/0x2bc
[    0.590000] LR is at kmem_cache_alloc_trace+0x3c/0x19c
[    0.590000] pc : [<c0c01f88>]    lr : [<c02521b8>]    psr: 20000013
[    0.590000] sp : ef08bec0  ip : 00000000  fp : 00000000
[    0.590000] r10: c0dbbf84  r9 : c0da7158  r8 : 00000000
[    0.590000] r7 : 00000000  r6 : ff300000  r5 : 006be1dc  r4 : c0c568b8
[    0.590000] r3 : 00000000  r2 : 00000000  r1 : ef7d61b0  r0 : 00000000
[    0.590000] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.590000] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.590000] Process swapper/0 (pid: 1, stack limit = 0xef08a220)
[    0.590000] Stack: (0xef08bec0 to 0xef08c000)
[    0.590000] bec0: 0000010e 00000000 c0c69940 c0c5683c 00000000 00000000 c0a1d164 ef08befc
[    0.590000] bee0: 00000000 c0dbbf80 c0dbbf7c c0c56830 0000010e 00000000 c0c69940 c0c5683c
[    0.590000] bf00: 00000000 c0c021d0 ffffe000 c0c02180 c0c56830 c0101d38 c0a411be c0140b7c
[    0.590000] bf20: 00000000 00000000 00000000 c0b1ec14 0000010e 00000005 00000005 c0b2012c
[    0.590000] bf40: 0000010d c0b2012c efffcdcf efffcddb c0c5683c 00000006 c0dbbf40 c0c5682c
[    0.590000] bf60: 00000006 c0dbbf40 c0c56830 0000010e c0dbbf40 c0c00e10 00000005 00000005
[    0.590000] bf80: 00000000 c0c005b4 00000000 c08a3f40 00000000 00000000 00000000 00000000
[    0.590000] bfa0: 00000000 c08a3f48 00000000 c010c6b0 00000000 00000000 00000000 00000000
[    0.590000] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.590000] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 c0fffa16 89010030
[    0.590000] [<c0c01f88>] (unpack_to_rootfs) from [<c0c021d0>] (populate_rootfs+0x50/0xb8)
[    0.590000] [<c0c021d0>] (populate_rootfs) from [<c0101d38>] (do_one_initcall+0xa4/0x14c)
[    0.590000] [<c0101d38>] (do_one_initcall) from [<c0c00e10>] (kernel_init_freeable+0x17c/0x23c)
[    0.590000] [<c0c00e10>] (kernel_init_freeable) from [<c08a3f48>] (kernel_init+0x8/0x108)
[    0.590000] [<c08a3f48>] (kernel_init) from [<c010c6b0>] (ret_from_fork+0x14/0x24)
[    0.590000] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000) 
[    0.590000] ---[ end trace 8ba481c874124c2b ]---
[    0.600000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.600000] 
[    0.600000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.600000]

I had another idea. I used the stock kernel bzImage, replaced the bootz command with bootm.
The stock kernel boots fine (also with the same stock dtb as above) and only fails when the rootfs should be loaded:

BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename 04_dtbdump_Marvell_Armada_385_Development_Board.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... cannot reset port 2!?
1 USB Device(s) found
Bad detection, need a second reset...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> run usb_bootcmd
Booting from USB ...
5069923 bytes read in 239 ms (20.2 MiB/s)
15347 bytes read in 700 ms (20.5 KiB/s)
7070236 bytes read in 269 ms (25.1 MiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   linux-3.10.thecus.develop-2015_T
   Created:      2017-08-09   9:39:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5069859 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 3f300000, end 3f9be1dc ... OK
   Loading Device Tree to 00ff9000, end 00fffbf2 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.105.13 (root@localhost.localdomain) (gcc version 4.8.5 (Marvell GCC release 20160307-7f3c83a0) ) #1 SMP Wed Aug 9 17:39:15 CST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c16ab000 s8704 r8192 d15872 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk
[    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] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1026912k/1026912k available, 21664k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09162e4   (9273 kB)
[    0.000000]       .init : 0xc0917000 - 0xc095b200   ( 273 kB)
[    0.000000]       .data : 0xc095c000 - 0xc09c82e0   ( 433 kB)
[    0.000000]        .bss : 0xc09c82e0 - 0xc0a3b714   ( 462 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p9
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.017491] Calibrating delay loop... 2125.00 BogoMIPS (lpj=10625024)
[    0.082996] pid_max: default: 32768 minimum: 301
[    0.087787] Mount-cache hash table entries: 512
[    0.092843] Initializing cgroup subsys memory
[    0.097278] Initializing cgroup subsys devices
[    0.101796] Initializing cgroup subsys freezer
[    0.106303] Initializing cgroup subsys blkio
[    0.110642] Initializing cgroup subsys perf_event
[    0.115432] CPU: Testing write buffer coherency: ok
[    0.120525] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.126281] Setting up static identity map for 0xc06d9470 - 0xc06d94c8
[    0.133065] mvebu-pmsu: Initializing Power Management Service Unit
[    0.139366] Initializing CPU Reset module
[    0.144165] CPU1: Booted secondary processor
[    0.196237] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.196313] Brought up 2 CPUs
[    0.209404] SMP: Total of 2 processors activated (4250.00 BogoMIPS).
[    0.215810] CPU: All CPU(s) started in SVC mode.
[    0.220912] devtmpfs: initialized
[    0.227147] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.232597] xor: measuring software checksum speed
[    0.336125]    arm4regs  :  1699.600 MB/sec
[    0.436062]    8regs     :  1257.600 MB/sec
[    0.535997]    32regs    :  1253.600 MB/sec
[    0.540244] xor: using function: arm4regs (1699.600 MB/sec)
[    0.545875] pinctrl core: initialized pinctrl subsystem
[    0.551500] regulator-dummy: no parameters
[    0.555861] NET: Registered protocol family 16
[    0.561162] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.571206] irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
[    0.578779] irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
[    0.589940] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.598007] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.622370] bio: create slab <bio-0> at 0
[    0.796103] raid6: int32x1    123 MB/s
[    0.965947] raid6: int32x2    200 MB/s
[    1.135930] raid6: int32x4    169 MB/s
[    1.305606] raid6: int32x8    193 MB/s
[    1.309421] raid6: using algorithm int32x2 (200 MB/s)
[    1.314531] raid6: using intx1 recovery algorithm
[    1.319639] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.325380] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.331660] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.338431] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.344755] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.351690] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.357615] PCI: bus0: Fast back to back transfers disabled
[    1.363249] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.371318] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.379506] PCI: bus1: Fast back to back transfers enabled
[    1.385185] PCI: bus2: Fast back to back transfers enabled
[    1.390777] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.395857] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.400888] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.406614] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.412815] vgaarb: loaded
[    1.415969] SCSI subsystem initialized
[    1.420417] usbcore: registered new interface driver usbfs
[    1.426072] usbcore: registered new interface driver hub
[    1.431539] usbcore: registered new device driver usb
[    1.437040] Linux video capture interface: v2.00
[    1.441965] pps_core: LinuxPPS API ver. 1 registered
[    1.447005] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.456316] PTP clock support registered
[    1.461142] Bluetooth: Core ver 2.16
[    1.464865] NET: Registered protocol family 31
[    1.469383] Bluetooth: HCI device and connection manager initialized
[    1.475801] Bluetooth: HCI socket layer initialized
[    1.480742] Bluetooth: L2CAP socket layer initialized
[    1.485868] Bluetooth: SCO socket layer initialized
[    1.491160] Switching to clocksource armada_370_xp_clocksource
[    1.497098] cfg80211: Calling CRDA to update world regulatory domain
[    1.512567] NET: Registered protocol family 2
[    1.517535] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.524725] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.531315] TCP: Hash tables configured (established 8192 bind 8192)
[    1.537768] TCP: reno registered
[    1.541069] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.547064] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.553636] NET: Registered protocol family 1
[    1.558229] RPC: Registered named UNIX socket transport module.
[    1.564205] RPC: Registered udp transport module.
[    1.569000] RPC: Registered tcp transport module.
[    1.573766] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.580643] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    1.590526] bounce pool size: 64 pages
[    1.600237] VFS: Disk quotas dquot_6.5.2
[    1.604443] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.612870] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.620086] NFS: Registering the id_resolver key type
[    1.625225] Key type id_resolver registered
[    1.629575] Key type id_legacy registered
[    1.633659] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.640374] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.646949] fuse init (API version 7.22)
[    1.651508] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    1.661449] msgmni has been set to 1507
[    1.666643] async_tx: api initialized (async)
[    1.671315] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.678833] io scheduler noop registered
[    1.682822] io scheduler deadline registered (default)
[    1.688081] io scheduler cfq registered
[    1.692758] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.700112] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.747670] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    1.787646] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    1.793541] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    1.802036] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.847629] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    1.887648] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    1.893545] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    1.922703] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    1.950169] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    1.957300] console [ttyS0] enabled, bootconsole disabled
[    1.957300] console [ttyS0] enabled, bootconsole disabled
[    1.970646] brd: module loaded
[    1.976502] loop: loaded (max 8 devices)
[    1.980925] nbd: registered device at major 43
[    1.990251] i2c /dev entries driver
[    1.994593] pca9532_init
[    2.002961] pca9532_id_init
[    2.011484] i2c i2c-0: Found pca9532_id at 0x61
[    2.016161] pca9532_id 0-0061: setting platform data
[    2.050894] thecus_io: board_num: 0h
[    2.054485] thecus_io: board_idx: 0h
[    2.058094] thecus_board = BOARD_N2350, thecus_mbtype = a385!
[    2.064540] SCSI Media Changer driver v0.25 
[    2.069351] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.078202] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    2.088116] scsi0 : ahci_mv_platform
[    2.092021] scsi1 : ahci_mv_platform
[    2.095843] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    2.103809] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    2.113126] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    2.127543] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    2.140385] Bad block table found at page 261824, version 0x01
[    2.147334] Bad block table found at page 261760, version 0x01
[    2.153381] nand_read_bbt: bad block at 0x0000061e0000
[    2.158564] nand_read_bbt: bad block at 0x00000e1c0000
[    2.163723] nand_read_bbt: bad block at 0x00000e1e0000
[    2.168919] nand_read_bbt: bad block at 0x00001ff80000
[    2.174077] nand_read_bbt: bad block at 0x00001ffa0000
[    2.179242] nand_read_bbt: bad block at 0x00001ffc0000
[    2.184400] nand_read_bbt: bad block at 0x00001ffe0000
[    2.189588] 1 ofpart partitions found on MTD device armada-nand
[    2.195532] Creating 1 MTD partitions on "armada-nand":
[    2.200788] 0x000000000000-0x000020000000 : "ubifs"
[    2.207326] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    2.212233] 2 ofpart partitions found on MTD device spi1.0
[    2.217762] Creating 2 MTD partitions on "spi1.0":
[    2.222575] 0x000000000000-0x000000400000 : "U-Boot-img"
[    2.228563] 0x000000100000-0x000000400000 : "U-Boot-env"
[    2.235877] libphy: Fixed MDIO Bus: probed
[    2.240657] SoC: model = 0x6820, revision = 0x4
[    2.245295] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    2.250817]   o 3 Giga ports supported
[    2.254581]   o SKB recycle supported for SWF (Disabled)
[    2.259926]   o NETA acceleration mode 4
[    2.263864]   o BM supported for CPU: 4 BM pools
[    2.268505]   o PnC supported (Enabled)
[    2.272357]   o RX Queue support: 8 Queues * 256 Descriptors
[    2.278044]   o TX Queue support: 8 Queues * 532 Descriptors
[    2.283724]   o GSO supported
[    2.286702]   o GRO supported
[    2.289686]   o Receive checksum offload supported
[    2.294495]   o Transmit checksum offload supported
[    2.299396]   o Driver ERROR statistics enabled
[    2.303943]   o Driver INFO statistics enabled
[    2.308408]   o Driver DEBUG statistics enabled
[    2.312955] 
[    2.315816] port #0: is_sgmii=1, is_rgmii=0, phy_addr=1
[    2.321121]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    2.329457] 
[    2.330954]   o Port 0 is connected to Linux netdevice
[    2.337693]     o eth0, ifindex = 3, GbE port = 0
[    2.345833] 	giga p=0: mtu=1500, mac=a2:99:74:55:12:22 (random)
[    2.351875] 
[    2.353815] libphy: orion_mdio_bus: probed
[    2.358678] PPP generic driver version 2.4.2
[    2.363181] PPP BSD Compression module registered
[    2.367925] PPP Deflate Compression module registered
[    2.373007] PPP MPPE Compression module registered
[    2.377845] NET: Registered protocol family 24
[    2.382439] usbcore: registered new interface driver asix
[    2.388015] usbcore: registered new interface driver ax88179_178a
[    2.394218] usbcore: registered new interface driver cdc_ether
[    2.400179] usbcore: registered new interface driver net1080
[    2.405941] usbcore: registered new interface driver cdc_subset
[    2.411978] usbcore: registered new interface driver zaurus
[    2.417684] usbcore: registered new interface driver cdc_ncm
[    2.423379] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.429943] ehci-pci: EHCI PCI platform driver
[    2.434495] ehci-orion: EHCI orion driver
[    2.438639] orion-ehci f1058000.usb: EHCI Host Controller
[    2.444074] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.451785] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    2.457103] ata1: SATA link down (SStatus 0 SControl 300)
[    2.457144] ata2: SATA link down (SStatus 0 SControl 300)
[    2.487116] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.493103] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.499939] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.507200] usb usb1: Product: EHCI Host Controller
[    2.512099] usb usb1: Manufacturer: Linux 3.10.105.13 ehci_hcd
[    2.517962] usb usb1: SerialNumber: f1058000.usb
[    2.523014] hub 1-0:1.0: USB hub found
[    2.526788] hub 1-0:1.0: 1 port detected
[    2.531178] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.536524] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    2.544223] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    2.550044] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.556864] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.564139] usb usb2: Product: xHCI Host Controller
[    2.569051] usb usb2: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    2.574910] usb usb2: SerialNumber: f10f0000.usb3
[    2.580033] hub 2-0:1.0: USB hub found
[    2.583811] hub 2-0:1.0: 1 port detected
[    2.587889] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.593232] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    2.600810] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    2.607640] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.614893] usb usb3: Product: xHCI Host Controller
[    2.619798] usb usb3: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    2.625657] usb usb3: SerialNumber: f10f0000.usb3
[    2.631018] hub 3-0:1.0: USB hub found
[    2.634791] hub 3-0:1.0: 1 port detected
[    2.638911] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.644256] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.657258] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    2.663066] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.669913] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.677178] usb usb4: Product: xHCI Host Controller
[    2.682077] usb usb4: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    2.687947] usb usb4: SerialNumber: f10f8000.usb3
[    2.693178] hub 4-0:1.0: USB hub found
[    2.696951] hub 4-0:1.0: 1 port detected
[    2.701030] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.706373] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.713936] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.720767] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.728028] usb usb5: Product: xHCI Host Controller
[    2.732926] usb usb5: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    2.738797] usb usb5: SerialNumber: f10f8000.usb3
[    2.743949] hub 5-0:1.0: USB hub found
[    2.747732] hub 5-0:1.0: 1 port detected
[    2.752171] mv-udc f1058100.udc: successful probe UDC device without clock gating.
[    2.760166] mousedev: PS/2 mouse device common for all mice
[    2.767031] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.957127] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.977252] usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[    2.986485] usb 3-1: New USB device found, idVendor=1f75, idProduct=0916
[    2.993229] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.000403] usb 3-1: Product: USB Flash Disk
[    3.004691] usb 3-1: Manufacturer: General
[    3.008815] usb 3-1: SerialNumber: 1127100000000272
[    3.203529] lm75 0-0049: hwmon0: sensor 'lm75'
[    3.257210] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    3.265334] orion_wdt: Initial timeout 171 sec
[    3.269915] thecus_event : started
[    3.273333] md: linear personality registered for level -1
[    3.278856] md: raid0 personality registered for level 0
[    3.284190] md: raid1 personality registered for level 1
[    3.289530] md: raid10 personality registered for level 10
[    3.295038] md: raid6 personality registered for level 6
[    3.300376] md: raid5 personality registered for level 5
[    3.305709] md: raid4 personality registered for level 4
[    3.311049] md: multipath personality registered for level -4
[    3.317157] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    3.325688] dm_crypt using the OCF package.
[    3.330147] device-mapper: multipath: version 1.6.0 loaded
[    3.335658] device-mapper: multipath round-robin: version 1.0.0 loaded
[    3.342228] device-mapper: multipath queue-length: version 0.1.0 loaded
[    3.348889] device-mapper: multipath service-time: version 0.2.0 loaded
[    3.357893] cpuidle: using governor ladder
[    3.362177] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    3.371536] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
[    3.380661] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff
[    3.390519] mvCesaInit: channels=2, session=640, queue=256
[    3.415939] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    3.425201] cesadev_init(c0937940)
[    3.429312] usbcore: registered new interface driver usbhid
[    3.434943] usbhid: USB HID core driver
[    3.439001] Loading Marvell spi device
[    3.444040] arp_tables: (C) 2002 David S. Miller
[    3.448745] TCP: cubic registered
[    3.452110] Initializing XFRM netlink socket
[    3.457353] NET: Registered protocol family 10
[    3.462776] sit: IPv6 over IPv4 tunneling driver
[    3.468295] NET: Registered protocol family 17
[    3.472883] NET: Registered protocol family 15
[    3.477422] Bridge firewalling registered
[    3.481527] 8021q: 802.1Q VLAN Support v1.8
[    3.485802] Key type dns_resolver registered
[    3.490195] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    3.499288] regulator-dummy: disabling
[    3.503676] mvebu-rtc f10a3800.rtc: setting system clock to 2018-02-15 06:30:15 UTC (1518676215)
[    3.513066] md: Waiting for all devices to be available before autodetect
[    3.519889] md: If you don't use raid, use raid=noautodetect
[    3.526409] md: Autodetecting RAID arrays.
[    3.530565] md: Scanned 0 and added 0 devices.
[    3.535030] md: autorun ...
[    3.537838] md: ... autorun DONE.
[    3.541375] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.548914] Please append a correct "root=" boot option; here are the available partitions:
[    3.557330] 1f00          524288 mtdblock0  (driver?)
[    3.562426] 1f01            4096 mtdblock1  (driver?)
[    3.567531] 1f02            3072 mtdblock2  (driver?)
[    3.572633] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.580943] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.105.13 #1
[    3.587358] [<c00148f4>] (unwind_backtrace+0x0/0xe0) from [<c00110cc>] (show_stack+0x10/0x18)
[    3.595940] [<c00110cc>] (show_stack+0x10/0x18) from [<c06cfef0>] (panic+0x84/0x1d0)
[    3.603734] [<c06cfef0>] (panic+0x84/0x1d0) from [<c091803c>] (mount_block_root+0x1d4/0x218)
[    3.612221] [<c091803c>] (mount_block_root+0x1d4/0x218) from [<c0918244>] (mount_root+0xdc/0x104)
[    3.621144] [<c0918244>] (mount_root+0xdc/0x104) from [<c09183c8>] (prepare_namespace+0x15c/0x1bc)
[    3.630155] [<c09183c8>] (prepare_namespace+0x15c/0x1bc) from [<c0917c80>] (kernel_init_freeable+0x1ec/0x238)
[    3.640127] [<c0917c80>] (kernel_init_freeable+0x1ec/0x238) from [<c06cb238>] (kernel_init+0x8/0xe8)
[    3.649316] [<c06cb238>] (kernel_init+0x8/0xe8) from [<c000d8d8>] (ret_from_fork+0x14/0x3c)
[    3.657710] CPU1: stopping
[    3.660441] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.105.13 #1
[    3.666848] [<c00148f4>] (unwind_backtrace+0x0/0xe0) from [<c00110cc>] (show_stack+0x10/0x18)
[    3.675429] [<c00110cc>] (show_stack+0x10/0x18) from [<c0013148>] (handle_IPI+0xc4/0x130)
[    3.683656] [<c0013148>] (handle_IPI+0xc4/0x130) from [<c00085f0>] (gic_handle_irq+0x58/0x68)
[    3.692232] [<c00085f0>] (gic_handle_irq+0x58/0x68) from [<c000d480>] (__irq_svc+0x40/0x50)
[    3.700624] Exception stack(0xf0081fa0 to 0xf0081fe8)
[    3.705711] 1fa0: ffffffed 00000000 00d5a000 c001bc40 f0080030 f0080000 10c03c7d c09c8660
[    3.713936] 1fc0: 0000406a 414fc091 00000000 00000000 00000000 f0081fe8 c000ea4c c000ea50
[    3.722153] 1fe0: 60000113 ffffffff
[    3.725673] [<c000d480>] (__irq_svc+0x40/0x50) from [<c000ea50>] (arch_cpu_idle+0x38/0x48)
[    3.733991] [<c000ea50>] (arch_cpu_idle+0x38/0x48) from [<c005880c>] (cpu_startup_entry+0xb4/0x114)
[    3.743090] [<c005880c>] (cpu_startup_entry+0xb4/0x114) from [<006ccc84>] (0x6ccc84)

Cheers, lordzahl
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 15, 2018 05:27AM
lordzahl,

> I had another idea. I used the stock kernel
> bzImage, replaced the bootz command with bootm.
> The stock kernel boots fine (also with the same
> stock dtb as above) and only fails when the rootfs
> should be loaded:

Interesting test! you're basically running stock kernel with the new rootfs. It does not hurt to try this to see if something was configured in stock kernel for the memory.

However, you should remove the DTB loading. Stock kernel uImage apparently has the DTB embedded inside. That was the reason for the rootfs mounting failure at the end.

So to run stock zImage with the new uInird:

setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Try the above usb_bootcmd and see if you can boot pass the rootfs mounting, into Debian (Replace bootz with bootm if stock bzImage is actually uImage).

I think we should look for the stock kernel config to see any memory option was set/clear. Things such as CONFIG_ARM_PATCH_PHYS_VIRT.

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



Edited 1 time(s). Last edit at 02/15/2018 05:30AM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 15, 2018 12:20PM
I tried again booting the stock kernel with your modified boot command. I got another error - it could not find the rootfs. See the log at the end of this message.

I tried to find the stock kernel config, but had no luck. Nothing in /proc/config* /boot. Neither could i extract it with extract-ikconfig. The gpl sources are still useless, since they are for a completely different NAS.
While searching Thecus Website again, i discovered that they have a beta firmware with kernel 4.4 (it was not very obvious, because it was below the older firmwares).
I will flash this firmware and see if the new kernel has new info.

Update:
I flashed the new firmware. But it actually did not contain a 4.4 kernel. What a bummer! It hast a new 3.10 kernel build, but still no kernel config available.


BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... cannot reset port 2!?
1 USB Device(s) found
Bad detection, need a second reset...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> run usb_bootcmd
Booting from USB ...
5069923 bytes read in 233 ms (20.8 MiB/s)
7070236 bytes read in 269 ms (25.1 MiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   linux-3.10.thecus.develop-2015_T
   Created:      2017-08-09   9:39:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5069859 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 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] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.105.13 (root@localhost.localdomain) (gcc version 4.8.5 (Marvell GCC release 20160307-7f3c83a0) ) #1 SMP Wed Aug 9 17:39:15 CST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c16ab000 s8704 r8192 d15872 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi_flash:0x00100000(uboot),0x00010000@0x00100000(uboot_env) 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] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1020004k/1020004k available, 28572k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09162e4   (9273 kB)
[    0.000000]       .init : 0xc0917000 - 0xc095b200   ( 273 kB)
[    0.000000]       .data : 0xc095c000 - 0xc09c82e0   ( 433 kB)
[    0.000000]        .bss : 0xc09c82e0 - 0xc0a3b714   ( 462 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p9
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.017490] Calibrating delay loop... 2125.00 BogoMIPS (lpj=10625024)
[    0.082996] pid_max: default: 32768 minimum: 301
[    0.087788] Mount-cache hash table entries: 512
[    0.092844] Initializing cgroup subsys memory
[    0.097279] Initializing cgroup subsys devices
[    0.101797] Initializing cgroup subsys freezer
[    0.106303] Initializing cgroup subsys blkio
[    0.110642] Initializing cgroup subsys perf_event
[    0.115431] CPU: Testing write buffer coherency: ok
[    0.120525] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.126281] Setting up static identity map for 0xc06d9470 - 0xc06d94c8
[    0.133065] mvebu-pmsu: Initializing Power Management Service Unit
[    0.139367] Initializing CPU Reset module
[    0.144167] CPU1: Booted secondary processor
[    0.196237] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.196311] Brought up 2 CPUs
[    0.209403] SMP: Total of 2 processors activated (4250.00 BogoMIPS).
[    0.215809] CPU: All CPU(s) started in SVC mode.
[    0.220910] devtmpfs: initialized
[    0.227248] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.232700] xor: measuring software checksum speed
[    0.336124]    arm4regs  :  1699.600 MB/sec
[    0.436062]    8regs     :  1257.600 MB/sec
[    0.535997]    32regs    :  1253.200 MB/sec
[    0.540244] xor: using function: arm4regs (1699.600 MB/sec)
[    0.545875] pinctrl core: initialized pinctrl subsystem
[    0.551499] regulator-dummy: no parameters
[    0.555860] NET: Registered protocol family 16
[    0.561210] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.571315] irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
[    0.578887] irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
[    0.590046] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.598114] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.622518] bio: create slab <bio-0> at 0
[    0.796195] raid6: int32x1    123 MB/s
[    0.966026] raid6: int32x2    200 MB/s
[    1.135790] raid6: int32x4    169 MB/s
[    1.305784] raid6: int32x8    193 MB/s
[    1.309599] raid6: using algorithm int32x2 (200 MB/s)
[    1.314710] raid6: using intx1 recovery algorithm
[    1.319877] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.325647] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.331548] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.338319] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.344644] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.351578] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.357492] PCI: bus0: Fast back to back transfers disabled
[    1.363126] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.371194] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.379395] PCI: bus1: Fast back to back transfers enabled
[    1.385075] PCI: bus2: Fast back to back transfers enabled
[    1.390666] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.395703] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.400732] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.406455] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.412662] vgaarb: loaded
[    1.415823] SCSI subsystem initialized
[    1.420266] usbcore: registered new interface driver usbfs
[    1.425925] usbcore: registered new interface driver hub
[    1.431397] usbcore: registered new device driver usb
[    1.436912] Linux video capture interface: v2.00
[    1.441840] pps_core: LinuxPPS API ver. 1 registered
[    1.446879] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.456190] PTP clock support registered
[    1.460996] Bluetooth: Core ver 2.16
[    1.464717] NET: Registered protocol family 31
[    1.469237] Bluetooth: HCI device and connection manager initialized
[    1.475656] Bluetooth: HCI socket layer initialized
[    1.480596] Bluetooth: L2CAP socket layer initialized
[    1.485724] Bluetooth: SCO socket layer initialized
[    1.491072] Switching to clocksource armada_370_xp_clocksource
[    1.497008] cfg80211: Calling CRDA to update world regulatory domain
[    1.512506] NET: Registered protocol family 2
[    1.517454] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.524646] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.531252] TCP: Hash tables configured (established 8192 bind 8192)
[    1.537703] TCP: reno registered
[    1.541004] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.547013] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.553576] NET: Registered protocol family 1
[    1.558159] RPC: Registered named UNIX socket transport module.
[    1.564136] RPC: Registered udp transport module.
[    1.568918] RPC: Registered tcp transport module.
[    1.573684] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.580310] Trying to unpack rootfs image as initramfs...
[    1.959855] Freeing initrd memory: 6900K (c2901000 - c2fbe000)
[    1.966086] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    1.976071] bounce pool size: 64 pages
[    1.985860] VFS: Disk quotas dquot_6.5.2
[    1.990095] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.998581] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.005717] NFS: Registering the id_resolver key type
[    2.010961] Key type id_resolver registered
[    2.015209] Key type id_legacy registered
[    2.019309] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.025984] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    2.032589] fuse init (API version 7.22)
[    2.037148] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    2.047094] msgmni has been set to 1507
[    2.052328] async_tx: api initialized (async)
[    2.056980] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.064508] io scheduler noop registered
[    2.068512] io scheduler deadline registered (default)
[    2.073728] io scheduler cfq registered
[    2.078430] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.085764] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.127552] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.167574] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.173470] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.181943] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.227554] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.267572] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    2.273468] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.302743] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    2.330227] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    2.337360] console [ttyS0] enabled, bootconsole disabled
[    2.337360] console [ttyS0] enabled, bootconsole disabled
[    2.350415] brd: module loaded
[    2.356295] loop: loaded (max 8 devices)
[    2.360718] nbd: registered device at major 43
[    2.369996] i2c /dev entries driver
[    2.375002] pca9532_init
[    2.383542] pca9532_id_init
[    2.392068] i2c i2c-0: Found pca9532_id at 0x61
[    2.396746] pca9532_id 0-0061: setting platform data
[    2.431536] thecus_io: board_num: 0h
[    2.435128] thecus_io: board_idx: 0h
[    2.438735] thecus_board = BOARD_N2350, thecus_mbtype = a385!
[    2.445184] SCSI Media Changer driver v0.25 
[    2.449983] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.458832] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    2.468736] scsi0 : ahci_mv_platform
[    2.472647] scsi1 : ahci_mv_platform
[    2.476471] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    2.484439] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    2.493671] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    2.508080] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    2.520964] Bad block table found at page 261824, version 0x01
[    2.527928] Bad block table found at page 261760, version 0x01
[    2.533975] nand_read_bbt: bad block at 0x0000061e0000
[    2.539158] nand_read_bbt: bad block at 0x00000e1c0000
[    2.544317] nand_read_bbt: bad block at 0x00000e1e0000
[    2.549512] nand_read_bbt: bad block at 0x00001ff80000
[    2.554671] nand_read_bbt: bad block at 0x00001ffa0000
[    2.559836] nand_read_bbt: bad block at 0x00001ffc0000
[    2.564994] nand_read_bbt: bad block at 0x00001ffe0000
[    2.570183] 1 cmdlinepart partitions found on MTD device armada-nand
[    2.576564] Creating 1 MTD partitions on "armada-nand":
[    2.581820] 0x000000000000-0x000020000000 : "ubifs"
[    2.588861] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    2.593770] 2 ofpart partitions found on MTD device spi1.0
[    2.599298] Creating 2 MTD partitions on "spi1.0":
[    2.604116] 0x000000000000-0x000000400000 : "U-Boot-img"
[    2.610136] 0x000000100000-0x000000400000 : "U-Boot-env"
[    2.617534] libphy: Fixed MDIO Bus: probed
[    2.622316] SoC: model = 0x6820, revision = 0x4
[    2.626955] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    2.632478]   o 3 Giga ports supported
[    2.636242]   o SKB recycle supported for SWF (Disabled)
[    2.641588]   o NETA acceleration mode 4
[    2.645527]   o BM supported for CPU: 4 BM pools
[    2.650168]   o PnC supported (Enabled)
[    2.654019]   o RX Queue support: 8 Queues * 256 Descriptors
[    2.659712]   o TX Queue support: 8 Queues * 532 Descriptors
[    2.665393]   o GSO supported
[    2.668377]   o GRO supported
[    2.671356]   o Receive checksum offload supported
[    2.676165]   o Transmit checksum offload supported
[    2.681066]   o Driver ERROR statistics enabled
[    2.685614]   o Driver INFO statistics enabled
[    2.690079]   o Driver DEBUG statistics enabled
[    2.694627] 
[    2.697498] port #0: is_sgmii=1, is_rgmii=0, phy_addr=1
[    2.702794]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    2.711126] 
[    2.712624]   o Port 0 is connected to Linux netdevice
[    2.719365]     o eth0, ifindex = 3, GbE port = 0
[    2.727526] 	giga p=0: mtu=1500, mac=7a:bf:f2:be:1b:34 (random)
[    2.733472] 
[    2.735398] libphy: orion_mdio_bus: probed
[    2.740859] PPP generic driver version 2.4.2
[    2.745361] PPP BSD Compression module registered
[    2.750104] PPP Deflate Compression module registered
[    2.755186] PPP MPPE Compression module registered
[    2.760004] NET: Registered protocol family 24
[    2.764592] usbcore: registered new interface driver asix
[    2.770126] usbcore: registered new interface driver ax88179_178a
[    2.776331] usbcore: registered new interface driver cdc_ether
[    2.782362] usbcore: registered new interface driver net1080
[    2.788150] usbcore: registered new interface driver cdc_subset
[    2.794175] usbcore: registered new interface driver zaurus
[    2.799884] usbcore: registered new interface driver cdc_ncm
[    2.805579] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.812189] ehci-pci: EHCI PCI platform driver
[    2.816742] ehci-orion: EHCI orion driver
[    2.820885] orion-ehci f1058000.usb: EHCI Host Controller
[    2.826320] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.834010] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    2.837019] ata1: SATA link down (SStatus 0 SControl 300)
[    2.837059] ata2: SATA link down (SStatus 0 SControl 300)
[    2.867036] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.873024] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.879860] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.887126] usb usb1: Product: EHCI Host Controller
[    2.892026] usb usb1: Manufacturer: Linux 3.10.105.13 ehci_hcd
[    2.897891] usb usb1: SerialNumber: f1058000.usb
[    2.902935] hub 1-0:1.0: USB hub found
[    2.906709] hub 1-0:1.0: 1 port detected
[    2.911098] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.916444] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    2.924145] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    2.929965] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.936785] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.944061] usb usb2: Product: xHCI Host Controller
[    2.948973] usb usb2: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    2.954832] usb usb2: SerialNumber: f10f0000.usb3
[    2.959962] hub 2-0:1.0: USB hub found
[    2.963735] hub 2-0:1.0: 1 port detected
[    2.967815] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    2.973156] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    2.980729] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    2.987560] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.994814] usb usb3: Product: xHCI Host Controller
[    2.999720] usb usb3: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    3.005578] usb usb3: SerialNumber: f10f0000.usb3
[    3.011120] hub 3-0:1.0: USB hub found
[    3.014893] hub 3-0:1.0: 1 port detected
[    3.019019] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.024365] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.057168] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    3.062975] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    3.069815] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.077075] usb usb4: Product: xHCI Host Controller
[    3.081975] usb usb4: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    3.087842] usb usb4: SerialNumber: f10f8000.usb3
[    3.093051] hub 4-0:1.0: USB hub found
[    3.096824] hub 4-0:1.0: 1 port detected
[    3.100907] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.106249] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    3.113810] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    3.120645] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.127905] usb usb5: Product: xHCI Host Controller
[    3.132805] usb usb5: Manufacturer: Linux 3.10.105.13 xhci-hcd
[    3.138673] usb usb5: SerialNumber: f10f8000.usb3
[    3.143838] hub 5-0:1.0: USB hub found
[    3.147621] hub 5-0:1.0: 1 port detected
[    3.152079] mv-udc f1058100.udc: successful probe UDC device without clock gating.
[    3.160074] mousedev: PS/2 mouse device common for all mice
[    3.166923] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    3.357042] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    3.377161] usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[    3.386393] usb 3-1: New USB device found, idVendor=1f75, idProduct=0916
[    3.393136] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.400309] usb 3-1: Product: USB Flash Disk
[    3.404597] usb 3-1: Manufacturer: General
[    3.408720] usb 3-1: SerialNumber: 1127100000000272
[    3.563474] lm75 0-0049: hwmon0: sensor 'lm75'
[    3.617119] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    3.625250] orion_wdt: Initial timeout 171 sec
[    3.629850] thecus_event : started
[    3.633268] md: linear personality registered for level -1
[    3.638793] md: raid0 personality registered for level 0
[    3.644127] md: raid1 personality registered for level 1
[    3.649469] md: raid10 personality registered for level 10
[    3.654976] md: raid6 personality registered for level 6
[    3.660316] md: raid5 personality registered for level 5
[    3.665649] md: raid4 personality registered for level 4
[    3.670988] md: multipath personality registered for level -4
[    3.677091] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    3.685625] dm_crypt using the OCF package.
[    3.690083] device-mapper: multipath: version 1.6.0 loaded
[    3.695594] device-mapper: multipath round-robin: version 1.0.0 loaded
[    3.702165] device-mapper: multipath queue-length: version 0.1.0 loaded
[    3.708826] device-mapper: multipath service-time: version 0.2.0 loaded
[    3.717828] cpuidle: using governor ladder
[    3.722113] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    3.731472] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
[    3.740599] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff
[    3.750469] mvCesaInit: channels=2, session=640, queue=256
[    3.775999] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    3.785253] cesadev_init(c0937940)
[    3.789423] usbcore: registered new interface driver usbhid
[    3.795024] usbhid: USB HID core driver
[    3.799078] Loading Marvell spi device
[    3.804059] arp_tables: (C) 2002 David S. Miller
[    3.808791] TCP: cubic registered
[    3.812126] Initializing XFRM netlink socket
[    3.817363] NET: Registered protocol family 10
[    3.822758] sit: IPv6 over IPv4 tunneling driver
[    3.828322] NET: Registered protocol family 17
[    3.832814] NET: Registered protocol family 15
[    3.837356] Bridge firewalling registered
[    3.841433] 8021q: 802.1Q VLAN Support v1.8
[    3.845686] Key type dns_resolver registered
[    3.850216] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    3.859261] regulator-dummy: disabling
[    3.863757] mvebu-rtc f10a3800.rtc: setting system clock to 2018-02-15 18:12:12 UTC (1518718332)
[    3.873345] Freeing unused kernel memory: 272K (c0917000 - c095b000)
Loading, please wait...
starting version 232
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.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) help
Built-in commands:
------------------
	. : [ [[ alias bg break cd chdir command continue echo eval exec
	exit export false fg getopts hash help history jobs kill let
	local printf pwd read readonly return set shift source test times
	trap true type ulimit umask unalias unset wait

(initramfs) ls
bin      dev      init     proc     run      scripts  tmp
conf     etc      lib      root     sbin     sys      var
(initramfs) ls /dev/
autofs              ptyqb               tty11               ttyq6
block               ptyqc               tty12               ttyq7
bus                 ptyqd               tty13               ttyq8
cesa                ptyqe               tty14               ttyq9
char                ptyqf               tty15               ttyqa
console             ptyr0               tty16               ttyqb
cpu_dma_latency     ptyr1               tty17               ttyqc
crypto              ptyr2               tty18               ttyqd
fd                  ptyr3               tty19               ttyqe
full                ptyr4               tty2                ttyqf
fuse                ptyr5               tty20               ttyr0
i2c-0               ptyr6               tty21               ttyr1
input               ptyr7               tty22               ttyr2
kmem                ptyr8               tty23               ttyr3
kmsg                ptyr9               tty24               ttyr4
loop0               ptyra               tty25               ttyr5
loop1               ptyrb               tty26               ttyr6
loop2               ptyrc               tty27               ttyr7
loop3               ptyrd               tty28               ttyr8
loop4               ptyre               tty29               ttyr9
loop5               ptyrf               tty3                ttyra
loop6               ptys0               tty30               ttyrb
loop7               ptys1               tty31               ttyrc
mapper              ptys2               tty32               ttyrd
mem                 ptys3               tty33               ttyre
mtd0                ptys4               tty34               ttyrf
mtd0ro              ptys5               tty35               ttys0
mtd1                ptys6               tty36               ttys1
mtd1ro              ptys7               tty37               ttys2
mtd2                ptys8               tty38               ttys3
mtd2ro              ptys9               tty39               ttys4
mtdblock0           ptysa               tty4                ttys5
mtdblock1           ptysb               tty40               ttys6
mtdblock2           ptysc               tty41               ttys7
nbd0                ptysd               tty42               ttys8
nbd1                ptyse               tty43               ttys9
nbd10               ptysf               tty44               ttysa
nbd11               ptyt0               tty45               ttysb
nbd12               ptyt1               tty46               ttysc
nbd13               ptyt2               tty47               ttysd
nbd14               ptyt3               tty48               ttyse
nbd15               ptyt4               tty49               ttysf
nbd2                ptyt5               tty5                ttyt0
nbd3                ptyt6               tty50               ttyt1
nbd4                ptyt7               tty51               ttyt2
nbd5                ptyt8               tty52               ttyt3
nbd6                ptyt9               tty53               ttyt4
nbd7                ptyta               tty54               ttyt5
nbd8                ptytb               tty55               ttyt6
nbd9                ptytc               tty56               ttyt7
network_latency     ptytd               tty57               ttyt8
network_throughput  ptyte               tty58               ttyt9
null                ptytf               tty59               ttyta
port                ptyu0               tty6                ttytb
ppp                 ptyu1               tty60               ttytc
psaux               ptyu2               tty61               ttytd
ptmx                ptyu3               tty62               ttyte
pts                 ptyu4               tty63               ttytf
ptyp0               ptyu5               tty7                ttyu0
ptyp1               ptyu6               tty8                ttyu1
ptyp2               ptyu7               tty9                ttyu2
ptyp3               ptyu8               ttyS0               ttyu3
ptyp4               ptyu9               ttyS1               ttyu4
ptyp5               ptyua               ttyp0               ttyu5
ptyp6               ptyub               ttyp1               ttyu6
ptyp7               ptyuc               ttyp2               ttyu7
ptyp8               ptyud               ttyp3               ttyu8
ptyp9               ptyue               ttyp4               ttyu9
ptypa               ptyuf               ttyp5               ttyua
ptypb               ram0                ttyp6               ttyub
ptypc               ram1                ttyp7               ttyuc
ptypd               ram2                ttyp8               ttyud
ptype               ram3                ttyp9               ttyue
ptypf               random              ttypa               ttyuf
ptyq0               rtc                 ttypb               ubi_ctrl
ptyq1               rtc0                ttypc               urandom
ptyq2               spi                 ttypd               vcs
ptyq3               stderr              ttype               vcs1
ptyq4               stdin               ttypf               vcsa
ptyq5               stdout              ttyq0               vcsa1
ptyq6               tal                 ttyq1               vga_arbiter
ptyq7               tty                 ttyq2               watchdog
ptyq8               tty0                ttyq3               watchdog0
ptyq9               tty1                ttyq4               zero
ptyqa               tty10               ttyq5
(initramfs) (initramfs) ls /dev/(initramfs) ls(initramfs) help
(initramfs) 
(initramfs) mount
rootfs on / type rootfs (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=510000k,nr_inodes=127500,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=102720k,mode=755)
(initramfs) ls
bin      dev      init     proc     run      scripts  tmp
conf     etc      lib      root     sbin     sys      var
(initramfs) cd conf
(initramfs) ls
arch.conf       conf.d          initramfs.conf
(initramfs) cd ..vi ar(initramfs) vi arch.conf 
[?1049hDPKG_ARCH=armhf~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- arch.conf 1/1 100%:q- arch.conf 1/1 100%[?1049l(initramfs) ls
arch.conf       conf.d          initramfs.conf
(initramfs) cd ..
(initramfs) ls
bin      dev      init     proc     run      scripts  tmp
conf     etc      lib      root     sbin     sys      var
(initramfs) cd boot
sh: cd: can't cd to boot
(initramfs) ls
bin      dev      init     proc     run      scripts  tmp
conf     etc      lib      root     sbin     sys      var
(initramfs) quit
sh: quit: not found
(initramfs) reboot
(initramfs) stop
sh: stop: not found
(initramfs) halt
(initramfs) lsls
bin      dev      init     proc     run      scripts  tmp
conf     etc      lib      root     sbin     sys      var
(initramfs) help
Built-in commands:
------------------
	. : [ [[ alias bg break cd chdir command continue echo eval exec
	exit export false fg getopts hash help history jobs kill let
	local printf pwd read readonly return set shift source test times
	trap true type ulimit umask unalias unset wait

(initramfs) cd root
(initramfs) ls
(initramfs) cd ..
(initramfs) cd tmp
(initramfs) ls
(initramfs) quit
sh: quit: not found
(initramfs) 
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) 
(initramfs) cat /pr(initramfs) cat /proc/mod(initramfs) cat /proc/modules 
(initramfs) ls /dev
autofs              ptyqb               tty11               ttyq6
block               ptyqc               tty12               ttyq7
bus                 ptyqd               tty13               ttyq8
cesa                ptyqe               tty14               ttyq9
char                ptyqf               tty15               ttyqa
console             ptyr0               tty16               ttyqb
cpu_dma_latency     ptyr1               tty17               ttyqc
crypto              ptyr2               tty18               ttyqd
fd                  ptyr3               tty19               ttyqe
full                ptyr4               tty2                ttyqf
fuse                ptyr5               tty20               ttyr0
i2c-0               ptyr6               tty21               ttyr1
input               ptyr7               tty22               ttyr2
kmem                ptyr8               tty23               ttyr3
kmsg                ptyr9               tty24               ttyr4
loop0               ptyra               tty25               ttyr5
loop1               ptyrb               tty26               ttyr6
loop2               ptyrc               tty27               ttyr7
loop3               ptyrd               tty28               ttyr8
loop4               ptyre               tty29               ttyr9
loop5               ptyrf               tty3                ttyra
loop6               ptys0               tty30               ttyrb
loop7               ptys1               tty31               ttyrc
mapper              ptys2               tty32               ttyrd
mem                 ptys3               tty33               ttyre
mtd0                ptys4               tty34               ttyrf
mtd0ro              ptys5               tty35               ttys0
mtd1                ptys6               tty36               ttys1
mtd1ro              ptys7               tty37               ttys2
mtd2                ptys8               tty38               ttys3
mtd2ro              ptys9               tty39               ttys4
mtdblock0           ptysa               tty4                ttys5
mtdblock1           ptysb               tty40               ttys6
mtdblock2           ptysc               tty41               ttys7
nbd0                ptysd               tty42               ttys8
nbd1                ptyse               tty43               ttys9
nbd10               ptysf               tty44               ttysa
nbd11               ptyt0               tty45               ttysb
nbd12               ptyt1               tty46               ttysc
nbd13               ptyt2               tty47               ttysd
nbd14               ptyt3               tty48               ttyse
nbd15               ptyt4               tty49               ttysf
nbd2                ptyt5               tty5                ttyt0
nbd3                ptyt6               tty50               ttyt1
nbd4                ptyt7               tty51               ttyt2
nbd5                ptyt8               tty52               ttyt3
nbd6                ptyt9               tty53               ttyt4
nbd7                ptyta               tty54               ttyt5
nbd8                ptytb               tty55               ttyt6
nbd9                ptytc               tty56               ttyt7
network_latency     ptytd               tty57               ttyt8
network_throughput  ptyte               tty58               ttyt9
null                ptytf               tty59               ttyta
port                ptyu0               tty6                ttytb
ppp                 ptyu1               tty60               ttytc
psaux               ptyu2               tty61               ttytd
ptmx                ptyu3               tty62               ttyte
pts                 ptyu4               tty63               ttytf
ptyp0               ptyu5               tty7                ttyu0
ptyp1               ptyu6               tty8                ttyu1
ptyp2               ptyu7               tty9                ttyu2
ptyp3               ptyu8               ttyS0               ttyu3
ptyp4               ptyu9               ttyS1               ttyu4
ptyp5               ptyua               ttyp0               ttyu5
ptyp6               ptyub               ttyp1               ttyu6
ptyp7               ptyuc               ttyp2               ttyu7
ptyp8               ptyud               ttyp3               ttyu8
ptyp9               ptyue               ttyp4               ttyu9
ptypa               ptyuf               ttyp5               ttyua
ptypb               ram0                ttyp6               ttyub
ptypc               ram1                ttyp7               ttyuc
ptypd               ram2                ttyp8               ttyud
ptype               ram3                ttyp9               ttyue
ptypf               random              ttypa               ttyuf
ptyq0               rtc                 ttypb               ubi_ctrl
ptyq1               rtc0                ttypc               urandom
ptyq2               spi                 ttypd               vcs
ptyq3               stderr              ttype               vcs1
ptyq4               stdin               ttypf               vcsa
ptyq5               stdout              ttyq0               vcsa1
ptyq6               tal                 ttyq1               vga_arbiter
ptyq7               tty                 ttyq2               watchdog
ptyq8               tty0                ttyq3               watchdog0
ptyq9               tty1                ttyq4               zero
ptyqa               tty10               ttyq5
(initramfs) ls /dev
autofs              ptyqb               tty11               ttyq6
block               ptyqc               tty12               ttyq7
bus                 ptyqd               tty13               ttyq8
cesa                ptyqe               tty14               ttyq9
char                ptyqf               tty15               ttyqa
console             ptyr0               tty16               ttyqb
cpu_dma_latency     ptyr1               tty17               ttyqc
crypto              ptyr2               tty18               ttyqd
fd                  ptyr3               tty19               ttyqe
full                ptyr4               tty2                ttyqf
fuse                ptyr5               tty20               ttyr0
i2c-0               ptyr6               tty21               ttyr1
input               ptyr7               tty22               ttyr2
kmem                ptyr8               tty23               ttyr3
kmsg                ptyr9               tty24               ttyr4
loop0               ptyra               tty25               ttyr5
loop1               ptyrb               tty26               ttyr6
loop2               ptyrc               tty27               ttyr7
loop3               ptyrd               tty28               ttyr8
loop4               ptyre               tty29               ttyr9
loop5               ptyrf               tty3                ttyra
loop6               ptys0               tty30               ttyrb
loop7               ptys1               tty31               ttyrc
mapper              ptys2               tty32               ttyrd
mem                 ptys3               tty33               ttyre
mtd0                ptys4               tty34               ttyrf
mtd0ro              ptys5               tty35               ttys0
mtd1                ptys6               tty36               ttys1
mtd1ro              ptys7               tty37               ttys2
mtd2                ptys8               tty38               ttys3
mtd2ro              ptys9               tty39               ttys4
mtdblock0           ptysa               tty4                ttys5
mtdblock1           ptysb               tty40               ttys6
mtdblock2           ptysc               tty41               ttys7
nbd0                ptysd               tty42               ttys8
nbd1                ptyse               tty43               ttys9
nbd10               ptysf               tty44               ttysa
nbd11               ptyt0               tty45               ttysb
nbd12               ptyt1               tty46               ttysc
nbd13               ptyt2               tty47               ttysd
nbd14               ptyt3               tty48               ttyse
nbd15               ptyt4               tty49               ttysf
nbd2                ptyt5               tty5                ttyt0
nbd3                ptyt6               tty50               ttyt1
nbd4                ptyt7               tty51               ttyt2
nbd5                ptyt8               tty52               ttyt3
nbd6                ptyt9               tty53               ttyt4
nbd7                ptyta               tty54               ttyt5
nbd8                ptytb               tty55               ttyt6
nbd9                ptytc               tty56               ttyt7
network_latency     ptytd               tty57               ttyt8
network_throughput  ptyte               tty58               ttyt9
null                ptytf               tty59               ttyta
port                ptyu0               tty6                ttytb
ppp                 ptyu1               tty60               ttytc
psaux               ptyu2               tty61               ttytd
ptmx                ptyu3               tty62               ttyte
pts                 ptyu4               tty63               ttytf
ptyp0               ptyu5               tty7                ttyu0
ptyp1               ptyu6               tty8                ttyu1
ptyp2               ptyu7               tty9                ttyu2
ptyp3               ptyu8               ttyS0               ttyu3
ptyp4               ptyu9               ttyS1               ttyu4
ptyp5               ptyua               ttyp0               ttyu5
ptyp6               ptyub               ttyp1               ttyu6
ptyp7               ptyuc               ttyp2               ttyu7
ptyp8               ptyud               ttyp3               ttyu8
ptyp9               ptyue               ttyp4               ttyu9
ptypa               ptyuf               ttyp5               ttyua
ptypb               ram0                ttyp6               ttyub
ptypc               ram1                ttyp7               ttyuc
ptypd               ram2                ttyp8               ttyud
ptype               ram3                ttyp9               ttyue
ptypf               random              ttypa               ttyuf
ptyq0               rtc                 ttypb               ubi_ctrl
ptyq1               rtc0                ttypc               urandom
ptyq2               spi                 ttypd               vcs
ptyq3               stderr              ttype               vcs1
ptyq4               stdin               ttypf               vcsa
ptyq5               stdout              ttyq0               vcsa1
ptyq6               tal                 ttyq1               vga_arbiter
ptyq7               tty                 ttyq2               watchdog
ptyq8               tty0                ttyq3               watchdog0
ptyq9               tty1                ttyq4               zero
ptyqa               tty10               ttyq5
(initramfs)



Edited 3 time(s). Last edit at 02/15/2018 02:03PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 15, 2018 02:52PM
lordzahl,

Check your USB rootfs. Does it have single Ext3 partition with label rootfs?

e2label /dev/sda1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 15, 2018 02:54PM
Yes:
[****@**** ~]$ sudo e2label /dev/sdb1
rootfs
[****@**** ~]$ sudo e2label /dev/sdb
sdb   sdb1  
[****@**** ~]$ 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 16, 2018 03:20AM
lordzahl,

Does this box have USB 2.0 port, and did you use that port for the USB rootfs?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 16, 2018 03:30AM
The box has two normally reachable USB 3.0 ports on the back. I used the one next to the LAN port, since this one was recommended by the rescue_fw manual. But it has a third port, which is normally not reachable from outside, which is probably USB 2.0. I will not be home until sunday. I will test it then.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
February 16, 2018 10:53PM
lordzahl Wrote:
-------------------------------------------------------
> The box has two normally reachable USB 3.0 ports
> on the back. I used the one next to the LAN port,
> since this one was recommended by the rescue_fw
> manual. But it has a third port, which is normally
> not reachable from outside, which is probably USB
> 2.0. I will not be home until sunday. I will test
> it then.

This might be a USB power problem. For the other Armada boxes that run the same u-boot as this Thecus (older version, but same source), USB power was cut off before booting the kernel. We had to either run "mw ..." or incorporate USB power activation in the DTS for it. So the rescue FW might have done that GPIO poke with "mw ...".

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
other USB ports
February 18, 2018 06:23AM
So uboot does not recognize the internal (USB2?) port, neither the other USB3 port in the back. The USB drive is only available on typing "usb start" in the one next to the RJ45 port.
I have also tried another USB stick in either ports, but the result is the same. For the mw commands: I don't know what the first one
mw 0xf1018104 0xfecf3fff
does, but the second one blinks two of the LEDs
mw 0xf1018108 0x4000
after execution.
I tried to execute both of them before boot from the usb stick, but the result was the same.
Re: other USB ports
February 18, 2018 04:02PM
lordzahl,

Quote

One other observation for the future: The GPL sources provided for the NAS by Thecus only includes one dts file, which matches the "model" string shown by my kernel boot up dump "Marvell Armada 385 Development Board".
I will attach it here for future reference.

I think you need to ask Thecus to provide GPL source for u-boot and kernel

U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

[    0.000000] Linux version 3.10.105.13 (root@localhost.localdomain) (gcc version 4.8.5 (Marvell GCC release 20160307-7f3c83a0) ) #1 SMP Wed Aug 9 17:39:15 CST 2017

Looking the boot log in this post above. None of the USB were initialized. Like there are no power.
https://forum.doozan.com/read.php?2,50829,51059#msg-51059

Do you have a stock serial bootlog you can post?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: other USB ports
February 18, 2018 04:33PM
Hello bodhi,

> I think you need to ask Thecus to provide GPL
> source for u-boot and kernel
Yes, i already did that, but i will try again on the public forum.

> Looking the boot log in this post above. None of
> the USB were initialized. Like there are no
> power.
> https://forum.doozan.com/read.php?2,50829,51059#msg-51059
Where do you read that USB were not initialized? I only find
[    3.357042] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    3.377161] usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[    3.386393] usb 3-1: New USB device found, idVendor=1f75, idProduct=0916
[    3.393136] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.400309] usb 3-1: Product: USB Flash Disk
[    3.404597] usb 3-1: Manufacturer: General
[    3.408720] usb 3-1: SerialNumber: 1127100000000272
Do you mean the second line?

> Do you have a stock serial bootlog you can post?
You can find it in the first post of this thread (the first long <code> part).
https://forum.doozan.com/read.php?2,50829,50829#msg-50829
Re: other USB ports
February 18, 2018 05:22PM
lordzahl,

> Where do you read that USB were not initialized? I
> only find

>
> [    3.357042] usb 3-1: new SuperSpeed USB device
> number 2 using xhci-hcd
> [    3.377161] usb 3-1: Parent hub missing LPM
> exit latency info.  Power management will be
> impacted.
> [    3.386393] usb 3-1: New USB device found,
> idVendor=1f75, idProduct=0916
> [    3.393136] usb 3-1: New USB device strings:
> Mfr=1, Product=2, SerialNumber=3
> [    3.400309] usb 3-1: Product: USB Flash Disk
> [    3.404597] usb 3-1: Manufacturer: General
> [    3.408720] usb 3-1: SerialNumber:
> 1127100000000272
>

At this point the USB drive should show the partition and capacity. For example

[    2.152319] scsi host2: usb-storage 1-1:1.0
[    2.467227] usbcore: registered new interface driver uas
[    3.234230] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    3.245851] sd 2:0:0:0: [sdb] 30031250 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    3.263174] sd 2:0:0:0: [sdb] Write Protect is off
[    3.268009] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    3.268601] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.288019]  sdb: sdb1


Could you plug in a USB drive to the "next to the RJ45 port". And power up to boot to stock. See if the this USB drive is initialized by stock kernel.

I do think this Thecus box has the same problem as the WD My Cloud boxes in that the USB power needs to be activated by GPIO during boot. We saw this issue with WD My Cloud EX2100/EX4100 with the same u-boot source "U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18" but with older builds.

The stock kernel GPL would show the GPIO number to be used. We modifed the DTS to activate USB and HDD for those boxes.

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



Edited 1 time(s). Last edit at 02/18/2018 05:24PM by bodhi.
Re: other USB ports
February 19, 2018 01:11AM
Hi bodhi,

Thanks for explaining. So There is USB power, in uboot, so there kernel image can be loaded, but it is gone in kernel again? If this happens with the stock kernel and stock dtb, then there might be a program after booting, which enables it?

Boot to stock with USB driver in the "next to RJ45 port":
BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  2  1  0 
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
** Unrecognized filesystem type **
incorrect device type in spi0=spi_flash
invalid mtd device 'spi_flash'
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000020000000 : "mtd=0"
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=0"
UBI: MTD device size:            512 MiB
UBI: number of good PEBs:        4085
UBI: number of bad PEBs:         11
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     4
UBI: available PEBs:             5
UBI: total number of reserved PEBs: 4080
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 1, name "boot"
UBIFS: mounted read-only
UBIFS: file system size:   91422720 bytes (89280 KiB, 87 MiB, 720 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  0 bytes (0 KiB)
Loading file 'boot/bzImage' to addr 0x02000000 with size 5069915 (0x004d5c5b)...
Done
Loading file 'boot/ramdisk' to addr 0x03000000 with size 16008500 (0x00f44534)...
Done
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   linux-3.10.thecus.develop-2015_T
   Created:      2018-01-19   4:22:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5069851 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   
   Created:      2018-01-19   4:30:47 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    16008436 Bytes = 15.3 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] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.105.14 (root@localhost.localdomain) (gcc version 4.8.5 (Marvell GCC release 20160307-7f3c83a0) ) #1 SMP Fri Jan 19 12:22:09 CST 2018
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c16ab000 s8704 r8192 d15872 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0
[    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] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1011276k/1011276k available, 37300k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09162e4   (9273 kB)
[    0.000000]       .init : 0xc0917000 - 0xc095b200   ( 273 kB)
[    0.000000]       .data : 0xc095c000 - 0xc09c82e0   ( 433 kB)
[    0.000000]        .bss : 0xc09c82e0 - 0xc0a3b714   ( 462 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p9
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.000592] Calibrating delay loop... 2131.55 BogoMIPS (lpj=10657792)
[    0.060020] pid_max: default: 32768 minimum: 301
[    0.060138] Mount-cache hash table entries: 512
[    0.060596] Initializing cgroup subsys memory
[    0.060618] Initializing cgroup subsys devices
[    0.060623] Initializing cgroup subsys freezer
[    0.060628] Initializing cgroup subsys blkio
[    0.060633] Initializing cgroup subsys perf_event
[    0.060662] CPU: Testing write buffer coherency: ok
[    0.060810] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060855] Setting up static identity map for 0xc06d9470 - 0xc06d94c8
[    0.061065] mvebu-pmsu: Initializing Power Management Service Unit
[    0.061121] Initializing CPU Reset module
[    0.061846] CPU1: Booted secondary processor
[    0.120817] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.120894] Brought up 2 CPUs
[    0.120907] SMP: Total of 2 processors activated (4256.56 BogoMIPS).
[    0.120911] CPU: All CPU(s) started in SVC mode.
[    0.121306] devtmpfs: initialized
[    0.124293] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.124526] xor: measuring software checksum speed
[    0.220728]    arm4regs  :  1700.000 MB/sec
[    0.320663]    8regs     :  1257.600 MB/sec
[    0.420601]    32regs    :  1253.600 MB/sec
[    0.420606] xor: using function: arm4regs (1700.000 MB/sec)
[    0.420614] pinctrl core: initialized pinctrl subsystem
[    0.420999] regulator-dummy: no parameters
[    0.421204] NET: Registered protocol family 16
[    0.422049] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.425220] irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
[    0.425753] irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
[    0.429853] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.429860] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.448331] bio: create slab <bio-0> at 0
[    0.610847] raid6: int32x1    123 MB/s
[    0.780692] raid6: int32x2    200 MB/s
[    0.950275] raid6: int32x4    169 MB/s
[    1.120279] raid6: int32x8    193 MB/s
[    1.120284] raid6: using algorithm int32x2 (200 MB/s)
[    1.120289] raid6: using intx1 recovery algorithm
[    1.120620] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.120650] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.120833] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.120844] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.120853] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.120862] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.121229] PCI: bus0: Fast back to back transfers disabled
[    1.121239] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.121249] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.121376] PCI: bus1: Fast back to back transfers enabled
[    1.121512] PCI: bus2: Fast back to back transfers enabled
[    1.121551] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.121562] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.121573] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.121580] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.122060] vgaarb: loaded
[    1.122435] SCSI subsystem initialized
[    1.123085] usbcore: registered new interface driver usbfs
[    1.123175] usbcore: registered new interface driver hub
[    1.123299] usbcore: registered new device driver usb
[    1.123696] Linux video capture interface: v2.00
[    1.123947] pps_core: LinuxPPS API ver. 1 registered
[    1.123953] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.124018] PTP clock support registered
[    1.124830] Bluetooth: Core ver 2.16
[    1.124911] NET: Registered protocol family 31
[    1.124918] Bluetooth: HCI device and connection manager initialized
[    1.124928] Bluetooth: HCI socket layer initialized
[    1.124936] Bluetooth: L2CAP socket layer initialized
[    1.124950] Bluetooth: SCO socket layer initialized
[    1.125392] Switching to clocksource armada_370_xp_clocksource
[    1.125427] cfg80211: Calling CRDA to update world regulatory domain
[    1.134548] NET: Registered protocol family 2
[    1.135073] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135169] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135268] TCP: Hash tables configured (established 8192 bind 8192)
[    1.135305] TCP: reno registered
[    1.135314] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.135339] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.135524] NET: Registered protocol family 1
[    1.136850] RPC: Registered named UNIX socket transport module.
[    1.136858] RPC: Registered udp transport module.
[    1.136862] RPC: Registered tcp transport module.
[    1.136867] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.136985] Trying to unpack rootfs image as initramfs...
[    2.065134] Freeing initrd memory: 15628K (c3001000 - c3f44000)
[    2.065524] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    2.069819] bounce pool size: 64 pages
[    2.086729] VFS: Disk quotas dquot_6.5.2
[    2.087144] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.091725] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.094761] NFS: Registering the id_resolver key type
[    2.094788] Key type id_resolver registered
[    2.094794] Key type id_legacy registered
[    2.094805] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.095253] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    2.096174] fuse init (API version 7.22)
[    2.097637] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    2.100570] msgmni has been set to 1507
[    2.102263] async_tx: api initialized (async)
[    2.102927] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.103265] io scheduler noop registered
[    2.103273] io scheduler deadline registered (default)
[    2.103302] io scheduler cfq registered
[    2.104399] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.105282] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.146000] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.176035] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.176049] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.177357] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.215965] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.245999] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    2.246012] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.316178] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    2.338582] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    3.208904] console [ttyS0] enabled
[    3.216665] brd: module loaded
[    3.395096] loop: loaded (max 210 devices)
[    3.401552] nbd: registered device at major 43
[    3.418760] i2c /dev entries driver
[    3.424497] pca9532_init
[    3.432927] pca9532_id_init
[    3.441710] i2c i2c-0: Found pca9532_id at 0x61
[    3.446542] pca9532_id 0-0061: setting platform data
[    3.481265] thecus_io: board_num: 0h
[    3.484856] thecus_io: board_idx: 0h
[    3.488461] thecus_board = BOARD_N2350, thecus_mbtype = a385!
[    3.497076] SCSI Media Changer driver v0.25 
[    3.502764] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.511624] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    3.522797] scsi0 : ahci_mv_platform
[    3.527259] scsi1 : ahci_mv_platform
[    3.531411] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.539386] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.551112] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.565619] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    3.578467] Bad block table found at page 261824, version 0x01
[    3.585421] Bad block table found at page 261760, version 0x01
[    3.591468] nand_read_bbt: bad block at 0x0000061e0000
[    3.596681] nand_read_bbt: bad block at 0x00000e1c0000
[    3.601840] nand_read_bbt: bad block at 0x00000e1e0000
[    3.607026] nand_read_bbt: bad block at 0x00001ff80000
[    3.612185] nand_read_bbt: bad block at 0x00001ffa0000
[    3.617349] nand_read_bbt: bad block at 0x00001ffc0000
[    3.622507] nand_read_bbt: bad block at 0x00001ffe0000
[    3.627695] 1 ofpart partitions found on MTD device armada-nand
[    3.633639] Creating 1 MTD partitions on "armada-nand":
[    3.638895] 0x000000000000-0x000020000000 : "ubifs"
[    3.647540] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    3.652454] 2 ofpart partitions found on MTD device spi1.0
[    3.657982] Creating 2 MTD partitions on "spi1.0":
[    3.662800] 0x000000000000-0x000000400000 : "U-Boot-img"
[    3.669752] 0x000000100000-0x000000400000 : "U-Boot-env"
[    3.681778] libphy: Fixed MDIO Bus: probed
[    3.686808] SoC: model = 0x6820, revision = 0x4
[    3.691450] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    3.696980]   o 3 Giga ports supported
[    3.700745]   o SKB recycle supported for SWF (Disabled)
[    3.706100]   o NETA acceleration mode 4
[    3.710039]   o BM supported for CPU: 4 BM pools
[    3.714674]   o PnC supported (Enabled)
[    3.718532]   o RX Queue support: 8 Queues * 256 Descriptors
[    3.724214]   o TX Queue support: 8 Queues * 532 Descriptors
[    3.729900]   o GSO supported
[    3.732878]   o GRO supported
[    3.735862]   o Receive checksum offload supported
[    3.740671]   o Transmit checksum offload supported
[    3.745573]   o Driver ERROR statistics enabled
[    3.750121]   o Driver INFO statistics enabled
[    3.754581]   o Driver DEBUG statistics enabled
[    3.759134] 
[    3.761990] port #0: is_sgmii=1, is_rgmii=0, phy_addr=1
[    3.767296]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    3.775656] 
[    3.777154]   o Port 0 is connected to Linux netdevice
[    3.787772]     o eth0, ifindex = 3, GbE port = 0
[    3.795961] 	giga p=0: mtu=1500, mac=b2:7e:96:2c:89:63 (random)
[    3.801908] 
[    3.804371] libphy: orion_mdio_bus: probed
[    3.810432] PPP generic driver version 2.4.2
[    3.815445] PPP BSD Compression module registered
[    3.820172] PPP Deflate Compression module registered
[    3.825253] PPP MPPE Compression module registered
[    3.830089] NET: Registered protocol family 24
[    3.834993] usbcore: registered new interface driver asix
[    3.840673] usbcore: registered new interface driver ax88179_178a
[    3.847023] usbcore: registered new interface driver cdc_ether
[    3.853093] usbcore: registered new interface driver net1080
[    3.859012] usbcore: registered new interface driver cdc_subset
[    3.865166] usbcore: registered new interface driver zaurus
[    3.871044] usbcore: registered new interface driver cdc_ncm
[    3.876765] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.883323] ehci-pci: EHCI PCI platform driver
[    3.888015] ehci-orion: EHCI orion driver
[    3.892157] orion-ehci f1058000.usb: EHCI Host Controller
[    3.897617] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.905297] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    3.905449] ata2: SATA link down (SStatus 0 SControl 300)
[    3.905483] ata1: SATA link down (SStatus 0 SControl 300)
[    3.935430] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.941417] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.948252] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.955514] usb usb1: Product: EHCI Host Controller
[    3.960414] usb usb1: Manufacturer: Linux 3.10.105.14 ehci_hcd
[    3.966279] usb usb1: SerialNumber: f1058000.usb
[    3.971679] hub 1-0:1.0: USB hub found
[    3.975479] hub 1-0:1.0: 1 port detected
[    3.980174] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.985540] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.993529] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    3.999360] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    4.006198] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.013453] usb usb2: Product: xHCI Host Controller
[    4.018361] usb usb2: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.024219] usb usb2: SerialNumber: f10f0000.usb3
[    4.029674] hub 2-0:1.0: USB hub found
[    4.033451] hub 2-0:1.0: 1 port detected
[    4.037585] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.042934] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    4.050538] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    4.057370] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.064624] usb usb3: Product: xHCI Host Controller
[    4.069530] usb usb3: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.075387] usb usb3: SerialNumber: f10f0000.usb3
[    4.086388] hub 3-0:1.0: USB hub found
[    4.090164] hub 3-0:1.0: 1 port detected
[    4.094274] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.099647] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.107664] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    4.113478] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    4.120317] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.127580] usb usb4: Product: xHCI Host Controller
[    4.132480] usb usb4: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.138348] usb usb4: SerialNumber: f10f8000.usb3
[    4.144047] hub 4-0:1.0: USB hub found
[    4.147838] hub 4-0:1.0: 1 port detected
[    4.151908] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.157261] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    4.164817] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    4.171655] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.178916] usb usb5: Product: xHCI Host Controller
[    4.183816] usb usb5: Manufacturer: Linux 3.10.105.14 xhci-hcd
[    4.189683] usb usb5: SerialNumber: f10f8000.usb3
[    4.195731] hub 5-0:1.0: USB hub found
[    4.199507] hub 5-0:1.0: 1 port detected
[    4.204799] mv-udc f1058100.udc: successful probe UDC device without clock gating.
[    4.214057] mousedev: PS/2 mouse device common for all mice
[    4.223862] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    4.355435] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    4.375841] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    4.382574] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.389752] usb 2-1: Product: Cruzer Blade
[    4.393866] usb 2-1: Manufacturer: SanDisk
[    4.397991] usb 2-1: SerialNumber: 4C530103371128105004
[    4.642535] lm75 0-0049: hwmon0: sensor 'lm75'
[    4.696704] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    4.705757] orion_wdt: Initial timeout 171 sec
[    4.710625] thecus_event : started
[    4.714048] md: linear personality registered for level -1
[    4.719576] md: raid0 personality registered for level 0
[    4.724910] md: raid1 personality registered for level 1
[    4.730262] md: raid10 personality registered for level 10
[    4.735778] md: raid6 personality registered for level 6
[    4.741110] md: raid5 personality registered for level 5
[    4.746449] md: raid4 personality registered for level 4
[    4.751783] md: multipath personality registered for level -4
[    4.758225] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    4.766824] dm_crypt using the OCF package.
[    4.771655] device-mapper: multipath: version 1.6.0 loaded
[    4.777190] device-mapper: multipath round-robin: version 1.0.0 loaded
[    4.783745] device-mapper: multipath queue-length: version 0.1.0 loaded
[    4.790395] device-mapper: multipath service-time: version 0.2.0 loaded
[    4.811936] cpuidle: using governor ladder
[    4.816231] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    4.825630] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
[    4.834729] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff
[    4.844591] mvCesaInit: channels=2, session=640, queue=256
[    4.870067] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    4.879939] cesadev_init(c0937940)
[    4.885579] usbcore: registered new interface driver usbhid
[    4.891183] usbhid: USB HID core driver
[    4.895677] Loading Marvell spi device
[    4.902440] arp_tables: (C) 2002 David S. Miller
[    4.907170] TCP: cubic registered
[    4.910504] Initializing XFRM netlink socket
[    4.917335] NET: Registered protocol family 10
[    4.923176] sit: IPv6 over IPv4 tunneling driver
[    4.929652] NET: Registered protocol family 17
[    4.934155] NET: Registered protocol family 15
[    4.938822] Bridge firewalling registered
[    4.942899] 8021q: 802.1Q VLAN Support v1.8
[    4.947143] Key type dns_resolver registered
[    4.951651] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    4.972356] regulator-dummy: disabling
[    5.000076] UBI: attaching mtd0 to ubi0
[    6.665245] UBI: scanning is finished
[    6.679047] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 45, need 69
[    6.731500] UBI: attached mtd0 (name "ubifs", size 512 MiB) to ubi0
[    6.737814] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.744716] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.751494] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.758415] UBI: good PEBs: 4085, bad PEBs: 11, corrupted PEBs: 0
[    6.764587] UBI: user volume: 4, internal volumes: 1, max. volumes count: 128
[    6.771809] UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 245953803
[    6.780866] UBI: available PEBs: 0, total reserved PEBs: 4085, PEBs reserved for bad PEB handling: 45
[    6.790479] UBI: background thread "ubi_bgt0d" started, PID 1527
[    7.069445] mvebu-rtc f10a3800.rtc: setting system clock to 2018-02-19 06:52:37 UTC (1519023157)
[    7.113467] Freeing unused kernel memory: 272K (c0917000 - c095b000)
starting pid 1638, tty '': '/etc/rc.d/rc.sysinit'
Mounting /proc
Remounting root device read-write...
Mounting other local filesystems...
/var                     : successfully mounted
/dev/pts                 : successfully mounted
/proc                    : already mounted
/sys                     : successfully mounted
Mounting /var under /dev/shm...
[    7.402616] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.421237] uhci_hcd: USB Universal Host Controller Interface driver
[    7.493207] usb-storage 2-1:1.0: USB Mass Storage device detected
[    7.502276] scsi2 : usb-storage 2-1:1.0
[    7.521640] usbcore: registered new interface driver usb-storage
[    7.604987] UBIFS: background thread "ubifs_bgt0_3" started, PID 1747
[    7.663055] UBIFS: mounted UBI device 0, volume 3, name "rom"
[    7.668905] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.678095] UBIFS: FS size: 401498112 bytes (382 MiB, 3162 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    7.688061] UBIFS: reserved for root: 0 bytes (0 KiB)
[    7.693137] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2B0AA742-5411-4988-B342-2DF8A11078C2, small LPT model
[    7.713461] UBIFS: background thread "ubifs_bgt0_3" stops
Setting up loopback networking...
[    7.963196] UBIFS: background thread "ubifs_bgt0_2" started, PID 1769
[    7.993790] UBIFS: recovery needed
[    8.134097] UBIFS: recovery completed
[    8.137862] UBIFS: mounted UBI device 0, volume 2, name "etc"
[    8.143640] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.152831] UBIFS: FS size: 8126464 bytes (7 MiB, 64 LEBs), journal size 1650688 bytes (1 MiB, 13 LEBs)
[    8.162272] UBIFS: reserved for root: 0 bytes (0 KiB)
[    8.167354] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 19DE1F75-8119-4293-BAE6-068A80F2F200, small LPT model
[    8.231934] UBIFS: background thread "ubifs_bgt0_4" started, PID 1777
[    8.261912] UBIFS: recovery needed
[    8.343343] UBIFS: recovery completed
[    8.347118] UBIFS: mounted UBI device 0, volume 4, name "version"
[    8.353244] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.362435] UBIFS: FS size: 6094848 bytes (5 MiB, 48 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[    8.371876] UBIFS: reserved for root: 0 bytes (0 KiB)
[    8.376958] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8A43601A-8B91-47F3-89A8-2D52E4A458F3, small LPT model
[    8.512527] eth0: mac address changed
[    8.515892] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    8.525310] Thecus Tray: 23, sdw
[    8.535973] sd 2:0:0:0: [sdw] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    8.544804] sd 2:0:0:0: [sdw] Write Protect is off
[    8.555008] sd 2:0:0:0: [sdw] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.584193]  sdw: sdw1
[    8.612468] sd 2:0:0:0: [sdw] Attached SCSI disk
[    8.617167] DISK_ADD sdw 23
[    8.619983] 
[    8.622212] criticalevent_user: disk_add sdw 23 
[    8.627074] starting pid 1881, tty '': '/sbin/console'

(none) login: ['', '', '']
('rsync_service', {'status': '1'})
('web_service', {'status': '1'})
('webdav', {'status': '1'})
('awss3', {'status': '1'})
('snmp_service', {'status': '1'})
TELNET 0
('itunes_service', {'status': '1'})
('ha', {'status': '0'})
('ssd_cache', {'status': '0'})
('upnpd', {'status': '1'})
('sed', {'status': '1'})
('tftp', {'status': '1'})
('vpn_server', {'status': '1'})
('swift', {'status': '0'})
('stack', {'status': '1'})
('auto_upgrade', {'status': '1'})
('ftp', {'status': '1'})
('failover', {'status': '1'})
('iso_mount', {'status': '1'})
('nfs', {'status': '1'})
('scale_out', {'status': '0'})
Bonjour 0
('disk_clone_wipe', {'status': '1'})
('ssh_service', {'status': '1'})
IHM 1
Snapshot 1
('iscsi', {'status': '1'})
>>>>>>>>>>>>>>>>>>>>Start: Initial LCM

<<<<<<<<<<<<<<<<<<<<End: Initial LCM

>>>>>>>>>>>>>>>>>>>>Start: Load Drivers

modprobe: FATAL: Module i915 not found.
modprobe: FATAL: Module e1000e not found.
modprobe: FATAL: Module igb not found.
modprobe: FATAL: Module ixgbe not found.
modprobe: FATAL: Module tehuti not found.
modprobe: FATAL: Module i40e not found.
modprobe: FATAL: Module bnx2x not found.
modprobe: FATAL: Module tn40xx not found.
modprobe: FATAL: Module tn4022 not found.
modprobe: FATAL: Module be2net not found.
modprobe: FATAL: Module tg3 not found.
[   15.084736] usbcore: registered new interface driver usblp
[   15.156894] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   15.249892] sd 2:0:0:0: Attached scsi generic sg23 type 0
[   15.339970] exFAT: Version 1.2.9
<<<<<<<<<<<<<<<<<<<<End: Load Dr[   15.453445] Clear Critical Queue. 
ivers

>>>>>>>>>>>>>>>>>>>>Start: Initial Settings

[9;0]Alarm off
<<<<<<<<<<<<<<<<<<<<End: Initial Settings

>>>>>>>>>>>>>>>>>>>>Start: Check Reset to Default

<<<<<<<<<<<<<<<<<<<<End: Check Reset to Default

>>>>>>>>>>>>>>>>>>>>Start: Config Management

<<<<<<<<<<<<<<<<<<<<End: Config Management

>>>>>>>>>>>>>>>>>>>>Start: Network Initialize

[   15.771971] udev: starting version 151
route: ioctl 0x890c failed: No such process
[   17.267439] pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
[   17.274960] eth0: started
[   17.277828] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<<<<<<<<<<<<<<<<<<<<End: Network Initialize

>>>>>>>>>>>>>>>>>>>>Start: Unlock SED Disk

<<<<<<<<<<<<<<<<<<<<End: Unlock SED Disk

>>>>>>>>>>>>>>>>>>>>Start: Initial Disk

<<<<<<<<<<<<<<<<<<<<End: Initial Disk

>>>>>>>>>>>>>>>>>>>>Start: Factory Test

[   29.279130] kjournald starting.  Commit interval 5 seconds
[   29.282338] EXT3-fs (sdw1): using internal journal
[   29.282343] EXT3-fs (sdw1): mounted filesystem with writeback data mode
<<<<<<<<<<<<<<<<<<<<End: Factory Test

>>>>>>>>>>>>>>>>>>>>Start: Assemble RAID

<<<<<<<<<<<<<<<<<<<<End: Assemble RAID

>>>>>>>>>>>>>>>>>>>>Start: Upgrade Firmware Version

<<<<<<<<<<<<<<<<<<<<End: Upgrade Firmware Version

>>>>>>>>>>>>>>>>>>>>Start: Activate Monitor

<<<<<<<<<<<<<<<<<<<<End: Activate Monitor

>>>>>>>>>>>>>>>>>>>>Start: Environment Setting

<<<<<<<<<<<<<<<<<<<<End: Environment Setting

>>>>>>>>>>>>>>>>>>>>Start: Start Service

[   36.223984] Rounding down aligned max_sectors from 4294967295 to 4294967288
[   38.496527] Loading iSCSI transport class v2.0-870.
[   39.590906] ip_tables: (C) 2000-2006 Netfilter Core Team
2018-02-19 14:53:12,639 - ERROR - SSDCacheManager - Fail to load necessary kernel modules.
      cmd = /sbin/modprobe enhanceio
exit_code = 1
   output = 

<<<<<<<<<<<<<<<<<<<<End: Start Service

>>>>>>>>>>>>>>>>>>>>Start: Boot OK

/bin/sh: /usr/bin/sounds/startupsound: No such file or directory
2018-02-19 14:53:17,716 - WARNING - WebDAVService - WebDAV is not process, please start WebDAV first
<<<<<<<<<<<<<<<<<<<<End: Boot OK

>>>>>>>>>>>>>>>>>>>>Boot Process Successful<<<<<<<<<<<<<<<<<<<<

>>>>>>>>>>>>>>>>>>>>Boot Process Finish<<<<<<<<<<<<<<<<<<<<
Re: other USB ports
February 19, 2018 02:57AM
[    8.515892] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    8.525310] Thecus Tray: 23, sdw
[    8.535973] sd 2:0:0:0: [sdw] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    8.544804] sd 2:0:0:0: [sdw] Write Protect is off
[    8.555008] sd 2:0:0:0: [sdw] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.584193]  sdw: sdw1
[    8.612468] sd 2:0:0:0: [sdw] Attached SCSI disk

Right there! So stock kernel has patch that power up the USB drive.

Quote

So There is USB power, in uboot, so there kernel image can be loaded, but it is gone in kernel again? If this happens with the stock kernel and stock dtb, then there might be a program after booting, which enables it?

No, not a separate progam. It is in the stock kernel code. This u-boot apparently turns off USB power at the end. And the stock kernel turns it on during boot.

If I'm right, this is similar to what happened in our experience with the WD My Cloud series u-boot.

So the nex thing you need to do is to find out which GPIO turn on USB power. And that can be figured out if you have the GPL source. Once we have that, the GPIO can be implemented in the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: other USB ports
February 19, 2018 06:42AM
GPL source for this unit should be available at http://www.thecus.com

Ray
Re: other USB ports
February 19, 2018 06:48AM
rayknight Wrote:
-------------------------------------------------------
> GPL source for this unit should be available at
> http://www.thecus.com
>
> Ray


Hi, thanks for the link. While this >should< be the GPL source, it is not. As the filename states, it is a x86_64 source, does not include the used arm dts. Also it is a 4.x kernel source - not a 3.10.x as used in the 3.02.02.11 firmware.
I asked Thecus about the gpl sources, but they also only gave me that link. Replying to that email i got no answer.
Re: other USB ports
February 19, 2018 01:23PM
lordzahl,

> I asked Thecus about the gpl sources, but they
> also only gave me that link. Replying to that
> email i got no answer.

Perhaps you can be more forceful and let them know you will report GPL violation :) It is not fun to do that, but sometime somebody got to do that for the community.

I've found Zyxel quite responsive regarding GPL. I've asked Zyxel in the past (a few times for NSA325, NSA310S, and NAS326), and a multiple person team responded to my email within a couple days. It is really good business to be known as GPL compliance (Zyxel, WD are such), but some companies just being short sighted. If it is a new product, then they might be a little slow, that I can sympathize.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: other USB ports
February 19, 2018 02:37PM
Yap, i have written them again. But the chinese new year is still running until tomorrow. Thecus also answered my first mail within one day last time. Maybe they don't get email replies?

Also Thecus somewhat tries to supply GPL sources for all their boxes. But they seemed to have mixed them up for the Armada boxes. Right OS Image version, but wrong architecture.

I will write, if i hear from them.
Re: other USB ports
February 19, 2018 06:09PM
lordzahl Wrote:
-------------------------------------------------------
> Yap, i have written them again. But the chinese
> new year is still running until tomorrow.

Ah! Give them a break :)

> Thecus
> also answered my first mail within one day last
> time. Maybe they don't get email replies?
>
> Also Thecus somewhat tries to supply GPL sources
> for all their boxes. But they seemed to have mixed
> them up for the Armada boxes. Right OS Image
> version, but wrong architecture.
>
> I will write, if i hear from them.

Good to hear they are concientious with GPL. Last time I browsed their website, GPL info seems old.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: other USB ports
March 16, 2018 05:17AM
Hi!

> Good to hear they are concientious with GPL. Last
> time I browsed their website, GPL info seems old.

They are indeed! Well the GPL info was actually old for most devices and i also started to loose hope,
but today they answered and actually provided the GPL sources (so it seems). Seems like they prepared them just for me :)

They can be found here: http://www.thecus.com/Downloads/GPL/arm_32.a385_v3.02.02.11_GPL.tar.bz2
I don't have much time at the moment, so i just browsed quickly trough, and it is indeed a 3.10 kernel source now, it has a couple of extra dts files, a kernel config for my box (n2350.config) as well as a custom shell script to build the kernel, which points to a specific dts.

I am attaching the Build script, Kernel config and the dts (and deps), which is mentioned in the build script to this post.
Other armada dts called "customers0..3" do indeed mention the switching of gpios to enable USB power.

I hope we can make progress now :)
Attachments:
open | download - n2350_gpl.tar.gz (30.9 KB)
Author:

Your Email:


Subject:


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