Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 04:04PM
Hi,

bodhi Wrote:
-------------------------------------------------------
> Let's get our status in one post.
Sure.

> Please boot with version 7 and your ethernet
> cleanup version. Interrupt serial console and
> enter the envs, boot into Debian.
> And post the entire serial console log here.

Using the dts/dtb from this post, the resulting log is (with a network cable attached to a router):

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 mtdparts 'mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 483 ms (8.2 MiB/s)
18546 bytes read in 660 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff871 ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi0.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019167] Switching to timer-based delay loop, resolution 1ns
[    0.025380] Ignoring duplicate/late registration of read_current_timer delay
[    0.032489] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043958] Console: colour dummy device 80x30
[    0.048492] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059153] pid_max: default: 32768 minimum: 301
[    0.063946] Security Framework initialized
[    0.068175] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074850] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082475] CPU: Testing write buffer coherency: ok
[    0.087604] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125247] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136941] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143273] Hierarchical SRCU implementation.
[    0.185217] smp: Bringing up secondary CPUs ...
[    0.235287] Booting CPU 1
[    0.238192] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238278] smp: Brought up 1 node, 2 CPUs
[    0.248192] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254604] CPU: All CPU(s) started in SVC mode.
[    0.260036] devtmpfs: initialized
[    0.266269] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274271] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284170] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290540] prandom: seed boundary self test passed
[    0.298016] prandom: 100 self tests passed
[    0.302181] pinctrl core: initialized pinctrl subsystem
[    0.308310] NET: Registered protocol family 16
[    0.313564] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321833] cpuidle: using governor ladder
[    0.326063] cpuidle: using governor menu
[    0.330220] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338291] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344348] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352511] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.386302] vgaarb: loaded
[    0.389517] SCSI subsystem initialized
[    0.395735] usbcore: registered new interface driver usbfs
[    0.401361] usbcore: registered new interface driver hub
[    0.406999] usbcore: registered new device driver usb
[    0.412670] media: Linux media interface: v0.10
[    0.417505] Linux video capture interface: v2.00
[    0.423366] clocksource: Switched to clocksource arm_global_timer
[    0.482336] VFS: Disk quotas dquot_6.6.0
[    0.486468] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.501380] NET: Registered protocol family 2
[    0.506367] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.513603] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.520188] TCP: Hash tables configured (established 8192 bind 8192)
[    0.526688] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.532696] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.539339] NET: Registered protocol family 1
[    0.544094] RPC: Registered named UNIX socket transport module.
[    0.550076] RPC: Registered udp transport module.
[    0.554872] RPC: Registered tcp transport module.
[    0.559641] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.566400] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.573192] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.582254] audit: initializing netlink subsys (disabled)
[    0.587835] audit: type=2000 audit(0.549:1): state=initialized audit_enabled=0 res=1
[    0.588087] Initialise system trusted keyrings
[    0.588113] Key type blacklist registered
[    0.588206] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.595669] zbud: loaded
[    0.606505] NFS: Registering the id_resolver key type
[    0.606517] Key type id_resolver registered
[    0.606520] Key type id_legacy registered
[    0.606530] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.606534] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.606690] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.611109] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.611215] orangefs_init: module version upstream loaded
[    0.614985] Key type asymmetric registered
[    0.614988] Asymmetric key parser 'x509' registered
[    0.615026] bounce: pool size: 64 pages
[    0.615069] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.615074] io scheduler noop registered
[    0.615077] io scheduler deadline registered
[    0.615144] io scheduler cfq registered (default)
[    0.620300] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.628158] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.628166] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.628172] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.628177] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.628551] PCI: bus0: Fast back to back transfers disabled
[    0.628563] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.628576] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.628661] PCI: bus1: Fast back to back transfers enabled
[    0.628765] PCI: bus2: Fast back to back transfers enabled
[    0.628796] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.628806] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.629351] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.684058] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.684325] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.743927] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.836762] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.844863] console [ttyS0] disabled
[    0.868958] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.878055] console [ttyS0] enabled
[    0.878055] console [ttyS0] enabled
[    0.885188] bootconsole [earlycon0] disabled
[    0.885188] bootconsole [earlycon0] disabled
[    0.895332] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.904558] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.924314] scsi host0: ahci-mvebu
[    0.938084] scsi host1: ahci-mvebu
[    0.941729] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.949725] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.958494] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.966103] pxa3xx-nand f10d0000.flash: invalid number of chip selects
[    0.974099] libphy: Fixed MDIO Bus: probed
[    0.978671] libphy: orion_mdio_bus: probed
[    0.983842] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    0.993512] mvneta f1070000.ethernet eth0: Using random mac address c6:71:75:54:7b:5b
[    1.001699] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.008296] ehci-pci: EHCI PCI platform driver
[    1.012811] ehci-orion: EHCI orion driver
[    1.017014] orion-ehci f1058000.usb: EHCI Host Controller
[    1.022457] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.030166] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.063387] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.069505] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.076351] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.083621] usb usb1: Product: EHCI Host Controller
[    1.088525] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.095009] usb usb1: SerialNumber: f1058000.usb
[    1.100036] hub 1-0:1.0: USB hub found
[    1.103847] hub 1-0:1.0: 1 port detected
[    1.108489] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.113864] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.121477] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.130091] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.135995] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.142820] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.150115] usb usb2: Product: xHCI Host Controller
[    1.155032] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.161507] usb usb2: SerialNumber: f10f0000.usb3
[    1.166592] hub 2-0:1.0: USB hub found
[    1.170385] hub 2-0:1.0: 1 port detected
[    1.174603] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.179952] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.187590] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.195846] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.202692] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.209979] usb usb3: Product: xHCI Host Controller
[    1.215167] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.221662] usb usb3: SerialNumber: f10f0000.usb3
[    1.226758] hub 3-0:1.0: USB hub found
[    1.230551] hub 3-0:1.0: 1 port detected
[    1.234883] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.240263] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.247899] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.256537] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.262444] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.269299] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.276589] usb usb4: Product: xHCI Host Controller
[    1.281493] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.288046] usb usb4: SerialNumber: f10f8000.usb3
[    1.293136] hub 4-0:1.0: USB hub found
[    1.296944] hub 4-0:1.0: 1 port detected
[    1.300909] ata2: SATA link down (SStatus 0 SControl 300)
[    1.300943] ata1: SATA link down (SStatus 0 SControl 300)
[    1.312075] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.317440] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.325042] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.333257] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.340096] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.347451] usb usb5: Product: xHCI Host Controller
[    1.352355] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.358843] usb usb5: SerialNumber: f10f8000.usb3
[    1.363907] hub 5-0:1.0: USB hub found
[    1.367701] hub 5-0:1.0: 1 port detected
[    1.372052] usbcore: registered new interface driver usblp
[    1.377682] usbcore: registered new interface driver usb-storage
[    1.383924] mousedev: PS/2 mouse device common for all mice
[    1.390391] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.398564] i2c /dev entries driver
[    1.414050] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.426986] orion_wdt: Initial timeout 171 sec
[    1.434409] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.441915] hidraw: raw HID events driver (C) Jiri Kosina
[    1.447724] usbcore: registered new interface driver usbhid
[    1.453340] usbhid: USB HID core driver
[    1.457659] drop_monitor: Initializing network drop monitor service
[    1.464020] Netfilter messages via NETLINK v0.30.
[    1.468761] ip_set: protocol 6
[    1.472092] NET: Registered protocol family 10
[    1.477415] Segment Routing with IPv6
[    1.481151] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.488199] NET: Registered protocol family 17
[    1.492709] 8021q: 802.1Q VLAN Support v1.8
[    1.496962] Key type dns_resolver registered
[    1.501377] ThumbEE CPU extension supported.
[    1.505688] Registering SWP/SWPB emulation handler
[    1.511051] registered taskstats version 1
[    1.515189] Loading compiled-in X.509 certificates
[    1.520061] zswap: loaded using pool lzo/zbud
[    1.525513] Key type big_key registered
[    1.529690] Key type encrypted registered
[    1.535655] v5.0-sata0: supplied by pwr_en_sata0
[    1.540335] v12.0-sata0: supplied by pwr_en_sata0
[    1.545108] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.552887] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.560198] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-28 21:01:12 UTC (1522270872)
[    1.569633] v5.0-sata1: supplied by pwr_en_sata1
[    1.574342] v12.0-sata1: supplied by pwr_en_sata1
[    1.579113] v5.0-sata0: disabling
[    1.582446] v12.0-sata0: disabling
[    1.585931] v5.0-sata1: disabling
[    1.589263] v12.0-sata1: disabling
[    1.593078] Waiting 10 sec before mounting root device...
[    1.723867] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.730609] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.737799] usb 2-1: Product: Cruzer Blade
[    1.741918] usb 2-1: Manufacturer: SanDisk
[    1.746047] usb 2-1: SerialNumber: 4C530103371128105004
[    1.751737] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.758038] scsi host2: usb-storage 2-1:1.0
[    2.824573] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.834522] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.843650] sd 2:0:0:0: [sda] Write Protect is off
[    2.848745] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.860168]  sda: sda1
[    2.863838] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.024172] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.033195] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   12.040132] EXT4-fs (sda1): write access will be enabled during recovery
[   15.012054] EXT4-fs (sda1): recovery complete
[   15.022407] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   15.030154] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   15.042049] devtmpfs: mounted
[   15.045944] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   17.878874] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22034/977280 files, 252668/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   18.069222] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   19.814244] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   19.819313] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/c6:71:75:54:7b:5b
Sending on   LPF/eth0/c6:71:75:54:7b:5b
Sending on   Socket/fallback
DHCPREQUEST of 192.168.178.44 on eth0 to 255.255.255.255 port 67
[   23.063780] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   23.071672] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.227210] random: crng init done
DHCPREQUEST of 192.168.178.44 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.178.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.178.45 from 192.168.178.1
DHCPACK of 192.168.178.45 from 192.168.178.1
invoke-rc.d: could not determine current runlevel
bound to 192.168.178.45 -- renewal in 388531 seconds.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2571 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2572 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Mar 28 13:35:15 PDT 2018 from 192.168.178.33 on pts/0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
192.168.178.4
Thecus N2350
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
Debian 9.1
Wed Mar 28 14:01:50 PDT 2018 up
root@debian:~# uname -a
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l GNU/Linux
root@debian:~# mount
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=512972k,nr_inodes=128243,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=102700k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=205380k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:~# cat /proc/cpuinfo
processor: 0
model name: ARMv7 Processor rev 1 (v7l)
BogoMIPS: 1066.00
Features: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 
CPU implementer: 0x41
CPU architecture: 7
CPU variant: 0x4
CPU part: 0xc09
CPU revision: 1

processor: 1
model name: ARMv7 Processor rev 1 (v7l)
BogoMIPS: 1066.00
Features: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 
CPU implementer: 0x41
CPU architecture: 7
CPU variant: 0x4
CPU part: 0xc09
CPU revision: 1

Hardware: Marvell Armada 380/385 (Device Tree)
Revision: 0000
Serial: 0000000000000000
root@debian:~# ethtool eth0
Settings for eth[   57.164479] m88e1318_get_wol: phy_id = 0x1410dd1 OK
0:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                     100baseT/Half 100baseT/Full 
                                     1000baseT/Half 1000baseT/Full 
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes
root@debian:~#

Anything else?

edit: Sorry about the garbage characters in the log "[?25l[?1c7[1G[[32m". These a some non-ascii characters which i have converted wrong or so..



Edited 3 time(s). Last edit at 03/28/2018 04:09PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 05:48PM
As I mentioned, wrong NAND defintion was not supposed to stop the kernel from booting. So I think stock GPL has the wrong cs.

[    0.958494] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.966103] pxa3xx-nand f10d0000.flash: invalid number of chip selects
[    0.974099] libphy: Fixed MDIO Bus: probed
[    0.978671] libphy: orion_mdio_bus: probed
[    0.983842] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    0.993512] mvneta f1070000.ethernet eth0: Using random mac address c6:71:75:54:7b:5b
[    1.001699] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.008296] ehci-pci: EHCI PCI platform driver

We should go back to num-cs=1 in NAND.

Here is the v8 patch on top of your current version. Please apply this patch and recompile the DTB.

We still need to figure out why SPI flash was not initialized. But let's see if NAND is working first.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-thecus-n2350.dts.v8.patch (675 bytes)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 12:51AM
Hi bodhi,

bodhi Wrote:
-------------------------------------------------------
> As I mentioned, wrong NAND defintion was not
> supposed to stop the kernel from booting. So I
> think stock GPL has the wrong cs.
Yeah, the cs seems to be wrong. But now it doesn't boot anymore.

> Here is the v8 patch on top of your current
> version. Please apply this patch and recompile the
> DTB.
I applied the patch, see log at the end of post

> We still need to figure out why SPI flash was not
> initialized. But let's see if NAND is working
> first.
ok.


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 mtdparts 'mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 487 ms (8.1 MiB/s)
18546 bytes read in 660 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff871 ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi0.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008073] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019167] Switching to timer-based delay loop, resolution 1ns
[    0.025381] Ignoring duplicate/late registration of read_current_timer delay
[    0.032491] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043961] Console: colour dummy device 80x30
[    0.048494] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059156] pid_max: default: 32768 minimum: 301
[    0.063948] Security Framework initialized
[    0.068178] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074853] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082475] CPU: Testing write buffer coherency: ok
[    0.087603] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131596] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136944] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143276] Hierarchical SRCU implementation.
[    0.185217] smp: Bringing up secondary CPUs ...
[    0.235288] Booting CPU 1
[    0.238192] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238278] smp: Brought up 1 node, 2 CPUs
[    0.248191] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254603] CPU: All CPU(s) started in SVC mode.
[    0.260037] devtmpfs: initialized
[    0.266274] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274284] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284181] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290551] prandom: seed boundary self test passed
[    0.298026] prandom: 100 self tests passed
[    0.302192] pinctrl core: initialized pinctrl subsystem
[    0.308327] NET: Registered protocol family 16
[    0.313582] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321851] cpuidle: using governor ladder
[    0.326085] cpuidle: using governor menu
[    0.330242] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338313] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344371] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352534] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416818] vgaarb: loaded
[    0.419804] SCSI subsystem initialized
[    0.424367] usbcore: registered new interface driver usbfs
[    0.430084] usbcore: registered new interface driver hub
[    0.435597] usbcore: registered new device driver usb
[    0.441068] media: Linux media interface: v0.10
[    0.445729] Linux video capture interface: v2.00
[    0.451307] clocksource: Switched to clocksource arm_global_timer
[    0.510239] VFS: Disk quotas dquot_6.6.0
[    0.514332] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.526985] NET: Registered protocol family 2
[    0.531958] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.539116] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.545750] TCP: Hash tables configured (established 8192 bind 8192)
[    0.552246] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.558255] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.564882] NET: Registered protocol family 1
[    0.569605] RPC: Registered named UNIX socket transport module.
[    0.575613] RPC: Registered udp transport module.
[    0.580383] RPC: Registered tcp transport module.
[    0.585164] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.591929] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.598726] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.607794] audit: initializing netlink subsys (disabled)
[    0.613374] audit: type=2000 audit(0.579:1): state=initialized audit_enabled=0 res=1
[    0.613633] Initialise system trusted keyrings
[    0.613657] Key type blacklist registered
[    0.613760] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.621195] zbud: loaded
[    0.632068] NFS: Registering the id_resolver key type
[    0.632078] Key type id_resolver registered
[    0.632081] Key type id_legacy registered
[    0.632091] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.632095] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.632249] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.632580] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.632686] orangefs_init: module version upstream loaded
[    0.636307] Key type asymmetric registered
[    0.636311] Asymmetric key parser 'x509' registered
[    0.636353] bounce: pool size: 64 pages
[    0.636394] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.636398] io scheduler noop registered
[    0.636401] io scheduler deadline registered
[    0.636469] io scheduler cfq registered (default)
[    0.638151] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.640375] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.640383] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.640389] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.640395] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.640776] PCI: bus0: Fast back to back transfers disabled
[    0.640787] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640800] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640885] PCI: bus1: Fast back to back transfers enabled
[    0.640982] PCI: bus2: Fast back to back transfers enabled
[    0.641013] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.641023] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.641651] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.701912] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.702089] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.761873] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.805713] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.807042] console [ttyS0] disabled
[    0.872518] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.881580] console [ttyS0] enabled
[    0.881580] console [ttyS0] enabled
[    0.888673] bootconsole [earlycon0] disabled
[    0.888673] bootconsole [earlycon0] disabled
[    0.898462] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.907583] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.917061] scsi host0: ahci-mvebu
[    0.920740] scsi host1: ahci-mvebu
[    0.924333] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.932313] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.941421] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.949376] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.955782] nand: Hynix H27U4G8F2DTR-BC
[    0.959640] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.967262] pxa3xx-nand f10d0000.flash: ECC strength 1, ECC step size 512
[    0.974989] Bad block table found at page 261824, version 0x01
[    0.981906] Bad block table found at page 261760, version 0x01
[    0.987937] nand_bbt: ECC error in BBT at 0x00001ff60000
[    0.993461] nand_bbt: ECC error in BBT at 0x00001ff40000
[    0.998800] Scanning device for bad blocks
[    1.211325] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    1.272700] ata2: SATA link down (SStatus 0 SControl 300)
[    1.278162] ata1: SATA link down (SStatus 0 SControl 300)
[    1.421322] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    1.631320] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    1.841319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    2.051319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    2.261369] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    2.471322] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    2.681319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    2.891318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    3.101318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    3.311334] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    3.521319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    3.731318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    3.941318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    4.151379] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    4.361318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    4.571319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    4.781318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    4.991318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    5.201330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    5.411319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    5.621318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    5.831319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    6.041319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    6.251378] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    6.461318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    6.671320] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    6.881319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    7.091319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    7.301330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    7.511319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    7.721318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    7.931318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    8.141369] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    8.351320] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    8.561319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    8.771318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    8.981318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    9.191329] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    9.401318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    9.611318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[    9.821318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   10.031318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   10.241351] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   10.451319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   10.661318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   10.871318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   11.081318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   11.291329] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   11.501318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   11.711318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   11.921318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   12.131405] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   12.341318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   12.551319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   12.761318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   12.971318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   13.181329] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   13.391318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   13.601318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   13.811318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   14.021318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   14.231375] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   14.441320] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   14.651318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   14.861318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   15.071318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   15.281334] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   15.491318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   15.701318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   15.911318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   16.121348] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   16.331319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   16.541319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   16.751318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   16.961318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   17.171328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   17.381318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   17.591318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   17.801317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   18.011318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   18.221398] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   18.431318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   18.641318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   18.851318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   19.061318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   19.271333] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   19.481318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   19.691317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   19.901318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   20.111367] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   20.321319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   20.531318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   20.741317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   20.951317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   21.161334] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   21.371318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   21.581317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   21.791317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   22.001317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   22.211344] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   22.421318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   22.631318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   22.841317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   23.051318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   23.261328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   23.471318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   23.681328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   23.891318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   24.101318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   24.311419] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   24.521318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   24.731318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   24.941317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   25.151333] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   25.361319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   25.571318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   25.781317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   25.991317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   26.201344] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   26.411318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   26.621318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   26.831317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   27.041317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   27.251328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   27.461318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   27.671318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   27.881317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   28.091318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   28.301340] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   28.511318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   28.721317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   28.931317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   29.141317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   29.351328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   29.561318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   29.771317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   29.981317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   30.191418] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   30.401317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   30.611318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   30.821318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   31.031317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   31.241340] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   31.451330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   31.661330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   31.871330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   32.081330] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   32.291348] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   32.501319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   32.711317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   32.921317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   33.131317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   33.341328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   33.551318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   33.761317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   33.971317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   34.181336] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   34.391318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   34.601317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   34.811317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   35.021317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   35.231329] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   35.441318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   35.651317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   35.861317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   36.071317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   36.281393] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   36.491316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   36.701318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   36.911317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   37.121318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   37.331333] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   37.541318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   37.751317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   37.961317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   38.171337] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   38.381318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   38.591318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   38.801317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   39.011327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   39.221332] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   39.431318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   39.641317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   39.851317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   40.061317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   40.271340] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   40.481318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   40.691317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   40.901317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   41.111317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   41.321328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   41.531317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   41.741317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   41.951316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   42.161364] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   42.371317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   42.581317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   42.791317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   43.001317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   43.211333] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   43.421318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   43.631317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   43.841317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   44.051317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   44.261343] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   44.471318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   44.681317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   44.891317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   45.101317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   45.311328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   45.521317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   45.731316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   45.941317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   46.151339] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   46.361318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   46.571317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   46.781317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   46.991317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   47.201328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   47.411317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   47.621317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   47.831316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   48.041317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   48.251360] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   48.461319] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   48.671318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   48.881317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   49.091317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   49.301332] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   49.511318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   49.721317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   49.931316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   50.141342] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   50.351318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   50.561317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   50.771317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   50.981317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   51.191327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   51.401317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   51.611316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   51.821316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   52.031317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   52.241339] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   52.451318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   52.661317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   52.871317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   53.081317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   53.291327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   53.501317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   53.711317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   53.921316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   54.131359] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   54.341328] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   54.551317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   54.761317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   54.971317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   55.181331] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   55.391317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   55.601316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   55.811316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   56.021316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   56.231342] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   56.441318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   56.651317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   56.861317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   57.071317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   57.281327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   57.491317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   57.701316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   57.911316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   58.121338] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   58.331318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   58.541317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   58.751317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   58.961317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   59.171327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   59.381317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   59.591316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   59.801316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   60.011316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   60.221358] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   60.431318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   60.641316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   60.851316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   61.061317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   61.271332] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   61.481317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   61.691316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   61.901316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   62.111342] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   62.321318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   62.531316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   62.741327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   62.951317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   63.161326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   63.371317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   63.581316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   63.791316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   64.001316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   64.211339] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   64.421318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   64.631316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   64.841316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   65.051317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   65.261327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   65.471317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   65.681316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   65.891316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   66.101316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   66.311354] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   66.521318] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   66.731316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   66.941316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   67.151331] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   67.361317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   67.571316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   67.781316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   67.991316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   68.201342] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   68.411317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   68.621316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   68.831316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   69.041316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   69.251326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   69.461317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   69.671326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   69.881316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   70.091316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   70.301339] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   70.511317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   70.721316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   70.931316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   71.141316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   71.351326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   71.561316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   71.771316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   71.981316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   72.191346] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   72.401317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   72.611316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   72.821316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   73.031316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   73.241327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   73.451316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   73.661316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   73.871316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   74.081316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   74.291337] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   74.501317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   74.711316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   74.921316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   75.131316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   75.341327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   75.551316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   75.761316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   75.971316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   76.181335] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   76.391316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   76.601316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   76.811316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   77.021315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   77.231327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   77.441316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   77.651315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   77.861315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   78.071316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   78.281348] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   78.491317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   78.701316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   78.911316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   79.121316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   79.331326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   79.541316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   79.751315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   79.961316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   80.171334] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   80.381317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   80.591316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   80.801315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   81.011316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   81.221326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   81.431316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   81.641315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   81.851316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   82.061316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   82.271339] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   82.481317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   82.691316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   82.901315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   83.111316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   83.321326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   83.531316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   83.741315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   83.951315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   84.161345] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   84.371317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   84.581316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   84.791316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   85.001325] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   85.211327] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   85.421316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   85.631315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   85.841315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   86.051316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   86.261337] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   86.471317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   86.681316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   86.891315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   87.101315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   87.311326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   87.521316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   87.731316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   87.941315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   88.151338] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   88.361317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   88.571316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   88.781315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   88.991316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   89.201326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   89.411316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   89.621316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   89.831315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   90.041316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   90.251348] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   90.461317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   90.671315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   90.881315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   91.091316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   91.301326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   91.511316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   91.721315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   91.931315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   92.141336] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   92.351317] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   92.561315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   92.771315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   92.981315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   93.191326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   93.401326] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   93.611316] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   93.821315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   94.031315] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   94.241338] pxa3xx-nand f10d0000.flash: Wait time out!!!
[   94.451317] pxa3xx-nand f10d0000.flash: Wait time out!!!

It goes on and does not stop.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 01:35AM
Hi bodhi,
I did a quick google search on this issue and its seems that others have experienced it, while migrating from a 3.x to 4.x kernel.

The conclusion of this thread is to use a kernel with CONFIG_PREEMPT.
But if i read your kernel config correctly, the kernel is already build with that flag.
So maybe something other is wrong.

Just to let you know: I am able to test stuff for the next ~36h and will be on vacation for about 10 days after that.
Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 04:21AM
Hi Manuel,

You are correct that my kernel config took care of that issue. It is a SMP PREEMPT kernel. I would not settle for a non-PREEMPT kernel if I can manage to do that :)

The NAS326 and other MVEBU boxes such as My Cloud EX2100/4100 use the same NAND driver without this timeout problem. However, NAS326 uses Macronix NAND, while the Thecus uses Hynix NAND. So perhaps one size can't fit all. In the past, we found that using a different chip delay value in the Kirkwood kernel will fix a few issues. So perhaps that will be something we should experiment with in the DTS.

NAND for this Thecus box is not really used at all in the new kernel. We boot with SPI flash, so it is much more important. We can take out NAND to make testing SPI easier. And come back to this NAND timeout issue later (or ignore it).

I'm going to upload a version 9 DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 04:27AM
Hi bodhi,

Ok, thanks for elaborating on that. I agree, we should not care about NAND (at the moment) if we don't need it. (I still might take a quick look at the gpl kernel source to see, if there is any noticeable fixes from the thecus guys to the NAND Flash driver.)

Let us concentrate on the SPI Flash.
Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 04:53AM
Here is version 9 DTS for testing.

We need to adjust the boot envs to not using NAND. This will rearrange the mtds, but it is OK for now.

setenv mtdparts 'mtdparts=spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
usb start
run usb_bootcmd

I hope to see SPI flash MTDs got initialized and then we can adjust the rootfs further to read/set u-boot envs. This will allow future u-boot image and envs image flashing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-thecus-n2350.v9.tar (40 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 10:09AM
bodhi Wrote:
-------------------------------------------------------
> Here is version 9 DTS for testing.
No luck:

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 mtdparts 'mtdparts=spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 479 ms (8.2 MiB/s)
18352 bytes read in 665 ms (26.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff7af ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008073] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019166] Switching to timer-based delay loop, resolution 1ns
[    0.025378] Ignoring duplicate/late registration of read_current_timer delay
[    0.032488] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043954] Console: colour dummy device 80x30
[    0.048487] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059148] pid_max: default: 32768 minimum: 301
[    0.063940] Security Framework initialized
[    0.068171] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074846] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082470] CPU: Testing write buffer coherency: ok
[    0.087599] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125244] Setting up static identity map for 0x100000 - 0x100060
[    0.131592] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136941] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143273] Hierarchical SRCU implementation.
[    0.185215] smp: Bringing up secondary CPUs ...
[    0.235287] Booting CPU 1
[    0.238190] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238277] smp: Brought up 1 node, 2 CPUs
[    0.248190] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254602] CPU: All CPU(s) started in SVC mode.
[    0.260045] devtmpfs: initialized
[    0.266251] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274253] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284150] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290517] prandom: seed boundary self test passed
[    0.297992] prandom: 100 self tests passed
[    0.302158] pinctrl core: initialized pinctrl subsystem
[    0.308297] NET: Registered protocol family 16
[    0.313545] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321820] cpuidle: using governor ladder
[    0.326049] cpuidle: using governor menu
[    0.330207] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338278] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344334] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352497] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.406864] vgaarb: loaded
[    0.409863] SCSI subsystem initialized
[    0.413978] usbcore: registered new interface driver usbfs
[    0.419643] usbcore: registered new interface driver hub
[    0.425110] usbcore: registered new device driver usb
[    0.430609] media: Linux media interface: v0.10
[    0.435263] Linux video capture interface: v2.00
[    0.445423] clocksource: Switched to clocksource arm_global_timer
[    0.504477] VFS: Disk quotas dquot_6.6.0
[    0.508588] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.521251] NET: Registered protocol family 2
[    0.526177] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.533334] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.539940] TCP: Hash tables configured (established 8192 bind 8192)
[    0.546431] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.552439] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.559059] NET: Registered protocol family 1
[    0.563787] RPC: Registered named UNIX socket transport module.
[    0.569793] RPC: Registered udp transport module.
[    0.574562] RPC: Registered tcp transport module.
[    0.579352] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.586117] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.592910] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.601983] audit: initializing netlink subsys (disabled)
[    0.607564] audit: type=2000 audit(0.579:1): state=initialized audit_enabled=0 res=1
[    0.607819] Initialise system trusted keyrings
[    0.607849] Key type blacklist registered
[    0.607951] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.615385] zbud: loaded
[    0.626255] NFS: Registering the id_resolver key type
[    0.626266] Key type id_resolver registered
[    0.626269] Key type id_legacy registered
[    0.626279] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.626283] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.626438] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.626771] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.626877] orangefs_init: module version upstream loaded
[    0.630508] Key type asymmetric registered
[    0.630512] Asymmetric key parser 'x509' registered
[    0.630551] bounce: pool size: 64 pages
[    0.630593] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.630597] io scheduler noop registered
[    0.630599] io scheduler deadline registered
[    0.630666] io scheduler cfq registered (default)
[    0.632235] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.634453] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.634460] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.634466] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.634471] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.634851] PCI: bus0: Fast back to back transfers disabled
[    0.634863] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.634876] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.634967] PCI: bus1: Fast back to back transfers enabled
[    0.635061] PCI: bus2: Fast back to back transfers enabled
[    0.635093] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.635104] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.635726] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.696010] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.696185] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.755996] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.817475] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.819234] console [ttyS0] disabled
[    0.856125] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.865177] console [ttyS0] enabled
[    0.865177] console [ttyS0] enabled
[    0.872288] bootconsole [earlycon0] disabled
[    0.872288] bootconsole [earlycon0] disabled
[    0.882331] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.891458] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.901175] scsi host0: ahci-mvebu
[    0.904933] scsi host1: ahci-mvebu
[    0.908597] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.916617] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.926627] libphy: Fixed MDIO Bus: probed
[    0.931172] libphy: orion_mdio_bus: probed
[    0.937284] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    0.946939] mvneta f1070000.ethernet eth0: Using random mac address 2e:f1:b1:e5:66:55
[    0.955118] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.961773] ehci-pci: EHCI PCI platform driver
[    0.966315] ehci-orion: EHCI orion driver
[    0.970497] orion-ehci f1058000.usb: EHCI Host Controller
[    0.976159] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    0.983844] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.015453] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.021568] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.028412] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.035688] usb usb1: Product: EHCI Host Controller
[    1.040591] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.047076] usb usb1: SerialNumber: f1058000.usb
[    1.052090] hub 1-0:1.0: USB hub found
[    1.055904] hub 1-0:1.0: 1 port detected
[    1.060533] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.065908] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.073522] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.082144] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    1.088049] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.094875] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.102151] usb usb2: Product: xHCI Host Controller
[    1.107066] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.113540] usb usb2: SerialNumber: f10f0000.usb3
[    1.118617] hub 2-0:1.0: USB hub found
[    1.122410] hub 2-0:1.0: 1 port detected
[    1.126614] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.131963] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.139619] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.147864] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.154689] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.161966] usb usb3: Product: xHCI Host Controller
[    1.167837] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.174311] usb usb3: SerialNumber: f10f0000.usb3
[    1.179385] hub 3-0:1.0: USB hub found
[    1.183178] hub 3-0:1.0: 1 port detected
[    1.187491] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.192844] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.200476] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.209091] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    1.214981] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.221825] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.229097] usb usb4: Product: xHCI Host Controller
[    1.234001] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.240544] usb usb4: SerialNumber: f10f8000.usb3
[    1.245634] hub 4-0:1.0: USB hub found
[    1.249430] hub 4-0:1.0: 1 port detected
[    1.253601] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.258971] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.261735] ata1: SATA link down (SStatus 0 SControl 300)
[    1.261769] ata2: SATA link down (SStatus 0 SControl 300)
[    1.277450] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.285682] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.292507] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.299869] usb usb5: Product: xHCI Host Controller
[    1.304773] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.311261] usb usb5: SerialNumber: f10f8000.usb3
[    1.316326] hub 5-0:1.0: USB hub found
[    1.320119] hub 5-0:1.0: 1 port detected
[    1.324475] usbcore: registered new interface driver usblp
[    1.330107] usbcore: registered new interface driver usb-storage
[    1.336340] mousedev: PS/2 mouse device common for all mice
[    1.342794] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.350968] i2c /dev entries driver
[    1.366583] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.379500] orion_wdt: Initial timeout 171 sec
[    1.386831] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.394332] hidraw: raw HID events driver (C) Jiri Kosina
[    1.400137] usbcore: registered new interface driver usbhid
[    1.405772] usbhid: USB HID core driver
[    1.410067] drop_monitor: Initializing network drop monitor service
[    1.416429] Netfilter messages via NETLINK v0.30.
[    1.421170] ip_set: protocol 6
[    1.424506] NET: Registered protocol family 10
[    1.429832] Segment Routing with IPv6
[    1.433564] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.440605] NET: Registered protocol family 17
[    1.445114] 8021q: 802.1Q VLAN Support v1.8
[    1.449363] Key type dns_resolver registered
[    1.453780] ThumbEE CPU extension supported.
[    1.458093] Registering SWP/SWPB emulation handler
[    1.463441] registered taskstats version 1
[    1.467574] Loading compiled-in X.509 certificates
[    1.472443] zswap: loaded using pool lzo/zbud
[    1.477909] Key type big_key registered
[    1.482076] Key type encrypted registered
[    1.488041] v5.0-sata0: supplied by pwr_en_sata0
[    1.492722] v12.0-sata0: supplied by pwr_en_sata0
[    1.497500] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.505262] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.512596] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-29 15:03:53 UTC (1522335833)
[    1.522037] v5.0-sata1: supplied by pwr_en_sata1
[    1.526795] v12.0-sata1: supplied by pwr_en_sata1
[    1.531568] v5.0-sata0: disabling
[    1.534901] v12.0-sata0: disabling
[    1.538339] v5.0-sata1: disabling
[    1.541672] v12.0-sata1: disabling
[    1.545511] Waiting 10 sec before mounting root device...
[    1.685930] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.692671] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.699861] usb 2-1: Product: Cruzer Blade
[    1.703979] usb 2-1: Manufacturer: SanDisk
[    1.708109] usb 2-1: SerialNumber: 4C530103371128105004
[    1.713793] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.720096] scsi host2: usb-storage 2-1:1.0
[    2.736028] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.745069] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.753806] sd 2:0:0:0: [sda] Write Protect is off
[    2.758924] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.770310]  sda: sda1
[    2.773943] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.016243] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.039034] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.046783] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.057702] devtmpfs: mounted
[   12.061566] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.142580] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22036/977280 files, 252673/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.331778] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   17.066283] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   17.071370] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/2e:f1:b1:e5:66:55
Sending on   LPF/eth0/2e:f1:b1:e5:66:55
Sending on   Socket/fallback
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
Trying recorded lease 192.168.178.45
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.178.44
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   99.459897] random: crng init done
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2546 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2545 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 10:46AM
Hi,

I have made progress with the nand flash! I think the important part are the nand-ecc-* parameters. I got inspired by this dts.
The mtd partition definitions are copied from the gpl dts. You probably know what we should put there?

      flash@d0000 {
        status = "okay";
        num-cs = <1>;
        marvell,nand-keep-config;
        marvell,nand-enable-arbiter;
        nand-on-flash-bbt;
        nand-ecc-strength = <4>;
        nand-ecc-step-size = <512>;

        mtd1@00000000 {
          label = "U-Boot-img";
          reg = <0x00000000 0x00100000>;
        };  
 
        mtd2@00100000 {
          label = "U-Boot-env";
          reg = <0x00100000 0x00010000>;
        };  
 
/*
        partition@00000000 {
          label = "ubifs";
          reg = <0x00000000 0x20000000>;
        };
*/
      };



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 mtdparts 'mtdparts=spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 479 ms (8.2 MiB/s)
18683 bytes read in 665 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff8fa ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025382] Ignoring duplicate/late registration of read_current_timer delay
[    0.032492] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043964] Console: colour dummy device 80x30
[    0.048497] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059159] pid_max: default: 32768 minimum: 301
[    0.063948] Security Framework initialized
[    0.068179] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074854] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082477] CPU: Testing write buffer coherency: ok
[    0.087605] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125246] Setting up static identity map for 0x100000 - 0x100060
[    0.131593] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136941] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143273] Hierarchical SRCU implementation.
[    0.185218] smp: Bringing up secondary CPUs ...
[    0.235291] Booting CPU 1
[    0.238195] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238281] smp: Brought up 1 node, 2 CPUs
[    0.248193] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254605] CPU: All CPU(s) started in SVC mode.
[    0.260038] devtmpfs: initialized
[    0.266284] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274292] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284190] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290557] prandom: seed boundary self test passed
[    0.298032] prandom: 100 self tests passed
[    0.302198] pinctrl core: initialized pinctrl subsystem
[    0.308331] NET: Registered protocol family 16
[    0.313580] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321860] cpuidle: using governor ladder
[    0.326090] cpuidle: using governor menu
[    0.330249] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338320] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344377] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352539] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416844] vgaarb: loaded
[    0.419823] SCSI subsystem initialized
[    0.424363] usbcore: registered new interface driver usbfs
[    0.430076] usbcore: registered new interface driver hub
[    0.435588] usbcore: registered new device driver usb
[    0.441052] media: Linux media interface: v0.10
[    0.445715] Linux video capture interface: v2.00
[    0.451290] clocksource: Switched to clocksource arm_global_timer
[    0.510287] VFS: Disk quotas dquot_6.6.0
[    0.514389] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.527047] NET: Registered protocol family 2
[    0.532018] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.539176] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.545787] TCP: Hash tables configured (established 8192 bind 8192)
[    0.552284] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.558293] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.564923] NET: Registered protocol family 1
[    0.569656] RPC: Registered named UNIX socket transport module.
[    0.575661] RPC: Registered udp transport module.
[    0.580430] RPC: Registered tcp transport module.
[    0.585222] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.591992] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.598785] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.607846] audit: initializing netlink subsys (disabled)
[    0.613425] audit: type=2000 audit(0.579:1): state=initialized audit_enabled=0 res=1
[    0.613682] Initialise system trusted keyrings
[    0.613708] Key type blacklist registered
[    0.613808] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.621246] zbud: loaded
[    0.632119] NFS: Registering the id_resolver key type
[    0.632130] Key type id_resolver registered
[    0.632132] Key type id_legacy registered
[    0.632142] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.632146] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.632300] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.632628] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.632735] orangefs_init: module version upstream loaded
[    0.636368] Key type asymmetric registered
[    0.636372] Asymmetric key parser 'x509' registered
[    0.636413] bounce: pool size: 64 pages
[    0.636455] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.636459] io scheduler noop registered
[    0.636462] io scheduler deadline registered
[    0.636532] io scheduler cfq registered (default)
[    0.638208] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.640441] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.640450] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.640455] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.640460] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.640841] PCI: bus0: Fast back to back transfers disabled
[    0.640853] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640866] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640951] PCI: bus1: Fast back to back transfers enabled
[    0.641047] PCI: bus2: Fast back to back transfers enabled
[    0.641079] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.641089] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.641717] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.701897] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.702074] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.761855] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.805604] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.806902] console [ttyS0] disabled
[    0.872117] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.881164] console [ttyS0] enabled
[    0.881164] console [ttyS0] enabled
[    0.888279] bootconsole [earlycon0] disabled
[    0.888279] bootconsole [earlycon0] disabled
[    0.898071] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.907198] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.916764] scsi host0: ahci-mvebu
[    0.920447] scsi host1: ahci-mvebu
[    0.924039] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.932018] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.941142] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.949119] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.955524] nand: Hynix H27U4G8F2DTR-BC
[    0.959382] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.967005] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.974983] Bad block table found at page 261824, version 0x01
[    0.981949] Bad block table found at page 261760, version 0x01
[    0.988003] nand_read_bbt: bad block at 0x0000061e0000
[    0.993192] nand_read_bbt: bad block at 0x00000e1c0000
[    0.998356] nand_read_bbt: bad block at 0x00000e1e0000
[    1.003551] nand_read_bbt: bad block at 0x00001ff80000
[    1.008715] nand_read_bbt: bad block at 0x00001ffa0000
[    1.013887] nand_read_bbt: bad block at 0x00001ffc0000
[    1.019050] nand_read_bbt: bad block at 0x00001ffe0000
[    1.024261] 2 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.030386] Creating 2 MTD partitions on "pxa3xx_nand-0":
[    1.035825] 0x000000000000-0x000000100000 : "U-Boot-img"
[    1.042064] 0x000000100000-0x000000110000 : "U-Boot-env"
[    1.047406] mtd: partition "U-Boot-env" doesn't end on an erase/write block -- force read-only
[    1.059186] libphy: Fixed MDIO Bus: probed
[    1.064309] libphy: orion_mdio_bus: probed
[    1.069693] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.079979] mvneta f1070000.ethernet eth0: Using random mac address 7e:70:20:44:b8:84
[    1.088347] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.094941] ehci-pci: EHCI PCI platform driver
[    1.099500] ehci-orion: EHCI orion driver
[    1.103710] orion-ehci f1058000.usb: EHCI Host Controller
[    1.109154] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.116862] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.151333] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.157440] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.164281] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.171554] usb usb1: Product: EHCI Host Controller
[    1.176457] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.182940] usb usb1: SerialNumber: f1058000.usb
[    1.188044] hub 1-0:1.0: USB hub found
[    1.191858] hub 1-0:1.0: 1 port detected
[    1.196655] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.202033] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.209648] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.218265] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.224176] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.231001] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.238277] usb usb2: Product: xHCI Host Controller
[    1.243196] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.249670] usb usb2: SerialNumber: f10f0000.usb3
[    1.254835] hub 2-0:1.0: USB hub found
[    1.258630] hub 2-0:1.0: 1 port detected
[    1.262657] ata1: SATA link down (SStatus 0 SControl 300)
[    1.262926] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.262938] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.263019] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.263107] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.263113] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.263117] usb usb3: Product: xHCI Host Controller
[    1.263121] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.263124] usb usb3: SerialNumber: f10f0000.usb3
[    1.263517] hub 3-0:1.0: USB hub found
[    1.263542] hub 3-0:1.0: 1 port detected
[    1.264001] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.264016] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.264103] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.264138] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.264254] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.264259] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.264263] usb usb4: Product: xHCI Host Controller
[    1.264267] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.264271] usb usb4: SerialNumber: f10f8000.usb3
[    1.264682] hub 4-0:1.0: USB hub found
[    1.264707] hub 4-0:1.0: 1 port detected
[    1.265010] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.265021] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.265085] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.265169] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.265175] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.265179] usb usb5: Product: xHCI Host Controller
[    1.265182] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.265186] usb usb5: SerialNumber: f10f8000.usb3
[    1.265583] hub 5-0:1.0: USB hub found
[    1.265611] hub 5-0:1.0: 1 port detected
[    1.266187] usbcore: registered new interface driver usblp
[    1.266317] usbcore: registered new interface driver usb-storage
[    1.266580] mousedev: PS/2 mouse device common for all mice
[    1.267465] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.267953] i2c /dev entries driver
[    1.280187] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.280864] orion_wdt: Initial timeout 171 sec
[    1.284406] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.284592] hidraw: raw HID events driver (C) Jiri Kosina
[    1.284892] usbcore: registered new interface driver usbhid
[    1.284895] usbhid: USB HID core driver
[    1.285181] drop_monitor: Initializing network drop monitor service
[    1.285227] Netfilter messages via NETLINK v0.30.
[    1.285241] ip_set: protocol 6
[    1.285504] NET: Registered protocol family 10
[    1.296447] Segment Routing with IPv6
[    1.296497] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.297340] NET: Registered protocol family 17
[    1.297381] 8021q: 802.1Q VLAN Support v1.8
[    1.297411] Key type dns_resolver registered
[    1.297536] ThumbEE CPU extension supported.
[    1.297543] Registering SWP/SWPB emulation handler
[    1.298168] registered taskstats version 1
[    1.298170] Loading compiled-in X.509 certificates
[    1.298219] zswap: loaded using pool lzo/zbud
[    1.299548] Key type big_key registered
[    1.299879] Key type encrypted registered
[    1.301972] v5.0-sata0: supplied by pwr_en_sata0
[    1.302017] v12.0-sata0: supplied by pwr_en_sata0
[    1.303330] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.304142] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-29 15:38:40 UTC (1522337920)
[    1.304390] v5.0-sata1: supplied by pwr_en_sata1
[    1.304881] v12.0-sata1: supplied by pwr_en_sata1
[    1.304914] v5.0-sata0: disabling
[    1.304918] v12.0-sata0: disabling
[    1.304920] v5.0-sata1: disabling
[    1.304923] v12.0-sata1: disabling
[    1.631308] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[   1.645888] ata2: SATA link down (SStatus 0 SControl 300)
[    1.651332] Waiting 10 sec before mounting root device...
[    1.811786] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.818526] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.825715] usb 2-1: Product: Cruzer Blade
[    1.829834] usb 2-1: Manufacturer: SanDisk
[    1.833964] usb 2-1: SerialNumber: 4C530103371128105004
[    1.839669] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.845975] scsi host2: usb-storage 2-1:1.0
[    2.911919] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.921048] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.929792] sd 2:0:0:0: [sda] Write Protect is off
[    2.934916] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.946323]  sda: sda1
[    2.949942] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.032203] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.055091] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.062861] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.073798] devtmpfs: mounted
[   12.077665] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   14.988648] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22037/977280 files, 252676/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.177847] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   16.902171] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   16.907245] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/7e:70:20:44:b8:84
Sending on   LPF/eth0/7e:70:20:44:b8:84
Sending on   Socket/fallback
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
Trying recorded lease 192.168.178.45
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.178.44
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[  106.595149] random: crng init done
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2550 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2549 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Mar 28 14:07:59 PDT 2018 from 192.168.178.33 on pts/0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
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
Debian 9.1
Thu Mar 29 08:40:45 PDT 2018 up 2 minutes
root@debian:~# mount
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=512972k,nr_inodes=128243,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=102700k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=205380k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:~# [  140.023792] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z) 
[  180.870729] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z) 
:[  187.163322] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z) 
[K
Attachments:
open | download - armada-385-thecus-n2350.dts (10.4 KB)
open | download - armada-385-thecus-n2350.dtb (18.2 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 11:14AM
....and more success! After a few iteration the kernel can talk with the spi flash.
The stock boot log shows:
[    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"

1. So i googled for m25p80 and found a documentation string, which requires one to use "jedec,spi-nor". This is also what the mainline dts "armada-385-db-ap.dts" does.

2. It is on spi1 instead of spi0 (The original stock boot log even says spi1.0).

The partitions here are also wrong. I hope for your help here @bodhi.


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 mtdparts 'mtdparts=spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 478 ms (8.3 MiB/s)
18747 bytes read in 664 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff93a ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000010] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025382] Ignoring duplicate/late registration of read_current_timer delay
[    0.032492] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043964] Console: colour dummy device 80x30
[    0.048496] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059158] pid_max: default: 32768 minimum: 301
[    0.063948] Security Framework initialized
[    0.068178] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074853] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082474] CPU: Testing write buffer coherency: ok
[    0.087603] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136942] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143274] Hierarchical SRCU implementation.
[    0.185218] smp: Bringing up secondary CPUs ...
[    0.235290] Booting CPU 1
[    0.238194] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238279] smp: Brought up 1 node, 2 CPUs
[    0.248192] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254604] CPU: All CPU(s) started in SVC mode.
[    0.260037] devtmpfs: initialized
[    0.266298] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274304] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284202] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290566] prandom: seed boundary self test passed
[    0.298042] prandom: 100 self tests passed
[    0.302207] pinctrl core: initialized pinctrl subsystem
[    0.308342] NET: Registered protocol family 16
[    0.313590] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321866] cpuidle: using governor ladder
[    0.326095] cpuidle: using governor menu
[    0.330252] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338323] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344381] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352543] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.387149] vgaarb: loaded
[    0.390251] SCSI subsystem initialized
[    0.395585] usbcore: registered new interface driver usbfs
[    0.401168] usbcore: registered new interface driver hub
[    0.406726] usbcore: registered new device driver usb
[    0.412153] media: Linux media interface: v0.10
[    0.416922] Linux video capture interface: v2.00
[    0.422381] clocksource: Switched to clocksource arm_global_timer
[    0.481282] VFS: Disk quotas dquot_6.6.0
[    0.485372] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.498145] NET: Registered protocol family 2
[    0.503060] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.510217] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.516827] TCP: Hash tables configured (established 8192 bind 8192)
[    0.523316] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.529325] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.535944] NET: Registered protocol family 1
[    0.540662] RPC: Registered named UNIX socket transport module.
[    0.546668] RPC: Registered udp transport module.
[    0.551437] RPC: Registered tcp transport module.
[    0.556222] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.562987] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.569784] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.578863] audit: initializing netlink subsys (disabled)
[    0.584442] audit: type=2000 audit(0.549:1): state=initialized audit_enabled=0 res=1
[    0.584694] Initialise system trusted keyrings
[    0.584719] Key type blacklist registered
[    0.584820] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.592262] zbud: loaded
[    0.603149] NFS: Registering the id_resolver key type
[    0.603162] Key type id_resolver registered
[    0.603164] Key type id_legacy registered
[    0.603174] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.603177] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.603332] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.603664] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.603770] orangefs_init: module version upstream loaded
[    0.607396] Key type asymmetric registered
[    0.607400] Asymmetric key parser 'x509' registered
[    0.607437] bounce: pool size: 64 pages
[    0.607477] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.607481] io scheduler noop registered
[    0.607484] io scheduler deadline registered
[    0.607553] io scheduler cfq registered (default)
[    0.611746] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.614000] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.614008] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.614014] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.614019] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.614395] PCI: bus0: Fast back to back transfers disabled
[    0.614407] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.614420] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.614506] PCI: bus1: Fast back to back transfers enabled
[    0.614605] PCI: bus2: Fast back to back transfers enabled
[    0.614637] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.614648] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.615188] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.672962] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.673144] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.732951] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.790184] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.792237] console [ttyS0] disabled
[    0.834842] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.843910] console [ttyS0] enabled
[    0.843910] console [ttyS0] enabled
[    0.851004] bootconsole [earlycon0] disabled
[    0.851004] bootconsole [earlycon0] disabled
[    0.861077] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.870202] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.879940] scsi host0: ahci-mvebu
[    0.883712] scsi host1: ahci-mvebu
[    0.887344] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.895363] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.904085] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.912068] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.918474] nand: Hynix H27U4G8F2DTR-BC
[    0.922331] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.929956] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.937936] Bad block table found at page 261824, version 0x01
[    0.944897] Bad block table found at page 261760, version 0x01
[    0.950951] nand_read_bbt: bad block at 0x0000061e0000
[    0.956138] nand_read_bbt: bad block at 0x00000e1c0000
[    0.961302] nand_read_bbt: bad block at 0x00000e1e0000
[    0.966497] nand_read_bbt: bad block at 0x00001ff80000
[    0.971660] nand_read_bbt: bad block at 0x00001ffa0000
[    0.976832] nand_read_bbt: bad block at 0x00001ffc0000
[    0.981995] nand_read_bbt: bad block at 0x00001ffe0000
[    0.987206] 2 ofpart partitions found on MTD device pxa3xx_nand-0
[    0.993341] Creating 2 MTD partitions on "pxa3xx_nand-0":
[    0.998773] 0x000000000000-0x000000100000 : "U-Boot-img"
[    1.004862] 0x000000100000-0x000000110000 : "U-Boot-env"
[    1.010205] mtd: partition "U-Boot-env" doesn't end on an erase/write block -- force read-only
[    1.020438] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    1.025380] spi1.0: error parsing ofpart partition /soc/spi@10680/spi-flash@0/partition@00000000 (/soc/spi@10680/spi-flash@0)
[    1.036754] mtd: failed to find partitions; one or more parsers reports errors (-22)
[    1.045914] libphy: Fixed MDIO Bus: probed
[    1.050500] libphy: orion_mdio_bus: probed
[    1.055817] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.065445] mvneta f1070000.ethernet eth0: Using random mac address 12:2f:9f:94:c6:0d
[    1.073652] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.080228] ehci-pci: EHCI PCI platform driver
[    1.084759] ehci-orion: EHCI orion driver
[    1.088937] orion-ehci f1058000.usb: EHCI Host Controller
[    1.094415] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.102099] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.132396] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.138509] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.145383] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.152655] usb usb1: Product: EHCI Host Controller
[    1.157558] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.164043] usb usb1: SerialNumber: f1058000.usb
[    1.169068] hub 1-0:1.0: USB hub found
[    1.172876] hub 1-0:1.0: 1 port detected
[    1.177500] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.182873] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.190488] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.199102] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.205006] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.211831] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.219104] usb usb2: Product: xHCI Host Controller
[    1.224019] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.230494] usb usb2: SerialNumber: f10f0000.usb3
[    1.233761] ata2: SATA link down (SStatus 0 SControl 300)
[    1.233797] ata1: SATA link down (SStatus 0 SControl 300)
[    1.246567] hub 2-0:1.0: USB hub found
[    1.250362] hub 2-0:1.0: 1 port detected
[    1.254636] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.259987] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.267607] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.275840] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.283091] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.290352] usb usb3: Product: xHCI Host Controller
[    1.295270] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.301743] usb usb3: SerialNumber: f10f0000.usb3
[    1.306896] hub 3-0:1.0: USB hub found
[    1.310689] hub 3-0:1.0: 1 port detected
[    1.315121] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.320475] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.328101] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.336715] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.342613] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.349439] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.356712] usb usb4: Product: xHCI Host Controller
[    1.361616] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.368158] usb usb4: SerialNumber: f10f8000.usb3
[    1.373307] hub 4-0:1.0: USB hub found
[    1.377101] hub 4-0:1.0: 1 port detected
[    1.381348] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.386716] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.394318] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.402552] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.409378] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.416650] usb usb5: Product: xHCI Host Controller
[    1.421555] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.428127] usb usb5: SerialNumber: f10f8000.usb3
[    1.433273] hub 5-0:1.0: USB hub found
[    1.437066] hub 5-0:1.0: 1 port detected
[    1.441585] usbcore: registered new interface driver usblp
[    1.447254] usbcore: registered new interface driver usb-storage
[    1.453558] mousedev: PS/2 mouse device common for all mice
[    1.460031] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.468065] i2c /dev entries driver
[    1.483669] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.496587] orion_wdt: Initial timeout 171 sec
[    1.503987] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.511507] hidraw: raw HID events driver (C) Jiri Kosina
[    1.517324] usbcore: registered new interface driver usbhid
[    1.522948] usbhid: USB HID core driver
[    1.527247] drop_monitor: Initializing network drop monitor service
[    1.533615] Netfilter messages via NETLINK v0.30.
[    1.538358] ip_set: protocol 6
[    1.541689] NET: Registered protocol family 10
[    1.546961] Segment Routing with IPv6
[    1.550693] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.557813] NET: Registered protocol family 17
[    1.562322] 8021q: 802.1Q VLAN Support v1.8
[    1.566582] Key type dns_resolver registered
[    1.570999] ThumbEE CPU extension supported.
[    1.575313] Registering SWP/SWPB emulation handler
[    1.580658] registered taskstats version 1
[    1.584796] Loading compiled-in X.509 certificates
[    1.589661] zswap: loaded using pool lzo/zbud
[    1.595152] Key type big_key registered
[    1.599329] Key type encrypted registered
[    1.605300] v5.0-sata0: supplied by pwr_en_sata0
[    1.609982] v12.0-sata0: supplied by pwr_en_sata0
[    1.615928] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.623117] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-29 16:07:39 UTC (1522339659)
[    1.632432] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.632553] v5.0-sata1: supplied by pwr_en_sata1
[    1.632601] v12.0-sata1: supplied by pwr_en_sata1
[    1.632645] v5.0-sata0: disabling
[    1.632649] v12.0-sata0: disabling
[    1.632651] v5.0-sata1: disabling
[    1.632654] v12.0-sata1: disabling
[    1.662316] Waiting 10 sec before mounting root device...
[    1.832885] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.839625] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.846813] usb 2-1: Product: Cruzer Blade
[    1.850931] usb 2-1: Manufacturer: SanDisk
[    1.855060] usb 2-1: SerialNumber: 4C530103371128105004
[    1.860837] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.867142] scsi host2: usb-storage 2-1:1.0
[    2.902999] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.911968] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.920682] sd 2:0:0:0: [sda] Write Protect is off
[    2.925790] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.937167]  sda: sda1
[    2.940759] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.023229] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.046008] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.053756] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.064644] devtmpfs: mounted
[   12.068507] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   14.847825] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22037/977280 files, 252678/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.036879] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   16.763263] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   16.768341] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/12:2f:9f:94:c6:0d
Sending on   LPF/eth0/12:2f:9f:94:c6:0d
Sending on   Socket/fallback
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
Trying recorded lease 192.168.178.45
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.178.44
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   97.267678] random: crng init done
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2553 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2552 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: 
Attachments:
open | download - armada-385-thecus-n2350.dts (10.5 KB)
open | download - armada-385-thecus-n2350.dtb (18.3 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 11:57AM
Ok, i use now your original nand partition and spi partitions and changed the bootcmd to use spi1.0:
setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
usb start
run usb_bootcmd

The log looks well, i think (at the end of the post).

Your spi partitions are in agreement with the values from "printenv" in uboot, but the stock kernel shows a different setup. Is our definition right?
[    2.222575] 0x000000000000-0x000000400000 : "U-Boot-img"
[    2.228563] 0x000000100000-0x000000400000 : "U-Boot-env"


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 mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 463 ms (8.5 MiB/s)
18679 bytes read in 664 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff8f6 ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025381] Ignoring duplicate/late registration of read_current_timer delay
[    0.032491] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043962] Console: colour dummy device 80x30
[    0.048495] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059156] pid_max: default: 32768 minimum: 301
[    0.063948] Security Framework initialized
[    0.068178] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074853] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082474] CPU: Testing write buffer coherency: ok
[    0.087602] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136943] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143274] Hierarchical SRCU implementation.
[    0.185218] smp: Bringing up secondary CPUs ...
[    0.235289] Booting CPU 1
[    0.238193] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238278] smp: Brought up 1 node, 2 CPUs
[    0.248190] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254602] CPU: All CPU(s) started in SVC mode.
[    0.260034] devtmpfs: initialized
[    0.266289] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274297] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284195] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290561] prandom: seed boundary self test passed
[    0.298036] prandom: 100 self tests passed
[    0.302202] pinctrl core: initialized pinctrl subsystem
[    0.308339] NET: Registered protocol family 16
[    0.313588] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321860] cpuidle: using governor ladder
[    0.326088] cpuidle: using governor menu
[    0.330246] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338316] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344373] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352536] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416826] vgaarb: loaded
[    0.419814] SCSI subsystem initialized
[    0.424381] usbcore: registered new interface driver usbfs
[    0.430095] usbcore: registered new interface driver hub
[    0.435609] usbcore: registered new device driver usb
[    0.441028] media: Linux media interface: v0.10
[    0.445748] Linux video capture interface: v2.00
[    0.451236] clocksource: Switched to clocksource arm_global_timer
[    0.510175] VFS: Disk quotas dquot_6.6.0
[    0.514265] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.527060] NET: Registered protocol family 2
[    0.531973] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.539131] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.545741] TCP: Hash tables configured (established 8192 bind 8192)
[    0.552226] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.558233] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.564850] NET: Registered protocol family 1
[    0.569569] RPC: Registered named UNIX socket transport module.
[    0.575575] RPC: Registered udp transport module.
[    0.580345] RPC: Registered tcp transport module.
[    0.585129] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.591898] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.598693] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.607761] audit: initializing netlink subsys (disabled)
[    0.613343] audit: type=2000 audit(0.579:1): state=initialized audit_enabled=0 res=1
[    0.613600] Initialise system trusted keyrings
[    0.613628] Key type blacklist registered
[    0.613729] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.621164] zbud: loaded
[    0.632039] NFS: Registering the id_resolver key type
[    0.632050] Key type id_resolver registered
[    0.632053] Key type id_legacy registered
[    0.632063] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.632066] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.632217] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.632549] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.632656] orangefs_init: module version upstream loaded
[    0.636280] Key type asymmetric registered
[    0.636284] Asymmetric key parser 'x509' registered
[    0.636326] bounce: pool size: 64 pages
[    0.636366] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.636370] io scheduler noop registered
[    0.636373] io scheduler deadline registered
[    0.636440] io scheduler cfq registered (default)
[    0.638059] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.640302] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.640310] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.640315] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.640321] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.640701] PCI: bus0: Fast back to back transfers disabled
[    0.640713] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640726] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.640812] PCI: bus1: Fast back to back transfers enabled
[    0.640910] PCI: bus2: Fast back to back transfers enabled
[    0.640942] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.640952] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.641588] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.701825] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.702003] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.761809] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.823236] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.824926] console [ttyS0] disabled
[    0.862039] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.871088] console [ttyS0] enabled
[    0.871088] console [ttyS0] enabled
[    0.878420] bootconsole [earlycon0] disabled
[    0.878420] bootconsole [earlycon0] disabled
[    0.888482] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.897611] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.907335] scsi host0: ahci-mvebu
[    0.911064] scsi host1: ahci-mvebu
[    0.914731] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.922730] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.931853] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.939807] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.946211] nand: Hynix H27U4G8F2DTR-BC
[    0.950069] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.957694] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.965673] Bad block table found at page 261824, version 0x01
[    0.972635] Bad block table found at page 261760, version 0x01
[    0.978688] nand_read_bbt: bad block at 0x0000061e0000
[    0.983874] nand_read_bbt: bad block at 0x00000e1c0000
[    0.989037] nand_read_bbt: bad block at 0x00000e1e0000
[    0.994233] nand_read_bbt: bad block at 0x00001ff80000
[    0.999397] nand_read_bbt: bad block at 0x00001ffa0000
[    1.004569] nand_read_bbt: bad block at 0x00001ffc0000
[    1.009732] nand_read_bbt: bad block at 0x00001ffe0000
[    1.014940] 1 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.021065] Creating 1 MTD partitions on "pxa3xx_nand-0":
[    1.026503] 0x000000000000-0x000020000000 : "ubifs"
[    1.036366] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    1.041298] 2 cmdlinepart partitions found on MTD device spi1.0
[    1.047249] Creating 2 MTD partitions on "spi1.0":
[    1.052087] 0x000000000000-0x000000100000 : "uboot"
[    1.057799] 0x000000100000-0x000000110000 : "uboot_env"
[    1.065280] libphy: Fixed MDIO Bus: probed
[    1.070394] libphy: orion_mdio_bus: probed
[    1.075753] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.086096] mvneta f1070000.ethernet eth0: Using random mac address 62:f2:ac:2c:a2:30
[    1.094447] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.101023] ehci-pci: EHCI PCI platform driver
[    1.105597] ehci-orion: EHCI orion driver
[    1.109783] orion-ehci f1058000.usb: EHCI Host Controller
[    1.115253] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.122955] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.161288] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.167465] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.174335] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.181625] usb usb1: Product: EHCI Host Controller
[    1.186530] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.193013] usb usb1: SerialNumber: f1058000.usb
[    1.198045] hub 1-0:1.0: USB hub found
[    1.201860] hub 1-0:1.0: 1 port detected
[    1.206491] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.211869] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.219484] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.228103] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.234014] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.240840] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.248114] usb usb2: Product: xHCI Host Controller
[    1.253031] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.259505] usb usb2: SerialNumber: f10f0000.usb3
[    1.264601] hub 2-0:1.0: USB hub found
[    1.267701] ata1: SATA link down (SStatus 0 SControl 300)
[    1.267738] ata2: SATA link down (SStatus 0 SControl 300)
[    1.279281] hub 2-0:1.0: 1 port detected
[    1.283560] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.288909] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.296510] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.304739] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.311950] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.319211] usb usb3: Product: xHCI Host Controller
[    1.324126] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.330600] usb usb3: SerialNumber: f10f0000.usb3
[    1.335752] hub 3-0:1.0: USB hub found
[    1.339546] hub 3-0:1.0: 1 port detected
[    1.343965] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.349319] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.356942] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.365560] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.371460] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.378286] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.385558] usb usb4: Product: xHCI Host Controller
[    1.390462] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.397003] usb usb4: SerialNumber: f10f8000.usb3
[    1.402152] hub 4-0:1.0: USB hub found
[    1.405945] hub 4-0:1.0: 1 port detected
[    1.410192] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.415562] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.423155] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.431391] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.438216] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.445486] usb usb5: Product: xHCI Host Controller
[    1.450389] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.456960] usb usb5: SerialNumber: f10f8000.usb3
[    1.462118] hub 5-0:1.0: USB hub found
[    1.465911] hub 5-0:1.0: 1 port detected
[    1.470429] usbcore: registered new interface driver usblp
[    1.476099] usbcore: registered new interface driver usb-storage
[    1.482418] mousedev: PS/2 mouse device common for all mice
[    1.488910] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.496947] i2c /dev entries driver
[    1.512567] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.525500] orion_wdt: Initial timeout 171 sec
[    1.532926] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.540445] hidraw: raw HID events driver (C) Jiri Kosina
[    1.546268] usbcore: registered new interface driver usbhid
[    1.551888] usbhid: USB HID core driver
[    1.556195] drop_monitor: Initializing network drop monitor service
[    1.562557] Netfilter messages via NETLINK v0.30.
[    1.567297] ip_set: protocol 6
[    1.570630] NET: Registered protocol family 10
[    1.575910] Segment Routing with IPv6
[    1.579642] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.586740] NET: Registered protocol family 17
[    1.591271] 8021q: 802.1Q VLAN Support v1.8
[    1.595508] Key type dns_resolver registered
[    1.599924] ThumbEE CPU extension supported.
[    1.604238] Registering SWP/SWPB emulation handler
[    1.609605] registered taskstats version 1
[    1.613743] Loading compiled-in X.509 certificates
[    1.618606] zswap: loaded using pool lzo/zbud
[    1.624075] Key type big_key registered
[    1.628248] Key type encrypted registered
[    1.634233] v5.0-sata0: supplied by pwr_en_sata0
[    1.638924] v12.0-sata0: supplied by pwr_en_sata0
[    1.644780] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.652082] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-29 16:53:34 UTC (1522342414)
[    1.661279] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.668135] v5.0-sata1: supplied by pwr_en_sata1
[    1.672858] v12.0-sata1: supplied by pwr_en_sata1
[    1.677615] v5.0-sata0: disabling
[    1.680948] v12.0-sata0: disabling
[    1.684432] v5.0-sata1: disabling
[    1.687764] v12.0-sata1: disabling
[    1.691603] Waiting 10 sec before mounting root device...
[    1.841722] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.848463] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.855652] usb 2-1: Product: Cruzer Blade
[    1.859772] usb 2-1: Manufacturer: SanDisk
[    1.863901] usb 2-1: SerialNumber: 4C530103371128105004
[    1.869586] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.875891] scsi host2: usb-storage 2-1:1.0
[    2.911855] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.920785] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.930078] sd 2:0:0:0: [sda] Write Protect is off
[    2.935190] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.946589]  sda: sda1
[    2.950244] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.032046] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.041061] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   12.047998] EXT4-fs (sda1): write access will be enabled during recovery
[   12.111654] EXT4-fs (sda1): recovery complete
[   12.121456] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.129178] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.140108] devtmpfs: mounted
[   12.143997] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   14.899329] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22037/977280 files, 252680/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.087725] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   16.832116] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   16.837205] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/62:f2:ac:2c:a2:30
Sending on   LPF/eth0/62:f2:ac:2c:a2:30
Sending on   Socket/fallback
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.178.45 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
Trying recorded lease 192.168.178.45
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.178.44
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[  107.152080] random: crng init done
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2561 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2560 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Thu Mar 29 08:40:45 PDT 2018 on ttyS0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
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
Debian 9.1
Thu Mar 29 09:56:14 PDT 2018 up 2 minutes
root@debian:~# uname -a
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l GNU/Linux
root@debian:~# mount
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=512972k,nr_inodes=128243,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=102700k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=205380k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:~# cat /proc/cpuinfo
processor: 0
model name: ARMv7 Processor rev 1 (v7l)
BogoMIPS: 1066.00
Features: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 
CPU implementer: 0x41
CPU architecture: 7
CPU variant: 0x4
CPU part: 0xc09
CPU revision: 1

processor: 1
model name: ARMv7 Processor rev 1 (v7l)
BogoMIPS: 1066.00
Features: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 
CPU implementer: 0x41
CPU architecture: 7
CPU variant: 0x4
CPU part: 0xc09
CPU revision: 1

Hardware: Marvell Armada 380/385 (Device Tree)
Revision: 0000
Serial: 0000000000000000
root@debian:~# ethtool eth0
Settings for eth[  182.285272] m88e1318_get_wol: phy_id = 0x1410dd1 OK
0:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: no
root@debian:~# 
Attachments:
open | download - armada-385-thecus-n2350.dts (10.2 KB)
open | download - armada-385-thecus-n2350.dtb (18.2 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 12:18PM
In the beginning of this thread, we dumped a mtd "mtd0_N2350" with nanddump and tried to kwboot it. At that time i had no clue how to get the timing right etc. I tried it again, and it starts upload, but it doesn't make any progress (more and more "...." dots, but at every line it still says 0%).

However my real concern is: Since we have realized by now, that uboot is actually on spi flash - can i dump the uboot image in spi flash (using the stock kernel/system) and try to kwboot that?
How can i dump it?

edit:
uboot can write spi flash to memory with the "sf read" command and can write memory to usb with
usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'
    from memory address `addr'
should i give it a shot or is there an easier way?



Edited 1 time(s). Last edit at 03/29/2018 01:07PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 01:54PM
Ok, i tried to dump the uboot image from spi.. using uboot.

Boot and press key to get to uboot console:

Marvell>> flash_part_print
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB

Linux/vxWorks partitions on spi flash
--------------------------------------

Spi flash Address (rx)   : 0xf4000000
Spi flash size           : 8MB
u-boot               : offset=0x00000000, size=0x00200000 (2MB)
kernel/vxWorks-image : offset=0x00200000, size=0x00400000 (4MB)
Linux rootfs         : offset=0x00600000, size=0x00200000 (2MB)

Single Image         : offset=0x00200000, size=0x00600000 (6MB)

Device 0: nand0, sector size 128 KiB
  Page size      2048 b
  OOB size         64 b
  Erase size   131072 b

Linux/vxWorks partitions on nand flash
--------------------------------------

Nand flash size          : 1024MB
kernel/vxWorks-image : offset=0x00000000, size=0x00a00000 (10MB)
Linux rootfs         : offset=0x00a00000, size=0x02000000 (32MB)

Single Image         : offset=0x00000000, size=0x02a00000 (42MB)

Have a look at your available flash storage.
We want to dump the first 2MB of the spi flash.
So we start at offset 0x0 and copy size 0x00200000 to memory location addr=0x02000000 (this is were normally the kernel goes to.

sf read 0x02000000 0x00000000 0x00200000
(no output here)

Now start the usb system and list you usb storage:
usb start
usb storage
(i don't show the output)

Now we write the memory region starting at addr (see above) of 2MB size to blk address 0x0 of the usb stick - be sure that the usb stick has no import data on it! It will be erased afterwards..

Marvell>> usb write 0x02000000 0x0 0x00200000

USB write: device 0 block # 0, count 2097152 ... BUG: failure at xhci-ring.c:500/abort_
td()!
BUG!
resetting ...
Ok, that doesn't look to good. The box is rebooting. I am not sure if i have just requested to copy 0x00200000 blocks to the usb stick. That would be a lot.

Still we continue. Take the usb stick to your normal pc and copy the first 2MB to your hdd:

sudo dd if=/dev/sdb of=uboot.bin bs=1M count=2

And the result is: Somewhat a success? I can not kwboot from it - the copy process did not start after a few tries. But the image starts indeed with the typical header for a uboot image 0x015a.

[thecus]$ hexdump uboot_spi.bin | head
0000000 015a 0000 6418 000d 0101 8034 8040 0001
0000010 0000 0000 0000 0000 0000 0000 0000 c501
0000020 0102 8014 0002 0000 005b 0000 0068 0000
0000030 5fff e92d 04e0 fa00 0000 e3a0 9fff e8bd
0000040 1ffe e92d 0f36 ee07 1ffe e8bd ff1e e12f
0000050 1ffe e92d 0fba ee07 0f3e ee07 0f9a ee07
0000060 1ffe e8bd ff1e e12f 1ffe e92d f05f f57f
0000070 0f3e ee07 f04f f57f 1ffe e8bd ff1e e12f
0000080 1f10 ee11 1a02 e3c1 1000 e181 1f10 ee01
0000090 f04f f57f ff1e e12f 1000 e10f 1c01 e3c1

Well..that was fun :D
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 04:54PM
Quote

flash@d0000 {
status = "okay";
num-cs = <1>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;

mtd1@00000000 {
label = "U-Boot-img";
reg = <0x00000000 0x00100000>;
};

mtd2@00100000 {
label = "U-Boot-env";
reg = <0x00100000 0x00010000>;
};

/*
partition@00000000 {
label = "ubifs";
reg = <0x00000000 0x20000000>;
};
*/
};

Quote

[ 1.024261] 2 ofpart partitions found on MTD device pxa3xx_nand-0
[ 1.030386] Creating 2 MTD partitions on "pxa3xx_nand-0":
[ 1.035825] 0x000000000000-0x000000100000 : "U-Boot-img"
[ 1.042064] 0x000000100000-0x000000110000 : "U-Boot-env"

The above is definitely a wrong thing to do! this box NAND does not contain u-boot.

[    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"

The above is very good! so the driver assigned spi1 instead of spi0 device. The stock boot log showed that:

Quote

[ 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"

Quote

Ok, i use now your original nand partition and spi partitions and changed the bootcmd to use spi1.0:

The bold part is how the partitions should be. And the result is excellent:

[    0.939807] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.946211] nand: Hynix H27U4G8F2DTR-BC
[    0.950069] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.957694] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.965673] Bad block table found at page 261824, version 0x01
[    0.972635] Bad block table found at page 261760, version 0x01
[    0.978688] nand_read_bbt: bad block at 0x0000061e0000
[    0.983874] nand_read_bbt: bad block at 0x00000e1c0000
[    0.989037] nand_read_bbt: bad block at 0x00000e1e0000
[    0.994233] nand_read_bbt: bad block at 0x00001ff80000
[    0.999397] nand_read_bbt: bad block at 0x00001ffa0000
[    1.004569] nand_read_bbt: bad block at 0x00001ffc0000
[    1.009732] nand_read_bbt: bad block at 0x00001ffe0000
[    1.014940] 1 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.021065] Creating 1 MTD partitions on "pxa3xx_nand-0":
[    1.026503] 0x000000000000-0x000020000000 : "ubifs"

[    1.036366] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    1.041298] 2 cmdlinepart partitions found on MTD device spi1.0
[    1.047249] Creating 2 MTD partitions on "spi1.0":
[    1.052087] 0x000000000000-0x000000100000 : "uboot"
[    1.057799] 0x000000100000-0x000000110000 : "uboot_env"

The rest of your SPI dump activity was not good :) no need to do it that way in serial console.

Let me post what you should do in the next post.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 29, 2018 05:07PM
Boot to stock.

dmesg | grep -i20 spi1
cat /proc/mtd
cat /etc/fw_env.config

Boot to Debian 4.14.1-mvebu-tld-1 rootfs.

dmesg | grep -i20 spi1
cat /proc/mtd
cat /etc/fw_env.config

Please post output here (everything, including errors output).

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



Edited 1 time(s). Last edit at 03/29/2018 05:08PM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 30, 2018 02:35AM
This is probably my last message for the next 10 days. Hopefully Thecus the uboot sources until then.

Booting stock:

N2350:~# dmesg | grep -i20 spi1
grep: invalid option -- '2'
BusyBox v1.16.1.2 (2018-01-19 12:29:19 CST) multi-call binary.

Usage: grep [-HhnlLoqvsriFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

Options:
-HAdd 'filename:' prefix
-hDo not add 'filename:' prefix
-nAdd 'line_no:' prefix
-lShow only names of files that match
-LShow only names of files that don't match
-cShow only count of matching lines
-oShow only the matching part of line
-qQuiet. Return 0 if PATTERN is found, 1 otherwise
-vSelect non-matching lines
-sSuppress open and read errors
-rRecurse
-iIgnore case
-FPATTERN is a literal (not regexp)
-EPATTERN is an extended regexp
-m NMatch up to N times per file
-A NPrint N lines of trailing context
-B NPrint N lines of leading context
-C NSame as '-A N -B N'
-e PTRNPattern to match
-f FILERead pattern from file

N2350:~# dmesg | grep -i spi1
[    3.637942] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    3.642856] 2 ofpart partitions found on MTD device spi1.0
[    3.648400] Creating 2 MTD partitions on "spi1.0":
N2350:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00400000 00010000 "U-Boot-img"
mtd2: 00300000 00010000 "U-Boot-env"
mtd3: 05885000 0001f000 "boot"
mtd4: 008f6000 0001f000 "etc"
mtd5: 1803b000 0001f000 "rom"
mtd6: 00706000 0001f000 "version"
N2350:~# cat /etc/fw_env.config
/dev/mtd2 0x0 0x10000
N2350:~# logout
process '/sbin/console' (pid 1793) exited. Scheduling for restart.
starting pid 6647, tty '': '/sbin/console'

N2350 login:


Booting mainline:
debian login: root
Password: 
Last login: Thu Mar 29 09:56:14 PDT 2018 on ttyS0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
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
Debian 9.1
Fri Mar 30 00:30:47 PDT 2018 up 1 minute
root@debian:~# dmesg | grep -i20 spi1
[    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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d9f300, node_mem_map ef7f8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] pcpu-alloc: s40716 r8192 d20724 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db4848   ( 723 kB)
                      .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.904951] scsi host1: ahci-mvebu
[    0.908617] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.916615] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.925310] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.933320] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.939723] nand: Hynix H27U4G8F2DTR-BC
[    0.943580] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.951205] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.959184] Bad block table found at page 261824, version 0x01
[    0.966131] Bad block table found at page 261760, version 0x01
[    0.972185] nand_read_bbt: bad block at 0x0000061e0000
[    0.977371] nand_read_bbt: bad block at 0x00000e1c0000
[    0.982534] nand_read_bbt: bad block at 0x00000e1e0000
[    0.987729] nand_read_bbt: bad block at 0x00001ff80000
[    0.992893] nand_read_bbt: bad block at 0x00001ffa0000
[    0.998064] nand_read_bbt: bad block at 0x00001ffc0000
[    1.003227] nand_read_bbt: bad block at 0x00001ffe0000
[    1.008436] 1 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.014560] Creating 1 MTD partitions on "pxa3xx_nand-0":
[    1.020000] 0x000000000000-0x000020000000 : "ubifs"
[    1.029529] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    1.034439] 2 cmdlinepart partitions found on MTD device spi1.0
[    1.040408] Creating 2 MTD partitions on "spi1.0":
[    1.045231] 0x000000000000-0x000000100000 : "uboot"
[    1.050797] 0x000000100000-0x000000110000 : "uboot_env"
[    1.057391] libphy: Fixed MDIO Bus: probed
[    1.061979] libphy: orion_mdio_bus: probed
[    1.067211] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.076836] mvneta f1070000.ethernet eth0: Using random mac address 46:e8:6e:06:96:c4
[    1.085018] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.091615] ehci-pci: EHCI PCI platform driver
[    1.096151] ehci-orion: EHCI orion driver
[    1.100336] orion-ehci f1058000.usb: EHCI Host Controller
[    1.105796] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.113480] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.145441] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.151554] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.158397] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.165670] usb usb1: Product: EHCI Host Controller
[    1.170574] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.177057] usb usb1: SerialNumber: f1058000.usb
[    1.182087] hub 1-0:1.0: USB hub found
[    1.185898] hub 1-0:1.0: 1 port detected
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00100000 00001000 "uboot"
mtd2: 00010000 00001000 "uboot_env"
root@debian:~# cat /etc/fw_env.config
# MTD device nameDevice offsetEnv. sizeFlash sector sizeNumber of sectors

/dev/mtd10x00000x800000x200004
root@debian:~#



Edited 1 time(s). Last edit at 03/30/2018 02:35AM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 30, 2018 05:04AM
Boot to Debian, and

echo "/dev/mtd2 0x00000 0x10000 0x10000" > /etc/fw_env.config
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 02, 2018 02:00AM
Hi bodhi,
Thecus just send me the uboot sources!
uboot gpl

I am still on vacation, but i wanted to share the link with you.
Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 02, 2018 02:03AM
Thanks Manuel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 10, 2018 02:45PM
Hi bodhi!

I am back, so lets move forward:
> Boot to Debian, and
>
>
> echo "/dev/mtd2 0x00000 0x10000 0x10000" >
> /etc/fw_env.config
> fw_printenv
>

Here is the log:
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
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
Debian 9.1
Tue Apr 10 12:43:57 PDT 2018 up 1 minute
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00100000 00001000 "uboot"
mtd2: 00010000 00001000 "uboot_env"
root@debian:~# echo "/dev/mtd2 0x00000 0x10000 0x10000" > /etc/fw_env.config
root@debian:~# fw_printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/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;else setenv firstboot 0;saveenv;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
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
usb0Mode=host
usbActive=0
usbType=3
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
thecus_uboot=1.0.9
ethaddr=00:14:FD:19:C3:9D
root@debian:~# 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 10, 2018 05:45PM
Cool! So this is confirmed to be the correct layout.

echo "/dev/mtd2 0x00000 0x10000 0x10000" > /etc/fw_env.config

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00100000 00001000 "uboot"
mtd2: 00010000 00001000 "uboot_env"

Now you can

1. dump mtd0 and try kwboot with it.

dd if=/dev/mtd0 of=mtd0.thecus-n2350  bs=1024k conv=sync

2. If you prefer to save envs, use fw_setenv to set the booting envs permanently. But let polish it a bit so that it will not interfere with booting stock.

And we still need to work on booting with uInitrd. So the envs will change again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 01:41AM
Hi,

> 1. dump mtd0 and try kwboot with it.
Here we go:
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00100000 00001000 "uboot"
mtd2: 00010000 00001000 "uboot_env"
root@debian:~# dd if=/dev/mtd0 of=mtd0.thecus-n2350  bs=1024k conv=sync
512+0 records in
512+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 79.8665 s, 6.7 MB/s
root@debian:~# dd if=/dev/mtd0 of=mtd0.thecus-n2350  bs=1024k conv=sync[1P[1@1[1P[1@1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 1.74829 s, 600 kB/s
root@debian:~# dd if=/dev/mtd1 of=mtd1.thecus-n2350  bs=1024k conv=sync[1P[1@2[1P[1@2
0+1 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.117202 s, 8.9 MB/s
Isn't mtd0 ubifs and not uboot? I am confused. It is also to big for uboot? I copied all mtds.


> 2. If you prefer to save envs, use fw_setenv to
> set the booting envs permanently. But let polish
> it a bit so that it will not interfere with
> booting stock.
Of course i would like it to boot automatically, but not at the moment. I hope to get a working kwboot first.

> And we still need to work on booting with uInitrd.
> So the envs will change again.
okay.


Now trying to kwboot it. Using mtd0 the kwboot process starts uploading right away,
[bodhi]$ ../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b mtd0.thecus-n2350 -q 0 -s 1 
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [......................................................................]
  0 % [.........^C
I didn't have time to wait for it to finish.

Trying with mtd1 i got the xmodem protocol error for now:
[mjung@pollux bodhi]$ ../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b mtd1.thecus-n2350 -q 0 -s 1 
Sending boot message. Please reboot the target...\
Sending boot image...

BootROM - 1.73
 (Boot)
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
  0 % [+xmodem: Protocol error

Why don't we build uboot from the gpl sources now? This should give us also the required image to kwboot?
I don't have my toolchain working properly yet. Maybe today after work.
Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 02:15AM
Manuel,

Sorry, that's a typo! mtd1 is correct. Been a long day :)

> Why don't we build uboot from the gpl sources now?
> This should give us also the required image to
> kwboot?

Yes, of course. But kwboot the u-boot in mtd1 would be the same as the GPL u-boot build. We need to figure out why it takes so long to load.

BTW, my diskless Thecus N2350 has arrived :) have not got time to unbox yet.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 02:33AM
Hi,
> Sorry, that's a typo! mtd1 is correct. Been a long
> day :)
No problem, you are answering so often and fast. Thanks for all the work!

> We need to figure out why it takes so long to load.
The mtd0 image did take so long to load - probably because it is 512MB..
The (correct) mtd1 image did not load at all (xmodem protocol error).

> BTW, my diskless Thecus N2350 has arrived :) have
> not got time to unbox yet.
Very cool!

Before i forget it: The gpl uboot comes with tools from marvell (nx350_uboot/u-boot-2013.01-2015_T1.0p18/tools/marvell), especially with a custom xmodem:

In order to boot the AXP using the xmodem interface when the board fails
to boot and reaches the "trying uart" option in the BootROM, you need to
follow the follwing steps:

        - Start the minicom and make sure the you can see the BootROM printings
          that end with the line "BootROM: Trying UART"
        - At this stage the board is ready to get a pattern that instructs it
          what to do (either start Xmodem or go into a debug shell).
        - To star the Xmodem simply send the "Xmodem_boot_pattern.bin" as ascii
          (Ctrl+A then s, then select ascii).
        - After sending the file, you should start seeing strange characters on
          the screen printed once in a second. These are the Xmodem NACKs.
        - This means that you are ready to send the new u-boot with Xmodem (which
          needs to be with checksum packets and not crc-16 that is used in default
          Xmodem in minicom).
        - Compile the sx-at91.c file (or you can use my pre-built).
        - Add this binary to the minicom transfer protocols (see instructions in
          the file sx-at-91.c header). The newly added file should look like:
                | J  sx-at91    <path to sx-at91 file> <serial port> Y    U    N       N       N    |
          example:
                | J  sx-at91    /home/tawfik/temp/x/sx-at91 /dev/ttyS1 Y    U    N       N       N    |
        - Please note that you need to use the correct path and "tty" device. In my
          example I have the board connected to /dev/ttyS1.
        - Start the Xmodem transfer through sending the uart boot file
         (u-boot-2009.08-2.3.2-uart.bin) and selecting the sx-at91 protocol (Ctrl+a
         then s, select ax-at91)
        - When the transfer finishes, press any key to go back and the u-boot
          should be loaded.

I am not quite sure, if this applies to us (ax-at91?), but if it does, this line caught my eye:
        - This means that you are ready to send the new u-boot with Xmodem (which
          needs to be with checksum packets and not crc-16 that is used in default
          Xmodem in minicom).


Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 12:19PM
Hi,

So i build the gpl'd uboot images and tried them, since i had no luck with the mtd1 dump version.
Three images are build: normal, uart and debug.
The normal image is not identical with the mtd1 dump image, but it still does not boot (protocol error).

The uart image does the following:

[bodhi]$ ../kwboot-x86_64 -t -B 115200 /dev/ttyUSB0 -b ../nx350_uboot/u-boot-2013.01-2015_T1.0p18/u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin -q 0 -s 1
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................++++++++++++++++]
 10 % [+xmodem: Bad message

With the debug version i get the following:
[mjung@pollux bodhi]$ ../kwboot-x86_64 -t -B 115200 /dev/ttyUSB0 -b ../nx350_uboot/u-boot-2013.01-2015_T1.0p18/u-boot-a38x-2015T1_p18_Thecus-spi-debug.bin -q 0 -s 1
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  8 % [......................................................................]
 17 % [......................................................................]
 25 % [......................................................................]
 34 % [......................................................................]
 42 % [......................................................................]
 51 % [......................................................................]
 60 % [......................................................................]
 68 % [......................................................................]
 77 % [......................................................................]
 85 % [......................................................................]
 94 % [..............................................

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
.]
[Type Ctrl-\ + c to quit]

Please choose one of the following commands:
	1.SERDES initialization
	2.DRAM initialization
	3.Suspend wake up
	4.Prompt mode
		Selected command number:

Not sure which command to choose from here?
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 12:42PM
Success! So using the kwboot tool with the "-f" flag did not work, but the following did:
[bodhi]$ ./download-serial.sh /dev/ttyUSB0 ../nx350_uboot/u-boot-2013.01-2015_T1.0p18/u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin
send-stop-pattern.c: In Funktion »main«:
send-stop-pattern.c:24:2: Warnung: Implizite Deklaration der Funktion »sleep«; meinten Sie »beep«? [-Wimplicit-function-declaration]
  sleep(2);
  ^~~~~
  beep
Now reset or power cycle your Armada 38x board and then press enter
Sleeping
Out of sleep
Got something 21
Got NACK (0x15) character
The board should be in serial downloader now. Sending the binary file 
Sending ../nx350_uboot/u-boot-2013.01-2015_T1.0p18/u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin, 7486 blocks: Give your local XMODEM receive command now.
Bytes Sent: 958336   BPS:10235                           

Transfer complete
[screen is terminating]

From the screen log:
U-Boot 2013.01 (Apr 11 2018 - 19:28:35) Marvell version: 2015_T1.0p18

As you can see this is indeed the u-boot i compiled today.

The download-serial.sh script enters the kwboot mode first "manually" with a small c program and then uses standard xmodem command "sx" to copy the u-boot over uart. I will attach the script and the uboot image to this post.
For future reference, the original script source is mentioned here: https://forum.doozan.com/read.php?2,50829,54889#msg-54889



Edited 1 time(s). Last edit at 04/11/2018 12:59PM by lordzahl.
Attachments:
open | download - download-serial.sh (1.3 KB)
open | download - u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin (935.9 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 11, 2018 05:37PM
Manuel,

Good works!

Interrupt the console after this uboot started, to the countdown
U-Boot 2013.01 (Apr 11 2018 - 19:28:35) Marvell version: 2015_T1.0p18

And then
printenv
And then try to boot into Debian the same way you did with stock uboot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 12, 2018 01:23AM
Hi bodhi,

> Interrupt the console after this uboot started, to
> the countdown
>
> U-Boot 2013.01 (Apr 11 2018 - 19:28:35) Marvell
> version: 2015_T1.0p18
>
>
> And then
>
> printenv
>
> And then try to boot into Debian the same way you
> did with stock uboot.

okay, here is the log:
ustomer0-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:0x3fed4000:0x3ff95d24
       BSS:0x3ffef504
       Stack:0x3f9c3f20
       Heap:0x3f9c4000:0x3fed4000
       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>> setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Apr 11 2018 - 19:28:35) 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:0x3fed4000:0x3ff95d24
       BSS:0x3ffef504
       Stack:0x3f9c3f20
       Heap:0x3f9c4000:0x3fed4000
       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>> 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>> setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (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 456 ms (8.7 MiB/s)
18679 bytes read in 659 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff8f6 ... 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: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0: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: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 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 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.000010] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019169] Switching to timer-based delay loop, resolution 1ns
[    0.025382] Ignoring duplicate/late registration of read_current_timer delay
[    0.032492] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043963] Console: colour dummy device 80x30
[    0.048497] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059158] pid_max: default: 32768 minimum: 301
[    0.063950] Security Framework initialized
[    0.068179] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074854] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082477] CPU: Testing write buffer coherency: ok
[    0.087606] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131595] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136944] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143276] Hierarchical SRCU implementation.
[    0.185219] smp: Bringing up secondary CPUs ...
[    0.235292] Booting CPU 1
[    0.238196] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238282] smp: Brought up 1 node, 2 CPUs
[    0.248194] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254606] CPU: All CPU(s) started in SVC mode.
[    0.260040] devtmpfs: initialized
[    0.266294] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274305] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284203] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290566] prandom: seed boundary self test passed
[    0.298041] prandom: 100 self tests passed
[    0.302207] pinctrl core: initialized pinctrl subsystem
[    0.308347] NET: Registered protocol family 16
[    0.313617] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321893] cpuidle: using governor ladder
[    0.326123] cpuidle: using governor menu
[    0.330280] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338351] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344410] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352573] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.407053] vgaarb: loaded
[    0.410041] SCSI subsystem initialized
[    0.415755] usbcore: registered new interface driver usbfs
[    0.421342] usbcore: registered new interface driver hub
[    0.426818] usbcore: registered new device driver usb
[    0.432236] media: Linux media interface: v0.10
[    0.436928] Linux video capture interface: v2.00
[    0.442404] clocksource: Switched to clocksource arm_global_timer
[    0.501388] VFS: Disk quotas dquot_6.6.0
[    0.505496] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.518202] NET: Registered protocol family 2
[    0.523116] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.530274] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.536948] TCP: Hash tables configured (established 8192 bind 8192)
[    0.543464] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.549472] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.556110] NET: Registered protocol family 1
[    0.560835] RPC: Registered named UNIX socket transport module.
[    0.566844] RPC: Registered udp transport module.
[    0.571614] RPC: Registered tcp transport module.
[    0.576398] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.583161] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.589959] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.599037] audit: initializing netlink subsys (disabled)
[    0.604616] audit: type=2000 audit(0.569:1): state=initialized audit_enabled=0 res=1
[    0.604872] Initialise system trusted keyrings
[    0.604901] Key type blacklist registered
[    0.604997] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.612454] zbud: loaded
[    0.623281] NFS: Registering the id_resolver key type
[    0.623295] Key type id_resolver registered
[    0.623298] Key type id_legacy registered
[    0.623307] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.623311] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.623463] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.623794] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.623899] orangefs_init: module version upstream loaded
[    0.627513] Key type asymmetric registered
[    0.627516] Asymmetric key parser 'x509' registered
[    0.627555] bounce: pool size: 64 pages
[    0.627596] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.627600] io scheduler noop registered
[    0.627603] io scheduler deadline registered
[    0.627669] io scheduler cfq registered (default)
[    0.629322] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.631560] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.631568] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.631574] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.631579] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.631959] PCI: bus0: Fast back to back transfers disabled
[    0.631971] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.631984] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.632068] PCI: bus1: Fast back to back transfers enabled
[    0.632165] PCI: bus2: Fast back to back transfers enabled
[    0.632196] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.632206] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.632828] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.692988] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.693165] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.752975] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.814221] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.816002] console [ttyS0] disabled
[    0.853917] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.862982] console [ttyS0] enabled
[    0.862982] console [ttyS0] enabled
[    0.870077] bootconsole [earlycon0] disabled
[    0.870077] bootconsole [earlycon0] disabled
[    0.880122] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.889250] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.898984] scsi host0: ahci-mvebu
[    0.902762] scsi host1: ahci-mvebu
[    0.906400] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    0.914420] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    0.923526] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.931485] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.937889] nand: Hynix H27U4G8F2DTR-BC
[    0.941747] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.949372] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.957346] Bad block table found at page 261824, version 0x01
[    0.964308] Bad block table found at page 261760, version 0x01
[    0.970362] nand_read_bbt: bad block at 0x0000061e0000
[    0.975548] nand_read_bbt: bad block at 0x00000e1c0000
[    0.980712] nand_read_bbt: bad block at 0x00000e1e0000
[    0.985907] nand_read_bbt: bad block at 0x00001ff80000
[    0.991070] nand_read_bbt: bad block at 0x00001ffa0000
[    0.996242] nand_read_bbt: bad block at 0x00001ffc0000
[    1.001405] nand_read_bbt: bad block at 0x00001ffe0000
[    1.006614] 1 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.012749] Creating 1 MTD partitions on "pxa3xx_nand-0":
[    1.018178] 0x000000000000-0x000020000000 : "ubifs"
[    1.027882] m25p80 spi1.0: mx25l3205d (4096 Kbytes)
[    1.032813] 2 cmdlinepart partitions found on MTD device spi1.0
[    1.038764] Creating 2 MTD partitions on "spi1.0":
[    1.043601] 0x000000000000-0x000000100000 : "uboot"
[    1.049305] 0x000000100000-0x000000110000 : "uboot_env"
[    1.056773] libphy: Fixed MDIO Bus: probed
[    1.061890] libphy: orion_mdio_bus: probed
[    1.067282] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.077563] mvneta f1070000.ethernet eth0: Using random mac address 36:c6:1e:66:47:7d
[    1.085914] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.092514] ehci-pci: EHCI PCI platform driver
[    1.097073] ehci-orion: EHCI orion driver
[    1.101260] orion-ehci f1058000.usb: EHCI Host Controller
[    1.106723] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.114430] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.152444] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.158556] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.165401] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.172672] usb usb1: Product: EHCI Host Controller
[    1.177575] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.184060] usb usb1: SerialNumber: f1058000.usb
[    1.189165] hub 1-0:1.0: USB hub found
[    1.192978] hub 1-0:1.0: 1 port detected
[    1.197781] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.203159] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.210777] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.219395] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.225301] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.232128] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.239425] usb usb2: Product: xHCI Host Controller
[    1.244344] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.250819] usb usb2: SerialNumber: f10f0000.usb3
[    1.255983] hub 2-0:1.0: USB hub found
[    1.258846] ata1: SATA link down (SStatus 0 SControl 300)
[    1.258880] ata2: SATA link down (SStatus 0 SControl 300)
[    1.270663] hub 2-0:1.0: 1 port detected
[    1.274865] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.280214] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.287834] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.296068] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.303426] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.310686] usb usb3: Product: xHCI Host Controller
[    1.315604] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.322078] usb usb3: SerialNumber: f10f0000.usb3
[    1.327150] hub 3-0:1.0: USB hub found
[    1.330944] hub 3-0:1.0: 1 port detected
[    1.335260] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.340614] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.348239] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.356854] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.362756] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.369582] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.376857] usb usb4: Product: xHCI Host Controller
[    1.381761] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.388306] usb usb4: SerialNumber: f10f8000.usb3
[    1.393384] hub 4-0:1.0: USB hub found
[    1.397177] hub 4-0:1.0: 1 port detected
[    1.401349] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.406718] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.414319] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.422557] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.429383] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.436657] usb usb5: Product: xHCI Host Controller
[    1.441560] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.448134] usb usb5: SerialNumber: f10f8000.usb3
[    1.453210] hub 5-0:1.0: USB hub found
[    1.457002] hub 5-0:1.0: 1 port detected
[    1.461348] usbcore: registered new interface driver usblp
[    1.466982] usbcore: registered new interface driver usb-storage
[    1.473225] mousedev: PS/2 mouse device common for all mice
[    1.479681] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.487725] i2c /dev entries driver
[    1.503346] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.516264] orion_wdt: Initial timeout 171 sec
[    1.523689] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.531199] hidraw: raw HID events driver (C) Jiri Kosina
[    1.537021] usbcore: registered new interface driver usbhid
[    1.542644] usbhid: USB HID core driver
[    1.546940] drop_monitor: Initializing network drop monitor service
[    1.553314] Netfilter messages via NETLINK v0.30.
[    1.558055] ip_set: protocol 6
[    1.561386] NET: Registered protocol family 10
[    1.566662] Segment Routing with IPv6
[    1.570394] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.577515] NET: Registered protocol family 17
[    1.582025] 8021q: 802.1Q VLAN Support v1.8
[    1.586285] Key type dns_resolver registered
[    1.590701] ThumbEE CPU extension supported.
[    1.595010] Registering SWP/SWPB emulation handler
[    1.600359] registered taskstats version 1
[    1.604495] Loading compiled-in X.509 certificates
[    1.609359] zswap: loaded using pool lzo/zbud
[    1.614825] Key type big_key registered
[    1.619001] Key type encrypted registered
[    1.625005] v5.0-sata0: supplied by pwr_en_sata0
[    1.629684] v12.0-sata0: supplied by pwr_en_sata0
[    1.635520] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.642440] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.649364] armada38x-rtc f10a3800.rtc: setting system clock to 2018-04-12 06:21:51 UTC (1523514111)
[    1.658866] v5.0-sata1: supplied by pwr_en_sata1
[    1.663596] v12.0-sata1: supplied by pwr_en_sata1
[    1.668367] v5.0-sata0: disabling
[    1.671701] v12.0-sata0: disabling
[    1.675187] v5.0-sata1: disabling
[    1.678520] v12.0-sata1: disabling
[    1.682344] Waiting 10 sec before mounting root device...
[    1.832900] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.839640] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.846829] usb 2-1: Product: Cruzer Blade
[    1.850949] usb 2-1: Manufacturer: SanDisk
[    1.855078] usb 2-1: SerialNumber: 4C530103371128105004
[    1.860764] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.877110] scsi host2: usb-storage 2-1:1.0
[    2.903042] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.912180] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.921355] sd 2:0:0:0: [sda] Write Protect is off
[    2.926467] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.937897]  sda: sda1
[    2.941514] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.023214] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.046004] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.053771] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.075274] devtmpfs: mounted
[   12.079138] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.017268] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22040/977280 files, 384400/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.197229] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   16.933285] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   16.938367] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/36:c6:1e:66:47:7d
Sending on   LPF/eth0/36:c6:1e:66:47:7d
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   78.796739] random: crng init done
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2542 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2541 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Tue Apr 10 23:08:19 PDT 2018 on ttyS0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
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
Debian 9.1
Wed Apr 11 23:23:21 PDT 2018 up 1 minute
root@debian:~# 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
April 12, 2018 03:10AM
Nice :)

So now we can file it as a kwboot success story. It is safe to save envs now.


We should proceed working on booting the kernel with uInitrd. There is plenty of memory so move it to

setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x3900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; 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

The idea is to put uInitrd in higher memory in an increment step until you find it will not got messed up by the uImage loading. So you could try 0x4900000, 0x5900000, ... so on. We are using stock u-boot, so this must be trial and error.

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

Ok i tried the different initrd adresses, but didn't have complete success. First it kernel panic'd early. Then Starting from 0x5900000 i get:
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 mtdparts 'mtdparts=armada-nand:-(ubifs);spi1.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x5900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; 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) : 0Interface (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 457 ms (8.6 MiB/s)
18679 bytes read in 660 ms (27.3 KiB/s)
7070236 bytes read in 710 ms (9.5 MiB/s)
## Loading init Ramdisk from Legacy Image at 05900000 ...
   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 00ff8000, end 00fff8f6 ... 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: Thecus N2350
[    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 @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0: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: 1019036K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 29540K 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 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.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025380] Ignoring duplicate/late registration of read_current_timer delay
[    0.032490] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043960] Console: colour dummy device 80x30
[    0.048493] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059155] pid_max: default: 32768 minimum: 301
[    0.063946] Security Framework initialized
[    0.068175] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074850] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082472] CPU: Testing write buffer coherency: ok
[    0.087599] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125246] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136943] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143275] Hierarchical SRCU implementation.
[    0.185217] smp: Bringing up secondary CPUs ...
[    0.235289] Booting CPU 1
[    0.238193] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238279] smp: Brought up 1 node, 2 CPUs
[    0.248192] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254604] CPU: All CPU(s) started in SVC mode.
[    0.260038] devtmpfs: initialized
[    0.266320] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274328] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284227] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290592] prandom: seed boundary self test passed
[    0.298067] prandom: 100 self tests passed
[    0.302233] pinctrl core: initialized pinctrl subsystem
[    0.308366] NET: Registered protocol family 16
[    0.313614] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321887] cpuidle: using governor ladder
[    0.326118] cpuidle: using governor menu
[    0.330276] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338347] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344406] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352569] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416837] vgaarb: loaded
[    0.419817] SCSI subsystem initialized
[    0.424365] usbcore: registered new interface driver usbfs
[    0.430078] usbcore: registered new interface driver hub
[    0.435592] usbcore: registered new device driver usb
[    0.441058] media: Linux media interface: v0.10
[    0.445719] Linux video capture interface: v2.00
[    0.455428] clocksource: Switched to clocksource arm_global_timer
[    0.514398] VFS: Disk quotas dquot_6.6.0
[    0.518483] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531312] NET: Registered protocol family 2
[    0.536225] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.543384] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.549994] TCP: Hash tables configured (established 8192 bind 8192)
[    0.556483] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.562493] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.569110] NET: Registered protocol family 1
[    0.573832] RPC: Registered named UNIX socket transport module.
[    0.579843] RPC: Registered udp transport module.
[    0.584613] RPC: Registered tcp transport module.
[    0.589397] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.596044] Unpacking initramfs...
[    0.599523] Unable to handle kernel paging request at virtual address ff300000
[    0.606800] pgd = c0004000
[    0.609580] [ff300000] *pgd=00000000
[    0.613232] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.618606] Modules linked in:
[    0.621739] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.1-mvebu-tld-1 #1
[    0.629965] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.635945] task: ef088040 task.stack: ef08a000
[    0.640547] PC is at unpack_to_rootfs+0xc4/0x2bc
[    0.645235] LR is at kmem_cache_alloc_trace+0x3c/0x19c
[    0.650437] pc : [<c0c01f88>]    lr : [<c02521b8>]    psr: 20000013
[    0.656762] sp : ef08bec0  ip : 00000000  fp : 00000000
[    0.662049] r10: c0dbbf84  r9 : c0da7158  r8 : 00000000
[    0.667336] r7 : 00000000  r6 : ff300000  r5 : 006be1dc  r4 : c0c568b8
[    0.673920] r3 : 00000000  r2 : 00000000  r1 : ef7d3330  r0 : 00000000
[    0.680506] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.687696] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.693503] Process swapper/0 (pid: 1, stack limit = 0xef08a220)
[    0.699569] Stack: (0xef08bec0 to 0xef08c000)
[    0.703996] bec0: 0000010e 00000000 c0c69940 c0c5683c 00000000 00000000 c0a1d164 ef08befc
[    0.712226] bee0: 00000000 c0dbbf80 c0dbbf7c c0c56830 0000010e 00000000 c0c69940 c0c5683c
[    0.720457] bf00: 00000000 c0c021d0 ffffe000 c0c02180 c0c56830 c0101d38 c0a411be c0140b7c
[    0.728687] bf20: 00000000 00000000 00000000 c0b1ec14 0000010e 00000005 00000005 c0b2012c
[    0.736917] bf40: 0000010d c0b2012c efffcd89 efffcd95 c0c5683c 00000006 c0dbbf40 c0c5682c
[    0.745147] bf60: 00000006 c0dbbf40 c0c56830 0000010e c0dbbf40 c0c00e10 00000005 00000005
[    0.753376] bf80: 00000000 c0c005b4 00000000 c08a3f40 00000000 00000000 00000000 00000000
[    0.761606] bfa0: 00000000 c08a3f48 00000000 c010c6b0 00000000 00000000 00000000 00000000
[    0.769835] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.778064] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff 00000000
[    0.786301] [<c0c01f88>] (unpack_to_rootfs) from [<c0c021d0>] (populate_rootfs+0x50/0xb8)
[    0.794534] [<c0c021d0>] (populate_rootfs) from [<c0101d38>] (do_one_initcall+0xa4/0x14c)
[    0.802767] [<c0101d38>] (do_one_initcall) from [<c0c00e10>] (kernel_init_freeable+0x17c/0x23c)
[    0.811518] [<c0c00e10>] (kernel_init_freeable) from [<c08a3f48>] (kernel_init+0x8/0x108)
[    0.819754] [<c08a3f48>] (kernel_init) from [<c010c6b0>] (ret_from_fork+0x14/0x24)
[    0.827380] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000) 
[    0.833538] ---[ end trace dd3755721454cbef ]---
[    0.838294] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.838294] 
[    0.847569] CPU1: stopping
[    0.850355] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.14.1-mvebu-tld-1 #1
[    0.858582] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.864574] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[    0.872379] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[    0.879663] [<c08925fc>] (dump_stack) from [<c011474c>] (handle_IPI+0x150/0x3b0)
[    0.887117] [<c011474c>] (handle_IPI) from [<c0101524>] (gic_handle_irq+0x7c/0x98)
[    0.894743] [<c0101524>] (gic_handle_irq) from [<c0111e0c>] (__irq_svc+0x6c/0xa8)
[    0.902278] Exception stack(0xef0abf80 to 0xef0abfc8)
[    0.907396] bf80: 00000001 00000000 00000000 c011ef80 00000000 00000000 ef0aa000 ef0abfd8
[    0.915627] bfa0: c0d04d68 414fc091 00000000 00000000 0000007a ef0abfd0 c010d7a4 c010d7a8
[    0.923853] bfc0: 60000013 ffffffff
[    0.927417] [<c0111e0c>] (__irq_svc) from [<c010d7a8>] (arch_cpu_idle+0x2c/0x38)
[    0.934871] [<c010d7a8>] (arch_cpu_idle) from [<c015f704>] (do_idle+0xd8/0x1d0)
[    0.942239] [<c015f704>] (do_idle) from [<c015fa6c>] (cpu_startup_entry+0x18/0x1c)
[    0.949865] [<c015fa6c>] (cpu_startup_entry) from [<001019ec>] (0x1019ec)
[    0.956714] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.956714]

This i similar to an error we got very early in this thread. I tried going to higher addresses (0x9900000), but the error stays the same. Do you know what to do?
Cheers, Manuel

edit:
[    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)

This is the same error we got on page 1 of this thread. I did not come up with stock kernel, but the same new uInitrd. We did not fix it then, but disabled initrd instead.



Edited 2 time(s). Last edit at 04/12/2018 03:24PM by lordzahl.
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: