Welcome! Log In Create A New Profile

Advanced

Onespace X5 (Armada 385) Question

Posted by JayX 
Onespace X5 (Armada 385) Question
June 14, 2021 09:51AM
Hi bodhi,
I've got a device called "Onespace X5"(Armada 385,1GB RAM,4GB ROM+8M SPI FLASH,1xUSB2.0,1xUSB3.0,2xGbE,2xSATA port).
Here is the stock U-boot 'printenv' info:
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_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=ext4load mmc 0:1 0x2800000 boot/armada-38x.dtb;ext4load mmc 0:1 0x2000000 boot/zImage;setenv bootargs $console root=/dev/mmcblk0p1 ro;bootz 0x2000000 - 0x2800000;
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootdelay=0
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:35:03:1d
eth1mtu=1500
eth2addr=00:50:43:35:a1:1d
eth2mtu=1500
eth3addr=00:50:43:03:a1:35
eth3mtu=1500
ethact=egiga1
ethaddr=00:50:43:a1:03:1d
ethmtu=1500
ethprime=egiga1
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x.dtb
filesize=0x44d070
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.200
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
loadaddr=0x02000000
loads_echo=0
mtdids=spi0=spi_flash
mtdparts=mtdparts=spi_flash:4m(boot),-(spi-rootfs)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:1d:a1:35
netbsd_en=no
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/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=192.168.1.242
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=2
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3018/65532 bytes
Here is the boot progress:


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


U-Boot 2013.01 (Aug 18 2015 - 14:30:38) Marvell version: 2015_T1.0

Board: A38x-Customer-Board-0
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB

Map:   Code:                    0x3fedc000:0x3ff980d0
       BSS:                     0x3ffef8d0
       Stack:                   0x3f9cbf20
       Heap:                    0x3f9cc000:0x3fedc000
       U-Boot Environment:      0x00100000:0x00110000 (SPI)

MMC:   mv_sdh: 0
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
*** Warning - bad CRC, using default environment


Blink Reg 0x0
4657776 bytes read in 146 ms (30.4 MiB/s)
Enter Normal mode
qwdu added MV_USB_ID: 0x6820
USB2.0 0: Host Mode
qwdu added MV_USB_ID: 0x6820
USB3.0 1: Host Mode
qwdu added MV_USB_ID: 0x6820
USB3.0 0: Host Mode
Board configuration detected:
Error: PHY Address of Port 0 (RGMII) is invalid (-1).
Port1: phyAddr=0x0, qwdu added Marvell PHY id0 1140 id1 7949 id4 1e1
Port1: phyAddr=0x0, Marvell PHY id1 141 id2 dd1,qwdu added deviceid:1d
Port2: phyAddr=0x1, qwdu added Marvell PHY id0 1140 id1 7949 id4 1e1
Port2: phyAddr=0x1, Marvell PHY id1 141 id2 dd1,qwdu added deviceid:1d
Net:   Error: PHY Address of Port 0 (RGMII) is invalid (-1).

|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga1 |   SGMII   |     0x00     |
| egiga2 |   SGMII   |     0x01     |
Error: PHY Address of Port 0 (RGMII) is invalid (-1).
egiga1 [PRIME]
Warning: egiga1 MAC addresses don't match:
Address in SROM is         00:50:43:a4:e6:fb
Address in environment is  00:50:43:3a:e6:fb
, egiga2
Warning: egiga2 MAC addresses don't match:
Address in SROM is         00:50:43:a4:3a:fb
Address in environment is  00:50:43:a4:e6:fb

Hit any key to stop autoboot:  0
16311 bytes read in 6 ms (2.6 MiB/s)
4657776 bytes read in 145 ms (30.6 MiB/s)
## Flattened Device Tree blob at 02800000
   Booting using the fdt blob at 0x02800000
   Loading Device Tree to 00ff9000, end 00ffffb6 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.52-armada-17.10.1  (sgshi@admin-node) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #63 SMP Tue Mar 31 12:28:04 CST 2020
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Marvell Armada 385 Custom0 Development Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 12 pages/cpu @ef6d0000 s18368 r8192 d22592 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 ro
[    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: 1028972K/1048576K available (6570K kernel code, 257K rwdata, 1876K rodata, 320K init, 330K bss, 19604K 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 - 0xc0847be4   (8447 kB)
[    0.000000]       .init : 0xc0848000 - 0xc0898000   ( 320 kB)
[    0.000000]       .data : 0xc0898000 - 0xc08d87c0   ( 258 kB)
[    0.000000]        .bss : 0xc08d87c0 - 0xc092b2fc   ( 331 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000011] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000204] Console: colour dummy device 80x30
[    0.000215] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.000222] pid_max: default: 32768 minimum: 301
[    0.000275] Security Framework initialized
[    0.000299] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000304] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000582] Initializing cgroup subsys io
[    0.000590] Initializing cgroup subsys memory
[    0.000605] Initializing cgroup subsys devices
[    0.000613] Initializing cgroup subsys freezer
[    0.000618] Initializing cgroup subsys net_cls
[    0.000623] Initializing cgroup subsys perf_event
[    0.000628] Initializing cgroup subsys net_prio
[    0.000633] Initializing cgroup subsys pids
[    0.000644] CPU: Testing write buffer coherency: ok
[    0.000759] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000782] Setting up static identity map for 0x8280 - 0x82d8
[    0.000961] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.001067] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001587] Booting CPU 1
[    0.001767] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001801] Brought up 2 CPUs
[    0.001808] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.001811] CPU: All CPU(s) started in SVC mode.
[    0.002187] devtmpfs: initialized
[    0.003971] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.004100] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004110] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.004327] xor: measuring software checksum speed
[    0.099804]    arm4regs  :  2100.800 MB/sec
[    0.199702]    8regs     :  1617.200 MB/sec
[    0.299601]    32regs    :  1678.800 MB/sec
[    0.299605] xor: using function: arm4regs (2100.800 MB/sec)
[    0.299618] pinctrl core: initialized pinctrl subsystem
[    0.300097] NET: Registered protocol family 16
[    0.300673] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.303897] No ATAGs?
[    0.303914] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.303919] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.499511] raid6: int32x1  gen()   181 MB/s
[    0.669378] raid6: int32x1  xor()   188 MB/s
[    0.839220] raid6: int32x2  gen()   283 MB/s
[    1.008967] raid6: int32x2  xor()   249 MB/s
[    1.178738] raid6: int32x4  gen()   305 MB/s
[    1.348649] raid6: int32x4  xor()   280 MB/s
[    1.518437] raid6: int32x8  gen()   353 MB/s
[    1.688330] raid6: int32x8  xor()   259 MB/s
[    1.688334] raid6: using algorithm int32x8 gen() 353 MB/s
[    1.688337] raid6: .... xor() 259 MB/s, rmw enabled
[    1.688340] raid6: using intx1 recovery algorithm
[    1.688678] SCSI subsystem initialized
[    1.688855] usbcore: registered new interface driver usbfs
[    1.688889] usbcore: registered new interface driver hub
[    1.688918] usbcore: registered new device driver usb
[    1.688956] pps_core: LinuxPPS API ver. 1 registered
[    1.688960] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.688976] PTP clock support registered
[    1.689579] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.694422] NET: Registered protocol family 2
[    1.694710] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.694755] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.694827] TCP: Hash tables configured (established 8192 bind 8192)
[    1.694865] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.694885] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.694983] NET: Registered protocol family 1
[    1.695185] RPC: Registered named UNIX socket transport module.
[    1.695190] RPC: Registered udp transport module.
[    1.695193] RPC: Registered tcp transport module.
[    1.695196] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.695412] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.696365] VFS: Disk quotas dquot_6.6.0
[    1.696400] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.696578] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.696690] NFS: Registering the id_resolver key type
[    1.696707] Key type id_resolver registered
[    1.696710] Key type id_legacy registered
[    1.696721] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.696730] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.696790] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[    1.696887] fuse init (API version 7.23)
[    1.697530] async_tx: api initialized (async)
[    1.697567] bounce: pool size: 64 pages
[    1.697595] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.697653] io scheduler noop registered
[    1.697660] io scheduler deadline registered
[    1.697675] io scheduler cfq registered (default)
[    1.698337] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.698831] irq: Cannot allocate irq_descs @ IRQ43, assuming pre-allocated
[    1.699003] irq: Cannot allocate irq_descs @ IRQ75, assuming pre-allocated
[    1.699076] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    1.700499] libphy: Fixed MDIO Bus: probed
[    1.700510] tun: Universal TUN/TAP device driver, 1.6
[    1.700513] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.700622] libphy: mdio_driver_register: mv88e6xxx
[    1.700799] libphy: orion_mdio_bus: probed
[    1.702779] mvneta f1030000.ethernet eth0: Using random mac address ae:24:e6:7e:9c:17
[    1.782241] mvneta f1034000.ethernet eth1: Using random mac address aa:fa:a1:39:0b:23
[    1.861298] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.899847] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    1.900661] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.939848] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    1.968295] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.969192] console [ttyS0] disabled
[    1.989271] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 15625000) is a 16550A
[    2.815282] console [ttyS0] enabled
[    2.819624] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.828696] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.838157] scsi host0: ahci-mvebu
[    2.841806] scsi host1: ahci-mvebu
[    2.845348] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 39
[    2.853297] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 39
[    2.861881] spi spi0.0: setup: ignoring unsupported mode bits a00
[    2.868167] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    2.873092] 6 ofpart partitions found on MTD device spi0.0
[    2.878589] Creating 6 MTD partitions on "spi0.0":
[    2.883402] 0x000000000000-0x000000100000 : "U-Boot"
[    2.888933] 0x000000100000-0x000000110000 : "params"
[    2.894406] 0x000000110000-0x000000120000 : "dts"
[    2.899605] 0x000000120000-0x000000130000 : "MacAddr"
[    2.905137] 0x000000130000-0x000000420000 : "kernel"
[    2.910628] 0x000000420000-0x0000007a0000 : "rootfs"
[    2.916227] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.922789] ehci-orion: EHCI orion driver
[    2.926907] orion-ehci f1058000.usb: EHCI Host Controller
[    2.932340] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.939982] orion-ehci f1058000.usb: irq 37, io mem 0xf1058000
[    2.959534] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.965841] hub 1-0:1.0: USB hub found
[    2.969636] hub 1-0:1.0: 1 port detected
[    2.973776] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.979990] ohci-platform: OHCI generic platform driver
[    2.985440] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.990780] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    2.998352] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    3.006921] xhci-hcd f10f8000.usb3: irq 42, io mem 0xf10f8000
[    3.013068] hub 2-0:1.0: USB hub found
[    3.016842] hub 2-0:1.0: 1 port detected
[    3.020943] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.026272] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.033838] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.042291] hub 3-0:1.0: USB hub found
[    3.046063] hub 3-0:1.0: 1 port detected
[    3.050236] usbcore: registered new interface driver usblp
[    3.055790] usbcore: registered new interface driver usb-storage
[    3.061882] usbcore: registered new interface driver usbserial
[    3.067746] usbcore: registered new interface driver usbserial_generic
[    3.074315] usbserial: USB Serial support registered for generic
[    3.080368] usbcore: registered new interface driver usb_serial_simple
[    3.086926] usbserial: USB Serial support registered for carelink
[    3.093061] usbserial: USB Serial support registered for zio
[    3.098747] usbserial: USB Serial support registered for funsoft
[    3.104788] usbserial: USB Serial support registered for flashloader
[    3.111177] usbserial: USB Serial support registered for google
[    3.117124] usbserial: USB Serial support registered for vivopay
[    3.123166] usbserial: USB Serial support registered for moto_modem
[    3.129462] usbserial: USB Serial support registered for novatel_gps
[    3.135852] usbserial: USB Serial support registered for hp4x
[    3.141633] usbserial: USB Serial support registered for suunto
[    3.147581] usbserial: USB Serial support registered for siemens_mpi
[    3.164207] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    3.171998] orion_wdt: Initial timeout 171 sec
[    3.176524] md: linear personality registered for level -1
[    3.182045] md: raid0 personality registered for level 0
[    3.187370] md: raid1 personality registered for level 1
[    3.192706] md: raid10 personality registered for level 10
[    3.198293] md: raid6 personality registered for level 6
[    3.199536] ata2: SATA link down (SStatus 0 SControl 300)
[    3.199559] ata1: SATA link down (SStatus 0 SControl 300)
[    3.214453] md: raid5 personality registered for level 5
[    3.219779] md: raid4 personality registered for level 4
[    3.225216] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    3.233812] sdhci: Secure Digital Host Controller Interface driver
[    3.240013] sdhci: Copyright(c) Pierre Ossman
[    3.244606] sdhci-pxav3 f10d8000.sdhci: No vmmc regulator found
[    3.250547] sdhci-pxav3 f10d8000.sdhci: No vqmmc regulator found
[    3.299518] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    3.306966] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.312982] usbcore: registered new interface driver usbhid
[    3.318566] usbhid: USB HID core driver
[    3.322580] Netfilter messages via NETLINK v0.30.
[    3.327306] nf_conntrack version 0.5.0 (16077 buckets, 64308 max)
[    3.333546] ctnetlink v0.93: registering with nfnetlink.
[    3.339132] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.344557] arp_tables: (C) 2002 David S. Miller
[    3.349262] NET: Registered protocol family 10
[    3.354213] sit: IPv6 over IPv4 tunneling driver
[    3.359171] NET: Registered protocol family 17
[    3.363659] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.376314] Bridge firewalling registered
[    3.380450] 8021q: 802.1Q VLAN Support v1.8
[    3.384663] Key type dns_resolver registered
[    3.390390] md: Waiting for all devices to be available before autodetect
[    3.397194] md: If you don't use raid, use raid=noautodetect
[    3.403245] md: Autodetecting RAID arrays.
[    3.407352] md: Scanned 0 and added 0 devices.
[    3.411831] md: autorun ...
[    3.414629] md: ... autorun DONE.
[    3.417975] Waiting for root device /dev/mmcblk0p1...
[    3.642033] mmc0: MAN_BKOPS_EN bit is not set
[    3.648022] mmc0: new DDR MMC card at address 0001
[    3.653095] mmcblk0: mmc0:0001 004GE0 3.69 GiB
[    3.657775] mmcblk0boot0: mmc0:0001 004GE0 partition 1 2.00 MiB
[    3.663844] mmcblk0boot1: mmc0:0001 004GE0 partition 2 2.00 MiB
[    3.669923] mmcblk0rpmb: mmc0:0001 004GE0 partition 3 512 KiB
[    3.676463]  mmcblk0: p1
[    3.750092] EXT4-fs (mmcblk0p1): couldn't mount as ext3 due to feature incompatibilities
[    3.762749] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    3.770882] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    3.777702] Set_Scm Type oK
[    3.781109] devtmpfs: mounted
[    3.784242] Freeing unused kernel memory: 320K (c0848000 - c0898000)
[    4.009629] systemd[1]: System time before build time, advancing clock.
[    4.042596] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    4.064236] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 10 (buster)!

[    4.090288] systemd[1]: Set hostname to <ubuntu>.
[    4.289339] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    4.306444] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    4.434938] random: systemd: uninitialized urandom read (16 bytes read, 13 bits of entropy available)
[    4.447104] random: systemd: uninitialized urandom read (16 bytes read, 13 bits of entropy available)
[    4.456511] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    4.479590] random: systemd: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    4.488862] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    4.509587] random: systemd: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    4.519077] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.549592] random: systemd: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    4.558948] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    4.589585] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[    4.601224] random: systemd: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    4.610732] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    4.639756] random: systemd: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    4.679661] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    4.709668] random: systemd: uninitialized urandom read (16 bytes read, 15 bits of entropy available)
[    4.722126] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    4.749863] random: systemd: uninitialized urandom read (16 bytes read, 15 bits of entropy available)
[    4.768045] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    4.801150] random: systemd: uninitialized urandom read (16 bytes read, 15 bits of entropy available)
[    4.849866] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    4.881046] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    4.889504] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    4.920283] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    4.950657] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    4.960011] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    4.968759] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    4.999647] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    5.019579] systemd[1]: Condition check resulted in Create list of required static device nodes for the current kernel being skipped.
[    5.031866] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    5.089815] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    5.109710] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    5.139890] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    5.219822] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[    5.239690] systemd[1]: Reached target Sockets.
[  OK  ] Reached target Sockets.
[    5.259842] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    5.289991] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[    5.319698] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    5.341214] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Starting Load/Save Random Seed...
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[    5.760557] systemd-journald[1243]: Received request to flush runtime journal from PID 1
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started udev Coldplug all Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started Helper to synchronize boot up for ifupdown.
[  OK  ] Found device /dev/ttyS0.
         Starting Raise network interfaces...
         Starting Update UTMP about System Boot/Shutdown...
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Raise network interfaces.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Reached target Network.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[FAILED] Failed to start Update UTMP about System Boot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[DEPEND] Dependency failed for Upda…about System Runlevel Changes.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
         Starting getty on tty2-tty…nd logind are not available...
         Starting Permit User Sessions...
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
         Starting System Logging Service...
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Started System Logging Service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Getty on tty2.
[  OK  ] Stopped Network Time Synchronization.
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.
[  OK  ] Started Getty on tty3.
[  OK  ] Started Getty on tty4.
[  OK  ] Started Getty on tty5.
[  OK  ] Started Getty on tty6.
[  OK  ] Started getty on tty2-tty6… and logind are not available.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.

I copied stock zImage and dtb to rootfs made by myself,and device boot successfully.
I've tried Synolgy RS816 USB Method to boot my device but the stock uboot dont recoginze my usb storage.
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found

I just know that there is a 'busybox' in SPI Flash.I can write emmc and mount usb storage in that system.
Need help!
Thx,
JayX



Edited 1 time(s). Last edit at 06/14/2021 03:31PM by bodhi.
Attachments:
open | download - pic1.jpg (217.7 KB)
Re: Onespace X5 (Armada 385) Question
June 14, 2021 03:42PM
JayX,

This box u-boot looks similar to the Thecus N2350. I need to check the Thecus u-boot version to see if I can tell the differences.

However, for now try to activate the USB storage this way.

Quote

1xUSB2.0,1xUSB3.0

Try attch the rootfs to the USB 2.0 port. And in serial console:

usb reset
If it does not recognize the USB storage,

setenv usbActive 1

and then try again:
usb reset

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
June 14, 2021 05:47PM
Onespace X5
> U-Boot 2013.01 (Aug 18 2015 - 14:30:38) Marvell
> version: 2015_T1.0
> 
> Board: A38x-Customer-Board-0
> SoC:   MV88F6820 Rev A0
>        running 2 CPUs
> CPU:   ARM Cortex A9 MPCore (Rev 1) LE
>        CPU 0
>        CPU    @ 1332 [MHz]
>        L2     @ 666 [MHz]
>        TClock @ 250 [MHz]
>        DDR    @ 666 [MHz]
>        DDR 32 Bit Width, FastPath Memory Access,
> DLB Enabled, ECC Disabled
> DRAM:  1 GiB


Thecus N2350
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

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
June 14, 2021 07:03PM
Quote

setenv usbActive 1

and then try again:
usb reset


And also play with these 2 variables together:

usbActive=0
usbType=3

IIRC, the env usbType is the USB 2.0 or 3.0.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
June 15, 2021 04:09AM
Hi Bodhi,
Thank you for reply!
I've tried the commands you metioned above.The results are here:
USB storage attach to 2.0 Port,not found
Marvell>>usb reset
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
setenv usbActive 1,both 2.0&3.0 port ,not found:
Marvell>> usb reset
(Re)start USB...
USB0:
'usbActive' warning (1): Invalid USB2.0 port
Port (usbActive) : 1    Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
setenv usbType 3 ,both 2.0&3.0,not found:
Marvell>> setenv usbType 3
Marvell>> usb reset
Error - Please run "usb stop" before changing "usbType".
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
setenv usbType 3
setenv usbActive 1
the console shows "BUG"
Marvell>> setenv usbType 3
Marvell>> setenv usbActive 0
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> setenv usbActive 1
Marvell>> usb reset
Host not halted after 16000 microseconds.
BUG: failure at xhci-mem.c:94/xhci_ring_free()!
BUG!
resetting ...

If I enter the linux in SPI FLASH ,the storage and emmc can be mounted correctly.
Thx,
JayX
Re: Onespace X5 (Armada 385) Question
June 15, 2021 04:07PM
JayX,

It looks like the same behavior for a few Armada boxes that use this u-boot version. The manufacterer disabled USB during boot.

And we have to do some GPIO poking to activate the USB drive. There are some variations in GPIOs between these boxes, so the trick used in those boxes most likely do not work for this boxes.

In the release thread, there are several specific installation procedure

Quote
https://forum.doozan.com/read.php?2,32146

Installation Instruction for specific boxes:

Zyxel NAS326 (Armada 380) Installation: see this thread.
WD My Cloud EX2100 (Armada 385) Installation: see this thread.
GlobalScale Technologies Mirabox (Armada 370) Installation: see this thread
Thecus N2350 (Armada 385) Installation: see this thread.
Synolgy RS816 (Armada 385) Installation: see Installation with USB rootfs (Section I). And see Installation with HDD rootfs (Section II).
Netgear RN102 (Armada 370) Installation: see this thread
Synolgy DS116 (Armada 385) Installation: see Installation with USB rootfs (Section I). And see Installation with HDD rootfs (Section II)
HP Thin Client T5335z and Dell Wyse T10/T50 (Armada 510, aka Dove) Installation: see this thread.
WD MyCloud Gen2 (Glacier, Armada 375) Installation: see this post (work-in-progress)

For example, these 2 boxes need to have mw (memory write) command to poke the GPIO.

Quote

Zyxel NAS326

setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'

Quote

RS816

setenv bootcmd 'mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootspi'

Before you try these, make sure that you remove the HDDs from the box, as a precaution. Basically, there is some small risk when you write directly to memory and not sure if it is the right location. So test with only the USB attached to the box.

====

To do this the right way, we need to look at the GPL source for this u-boot. And you would get that source code from the box manufacturer.

The Thecus N2350 GPL source might have some info. But I dont have a lot of time to help reading it, I might be able to spend ony a couple hours researching this source code.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 29, 2022 11:13AM
Hi Bodhi,
I cannot get any information from the box manufacturer.This company is closed.Now I am trying to boot with your new kernel.But it stuck at 'Uncompressing Linux... done, booting the kernel.' I copied uImage and the original dtb file.Here is the boot log:
Marvell>> ext4load mmc 0:1 0x2900000 boot/uInitrd;ext4load mmc 0:1 0x2800000 boot/armada-38x.dtb;ext4load mmc 0:1 0x2000000 boot/uImage;setenv bootargs $bootargs earlyprintk=serial;bootm 0x2000000 0x2900000 0x2800000;
9649885 bytes read in 296 ms (31.1 MiB/s)
16311 bytes read in 5 ms (3.1 MiB/s)
5234607 bytes read in 166 ms (30.1 MiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-10-29  12:56:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234543 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2022-10-29  12:56:46 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02800000
   Booting using the fdt blob at 0x02800000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 3f096000, end 3f9c9e9d ... OK
   Loading Device Tree to 00ff9000, end 00ffffb6 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

bootargs=console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 11:17AM
Hi Bodhi,
Here is the original dtb file from the stock system.
Linux version 4.4.52-armada-17.10.1  (sgshi@admin-node) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #63 SMP Tue Mar 31 12:28:04 CST 2020

JayX
Attachments:
open | download - ubuntu_armada-38x.dtb (15.4 KB)
Re: Onespace X5 (Armada 385) Question
October 29, 2022 12:44PM
JayX,

With this stock u-boot, it is better to boot with uImage that has the DTB embedded in it. So take your USB drive to other Linux box and do Step 3

Quote

3. Create uImage with DTB appended. I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box.

cd /media/sdb1/boot
cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt 
cat dts/ubuntu_armada-38x.dtb >> zImage.fdt
cp -a uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage



And then on serial console, boot it this way

setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait earlyprintk=serial'
ext4load mmc 0:1 0x2000000 boot/uImage
ext4load mmc 0:1 0x3000000 boot/uInitrd
bootm 0x2000000 0x3000000

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 29, 2022 02:35PM
Hi bodhi,
IT WORKS! But now it stuck at '[ 2.603627][ T1] Waiting for root device /dev/mmcblk0p1...'

Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait earlyprintk=serial'
Marvell>> ext4load mmc 0:1 0x2000000 boot/uImage
5202863 bytes read in 165 ms (30.1 MiB/s)
Marvell>> bootm 0x2000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.19.2-mvebu-tld-1
   Created:      2022-10-29  15:39:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5202799 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.19.2-mvebu-tld-1 (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1.0 SMP PREEMPT Sat Aug 20 20:34:09 PDT 2022
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Marvell Armada 385 Custom0 Development Board
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 17 pages/cpu s38868 r8192 d22572 u69632
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1019980K/1048576K available (10240K kernel code, 1500K rwdata, 3444K rodata, 1024K init, 473K bss, 28596K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.2-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0]  unwind_backtrace from show_stack+0x10/0x14
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x40/0x4c
[    0.000000][    T0]  dump_stack_lvl from Ldiv0+0x8/0x10
[    0.000000][    T0]  Ldiv0 from clk_cpu_recalc_rate+0x2c/0x30
[    0.000000][    T0]  clk_cpu_recalc_rate from __clk_register+0x480/0x63c
[    0.000000][    T0]  __clk_register from of_cpu_clk_setup+0x248/0x304
[    0.000000][    T0]  of_cpu_clk_setup from of_clk_init+0x1a0/0x228
[    0.000000][    T0]  of_clk_init from time_init+0x20/0x30
[    0.000000][    T0]  time_init from start_kernel+0x650/0x988
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.2-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0]  unwind_backtrace from show_stack+0x10/0x14
[    0.000000][    T0]  show_stack from dump_stack_lvl+0x40/0x4c
[    0.000000][    T0]  dump_stack_lvl from Ldiv0+0x8/0x10
[    0.000000][    T0]  Ldiv0 from clk_cpu_recalc_rate+0x2c/0x30
[    0.000000][    T0]  clk_cpu_recalc_rate from __clk_register+0x480/0x63c
[    0.000000][    T0]  __clk_register from of_cpu_clk_setup+0x248/0x304
[    0.000000][    T0]  of_cpu_clk_setup from of_clk_init+0x1a0/0x228
[    0.000000][    T0]  of_clk_init from time_init+0x20/0x30
[    0.000000][    T0]  time_init from start_kernel+0x650/0x988
[    0.000000][    T0]  start_kernel from 0x0
[    0.000000][    T0] Switching to timer-based delay loop, resolution 40ns
[    0.000000][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.008489][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.020766][    T0] Console: colour dummy device 80x30
[    0.025911][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.036912][    T0] pid_max: default: 32768 minimum: 301
[    0.042426][    T0] LSM: Security Framework initializing
[    0.047859][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.055836][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.064913][    T0] CPU: Testing write buffer coherency: ok
[    0.070479][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.076405][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.083442][    T1] cblist_init_generic: Setting adjustable number of callback queues.
[    0.091325][    T1] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.098178][    T1] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.105035][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.112116][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.118071][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.125054][    T1] rcu: Hierarchical SRCU implementation.
[    0.130514][    T1] rcu:     Max phase no-delay instances is 1000.
[    0.137088][    T1] smp: Bringing up secondary CPUs ...
[    0.142816][    T1] Booting CPU 1
[    0.146309][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.146320][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.158450][    T1] smp: Brought up 1 node, 2 CPUs
[    0.163244][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.170175][    T1] CPU: All CPU(s) started in SVC mode.
[    0.175917][    T1] devtmpfs: initialized
[    0.182774][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.191323][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.201850][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.209478][    T1] prandom: seed boundary self test passed
[    0.216625][    T1] prandom: 100 self tests passed
[    0.221393][    T1] pinctrl core: initialized pinctrl subsystem
[    0.228215][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.235533][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.243698][    T1] audit: initializing netlink subsys (disabled)
[    0.249939][   T24] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[    0.250331][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.258545][    T1] cpuidle: using governor ladder
[    0.270013][    T1] cpuidle: using governor menu
[    0.274763][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.283433][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.482844][    T1] raid6: int32x8  gen()   245 MB/s
[    0.652524][    T1] raid6: int32x4  gen()   262 MB/s
[    0.822347][    T1] raid6: int32x2  gen()   459 MB/s
[    0.992169][    T1] raid6: int32x1  gen()   531 MB/s
[    0.997110][    T1] raid6: using algorithm int32x1 gen() 531 MB/s
[    1.172042][    T1] raid6: .... xor() 223 MB/s, rmw enabled
[    1.177593][    T1] raid6: using intx1 recovery algorithm
[    1.183595][    T1] SCSI subsystem initialized
[    1.188320][    T1] usbcore: registered new interface driver usbfs
[    1.194549][    T1] usbcore: registered new interface driver hub
[    1.200552][    T1] usbcore: registered new device driver usb
[    1.206473][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.212115][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.221907][    T1] PTP clock support registered
[    1.227430][    T1] vgaarb: loaded
[    1.231239][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.239287][    T1] VFS: Disk quotas dquot_6.6.0
[    1.243999][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.258667][    T1] NET: Registered PF_INET protocol family
[    1.264457][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.274011][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.283176][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.291608][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.300066][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.307966][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.315179][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.323314][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.330610][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.338479][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.345293][    T1] RPC: Registered named UNIX socket transport module.
[    1.351922][    T1] RPC: Registered udp transport module.
[    1.357296][    T1] RPC: Registered tcp transport module.
[    1.362692][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.369798][    T1] PCI: CLS 0 bytes, default 64
[    1.374582][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.382036][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.391870][    T1] Initialise system trusted keyrings
[    1.397059][    T1] Key type blacklist registered
[    1.401875][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.409085][    T1] zbud: loaded
[    1.413746][    T1] NFS: Registering the id_resolver key type
[    1.419492][    T1] Key type id_resolver registered
[    1.424367][    T1] Key type id_legacy registered
[    1.429075][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.436449][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.444508][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.507909][    T1] xor: measuring software checksum speed
[    1.517936][    T1]    arm4regs        :  2174 MB/sec
[    1.528857][    T1]    8regs           :  1671 MB/sec
[    1.539573][    T1]    32regs          :  1735 MB/sec
[    1.544625][    T1] xor: using function: arm4regs (2174 MB/sec)
[    1.550523][    T1] async_tx: api initialized (async)
[    1.555573][    T1] Key type asymmetric registered
[    1.560342][    T1] Asymmetric key parser 'x509' registered
[    1.566667][    T1] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    1.573303][    T1] bounce: pool size: 64 pages
[    1.577928][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.586098][    T1] io scheduler bfq registered
[    1.592942][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.602699][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.661823][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.671883][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.731894][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.809186][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.818019][    T1] printk: console [ttyS0] disabled
[    1.843096][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 15625000) is a 16550A
[    1.852757][    T1] printk: console [ttyS0] enabled
[    1.852757][    T1] printk: console [ttyS0] enabled
[    1.862550][    T1] printk: bootconsole [earlycon0] disabled
[    1.862550][    T1] printk: bootconsole [earlycon0] disabled
[    1.875245][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    1.883700][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    1.891983][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    1.900580][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.910374][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.920994][    T1] scsi host0: ahci-mvebu
[    1.925639][    T1] scsi host1: ahci-mvebu
[    1.929933][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 39
[    1.938597][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 39
[    1.949275][    T1] spi spi0.0: setup: ignoring unsupported mode bits a00
[    1.956431][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    1.962216][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.969293][    T1] Creating 6 MTD partitions on "spi0.0":
[    1.974807][    T1] 0x000000000000-0x000000100000 : "U-Boot"
[    1.981787][    T1] 0x000000100000-0x000000110000 : "params"
[    1.988703][    T1] 0x000000110000-0x000000120000 : "dts"
[    1.995342][    T1] 0x000000120000-0x000000130000 : "MacAddr"
[    2.002408][    T1] 0x000000130000-0x000000420000 : "kernel"
[    2.009299][    T1] 0x000000420000-0x0000007a0000 : "rootfs"
[    2.016853][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.025429][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.040988][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.049105][    T1] hwmon hwmon1: temp1_input not attached to any thermal zone
[    2.059399][    T1] mvneta f1030000.ethernet eth0: Using random mac address 9e:be:df:44:82:bc
[    2.070363][    T1] mvneta f1034000.ethernet eth1: Using random mac address 06:2d:33:4a:db:7e
[    2.079469][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.086775][    T1] ehci-pci: EHCI PCI platform driver
[    2.092063][    T1] ehci-orion: EHCI orion driver
[    2.096978][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    2.103128][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.111519][    T1] orion-ehci f1058000.usb: irq 42, io mem 0xf1058000
[    2.141248][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.148102][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.19
[    2.157107][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.165072][    T1] usb usb1: Product: EHCI Host Controller
[    2.170676][    T1] usb usb1: Manufacturer: Linux 5.19.2-mvebu-tld-1 ehci_hcd
[    2.177855][    T1] usb usb1: SerialNumber: f1058000.usb
[    2.183777][    T1] hub 1-0:1.0: USB hub found
[    2.188278][    T1] hub 1-0:1.0: 1 port detected
[    2.194010][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.200085][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    2.208427][    T1] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.218432][    T1] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    2.225540][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.231666][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.239886][    T1] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    2.247080][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.19
[    2.256080][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.264034][    T1] usb usb2: Product: xHCI Host Controller
[    2.269623][    T1] usb usb2: Manufacturer: Linux 5.19.2-mvebu-tld-1 xhci-hcd
[    2.276786][    T1] usb usb2: SerialNumber: f10f8000.usb3
[    2.277099][  T656] ata1: SATA link down (SStatus 0 SControl 300)
[    2.282749][    T1] hub 2-0:1.0: USB hub found
[    2.288377][  T661] ata2: SATA link down (SStatus 0 SControl 300)
[    2.292837][    T1] hub 2-0:1.0: 1 port detected
[    2.303999][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.312923][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.19
[    2.321929][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.329870][    T1] usb usb3: Product: xHCI Host Controller
[    2.335540][    T1] usb usb3: Manufacturer: Linux 5.19.2-mvebu-tld-1 xhci-hcd
[    2.342716][    T1] usb usb3: SerialNumber: f10f8000.usb3
[    2.348553][    T1] hub 3-0:1.0: USB hub found
[    2.353050][    T1] hub 3-0:1.0: 1 port detected
[    2.358064][    T1] usbcore: registered new interface driver usblp
[    2.364352][    T1] usbcore: registered new interface driver usb-storage
[    2.371332][    T1] mousedev: PS/2 mouse device common for all mice
[    2.378703][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    2.385203][    T1] i2c_dev: i2c /dev entries driver
[    2.391888][    T1] orion_wdt: Initial timeout 171 sec
[    2.397543][    T1] device-mapper: uevent: version 1.0.3
[    2.403073][    T1] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    2.412504][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.419751][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.427100][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.434487][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.441305][    T1] device-mapper: raid: Loading target version 1.15.1
[    2.448290][    T1] hid: raw HID events driver (C) Jiri Kosina
[    2.454363][    T1] usbcore: registered new interface driver usbhid
[    2.460651][    T1] usbhid: USB HID core driver
[    2.465665][    T1] drop_monitor: Initializing network drop monitor service
[    2.473064][    T1] NET: Registered PF_INET6 protocol family
[    2.479817][    T1] Segment Routing with IPv6
[    2.484218][    T1] RPL Segment Routing with IPv6
[    2.488968][    T1] In-situ OAM (IOAM) with IPv6
[    2.493682][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.501377][    T1] NET: Registered PF_PACKET protocol family
[    2.507307][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.512257][    T1] Key type dns_resolver registered
[    2.517369][    T1] ThumbEE CPU extension supported.
[    2.522364][    T1] Registering SWP/SWPB emulation handler
[    2.528293][    T1] registered taskstats version 1
[    2.533130][    T1] Loading compiled-in X.509 certificates
[    2.539138][    T1] zswap: loaded using pool lzo/zbud
[    2.544609][    T1] Key type ._fscrypt registered
[    2.549332][    T1] Key type .fscrypt registered
[    2.553982][    T1] Key type fscrypt-provisioning registered
[    2.561214][    T1] Key type big_key registered
[    2.566678][    T1] Key type encrypted registered
[    2.577293][    T1] md: Waiting for all devices to be available before autodetect
[    2.584846][    T1] md: If you don't use raid, use raid=noautodetect
[    2.591222][    T1] md: Autodetecting RAID arrays.
[    2.596043][    T1] md: autorun ...
[    2.599540][    T1] md: ... autorun DONE.
[    2.603627][    T1] Waiting for root device /dev/mmcblk0p1...
I am going to write whole rootfs into emmc and try again,

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 02:39PM
JayX,


You did not do what I posted above.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 29, 2022 02:44PM
bodhi,

Quote

3. Create uImage with DTB appended. I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box.

cd /media/sdb1/boot
cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt
cat dts/ubuntu_armada-38x.dtb >> zImage.fdt
cp -a uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage

I have made uImage in this way.

But I dont have uInitrd in the latest post.So I just bootm uImage.

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 03:54PM
Hi bodhi,

I wrote rootfs into emmc,but it stuck at
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mmcblk0p1 does not exist.  Dropping to a shell!
Looks like missing MMC driver?

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 04:39PM
JayX,

Quote

But I dont have uInitrd in the latest post.So I just bootm uImage.

That's not correct. You need to boot with uInitrd, it is in the rootfs /boot folder.

So now that you haved populated the rootfs Debian-5.13.8-mvebu-tld-1-rootfs-bodhi.tar.bz2 on eMMC (note that it should be exactly the same way of ussing SD card). Do the Step 3 to create uImage.

And then boot this way,
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
ext4load mmc 0:1 0x2000000 /boot/uImage
ext4load mmc 0:1 0x3000000 /boot/uInitrd
bootm 0x2000000 0x3000000

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/29/2022 04:41PM by bodhi.
Re: Onespace X5 (Armada 385) Question
October 29, 2022 04:55PM
bodhi,

Marvell>> <INTERRUPT>
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> ext4load mmc 0:1 0x2000000 /boot/uImage
5234607 bytes read in 166 ms (30.1 MiB/s)
Marvell>> ext4load mmc 0:1 0x3000000 /boot/uInitrd
9649885 bytes read in 298 ms (30.9 MiB/s)
Marvell>> bootm 0x2000000 0x3000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-10-29  21:48:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234543 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2021-09-24   7:54:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Marvell Armada 385 Custom0 Development Board
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1011712K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 36864K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Switching to timer-based delay loop, resolution 40ns
[    0.000000][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.008488][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.020541][    T0] Console: colour dummy device 80x30
[    0.025682][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.036683][    T0] pid_max: default: 32768 minimum: 301
[    0.042094][    T0] LSM: Security Framework initializing
[    0.047443][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.055419][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.064405][    T0] CPU: Testing write buffer coherency: ok
[    0.069969][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.075825][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.082617][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.089701][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.095638][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.102584][    T1] rcu: Hierarchical SRCU implementation.
[    0.108582][    T1] smp: Bringing up secondary CPUs ...
[    0.114202][    T1] Booting CPU 1
[    0.117651][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.117661][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.129792][    T1] smp: Brought up 1 node, 2 CPUs
[    0.134588][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.141520][    T1] CPU: All CPU(s) started in SVC mode.
[    0.147191][    T1] devtmpfs: initialized
[    0.153744][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.162228][   T24] wait_for_initramfs() called before rootfs_initcalls
[    0.162371][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.179340][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.209123][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.216252][    T1] prandom: seed boundary self test passed
[    0.223365][    T1] prandom: 100 self tests passed
[    0.228146][    T1] pinctrl core: initialized pinctrl subsystem
[    0.235209][    T1] NET: Registered protocol family 16
[    0.241027][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.249183][    T1] audit: initializing netlink subsys (disabled)
[    0.255386][   T36] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.256568][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.264068][    T1] cpuidle: using governor ladder
[    0.275556][    T1] cpuidle: using governor menu
[    0.280289][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.288976][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.502941][    T1] raid6: int32x8  gen()   244 MB/s
[    0.672516][    T1] raid6: int32x8  xor()   167 MB/s
[    0.842377][    T1] raid6: int32x4  gen()   280 MB/s
[    1.012202][    T1] raid6: int32x4  xor()   180 MB/s
[    1.182008][    T1] raid6: int32x2  gen()   447 MB/s
[    1.351809][    T1] raid6: int32x2  xor()   258 MB/s
[    1.521667][    T1] raid6: int32x1  gen()   497 MB/s
[    1.691465][    T1] raid6: int32x1  xor()   208 MB/s
[    1.696406][    T1] raid6: using algorithm int32x1 gen() 497 MB/s
[    1.702478][    T1] raid6: .... xor() 208 MB/s, rmw enabled
[    1.708023][    T1] raid6: using intx1 recovery algorithm
[    1.714134][    T1] vgaarb: loaded
[    1.718018][    T1] SCSI subsystem initialized
[    1.723134][    T1] usbcore: registered new interface driver usbfs
[    1.729365][    T1] usbcore: registered new interface driver hub
[    1.735438][    T1] usbcore: registered new device driver usb
[    1.741688][    T1] mc: Linux media interface: v0.10
[    1.746698][    T1] videodev: Linux video capture interface: v2.00
[    1.753150][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.758785][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.768640][    T1] PTP clock support registered
[    1.774810][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.825113][    T1] VFS: Disk quotas dquot_6.6.0
[    1.829775][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.850527][    T1] NET: Registered protocol family 2
[    1.855762][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.869601][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.878726][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.887197][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.895091][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.902244][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.910359][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.917680][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.925535][    T1] NET: Registered protocol family 1
[    1.935117][    T1] RPC: Registered named UNIX socket transport module.
[    1.941704][    T1] RPC: Registered udp transport module.
[    1.947383][    T1] RPC: Registered tcp transport module.
[    1.952759][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.959875][    T1] PCI: CLS 0 bytes, default 64
[    1.964587][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.964647][  T513] Trying to unpack rootfs image as initramfs...
[    1.977914][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.376122][  T513] Freeing initrd memory: 9424K
[    2.624626][    T1] Initialise system trusted keyrings
[    2.629810][    T1] Key type blacklist registered
[    2.634821][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.642032][    T1] zbud: loaded
[    2.646216][    T1] NFS: Registering the id_resolver key type
[    2.651950][    T1] Key type id_resolver registered
[    2.656821][    T1] Key type id_legacy registered
[    2.661520][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.668916][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.676994][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.744653][    T1] xor: measuring software checksum speed
[    2.754673][    T1]    arm4regs        :  2174 MB/sec
[    2.765766][    T1]    8regs           :  1639 MB/sec
[    2.776471][    T1]    32regs          :  1734 MB/sec
[    2.781498][    T1] xor: using function: arm4regs (2174 MB/sec)
[    2.787412][    T1] async_tx: api initialized (async)
[    2.792442][    T1] Key type asymmetric registered
[    2.797218][    T1] Asymmetric key parser 'x509' registered
[    2.802849][    T1] bounce: pool size: 64 pages
[    2.807511][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.815657][    T1] io scheduler bfq registered
[    2.821975][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.832167][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.895384][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.905087][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.965400][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.038756][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.048252][    T1] printk: console [ttyS0] disabled
[    3.073332][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 29, base_baud = 15625000) is a 16550A
[    3.083154][    T1] printk: console [ttyS0] enabled
[    3.083154][    T1] printk: console [ttyS0] enabled
[    3.092960][    T1] printk: bootconsole [earlycon0] disabled
[    3.092960][    T1] printk: bootconsole [earlycon0] disabled
[    3.105734][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.114191][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.122574][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    3.131151][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.140958][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.151541][    T1] scsi host0: ahci-mvebu
[    3.156217][    T1] scsi host1: ahci-mvebu
[    3.160585][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 47
[    3.169244][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 47
[    3.179645][    T1] spi spi0.0: setup: ignoring unsupported mode bits a00
[    3.186754][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    3.192466][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.199569][    T1] Creating 6 MTD partitions on "spi0.0":
[    3.205083][    T1] 0x000000000000-0x000000100000 : "U-Boot"
[    3.211887][    T1] 0x000000100000-0x000000110000 : "params"
[    3.218662][    T1] 0x000000110000-0x000000120000 : "dts"
[    3.225170][    T1] 0x000000120000-0x000000130000 : "MacAddr"
[    3.231987][    T1] 0x000000130000-0x000000420000 : "kernel"
[    3.238742][    T1] 0x000000420000-0x0000007a0000 : "rootfs"
[    3.246010][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.254564][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.266499][    T1] libphy: Fixed MDIO Bus: probed
[    3.273197][    T1] libphy: orion_mdio_bus: probed
[    3.296779][    T1] mvneta f1030000.ethernet eth0: Using random mac address aa:5c:44:2d:1d:4d
[    3.307271][    T1] mvneta f1034000.ethernet eth1: Using random mac address 8a:da:e2:25:cd:28
[    3.316276][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.323538][    T1] ehci-pci: EHCI PCI platform driver
[    3.328820][    T1] ehci-orion: EHCI orion driver
[    3.333677][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    3.339821][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.348215][    T1] orion-ehci f1058000.usb: irq 45, io mem 0xf1058000
[    3.374817][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.381619][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.390636][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.398616][    T1] usb usb1: Product: EHCI Host Controller
[    3.404226][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    3.411409][    T1] usb usb1: SerialNumber: f1058000.usb
[    3.417259][    T1] hub 1-0:1.0: USB hub found
[    3.421745][    T1] hub 1-0:1.0: 1 port detected
[    3.427421][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.433491][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    3.441822][    T1] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.451839][    T1] xhci-hcd f10f8000.usb3: irq 50, io mem 0xf10f8000
[    3.459305][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.468329][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.476296][    T1] usb usb2: Product: xHCI Host Controller
[    3.481904][    T1] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    3.489083][    T1] usb usb2: SerialNumber: f10f8000.usb3
[    3.495017][    T1] hub 2-0:1.0: USB hub found
[    3.499503][    T1] hub 2-0:1.0: 1 port detected
[    3.504496][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.510553][ T1217] ata2: SATA link down (SStatus 0 SControl 300)
[    3.516698][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.524933][ T1212] ata1: SATA link down (SStatus 0 SControl 300)
[    3.531091][    T1] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.538229][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.547144][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    3.556170][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.564111][    T1] usb usb3: Product: xHCI Host Controller
[    3.569713][    T1] usb usb3: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    3.576878][    T1] usb usb3: SerialNumber: f10f8000.usb3
[    3.582638][    T1] hub 3-0:1.0: USB hub found
[    3.587139][    T1] hub 3-0:1.0: 1 port detected
[    3.592148][    T1] usbcore: registered new interface driver usblp
[    3.598440][    T1] usbcore: registered new interface driver usb-storage
[    3.605380][    T1] mousedev: PS/2 mouse device common for all mice
[    3.612623][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.619233][    T1] i2c /dev entries driver
[    3.625405][    T1] orion_wdt: Initial timeout 171 sec
[    3.631042][    T1] device-mapper: uevent: version 1.0.3
[    3.636528][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    3.645905][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.653151][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.660500][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.667885][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.674692][    T1] device-mapper: raid: Loading target version 1.15.1
[    3.681661][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.687732][    T1] usbcore: registered new interface driver usbhid
[    3.694021][    T1] usbhid: USB HID core driver
[    3.698776][    T1] drop_monitor: Initializing network drop monitor service
[    3.706196][    T1] NET: Registered protocol family 10
[    3.712155][    T1] Segment Routing with IPv6
[    3.716555][    T1] RPL Segment Routing with IPv6
[    3.721323][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.728832][    T1] NET: Registered protocol family 17
[    3.734109][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.739077][    T1] Key type dns_resolver registered
[    3.744167][    T1] ThumbEE CPU extension supported.
[    3.749165][    T1] Registering SWP/SWPB emulation handler
[    3.754996][    T1] registered taskstats version 1
[    3.759807][    T1] Loading compiled-in X.509 certificates
[    3.765728][    T1] zswap: loaded using pool lzo/zbud
[    3.771029][    T1] Key type ._fscrypt registered
[    3.775776][    T1] Key type .fscrypt registered
[    3.780408][    T1] Key type fscrypt-provisioning registered
[    3.787230][    T1] Key type big_key registered
[    3.805320][    T1] Key type encrypted registered
[    3.813985][    T1] Freeing unused kernel memory: 1024K
[    3.845333][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.851716][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

still stuck at 'ALERT! LABEL=rootfs does not exist. Dropping to a shell!'

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 05:06PM
JayX,

I need to check the kernel config to see if MMC was configured in or not. None of the Marvell Armada boxes we support has MMC, yours is the first box that does. So it might be the case that I did not have MMC in the kernel config, or it must be loaded explicitly from module.

In the mean time, since this box has USB, try booting with USB roots using the USB 2.0 slot. Create the USB rootfs the same way you did for SD card and eMMC.

And boot with these envs:
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
usb start
ext4load usb 0:1 0x2000000 /boot/uImage
ext4load usb 0:1 0x3000000 /boot/uInitrd
bootm 0x2000000 0x3000000

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 29, 2022 05:11PM
Hi bodhi,

JayX Wrote:
-------------------------------------------------------
> Hi Bodhi,
> Thank you for reply!
> I've tried the commands you metioned
> above.The results are here:
> USB storage attach to 2.0 Port,not found
>
> Marvell>>usb reset
> (Re)start USB...
> USB0:   Port (usbActive) : 0    Interface (usbType
> = 2) : USB EHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s)
> found
>        scanning usb for storage devices... 0
> Storage Device(s) found
>        scanning usb for ethernet devices... 0
> Ethernet Device(s) found
>
> setenv usbActive 1,both 2.0&3.0 port ,not found:
>
> Marvell>> usb reset
> (Re)start USB...
> USB0:
> 'usbActive' warning (1): Invalid USB2.0 port
> Port (usbActive) : 1    Interface (usbType = 2) :
> USB EHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s)
> found
>        scanning usb for storage devices... 0
> Storage Device(s) found
>        scanning usb for ethernet devices... 0
> Ethernet Device(s) found
>
> setenv usbType 3 ,both 2.0&3.0,not found:
>
> Marvell>> setenv usbType 3
> Marvell>> usb reset
> Error - Please run "usb stop" before changing
> "usbType".
> (Re)start USB...
> USB0:   Port (usbActive) : 0    Interface (usbType
> = 3) : USB XHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s)
> found
>        scanning usb for storage devices... 0
> Storage Device(s) found
>        scanning usb for ethernet devices... 0
> Ethernet Device(s) found
>
> setenv usbType 3
> setenv usbActive 1
> the console shows "BUG"
>
> Marvell>> setenv usbType 3
> Marvell>> setenv usbActive 0
> Marvell>> usb start
> (Re)start USB...
> USB0:   Port (usbActive) : 0    Interface (usbType
> = 3) : USB XHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s)
> found
>        scanning usb for storage devices... 0
> Storage Device(s) found
>        scanning usb for ethernet devices... 0
> Ethernet Device(s) found
> Marvell>> setenv usbActive 1
> Marvell>> usb reset
> Host not halted after 16000 microseconds.
> BUG: failure at xhci-mem.c:94/xhci_ring_free()!
> BUG!
> resetting ...
>
>
> If I enter the linux in SPI FLASH ,the storage and
> emmc can be mounted correctly.
> Thx,
> JayX

The stock U-Boot may disable USB function in some way.So I am trying to boot with eMMC directly.

JayX
Re: Onespace X5 (Armada 385) Question
October 29, 2022 06:02PM
JayX,

> The stock U-Boot may disable USB function in some
> way.So I am trying to boot with eMMC directly.

Yeah, looks like the kernel could not detect the eMMC or SD device during boot. Likely because the DTS (ie. DTB) is old and the binding does not match with new kernel binding.

==============

Try booting with this reference board DTB: /boot/dts/armada-388-db.dtb. It can be used for both Armada 385/388.

So the uImage creation step should be modified as followed:

cat dts/armada-388-db.dtb >> zImage.fdt

Once the kernel can mount the rootfs on eMMC/SD device, this DTS can be used as a base to incorporate the specifics HW paramaters for this box. Let's hope that will be the case, and I can write a new DTS for this box and you can test it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 29, 2022 06:15PM
bodhi,

## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-10-29  23:06:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234055 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2021-09-24   7:54:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Marvell Armada 385 Development Board
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1011712K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 36864K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008682][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020389][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027189][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034906][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046988][    T0] Console: colour dummy device 80x30
[    0.052135][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.063406][    T0] pid_max: default: 32768 minimum: 301
[    0.068828][    T0] LSM: Security Framework initializing
[    0.074172][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.082157][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.091159][    T0] CPU: Testing write buffer coherency: ok
[    0.096729][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.102590][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.109397][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.116344][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.122293][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.129250][    T1] rcu: Hierarchical SRCU implementation.
[    0.135243][    T1] smp: Bringing up secondary CPUs ...
[    0.140866][    T1] Booting CPU 1
[    0.144321][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.144331][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.156474][    T1] smp: Brought up 1 node, 2 CPUs
[    0.161275][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.168309][    T1] CPU: All CPU(s) started in SVC mode.
[    0.173976][    T1] devtmpfs: initialized
[    0.180549][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.189073][   T24] wait_for_initramfs() called before rootfs_initcalls
[    0.189210][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.206189][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.236006][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.243142][    T1] prandom: seed boundary self test passed
[    0.250262][    T1] prandom: 100 self tests passed
[    0.255046][    T1] pinctrl core: initialized pinctrl subsystem
[    0.262112][    T1] NET: Registered protocol family 16
[    0.268008][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.276135][    T1] audit: initializing netlink subsys (disabled)
[    0.282338][   T36] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.283515][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.291027][    T1] cpuidle: using governor ladder
[    0.302516][    T1] cpuidle: using governor menu
[    0.307311][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.315981][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.322634][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.331417][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.547329][    T1] raid6: int32x8  gen()   244 MB/s
[    0.717096][    T1] raid6: int32x8  xor()   166 MB/s
[    0.887121][    T1] raid6: int32x4  gen()   280 MB/s
[    1.057040][    T1] raid6: int32x4  xor()   174 MB/s
[    1.227118][    T1] raid6: int32x2  gen()   447 MB/s
[    1.397070][    T1] raid6: int32x2  xor()   262 MB/s
[    1.567081][    T1] raid6: int32x1  gen()   497 MB/s
[    1.737046][    T1] raid6: int32x1  xor()   197 MB/s
[    1.741991][    T1] raid6: using algorithm int32x1 gen() 497 MB/s
[    1.748070][    T1] raid6: .... xor() 197 MB/s, rmw enabled
[    1.753620][    T1] raid6: using intx1 recovery algorithm
[    1.759767][    T1] vgaarb: loaded
[    1.763665][    T1] SCSI subsystem initialized
[    1.768769][    T1] usbcore: registered new interface driver usbfs
[    1.775017][    T1] usbcore: registered new interface driver hub
[    1.781100][    T1] usbcore: registered new device driver usb
[    1.787373][    T1] mc: Linux media interface: v0.10
[    1.792388][    T1] videodev: Linux video capture interface: v2.00
[    1.798840][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.804481][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.814345][    T1] PTP clock support registered
[    1.820554][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.870860][    T1] VFS: Disk quotas dquot_6.6.0
[    1.875525][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.896256][    T1] NET: Registered protocol family 2
[    1.901497][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.915332][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.924457][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.932937][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.941054][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.948217][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.956340][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.963656][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.971516][    T1] NET: Registered protocol family 1
[    1.990738][    T1] RPC: Registered named UNIX socket transport module.
[    1.997331][    T1] RPC: Registered udp transport module.
[    2.002728][    T1] RPC: Registered tcp transport module.
[    2.008106][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.015226][    T1] PCI: CLS 0 bytes, default 64
[    2.019975][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.020001][  T521] Trying to unpack rootfs image as initramfs...
[    2.033315][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.431714][  T521] Freeing initrd memory: 9424K
[    2.661135][    T1] Initialise system trusted keyrings
[    2.666284][    T1] Key type blacklist registered
[    2.671352][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.678562][    T1] zbud: loaded
[    2.682723][    T1] NFS: Registering the id_resolver key type
[    2.688467][    T1] Key type id_resolver registered
[    2.693342][    T1] Key type id_legacy registered
[    2.698047][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.705429][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.713496][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.780735][    T1] xor: measuring software checksum speed
[    2.790765][    T1]    arm4regs        :  2172 MB/sec
[    2.801834][    T1]    8regs           :  1637 MB/sec
[    2.812564][    T1]    32regs          :  1733 MB/sec
[    2.817597][    T1] xor: using function: arm4regs (2172 MB/sec)
[    2.823510][    T1] async_tx: api initialized (async)
[    2.828545][    T1] Key type asymmetric registered
[    2.833325][    T1] Asymmetric key parser 'x509' registered
[    2.838961][    T1] bounce: pool size: 64 pages
[    2.843603][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.851752][    T1] io scheduler bfq registered
[    2.858271][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.866953][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    2.876086][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    2.885402][    T1] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    2.891972][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    2.900401][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    2.908835][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    2.917270][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    2.925699][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    2.934645][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    2.943592][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.952537][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.961482][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.970421][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.979369][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.988309][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.997514][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    3.004126][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.010289][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    3.021130][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    3.031973][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    3.042811][    T1] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    3.053647][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    3.061196][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.068210][    T1] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    3.074908][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.082564][    T1] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    3.089255][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.097647][    T1] PCI: bus0: Fast back to back transfers disabled
[    3.103916][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.112603][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.122249][    T1] PCI: bus1: Fast back to back transfers enabled
[    3.128414][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.136682][    T1] PCI: bus2: Fast back to back transfers enabled
[    3.142885][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.150206][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    3.158120][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    3.166022][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.171675][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.178029][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.241117][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.250813][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.311139][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.378385][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.387394][    T1] printk: console [ttyS0] disabled
[    3.412504][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 31, base_baud = 15625000) is a 16550A
[    3.422175][    T1] printk: console [ttyS0] enabled
[    3.422175][    T1] printk: console [ttyS0] enabled
[    3.431976][    T1] printk: bootconsole [earlycon0] disabled
[    3.431976][    T1] printk: bootconsole [earlycon0] disabled
[    3.444844][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.453343][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.461616][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    3.470193][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.479994][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.490627][    T1] scsi host0: ahci-mvebu
[    3.495270][    T1] scsi host1: ahci-mvebu
[    3.499637][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 52
[    3.508311][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 52
[    3.517239][    T1] ahci-mvebu f10e0000.sata: supply ahci not found, using dummy regulator
[    3.525746][    T1] ahci-mvebu f10e0000.sata: supply phy not found, using dummy regulator
[    3.534019][    T1] ahci-mvebu f10e0000.sata: supply target not found, using dummy regulator

stuck here... And no 'MMC'/'SDHCI' show in the boot progress.

JayX
Re: Onespace X5 (Armada 385) Question
October 30, 2022 01:41PM
JayX,

OK so the Reference Board DTS cannot be used for this box. Let's go back to the ubuntu DTS. And boot with kernel on eMMC, but with rootfs on USB.

- Create the rootfs on USB, like I posted before

Quote

3. Create uImage with DTB appended.

cd /media/sdb1/boot
cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt
cat dts/ubuntu_armada-38x.dtb >> zImage.fdt
cp -a uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage
sync

And insert it in the USB 2.0 port.

And then boot with eMMC kernel

setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
ext4load mmc 0:1 0x2000000 /boot/uImage
ext4load mmc 0:1 0x3000000 /boot/uInitrd
bootm 0x2000000 0x3000000


It should boot like before, but when the kernel looks for rootfs, it will mount the USB rootfs.

Once inside Debian with USB rootfs, we should be able to figure out why the eMMC/SD device is not recognized by the kernel. I suspect that the ubuntu DTS has problem with the sdio binding that is too old for the new kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
October 30, 2022 06:29PM
The stock DTB is too old. So I create a new DTS for this box based on armada-385-db-ap.dts.

Please try the attached DTB!

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - armada-385-onespace-x5.dtb (17 KB)
Re: Onespace X5 (Armada 385) Question
October 31, 2022 08:19AM
bodhi,

Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> ext4load mmc 0:1 0x2000000 /boot/uImage
5234607 bytes read in 166 ms (30.1 MiB/s)
Marvell>> ext4load mmc 0:1 0x3000000 /boot/uInitrd
9649885 bytes read in 298 ms (30.9 MiB/s)
Marvell>> bootm 0x2000000 0x3000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-10-31  12:39:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234543 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2021-09-24   7:54:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Marvell Armada 385 Custom0 Development Board
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1011712K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 36864K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Switching to timer-based delay loop, resolution 40ns
[    0.000000][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.008488][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.020541][    T0] Console: colour dummy device 80x30
[    0.025682][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.036683][    T0] pid_max: default: 32768 minimum: 301
[    0.042096][    T0] LSM: Security Framework initializing
[    0.047445][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.055421][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.064406][    T0] CPU: Testing write buffer coherency: ok
[    0.069970][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.075828][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.082628][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.089713][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.095649][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.102594][    T1] rcu: Hierarchical SRCU implementation.
[    0.108602][    T1] smp: Bringing up secondary CPUs ...
[    0.114218][    T1] Booting CPU 1
[    0.117667][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.117677][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.129808][    T1] smp: Brought up 1 node, 2 CPUs
[    0.134604][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.141535][    T1] CPU: All CPU(s) started in SVC mode.
[    0.147200][    T1] devtmpfs: initialized
[    0.153745][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.162232][   T24] wait_for_initramfs() called before rootfs_initcalls
[    0.162374][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.179344][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.209127][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.216254][    T1] prandom: seed boundary self test passed
[    0.223367][    T1] prandom: 100 self tests passed
[    0.228147][    T1] pinctrl core: initialized pinctrl subsystem
[    0.235204][    T1] NET: Registered protocol family 16
[    0.241024][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.249177][    T1] audit: initializing netlink subsys (disabled)
[    0.255377][   T36] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.256566][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.264058][    T1] cpuidle: using governor ladder
[    0.275545][    T1] cpuidle: using governor menu
[    0.280280][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.288966][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.502931][    T1] raid6: int32x8  gen()   243 MB/s
[    0.672511][    T1] raid6: int32x8  xor()   168 MB/s
[    0.842384][    T1] raid6: int32x4  gen()   280 MB/s
[    1.012199][    T1] raid6: int32x4  xor()   180 MB/s
[    1.181999][    T1] raid6: int32x2  gen()   447 MB/s
[    1.351808][    T1] raid6: int32x2  xor()   258 MB/s
[    1.521674][    T1] raid6: int32x1  gen()   497 MB/s
[    1.691462][    T1] raid6: int32x1  xor()   208 MB/s
[    1.696403][    T1] raid6: using algorithm int32x1 gen() 497 MB/s
[    1.702475][    T1] raid6: .... xor() 208 MB/s, rmw enabled
[    1.708020][    T1] raid6: using intx1 recovery algorithm
[    1.714132][    T1] vgaarb: loaded
[    1.718012][    T1] SCSI subsystem initialized
[    1.723140][    T1] usbcore: registered new interface driver usbfs
[    1.729372][    T1] usbcore: registered new interface driver hub
[    1.735445][    T1] usbcore: registered new device driver usb
[    1.741715][    T1] mc: Linux media interface: v0.10
[    1.746730][    T1] videodev: Linux video capture interface: v2.00
[    1.753187][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.758823][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.768679][    T1] PTP clock support registered
[    1.774857][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.825169][    T1] VFS: Disk quotas dquot_6.6.0
[    1.829830][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.850562][    T1] NET: Registered protocol family 2
[    1.855791][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.869614][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.878741][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.887213][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.895326][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.902481][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.910596][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.917906][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.925755][    T1] NET: Registered protocol family 1
[    1.945044][    T1] RPC: Registered named UNIX socket transport module.
[    1.951631][    T1] RPC: Registered udp transport module.
[    1.957021][    T1] RPC: Registered tcp transport module.
[    1.962394][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.969505][    T1] PCI: CLS 0 bytes, default 64
[    1.974217][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.974275][  T513] Trying to unpack rootfs image as initramfs...
[    1.987543][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.385225][  T513] Freeing initrd memory: 9424K
[    2.615029][    T1] Initialise system trusted keyrings
[    2.620176][    T1] Key type blacklist registered
[    2.625131][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.632436][    T1] zbud: loaded
[    2.636599][    T1] NFS: Registering the id_resolver key type
[    2.642333][    T1] Key type id_resolver registered
[    2.647211][    T1] Key type id_legacy registered
[    2.651912][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.659291][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.667352][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.733792][    T1] xor: measuring software checksum speed
[    2.743812][    T1]    arm4regs        :  2174 MB/sec
[    2.754865][    T1]    8regs           :  1639 MB/sec
[    2.765570][    T1]    32regs          :  1734 MB/sec
[    2.770597][    T1] xor: using function: arm4regs (2174 MB/sec)
[    2.776500][    T1] async_tx: api initialized (async)
[    2.781529][    T1] Key type asymmetric registered
[    2.786304][    T1] Asymmetric key parser 'x509' registered
[    2.791935][    T1] bounce: pool size: 64 pages
[    2.796582][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.804701][    T1] io scheduler bfq registered
[    2.811038][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.821246][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.885440][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.895156][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.955439][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.029003][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.038589][    T1] printk: console [ttyS0] disabled
[    3.063799][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 29, base_baud = 15625000) is a 16550A
[    3.073519][    T1] printk: console [ttyS0] enabled
[    3.073519][    T1] printk: console [ttyS0] enabled
[    3.083311][    T1] printk: bootconsole [earlycon0] disabled
[    3.083311][    T1] printk: bootconsole [earlycon0] disabled
[    3.096052][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.104522][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.112811][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    3.121423][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.131214][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.141809][    T1] scsi host0: ahci-mvebu
[    3.146457][    T1] scsi host1: ahci-mvebu
[    3.150825][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 47
[    3.159484][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 47
[    3.169879][    T1] spi spi0.0: setup: ignoring unsupported mode bits a00
[    3.176988][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    3.182700][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.189783][    T1] Creating 6 MTD partitions on "spi0.0":
[    3.195293][    T1] 0x000000000000-0x000000100000 : "U-Boot"
[    3.202105][    T1] 0x000000100000-0x000000110000 : "params"
[    3.208854][    T1] 0x000000110000-0x000000120000 : "dts"
[    3.215410][    T1] 0x000000120000-0x000000130000 : "MacAddr"
[    3.222233][    T1] 0x000000130000-0x000000420000 : "kernel"
[    3.228974][    T1] 0x000000420000-0x0000007a0000 : "rootfs"
[    3.236239][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.244794][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.256699][    T1] libphy: Fixed MDIO Bus: probed
[    3.263371][    T1] libphy: orion_mdio_bus: probed
[    3.286975][    T1] mvneta f1030000.ethernet eth0: Using random mac address 62:58:c1:96:67:69
[    3.297437][    T1] mvneta f1034000.ethernet eth1: Using random mac address 46:8b:99:d8:26:49
[    3.306425][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.313688][    T1] ehci-pci: EHCI PCI platform driver
[    3.318956][    T1] ehci-orion: EHCI orion driver
[    3.323819][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    3.329964][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.338353][    T1] orion-ehci f1058000.usb: irq 45, io mem 0xf1058000
[    3.384896][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.391712][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.400736][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.408702][    T1] usb usb1: Product: EHCI Host Controller
[    3.414310][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    3.421490][    T1] usb usb1: SerialNumber: f1058000.usb
[    3.427377][    T1] hub 1-0:1.0: USB hub found
[    3.431862][    T1] hub 1-0:1.0: 1 port detected
[    3.437534][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.443604][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    3.451923][    T1] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.461942][    T1] xhci-hcd f10f8000.usb3: irq 50, io mem 0xf10f8000
[    3.469442][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.478464][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.486432][    T1] usb usb2: Product: xHCI Host Controller
[    3.492039][    T1] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    3.499221][ T1217] ata2: SATA link down (SStatus 0 SControl 300)
[    3.505352][    T1] usb usb2: SerialNumber: f10f8000.usb3
[    3.510975][ T1212] ata1: SATA link down (SStatus 0 SControl 300)
[    3.511239][    T1] hub 2-0:1.0: USB hub found
[    3.521609][    T1] hub 2-0:1.0: 1 port detected
[    3.526506][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.532539][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.540776][    T1] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.547905][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.556890][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    3.565889][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.573830][    T1] usb usb3: Product: xHCI Host Controller
[    3.579426][    T1] usb usb3: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    3.586587][    T1] usb usb3: SerialNumber: f10f8000.usb3
[    3.592341][    T1] hub 3-0:1.0: USB hub found
[    3.596842][    T1] hub 3-0:1.0: 1 port detected
[    3.601842][    T1] usbcore: registered new interface driver usblp
[    3.608123][    T1] usbcore: registered new interface driver usb-storage
[    3.615094][    T1] mousedev: PS/2 mouse device common for all mice
[    3.622463][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.629348][    T1] i2c /dev entries driver
[    3.635709][    T1] orion_wdt: Initial timeout 171 sec
[    3.641328][    T1] device-mapper: uevent: version 1.0.3
[    3.646847][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    3.656210][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.663456][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.670810][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.678178][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.684993][    T1] device-mapper: raid: Loading target version 1.15.1
[    3.692260][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.698522][    T1] usbcore: registered new interface driver usbhid
[    3.704811][    T1] usbhid: USB HID core driver
[    3.709684][    T1] drop_monitor: Initializing network drop monitor service
[    3.716988][    T1] NET: Registered protocol family 10
[    3.722955][    T1] Segment Routing with IPv6
[    3.727348][    T1] RPL Segment Routing with IPv6
[    3.732119][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.739919][    T1] NET: Registered protocol family 17
[    3.745223][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.750151][    T1] Key type dns_resolver registered
[    3.755256][    T1] ThumbEE CPU extension supported.
[    3.760240][    T1] Registering SWP/SWPB emulation handler
[    3.766118][    T1] registered taskstats version 1
[    3.770931][    T1] Loading compiled-in X.509 certificates
[    3.776853][    T1] zswap: loaded using pool lzo/zbud
[    3.782150][    T1] Key type ._fscrypt registered
[    3.786889][    T1] Key type .fscrypt registered
[    3.791520][    T1] Key type fscrypt-provisioning registered
[    3.798345][    T1] Key type big_key registered
[    3.816325][    T1] Key type encrypted registered
[    3.825239][    T1] Freeing unused kernel memory: 1024K
[    3.875398][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.881781][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
^Cdone.
^C^C^C^CGave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
I create the rootfs on USB and insert it in the USB 2.0 port. It still stuck at 'LABEL=rootfs does not exist.'Also I noticed that the usb disk's led wasn' blinking.

JayX
Re: Onespace X5 (Armada 385) Question
October 31, 2022 08:30AM
bodhi,

I have tried the new dtb. Here is the result:

Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> ext4load mmc 0:1 0x2000000 /boot/uImage1
5235741 bytes read in 167 ms (29.9 MiB/s)
Marvell>> ext4load mmc 0:1 0x3000000 /boot/uInitrd
9649885 bytes read in 298 ms (30.9 MiB/s)
Marvell>> bootm 0x2000000 0x3000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-10-31  12:43:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5235677 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2021-09-24   7:54:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Onespace X5
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1011708K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 36868K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008682][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020390][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027194][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034911][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.047006][    T0] Console: colour dummy device 80x30
[    0.052152][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.063423][    T0] pid_max: default: 32768 minimum: 301
[    0.068843][    T0] LSM: Security Framework initializing
[    0.074189][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.082173][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.091173][    T0] CPU: Testing write buffer coherency: ok
[    0.096742][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.102605][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.109416][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.116364][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.122314][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.129271][    T1] rcu: Hierarchical SRCU implementation.
[    0.135262][    T1] smp: Bringing up secondary CPUs ...
[    0.140887][    T1] Booting CPU 1
[    0.144343][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.144352][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.156497][    T1] smp: Brought up 1 node, 2 CPUs
[    0.161298][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.168330][    T1] CPU: All CPU(s) started in SVC mode.
[    0.173996][    T1] devtmpfs: initialized
[    0.180693][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.189209][   T24] wait_for_initramfs() called before rootfs_initcalls
[    0.189346][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.206327][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.236144][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.243281][    T1] prandom: seed boundary self test passed
[    0.250401][    T1] prandom: 100 self tests passed
[    0.255186][    T1] pinctrl core: initialized pinctrl subsystem
[    0.262263][    T1] NET: Registered protocol family 16
[    0.268123][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.276258][    T1] audit: initializing netlink subsys (disabled)
[    0.282466][   T36] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.283643][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.291153][    T1] cpuidle: using governor ladder
[    0.302643][    T1] cpuidle: using governor menu
[    0.307407][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.316076][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.322732][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.331515][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.547088][    T1] raid6: int32x8  gen()   244 MB/s
[    0.717117][    T1] raid6: int32x8  xor()   168 MB/s
[    0.887261][    T1] raid6: int32x4  gen()   280 MB/s
[    1.057056][    T1] raid6: int32x4  xor()   180 MB/s
[    1.227074][    T1] raid6: int32x2  gen()   447 MB/s
[    1.397063][    T1] raid6: int32x2  xor()   245 MB/s
[    1.567079][    T1] raid6: int32x1  gen()   497 MB/s
[    1.737049][    T1] raid6: int32x1  xor()   197 MB/s
[    1.741995][    T1] raid6: using algorithm int32x1 gen() 497 MB/s
[    1.748070][    T1] raid6: .... xor() 197 MB/s, rmw enabled
[    1.753620][    T1] raid6: using intx1 recovery algorithm
[    1.759773][    T1] vgaarb: loaded
[    1.763483][    T1] SCSI subsystem initialized
[    1.768242][    T1] usbcore: registered new interface driver usbfs
[    1.774436][    T1] usbcore: registered new interface driver hub
[    1.780474][    T1] usbcore: registered new device driver usb
[    1.786413][    T1] mc: Linux media interface: v0.10
[    1.791412][    T1] videodev: Linux video capture interface: v2.00
[    1.797660][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.803300][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.813116][    T1] PTP clock support registered
[    1.819049][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.853100][    T1] VFS: Disk quotas dquot_6.6.0
[    1.857768][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.872334][    T1] NET: Registered protocol family 2
[    1.877493][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.889505][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.898548][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.907174][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.915317][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.922513][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.930677][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.937982][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.945844][    T1] NET: Registered protocol family 1
[    1.951275][    T1] RPC: Registered named UNIX socket transport module.
[    1.957868][    T1] RPC: Registered udp transport module.
[    1.963297][    T1] RPC: Registered tcp transport module.
[    1.968676][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.975804][    T1] PCI: CLS 0 bytes, default 64
[    1.980528][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.980584][   T23] Trying to unpack rootfs image as initramfs...
[    1.993843][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.374493][   T23] Freeing initrd memory: 9424K
[    2.643911][    T1] Initialise system trusted keyrings
[    2.649091][    T1] Key type blacklist registered
[    2.653891][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.661116][    T1] zbud: loaded
[    2.665271][    T1] NFS: Registering the id_resolver key type
[    2.671040][    T1] Key type id_resolver registered
[    2.675901][    T1] Key type id_legacy registered
[    2.680622][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.687995][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.696064][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.764250][    T1] xor: measuring software checksum speed
[    2.774266][    T1]    arm4regs        :  2172 MB/sec
[    2.785347][    T1]    8regs           :  1637 MB/sec
[    2.796067][    T1]    32regs          :  1733 MB/sec
[    2.801111][    T1] xor: using function: arm4regs (2172 MB/sec)
[    2.807014][    T1] async_tx: api initialized (async)
[    2.812057][    T1] Key type asymmetric registered
[    2.816830][    T1] Asymmetric key parser 'x509' registered
[    2.822477][    T1] bounce: pool size: 64 pages
[    2.827112][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.835259][    T1] io scheduler bfq registered
[    2.841770][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.850460][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    2.859584][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    2.868888][    T1] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    2.875460][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    2.883897][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    2.892327][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    2.900755][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    2.909184][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    2.918124][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    2.927074][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.936020][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.944966][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.953911][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.962856][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.971795][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.981047][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    2.987644][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.993825][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    3.004668][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    3.015507][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    3.026344][    T1] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    3.037180][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    3.044732][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.051760][    T1] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    3.058450][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.066110][    T1] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    3.072818][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.080452][    T1] pci 0000:00:03.0: [11ab:6820] type 01 class 0x060400
[    3.087143][    T1] pci 0000:00:03.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.095558][    T1] PCI: bus0: Fast back to back transfers disabled
[    3.101833][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.110520][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.119203][    T1] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.128908][    T1] PCI: bus1: Fast back to back transfers enabled
[    3.135090][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.143443][    T1] PCI: bus2: Fast back to back transfers enabled
[    3.149625][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.157934][    T1] PCI: bus3: Fast back to back transfers enabled
[    3.164117][    T1] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    3.171447][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    3.179351][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    3.187244][    T1] pci 0000:00:03.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    3.195141][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.200793][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.206436][    T1] pci 0000:00:03.0: PCI bridge to [bus 03]
[    3.212871][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.279614][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.289365][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.349614][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.417394][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.426464][    T1] printk: console [ttyS0] disabled
[    3.451721][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 30, base_baud = 15625000) is a 16550A
[    3.461455][    T1] printk: console [ttyS0] enabled
[    3.461455][    T1] printk: console [ttyS0] enabled
[    3.471258][    T1] printk: bootconsole [earlycon0] disabled
[    3.471258][    T1] printk: bootconsole [earlycon0] disabled
[    3.503781][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 31, base_baud = 15625000) is a 16550A
[    3.769067][    T1] marvell-nfc f10d0000.nand-controller: Timeout waiting for RB signal
[    3.777110][    T1] nand: No NAND device found
[    3.781588][    T1] marvell-nfc f10d0000.nand-controller: could not scan the nand chip
[    3.789574][    T1] marvell-nfc: probe of f10d0000.nand-controller failed with error -110
[    3.798926][    T1] spi-nor spi1.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    3.806822][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.815402][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.827289][    T1] libphy: Fixed MDIO Bus: probed
[    3.834015][    T1] libphy: orion_mdio_bus: probed
[    3.847978][    T1] mdio_bus f1072004.mdio-mii: MDIO device at address 4 is missing.
[    3.855932][    T1] mdio_bus f1072004.mdio-mii: MDIO device at address 6 is missing.
[    3.864369][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.877139][    T1] mvneta f1070000.ethernet eth0: Using random mac address be:8b:65:51:93:8d
[    3.889534][    T1] mvneta f1030000.ethernet eth1: Using random mac address 0e:70:7d:89:30:c2
[    3.901826][    T1] mvneta f1034000.ethernet eth2: Using random mac address 7e:a6:65:fa:cf:a0
[    3.910938][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.918208][    T1] ehci-pci: EHCI PCI platform driver
[    3.923511][    T1] ehci-orion: EHCI orion driver
[    3.928404][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    3.934560][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.942981][    T1] orion-ehci f1058000.usb: irq 49, io mem 0xf1058000
[    3.979058][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.985857][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.994883][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.002843][    T1] usb usb1: Product: EHCI Host Controller
[    4.008437][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    4.015605][    T1] usb usb1: SerialNumber: f1058000.usb
[    4.021447][    T1] hub 1-0:1.0: USB hub found
[    4.025938][    T1] hub 1-0:1.0: 1 port detected
[    4.031848][    T1] usbcore: registered new interface driver usblp
[    4.038155][    T1] usbcore: registered new interface driver usb-storage
[    4.045280][    T1] mousedev: PS/2 mouse device common for all mice
[    4.052921][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    4.060560][    T1] i2c /dev entries driver
[    4.068272][    T1] orion_wdt: Initial timeout 171 sec
[    4.073918][    T1] device-mapper: uevent: version 1.0.3
[    4.079450][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    4.088805][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.096075][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.103473][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.110847][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    4.117661][    T1] device-mapper: raid: Loading target version 1.15.1
[    4.126056][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    4.134285][    T1] hid: raw HID events driver (C) Jiri Kosina
[    4.140556][    T1] usbcore: registered new interface driver usbhid
[    4.146852][    T1] usbhid: USB HID core driver
[    4.151777][    T1] drop_monitor: Initializing network drop monitor service
[    4.159104][    T1] NET: Registered protocol family 10
[    4.165199][    T1] Segment Routing with IPv6
[    4.169598][    T1] RPL Segment Routing with IPv6
[    4.174371][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.182188][    T1] NET: Registered protocol family 17
[    4.187466][    T1] 8021q: 802.1Q VLAN Support v1.8
[    4.192415][    T1] Key type dns_resolver registered
[    4.197507][    T1] ThumbEE CPU extension supported.
[    4.202511][    T1] Registering SWP/SWPB emulation handler
[    4.208386][    T1] registered taskstats version 1
[    4.213238][    T1] Loading compiled-in X.509 certificates
[    4.219190][    T1] zswap: loaded using pool lzo/zbud
[    4.224521][    T1] Key type ._fscrypt registered
[    4.229266][    T1] Key type .fscrypt registered
[    4.233902][    T1] Key type fscrypt-provisioning registered
[    4.240770][    T1] Key type big_key registered
[    4.258754][    T1] Key type encrypted registered
[    4.265898][  T617] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.271974][  T617] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    4.280285][  T617] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.290289][  T617] xhci-hcd f10f0000.usb3: irq 55, io mem 0xf10f0000
[    4.296989][  T617] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    4.306002][  T617] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.313976][  T617] usb usb2: Product: xHCI Host Controller
[    4.319579][  T617] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    4.326742][  T617] usb usb2: SerialNumber: f10f0000.usb3
[    4.332551][  T617] hub 2-0:1.0: USB hub found
[    4.337041][  T617] hub 2-0:1.0: 1 port detected
[    4.341946][  T617] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.347986][  T617] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    4.356225][  T617] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    4.363360][  T617] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.372362][  T617] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    4.381375][  T617] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.389331][  T617] usb usb3: Product: xHCI Host Controller
[    4.394925][  T617] usb usb3: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    4.402094][  T617] usb usb3: SerialNumber: f10f0000.usb3
[    4.407857][  T617] hub 3-0:1.0: USB hub found
[    4.412358][  T617] hub 3-0:1.0: 1 port detected
[    4.419683][    T1] Freeing unused kernel memory: 1024K
[    4.469604][    T1] Checked W+X mappings: passed, no W+X pages found
[    4.475995][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Looks like the new dtb works fine.But it still stuck at 'LABEL=rootfs does not exist.' Also the led on the usb disk was off always.
Btw,should i stick the loooooong boot log in the topic or maybe upload to other place like 'pastebin'?

JayX
Re: Onespace X5 (Armada 385) Question
October 31, 2022 06:52PM
JayX,

> Looks like the new dtb works fine.But it still
> stuck at 'LABEL=rootfs does not exist.' Also the
> led on the usb disk was off always.

What are plugged in storage devices? SATA, USB, MMC ?

And perhaps it is time to try to run USB rootfs, like I suggested previously (loading kernel from MMC, with USB rootfs attached). It is easier to debug when you can run Debian.

> Btw,should i stick the loooooong boot log in the
> topic or maybe upload to other place like
> 'pastebin'?

Either way is OK, as long as I can read and search on the browser.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Onespace X5 (Armada 385) Question
November 01, 2022 05:21AM
bodhi,

JayX Wrote:
-------------------------------------------------------
> bodhi,
>
>
> Marvell>> setenv bootargs 'console=ttyS0,115200
> root=LABEL=rootfs rootdelay=10
> earlyprintk=serial'
> Marvell>> ext4load mmc 0:1 0x2000000 /boot/uImage
> 5234607 bytes read in 166 ms (30.1 MiB/s)
> Marvell>> ext4load mmc 0:1 0x3000000
> /boot/uInitrd
> 9649885 bytes read in 298 ms (30.9 MiB/s)
> Marvell>> bootm 0x2000000 0x3000000
> ## Booting kernel from Legacy Image at 02000000
> ...
>    Image Name:   Linux-5.13.8-mvebu-tld-1
>    Created:      2022-10-31  12:39:25 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    5234543 Bytes = 5 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at
> 03000000 ...
>    Image Name:   initramfs-5.13.8-mvebu-tld-1
>    Created:      2021-09-24   7:54:32 UTC
>    Image Type:   ARM Linux RAMDisk Image (gzip
> compressed)
>    Data Size:    9649821 Bytes = 9.2 MiB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Loading Kernel Image ... OK
> OK
> 
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> [    0.000000][    T0] Booting Linux on physical
> CPU 0x0
> [    0.000000][    T0] Linux version
> 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian
> 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian)
> 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT
> 2021
> [    0.000000][    T0] CPU: ARMv7 Processor
> [414fc091] revision 1 (ARMv7), cr=10c5387d
> [    0.000000][    T0] CPU: PIPT / VIPT
> nonaliasing data cache, VIPT aliasing instruction
> cache
> [    0.000000][    T0] OF: fdt: Machine model:
> Marvell Armada 385 Custom0 Development Board
> [    0.000000][    T0] printk: bootconsole
> [earlycon0] enabled
> [    0.000000][    T0] Memory policy: Data cache
> writealloc
> [    0.000000][    T0] Zone ranges:
> [    0.000000][    T0]   Normal   [mem
> 0x0000000000000000-0x000000002fffffff]
> [    0.000000][    T0]   HighMem  [mem
> 0x0000000030000000-0x000000003fffffff]
> [    0.000000][    T0] Movable zone start for each
> node
> [    0.000000][    T0] Early memory node ranges
> [    0.000000][    T0]   node   0: [mem
> 0x0000000000000000-0x000000003fffffff]
> [    0.000000][    T0] Initmem setup node 0 [mem
> 0x0000000000000000-0x000000003fffffff]
> [    0.000000][    T0] percpu: Embedded 21
> pages/cpu s54668 r8192 d23156 u86016
> [    0.000000][    T0] Built 1 zonelists, mobility
> grouping on.  Total pages: 260608
> [    0.000000][    T0] Kernel command line:
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 earlyprintk=serial
> [    0.000000][    T0] Dentry cache hash table
> entries: 131072 (order: 7, 524288 bytes, linear)
> [    0.000000][    T0] Inode-cache hash table
> entries: 65536 (order: 6, 262144 bytes, linear)
> [    0.000000][    T0] mem auto-init: stack:off,
> heap alloc:on, heap free:off
> [    0.000000][    T0] Memory: 1011712K/1048576K
> available (11264K kernel code, 1483K rwdata, 3112K
> rodata, 1024K init, 325K bss, 36864K reserved, 0K
> cma-reserved, 262144K highmem)
> [    0.000000][    T0] random: get_random_u32
> called from ____cache_alloc+0x404/0x78c with
> crng_init=0
> [    0.000000][    T0] trace event string verifier
> disabled
> [    0.000000][    T0] rcu: Preemptible
> hierarchical RCU implementation.
> [    0.000000][    T0] rcu:     RCU restricting
> CPUs from NR_CPUS=4 to nr_cpu_ids=2.
> [    0.000000][    T0]  Trampoline variant of
> Tasks RCU enabled.
> [    0.000000][    T0]  Tracing variant of Tasks
> RCU enabled.
> [    0.000000][    T0] rcu: RCU calculated value
> of scheduler-enlistment delay is 10 jiffies.
> [    0.000000][    T0] rcu: Adjusting geometry for
> rcu_fanout_leaf=16, nr_cpu_ids=2
> [    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16,
> preallocated irqs: 16
> [    0.000000][    T0] L2C: DT/platform modifies
> aux control register: 0x06070000 -> 0x16070000
> [    0.000000][    T0] L2C-310 enabling early
> BRESP for Cortex-A9
> [    0.000000][    T0] L2C-310 full line of zeros
> enabled for Cortex-A9
> [    0.000000][    T0] L2C-310 D prefetch enabled,
> offset 1 lines
> [    0.000000][    T0] L2C-310 dynamic clock
> gating enabled, standby mode enabled
> [    0.000000][    T0] L2C-310 Coherent cache
> controller enabled, 16 ways, 1024 kB
> [    0.000000][    T0] L2C-310 Coherent: CACHE_ID
> 0x410054c9, AUX_CTRL 0x56070001
> [    0.000000][    T0] Division by zero in
> kernel.
> [    0.000000][    T0] CPU: 0 PID: 0 Comm:
> swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
> [    0.000000][    T0] Hardware name: Marvell
> Armada 380/385 (Device Tree)
> [    0.000000][    T0] [<c01153e8>]
> (unwind_backtrace) from [<c01100f8>]
> (show_stack+0x10/0x14)
> [    0.000000][    T0] [<c01100f8>] (show_stack)
> from [<c0b05d18>] (dump_stack+0x80/0x9c)
> [    0.000000][    T0] [<c0b05d18>] (dump_stack)
> from [<c0608fa4>] (Ldiv0+0x8/0x10)
> [    0.000000][    T0] [<c0608fa4>] (Ldiv0) from
> [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
> [    0.000000][    T0] [<c067c490>]
> (clk_cpu_recalc_rate) from [<c067735c>]
> (__clk_register+0x410/0x62c)
> [    0.000000][    T0] [<c067735c>]
> (__clk_register) from [<c1028d10>]
> (of_cpu_clk_setup+0x200/0x2c0)
> [    0.000000][    T0] [<c1028d10>]
> (of_cpu_clk_setup) from [<c10277f4>]
> (of_clk_init+0x17c/0x200)
> [    0.000000][    T0] [<c10277f4>] (of_clk_init)
> from [<c100449c>] (time_init+0x20/0x30)
> [    0.000000][    T0] [<c100449c>] (time_init)
> from [<c10010ec>] (start_kernel+0x59c/0x86c)
> [    0.000000][    T0] [<c10010ec>] (start_kernel)
> from [<00000000>] (0x0)
> [    0.000000][    T0] Division by zero in
> kernel.
> [    0.000000][    T0] CPU: 0 PID: 0 Comm:
> swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
> [    0.000000][    T0] Hardware name: Marvell
> Armada 380/385 (Device Tree)
> [    0.000000][    T0] [<c01153e8>]
> (unwind_backtrace) from [<c01100f8>]
> (show_stack+0x10/0x14)
> [    0.000000][    T0] [<c01100f8>] (show_stack)
> from [<c0b05d18>] (dump_stack+0x80/0x9c)
> [    0.000000][    T0] [<c0b05d18>] (dump_stack)
> from [<c0608fa4>] (Ldiv0+0x8/0x10)
> [    0.000000][    T0] [<c0608fa4>] (Ldiv0) from
> [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
> [    0.000000][    T0] [<c067c490>]
> (clk_cpu_recalc_rate) from [<c067735c>]
> (__clk_register+0x410/0x62c)
> [    0.000000][    T0] [<c067735c>]
> (__clk_register) from [<c1028d10>]
> (of_cpu_clk_setup+0x200/0x2c0)
> [    0.000000][    T0] [<c1028d10>]
> (of_cpu_clk_setup) from [<c10277f4>]
> (of_clk_init+0x17c/0x200)
> [    0.000000][    T0] [<c10277f4>] (of_clk_init)
> from [<c100449c>] (time_init+0x20/0x30)
> [    0.000000][    T0] [<c100449c>] (time_init)
> from [<c10010ec>] (start_kernel+0x59c/0x86c)
> [    0.000000][    T0] [<c10010ec>] (start_kernel)
> from [<00000000>] (0x0)
> [    0.000000][    T0] Switching to timer-based
> delay loop, resolution 40ns
> [    0.000000][    T0] sched_clock: 32 bits at
> 25MHz, resolution 40ns, wraps every 85899345900ns
> [    0.008488][    T0] clocksource:
> armada_370_xp_clocksource: mask: 0xffffffff
> max_cycles: 0xffffffff, max_idle_ns: 76450417870
> ns
> [    0.020541][    T0] Console: colour dummy
> device 80x30
> [    0.025682][    T0] Calibrating delay loop
> (skipped), value calculated using timer
> frequency.. 50.00 BogoMIPS (lpj=250000)
> [    0.036683][    T0] pid_max: default: 32768
> minimum: 301
> [    0.042096][    T0] LSM: Security Framework
> initializing
> [    0.047445][    T0] Mount-cache hash table
> entries: 2048 (order: 1, 8192 bytes, linear)
> [    0.055421][    T0] Mountpoint-cache hash table
> entries: 2048 (order: 1, 8192 bytes, linear)
> [    0.064406][    T0] CPU: Testing write buffer
> coherency: ok
> [    0.069970][    T0] CPU0: Spectre v2: using
> BPIALL workaround
> [    0.075828][    T1] CPU0: thread -1, cpu 0,
> socket 0, mpidr 80000000
> [    0.082628][    T1] Setting up static identity
> map for 0x100000 - 0x100060
> [    0.089713][    T1] mvebu-soc-id: MVEBU SoC
> ID=0x6820, Rev=0x4
> [    0.095649][    T1] mvebu-pmsu: Initializing
> Power Management Service Unit
> [    0.102594][    T1] rcu: Hierarchical SRCU
> implementation.
> [    0.108602][    T1] smp: Bringing up secondary
> CPUs ...
> [    0.114218][    T1] Booting CPU 1
> [    0.117667][    T0] CPU1: thread -1, cpu 1,
> socket 0, mpidr 80000001
> [    0.117677][    T0] CPU1: Spectre v2: using
> BPIALL workaround
> [    0.129808][    T1] smp: Brought up 1 node, 2
> CPUs
> [    0.134604][    T1] SMP: Total of 2 processors
> activated (100.00 BogoMIPS).
> [    0.141535][    T1] CPU: All CPU(s) started in
> SVC mode.
> [    0.147200][    T1] devtmpfs: initialized
> [    0.153745][    T1] VFP support v0.3:
> implementor 41 architecture 3 part 30 variant 9
> rev 4
> [    0.162232][   T24] wait_for_initramfs() called
> before rootfs_initcalls
> [    0.162374][    T1] clocksource: jiffies: mask:
> 0xffffffff max_cycles: 0xffffffff, max_idle_ns:
> 19112604462750000 ns
> [    0.179344][    T1] futex hash table entries:
> 512 (order: 3, 32768 bytes, linear)
> [    0.209127][    T1] prandom32: self test passed
> (less than 6 bits correlated)
> [    0.216254][    T1] prandom: seed boundary self
> test passed
> [    0.223367][    T1] prandom: 100 self tests
> passed
> [    0.228147][    T1] pinctrl core: initialized
> pinctrl subsystem
> [    0.235204][    T1] NET: Registered protocol
> family 16
> [    0.241024][    T1] DMA: preallocated 256 KiB
> pool for atomic coherent allocations
> [    0.249177][    T1] audit: initializing netlink
> subsys (disabled)
> [    0.255377][   T36] audit: type=2000
> audit(0.250:1): state=initialized audit_enabled=0
> res=1
> [    0.256566][    T1] thermal_sys: Registered
> thermal governor 'step_wise'
> [    0.264058][    T1] cpuidle: using governor
> ladder
> [    0.275545][    T1] cpuidle: using governor
> menu
> [    0.280280][    T1] hw-breakpoint: found 5 (+1
> reserved) breakpoint and 1 watchpoint registers.
> [    0.288966][    T1] hw-breakpoint: maximum
> watchpoint size is 4 bytes.
> [    0.502931][    T1] raid6: int32x8  gen()   243
> MB/s
> [    0.672511][    T1] raid6: int32x8  xor()   168
> MB/s
> [    0.842384][    T1] raid6: int32x4  gen()   280
> MB/s
> [    1.012199][    T1] raid6: int32x4  xor()   180
> MB/s
> [    1.181999][    T1] raid6: int32x2  gen()   447
> MB/s
> [    1.351808][    T1] raid6: int32x2  xor()   258
> MB/s
> [    1.521674][    T1] raid6: int32x1  gen()   497
> MB/s
> [    1.691462][    T1] raid6: int32x1  xor()   208
> MB/s
> [    1.696403][    T1] raid6: using algorithm
> int32x1 gen() 497 MB/s
> [    1.702475][    T1] raid6: .... xor() 208 MB/s,
> rmw enabled
> [    1.708020][    T1] raid6: using intx1 recovery
> algorithm
> [    1.714132][    T1] vgaarb: loaded
> [    1.718012][    T1] SCSI subsystem initialized
> [    1.723140][    T1] usbcore: registered new
> interface driver usbfs
> [    1.729372][    T1] usbcore: registered new
> interface driver hub
> [    1.735445][    T1] usbcore: registered new
> device driver usb
> [    1.741715][    T1] mc: Linux media interface:
> v0.10
> [    1.746730][    T1] videodev: Linux video
> capture interface: v2.00
> [    1.753187][    T1] pps_core: LinuxPPS API ver.
> 1 registered
> [    1.758823][    T1] pps_core: Software ver.
> 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
> <giometti@linux.it>
> [    1.768679][    T1] PTP clock support
> registered
> [    1.774857][    T1] clocksource: Switched to
> clocksource armada_370_xp_clocksource
> [    1.825169][    T1] VFS: Disk quotas
> dquot_6.6.0
> [    1.829830][    T1] VFS: Dquot-cache hash table
> entries: 1024 (order 0, 4096 bytes)
> [    1.850562][    T1] NET: Registered protocol
> family 2
> [    1.855791][    T1] IP idents hash table
> entries: 16384 (order: 5, 131072 bytes, linear)
> [    1.869614][    T1] tcp_listen_portaddr_hash
> hash table entries: 512 (order: 0, 6144 bytes,
> linear)
> [    1.878741][    T1] TCP established hash table
> entries: 8192 (order: 3, 32768 bytes, linear)
> [    1.887213][    T1] TCP bind hash table
> entries: 8192 (order: 4, 65536 bytes, linear)
> [    1.895326][    T1] TCP: Hash tables configured
> (established 8192 bind 8192)
> [    1.902481][    T1] MPTCP token hash table
> entries: 1024 (order: 2, 16384 bytes, linear)
> [    1.910596][    T1] UDP hash table entries: 512
> (order: 2, 16384 bytes, linear)
> [    1.917906][    T1] UDP-Lite hash table
> entries: 512 (order: 2, 16384 bytes, linear)
> [    1.925755][    T1] NET: Registered protocol
> family 1
> [    1.945044][    T1] RPC: Registered named UNIX
> socket transport module.
> [    1.951631][    T1] RPC: Registered udp
> transport module.
> [    1.957021][    T1] RPC: Registered tcp
> transport module.
> [    1.962394][    T1] RPC: Registered tcp NFSv4.1
> backchannel transport module.
> [    1.969505][    T1] PCI: CLS 0 bytes, default
> 64
> [    1.974217][    T1] NetWinder Floating Point
> Emulator V0.97 (double precision)
> [    1.974275][  T513] Trying to unpack rootfs
> image as initramfs...
> [    1.987543][    T1] hw perfevents: enabled with
> armv7_cortex_a9 PMU driver, 7 counters available
> [    2.385225][  T513] Freeing initrd memory:
> 9424K
> [    2.615029][    T1] Initialise system trusted
> keyrings
> [    2.620176][    T1] Key type blacklist
> registered
> [    2.625131][    T1] workingset:
> timestamp_bits=30 max_order=18 bucket_order=0
> [    2.632436][    T1] zbud: loaded
> [    2.636599][    T1] NFS: Registering the
> id_resolver key type
> [    2.642333][    T1] Key type id_resolver
> registered
> [    2.647211][    T1] Key type id_legacy
> registered
> [    2.651912][    T1] nfs4filelayout_init: NFSv4
> File Layout Driver Registering...
> [    2.659291][    T1] nfs4flexfilelayout_init:
> NFSv4 Flexfile Layout Driver Registering...
> [    2.667352][    T1] Installing knfsd (copyright
> (C) 1996 okir@monad.swb.de).
> [    2.733792][    T1] xor: measuring software
> checksum speed
> [    2.743812][    T1]    arm4regs        :  2174
> MB/sec
> [    2.754865][    T1]    8regs           :  1639
> MB/sec
> [    2.765570][    T1]    32regs          :  1734
> MB/sec
> [    2.770597][    T1] xor: using function:
> arm4regs (2174 MB/sec)
> [    2.776500][    T1] async_tx: api initialized
> (async)
> [    2.781529][    T1] Key type asymmetric
> registered
> [    2.786304][    T1] Asymmetric key parser
> 'x509' registered
> [    2.791935][    T1] bounce: pool size: 64
> pages
> [    2.796582][    T1] Block layer SCSI generic
> (bsg) driver version 0.4 loaded (major 244)
> [    2.804701][    T1] io scheduler bfq
> registered
> [    2.811038][    T1] armada-38x-pinctrl
> f1018000.pinctrl: registered pinctrl driver
> [    2.821246][    T1] mv_xor f1060800.xor:
> Marvell shared XOR driver
> [    2.885440][    T1] mv_xor f1060800.xor:
> Marvell XOR (Descriptor Mode): ( xor cpy intr )
> [    2.895156][    T1] mv_xor f1060900.xor:
> Marvell shared XOR driver
> [    2.955439][    T1] mv_xor f1060900.xor:
> Marvell XOR (Descriptor Mode): ( xor cpy intr )
> [    3.029003][    T1] Serial: 8250/16550 driver,
> 4 ports, IRQ sharing disabled
> [    3.038589][    T1] printk: console [ttyS0]
> disabled
> [    3.063799][    T1] f1012000.serial: ttyS0 at
> MMIO 0xf1012000 (irq = 29, base_baud = 15625000)
> is a 16550A
> [    3.073519][    T1] printk: console [ttyS0]
> enabled
> [    3.073519][    T1] printk: console [ttyS0]
> enabled
> [    3.083311][    T1] printk: bootconsole
> [earlycon0] disabled
> [    3.083311][    T1] printk: bootconsole
> [earlycon0] disabled
> [    3.096052][    T1] ahci-mvebu f10a8000.sata:
> supply ahci not found, using dummy regulator
> [    3.104522][    T1] ahci-mvebu f10a8000.sata:
> supply phy not found, using dummy regulator
> [    3.112811][    T1] ahci-mvebu f10a8000.sata:
> supply target not found, using dummy regulator
> [    3.121423][    T1] ahci-mvebu f10a8000.sata:
> AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl
> platform mode
> [    3.131214][    T1] ahci-mvebu f10a8000.sata:
> flags: 64bit ncq sntf led only pmp fbs pio slum
> part sxs
> [    3.141809][    T1] scsi host0: ahci-mvebu
> [    3.146457][    T1] scsi host1: ahci-mvebu
> [    3.150825][    T1] ata1: SATA max UDMA/133
> mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq
> 47
> [    3.159484][    T1] ata2: SATA max UDMA/133
> mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq
> 47
> [    3.169879][    T1] spi spi0.0: setup: ignoring
> unsupported mode bits a00
> [    3.176988][    T1] spi-nor spi0.0: mx25l6405d
> (8192 Kbytes)
> [    3.182700][    T1] 6 fixed-partitions
> partitions found on MTD device spi0.0
> [    3.189783][    T1] Creating 6 MTD partitions
> on "spi0.0":
> [    3.195293][    T1]
> 0x000000000000-0x000000100000 : "U-Boot"
> [    3.202105][    T1]
> 0x000000100000-0x000000110000 : "params"
> [    3.208854][    T1]
> 0x000000110000-0x000000120000 : "dts"
> [    3.215410][    T1]
> 0x000000120000-0x000000130000 : "MacAddr"
> [    3.222233][    T1]
> 0x000000130000-0x000000420000 : "kernel"
> [    3.228974][    T1]
> 0x000000420000-0x0000007a0000 : "rootfs"
> [    3.236239][    T1] wireguard: WireGuard 1.0.0
> loaded. See www.wireguard.com for information.
> [    3.244794][    T1] wireguard: Copyright (C)
> 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>.
> All Rights Reserved.
> [    3.256699][    T1] libphy: Fixed MDIO Bus:
> probed
> [    3.263371][    T1] libphy: orion_mdio_bus:
> probed
> [    3.286975][    T1] mvneta f1030000.ethernet
> eth0: Using random mac address 62:58:c1:96:67:69
> [    3.297437][    T1] mvneta f1034000.ethernet
> eth1: Using random mac address 46:8b:99:d8:26:49
> [    3.306425][    T1] ehci_hcd: USB 2.0
> 'Enhanced' Host Controller (EHCI) Driver
> [    3.313688][    T1] ehci-pci: EHCI PCI platform
> driver
> [    3.318956][    T1] ehci-orion: EHCI orion
> driver
> [    3.323819][    T1] orion-ehci f1058000.usb:
> EHCI Host Controller
> [    3.329964][    T1] orion-ehci f1058000.usb:
> new USB bus registered, assigned bus number 1
> [    3.338353][    T1] orion-ehci f1058000.usb:
> irq 45, io mem 0xf1058000
> [    3.384896][    T1] orion-ehci f1058000.usb:
> USB 2.0 started, EHCI 1.00
> [    3.391712][    T1] usb usb1: New USB device
> found, idVendor=1d6b, idProduct=0002, bcdDevice=
> 5.13
> [    3.400736][    T1] usb usb1: New USB device
> strings: Mfr=3, Product=2, SerialNumber=1
> [    3.408702][    T1] usb usb1: Product: EHCI
> Host Controller
> [    3.414310][    T1] usb usb1: Manufacturer:
> Linux 5.13.8-mvebu-tld-1 ehci_hcd
> [    3.421490][    T1] usb usb1: SerialNumber:
> f1058000.usb
> [    3.427377][    T1] hub 1-0:1.0: USB hub found
> [    3.431862][    T1] hub 1-0:1.0: 1 port
> detected
> [    3.437534][    T1] xhci-hcd f10f8000.usb3:
> xHCI Host Controller
> [    3.443604][    T1] xhci-hcd f10f8000.usb3: new
> USB bus registered, assigned bus number 2
> [    3.451923][    T1] xhci-hcd f10f8000.usb3: hcc
> params 0x0a000990 hci version 0x100 quirks
> 0x0000000000010010
> [    3.461942][    T1] xhci-hcd f10f8000.usb3: irq
> 50, io mem 0xf10f8000
> [    3.469442][    T1] usb usb2: New USB device
> found, idVendor=1d6b, idProduct=0002, bcdDevice=
> 5.13
> [    3.478464][    T1] usb usb2: New USB device
> strings: Mfr=3, Product=2, SerialNumber=1
> [    3.486432][    T1] usb usb2: Product: xHCI
> Host Controller
> [    3.492039][    T1] usb usb2: Manufacturer:
> Linux 5.13.8-mvebu-tld-1 xhci-hcd
> [    3.499221][ T1217] ata2: SATA link down
> (SStatus 0 SControl 300)
> [    3.505352][    T1] usb usb2: SerialNumber:
> f10f8000.usb3
> [    3.510975][ T1212] ata1: SATA link down
> (SStatus 0 SControl 300)
> [    3.511239][    T1] hub 2-0:1.0: USB hub found
> [    3.521609][    T1] hub 2-0:1.0: 1 port
> detected
> [    3.526506][    T1] xhci-hcd f10f8000.usb3:
> xHCI Host Controller
> [    3.532539][    T1] xhci-hcd f10f8000.usb3: new
> USB bus registered, assigned bus number 3
> [    3.540776][    T1] xhci-hcd f10f8000.usb3:
> Host supports USB 3.0 SuperSpeed
> [    3.547905][    T1] usb usb3: We don't know the
> algorithms for LPM for this host, disabling LPM.
> [    3.556890][    T1] usb usb3: New USB device
> found, idVendor=1d6b, idProduct=0003, bcdDevice=
> 5.13
> [    3.565889][    T1] usb usb3: New USB device
> strings: Mfr=3, Product=2, SerialNumber=1
> [    3.573830][    T1] usb usb3: Product: xHCI
> Host Controller
> [    3.579426][    T1] usb usb3: Manufacturer:
> Linux 5.13.8-mvebu-tld-1 xhci-hcd
> [    3.586587][    T1] usb usb3: SerialNumber:
> f10f8000.usb3
> [    3.592341][    T1] hub 3-0:1.0: USB hub found
> [    3.596842][    T1] hub 3-0:1.0: 1 port
> detected
> [    3.601842][    T1] usbcore: registered new
> interface driver usblp
> [    3.608123][    T1] usbcore: registered new
> interface driver usb-storage
> [    3.615094][    T1] mousedev: PS/2 mouse device
> common for all mice
> [    3.622463][    T1] armada38x-rtc f10a3800.rtc:
> registered as rtc0
> [    3.629348][    T1] i2c /dev entries driver
> [    3.635709][    T1] orion_wdt: Initial timeout
> 171 sec
> [    3.641328][    T1] device-mapper: uevent:
> version 1.0.3
> [    3.646847][    T1] device-mapper: ioctl:
> 4.45.0-ioctl (2021-03-22) initialised:
> dm-devel@redhat.com
> [    3.656210][    T1] device-mapper: multipath
> round-robin: version 1.2.0 loaded
> [    3.663456][    T1] device-mapper: multipath
> queue-length: version 0.2.0 loaded
> [    3.670810][    T1] device-mapper: multipath
> service-time: version 0.3.0 loaded
> [    3.678178][    T1] device-mapper:
> dm-log-userspace: version 1.3.0 loaded
> [    3.684993][    T1] device-mapper: raid:
> Loading target version 1.15.1
> [    3.692260][    T1] hid: raw HID events driver
> (C) Jiri Kosina
> [    3.698522][    T1] usbcore: registered new
> interface driver usbhid
> [    3.704811][    T1] usbhid: USB HID core
> driver
> [    3.709684][    T1] drop_monitor: Initializing
> network drop monitor service
> [    3.716988][    T1] NET: Registered protocol
> family 10
> [    3.722955][    T1] Segment Routing with IPv6
> [    3.727348][    T1] RPL Segment Routing with
> IPv6
> [    3.732119][    T1] sit: IPv6, IPv4 and MPLS
> over IPv4 tunneling driver
> [    3.739919][    T1] NET: Registered protocol
> family 17
> [    3.745223][    T1] 8021q: 802.1Q VLAN Support
> v1.8
> [    3.750151][    T1] Key type dns_resolver
> registered
> [    3.755256][    T1] ThumbEE CPU extension
> supported.
> [    3.760240][    T1] Registering SWP/SWPB
> emulation handler
> [    3.766118][    T1] registered taskstats
> version 1
> [    3.770931][    T1] Loading compiled-in X.509
> certificates
> [    3.776853][    T1] zswap: loaded using pool
> lzo/zbud
> [    3.782150][    T1] Key type ._fscrypt
> registered
> [    3.786889][    T1] Key type .fscrypt
> registered
> [    3.791520][    T1] Key type
> fscrypt-provisioning registered
> [    3.798345][    T1] Key type big_key
> registered
> [    3.816325][    T1] Key type encrypted
> registered
> [    3.825239][    T1] Freeing unused kernel
> memory: 1024K
> [    3.875398][    T1] Checked W+X mappings:
> passed, no W+X pages found
> [    3.881781][    T1] Run /init as init process
> Loading, please wait...
> Starting version 247.3-6
> Begin: Loading essential drivers ... done.
> Begin: Running /scripts/init-premount ... done.
> Begin: Mounting root file system ... Begin:
> Running /scripts/local-top ... done.
> Begin: Running /scripts/local-premount ... done.
> Begin: Waiting for root file system ... Begin:
> Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> Begin: Running /scripts/local-block ... done.
> ^Cdone.
> ^C^C^C^CGave up waiting for root file system
> device.  Common problems:
>  - Boot args (cat /proc/cmdline)
>    - Check rootdelay= (did the system wait long
> enough?)
>  - Missing modules (cat /proc/modules; ls /dev)
> ALERT!  LABEL=rootfs does not exist.  Dropping to
> a shell!
> 
> 
> BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in
> shell (ash)
> Enter 'help' for a list of built-in commands.
> 
>
> I create the rootfs on USB and insert it in the
> USB 2.0 port. It still stuck at 'LABEL=rootfs does
> not exist.'Also I noticed that the usb disk's led
> wasn' blinking.
>
> JayX

I have tried the method.I think there is no power on the USB port .

JayX
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: