Hello,
Quote
@nailman, Did you solder the wires or just temporaily connect them like lordzahl did?
No, I did not solder it as I don't have tools for that.
I tried several times and was not able to get the kwboot working. I tried to hold wires but with no success. I always get "xmodem error" or "Bad meesage". I have also Zyxel NSA320 and kwboot works perfectly with it.
I tried to run the Debian with 4.12.4 kernel and it stops on the same step
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 (Jun 20 2017 - 14:02:04) 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: 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=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0: Port (usbActive) : 0 Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... 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 ...
4021296 bytes read in 291 ms (13.2 MiB/s)
17380 bytes read in 623 ms (26.4 KiB/s)
## Flattened Device Tree blob at 01000000
Booting using the fdt blob at 0x01000000
Loading Device Tree to 00ff8000, end 00fff3e3 ... OK
Skipping Device Tree update ('fdt_skip_update' = yes)
Limit DDR size at 3GB due to power of 2 requirement of Address decoding
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Thecus N2350
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 17 pages/cpu @ef7c7000 s40460 r8192 d20980 u69632
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=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: 1025968K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 22608K 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 - 0xc0db2308 ( 713 kB)
[ 0.000000] .bss : 0xc0db9a84 - 0xc0e0ca58 ( 332 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 D prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[ 0.000000] Switching to timer-based delay loop, resolution 40ns
[ 0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[ 0.007886] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[ 0.019227] Console: colour dummy device 80x30
[ 0.023747] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[ 0.034145] pid_max: default: 32768 minimum: 301
[ 0.038929] Security Framework initialized
[ 0.043141] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.049819] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.057432] CPU: Testing write buffer coherency: ok
[ 0.062546] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.103768] Setting up static identity map for 0x100000 - 0x100060
[ 0.110110] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[ 0.115451] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.173695] smp: Bringing up secondary CPUs ...
[ 0.233731] Booting CPU 1
[ 0.236629] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.236698] smp: Brought up 1 node, 2 CPUs
[ 0.246586] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[ 0.252908] CPU: All CPU(s) started in SVC mode.
[ 0.258279] devtmpfs: initialized
[ 0.264304] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.272291] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.282195] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.288525] prandom: seed boundary self test passed
[ 0.296014] prandom: 100 self tests passed
[ 0.300177] pinctrl core: initialized pinctrl subsystem
[ 0.306302] NET: Registered protocol family 16
[ 0.311608] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.319963] cpuidle: using governor ladder
[ 0.324179] cpuidle: using governor menu
[ 0.328316] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.336381] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.342448] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[ 0.350603] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[ 0.394149] vgaarb: loaded
[ 0.397138] SCSI subsystem initialized
[ 0.404096] usbcore: registered new interface driver usbfs
[ 0.409707] usbcore: registered new interface driver hub
[ 0.415145] usbcore: registered new device driver usb
[ 0.420515] media: Linux media interface: v0.10
[ 0.425180] Linux video capture interface: v2.00
[ 0.430661] clocksource: Switched to clocksource armada_370_xp_clocksource
[ 0.488077] VFS: Disk quotas dquot_6.6.0
[ 0.492203] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.506044] NET: Registered protocol family 2
[ 0.511011] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.518164] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.524766] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.531265] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.537270] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.544024] NET: Registered protocol family 1
[ 0.548746] RPC: Registered named UNIX socket transport module.
[ 0.554767] RPC: Registered udp transport module.
[ 0.559533] RPC: Registered tcp transport module.
[ 0.564312] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.571081] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.577856] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.586952] audit: initializing netlink subsys (disabled)
[ 0.592552] audit: type=2000 audit(0.571:1): state=initialized audit_enabled=0 res=1
[ 0.592877] Initialise system trusted keyrings
[ 0.592910] Key type blacklist registered
[ 0.600509] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.605068] zbud: loaded
[ 0.625803] NFS: Registering the id_resolver key type
[ 0.630962] Key type id_resolver registered
[ 0.635211] Key type id_legacy registered
[ 0.639294] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.646103] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.652693] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.660131] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 0.666799] orangefs_init: module version upstream loaded
[ 0.675475] Key type asymmetric registered
[ 0.679640] Asymmetric key parser 'x509' registered
[ 0.684662] bounce: pool size: 64 pages
[ 0.688592] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.696072] io scheduler noop registered
[ 0.700062] io scheduler deadline registered
[ 0.704446] io scheduler cfq registered (default)
[ 0.710235] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[ 0.719039] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[ 0.725240] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 0.731602] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 0.738533] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.744483] PCI: bus0: Fast back to back transfers disabled
[ 0.750124] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.758227] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.766417] PCI: bus1: Fast back to back transfers enabled
[ 0.772108] PCI: bus2: Fast back to back transfers enabled
[ 0.777709] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 0.782758] pci 0000:00:02.0: PCI bridge to [bus 02]
[ 0.788293] mv_xor f1060800.xor: Marvell shared XOR driver
[ 0.851247] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[ 0.859098] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.921225] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[ 0.970146] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.978047] console [ttyS0] disabled
[ 1.003148] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[ 1.012220] console [ttyS0] enabled
[ 1.012220] console [ttyS0] enabled
[ 1.019311] bootconsole [earlycon0] disabled
[ 1.019311] bootconsole [earlycon0] disabled
[ 1.029056] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 1.038314] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[ 1.047912] scsi host0: ahci-mvebu
[ 1.051652] scsi host1: ahci-mvebu
[ 1.055253] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[ 1.063243] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43
I compared that with working 3.10 kernel and the next step is configuring NAND device
[ 3.530952] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[ 3.538935] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[ 3.550713] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[ 3.565269] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Maybe that part missing in DTB/DTS files?