Welcome! Log In Create A New Profile

Advanced

Unable to use LABEL for root fs on D-Link DNS-320 B1

Posted by TenCX 
Unable to use LABEL for root fs on D-Link DNS-320 B1
January 07, 2020 01:59PM
I've successfully got my D-Link DNS-320 B1 with stock u-boot to boot the latest (14 Dec 2019) Linux Kernel 5.4.2 Kirkwood package and Debian rootfs as per this post via an ext2 formatted USB stick.

When I add a SATA drive to the device it fails to load the rootfs from the USB when using the following settings:

bootargs=console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw
bootcmd=usb reset; ext2load usb 0:1 0xa00000 /boot/uImage; ext2load usb 0:1 0xf00000 /boot/uInitrd; bootm 0xa00000 0xf00000

This is the kernel panic:

[   12.591782][    T1] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -6
[   12.599821][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   12.608930][    T1] 1f00            1024 mtdblock0 
[   12.608935][    T1]  (driver?)
[   12.616886][    T1] 1f01            5120 mtdblock1 
[   12.616890][    T1]  (driver?)
[   12.624834][    T1] 1f02            5120 mtdblock2 
[   12.624837][    T1]  (driver?)
[   12.632735][    T1] 1f03          102400 mtdblock3 
[   12.632738][    T1]  (driver?)
[   12.640660][    T1] 1f04           10240 mtdblock4 
[   12.640663][    T1]  (driver?)
[   12.648582][    T1] 1f05            5120 mtdblock5 
[   12.648585][    T1]  (driver?)
[   12.656500][    T1] 1f06            2048 mtdblock6 
[   12.656504][    T1]  (driver?)
[   12.664422][    T1] 0800      3907018584 sda 
[   12.664427][    T1]  driver: sd
[   12.671891][    T1] 0810         1954176 sdb 
[   12.671895][    T1]  driver: sd
[   12.679383][    T1]   0811         1952768 sdb1 00046dc1-01
[   12.679386][    T1] 
[   12.687133][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[   12.696058][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.2-kirkwood-tld-1 #1.0
[   12.703854][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.710814][    T1] [<8010f5a8>] (unwind_backtrace) from [<8010b930>] (show_stack+0x10/0x14)
[   12.719227][    T1] [<8010b930>] (show_stack) from [<80119bb8>] (panic+0xfc/0x328)
[   12.726771][    T1] [<80119bb8>] (panic) from [<80e01550>] (mount_block_root+0x1f8/0x290)
[   12.734916][    T1] [<80e01550>] (mount_block_root) from [<80e016d8>] (mount_root+0xf0/0x130)
[   12.743409][    T1] [<80e016d8>] (mount_root) from [<80e01860>] (prepare_namespace+0x148/0x188)
[   12.752075][    T1] [<80e01860>] (prepare_namespace) from [<80e010d0>] (kernel_init_freeable+0x174/0)
[   12.761609][    T1] [<80e010d0>] (kernel_init_freeable) from [<809c036c>] (kernel_init+0x8/0x10c)
[   12.770456][    T1] [<809c036c>] (kernel_init) from [<801010e0>] (ret_from_fork+0x14/0x34)
[   12.778686][    T1] Exception stack(0x87883fb0 to 0x87883ff8)
[   12.784409][    T1] 3fa0:                                     00000000 00000000 00000000 00000000
[   12.793242][    T1] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   12.802078][    T1] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   12.809362][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-blo-

I removed the SATA drive, successfully booted and then labelled the ext2 partition with 'rootfs'.

root@debian:~# tune2fs -L rootfs /dev/sda1
tune2fs 1.44.5 (15-Dec-2018)
root@debian:~# blkid
/dev/sda1: LABEL="rootfs" UUID="f4814f03-f575-4a5b-85f4-6e06ade640ea" TYPE="ext2" PARTUUID="00046dc1-01"

and then tried to modify the bootargs to the following, but also get a kernel panic (even without the SATA disk connected).

bootargs=console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw

Full kernel log:

## Booting image at 00a00000 ...
   Image Name:   Linux-5.4.2-kirkwood-tld-1
   Created:      1970-01-01   0:04:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5103948 Bytes =  4.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00f00000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-01-07   1:58:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.2-kirkwood-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 89
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: D-Link DNS-320L
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] INITRD: 0x00f00000+0x00944000 overlaps in-use memory region - disabling initrd
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_usw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 114296K/131072K available (9216K kernel code, 897K rwdata, 3636K rodata,)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idls
[    0.000010][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000055][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000933][    T0] Console: colour dummy device 80x30
[    0.000988][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.3)
[    0.001020][    T0] pid_max: default: 32768 minimum: 301
[    0.001452][    T0] LSM: Security Framework initializing
[    0.001645][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001679][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001836][    T0] *** VALIDATE tmpfs ***
[    0.002819][    T0] *** VALIDATE proc ***
[    0.003136][    T0] *** VALIDATE cgroup1 ***
[    0.003164][    T0] *** VALIDATE cgroup2 ***
[    0.003292][    T0] CPU: Testing write buffer coherency: ok
[    0.005296][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005628][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.005957][    T1] rcu: Hierarchical SRCU implementation.
[    0.008874][    T1] devtmpfs: initialized
[    0.015926][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911s
[    0.015966][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.016268][    T1] xor: measuring software checksum speed
[    0.110134][    T1]    arm4regs  :   906.800 MB/sec
[    0.210082][    T1]    8regs     :   544.400 MB/sec
[    0.310082][    T1]    32regs    :   791.600 MB/sec
[    0.310103][    T1] xor: using function: arm4regs (906.800 MB/sec)
[    0.310129][    T1] prandom: seed boundary self test passed
[    0.315139][    T1] prandom: 100 self tests passed
[    0.315155][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316883][    T1] NET: Registered protocol family 16
[    0.317660][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318834][    T1] audit: initializing netlink subsys (disabled)
[    0.320517][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320650][    T1] cpuidle: using governor ladder
[    0.320737][    T1] cpuidle: using governor menu
[    0.321344][    T1] Feroceon L2: Enabling L2
[    0.321394][    T1] Feroceon L2: Cache support initialised.
[    0.328573][    T1] No ATAGs?
[    2.560063][    C0] random: fast init done
[    6.380919][    T1] raid6: int32x8  gen()    88 MB/s
[    6.550519][    T1] raid6: int32x8  xor()    55 MB/s
[    6.720592][    T1] raid6: int32x4  gen()    91 MB/s
[    6.890175][    T1] raid6: int32x4  xor()    58 MB/s
[    7.060084][    T1] raid6: int32x2  gen()   116 MB/s
[    7.230266][    T1] raid6: int32x2  xor()    79 MB/s
[    7.400645][    T1] raid6: int32x1  gen()    94 MB/s
[    7.570478][    T1] raid6: int32x1  xor()    58 MB/s
[    7.570491][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.570502][    T1] raid6: .... xor() 79 MB/s, rmw enabled
[    7.570512][    T1] raid6: using intx1 recovery algorithm
[    7.570809][    T1] vgaarb: loaded
[    7.571492][    T1] SCSI subsystem initialized
[    7.572074][    T1] usbcore: registered new interface driver usbfs
[    7.572150][    T1] usbcore: registered new interface driver hub
[    7.572250][    T1] usbcore: registered new device driver usb
[    7.572505][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.572519][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l>
[    7.572551][    T1] PTP clock support registered
[    7.574228][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.945792][    T1] *** VALIDATE bpf ***
[    8.946052][    T1] VFS: Disk quotas dquot_6.6.0
[    8.946152][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.946265][    T1] *** VALIDATE ramfs ***
[    8.957945][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    8.958277][    T1] NET: Registered protocol family 2
[    8.959273][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    8.959314][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959343][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959369][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    8.959518][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959551][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959818][    T1] NET: Registered protocol family 1
[    8.960623][    T1] RPC: Registered named UNIX socket transport module.
[    8.960639][    T1] RPC: Registered udp transport module.
[    8.960650][    T1] RPC: Registered tcp transport module.
[    8.960660][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.960677][    T1] PCI: CLS 0 bytes, default 32
[    8.961246][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.962618][    T1] Initialise system trusted keyrings
[    8.962676][    T1] Key type blacklist registered
[    8.962950][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    8.963087][    T1] zbud: loaded
[    8.964547][    T1] NFS: Registering the id_resolver key type
[    8.964586][    T1] Key type id_resolver registered
[    8.964598][    T1] Key type id_legacy registered
[    8.964623][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.964643][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.965156][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
[    8.965659][    T1] *** VALIDATE jffs2 ***
[    8.965679][    T1] fuse: init (API version 7.31)
[    8.965704][    T1] *** VALIDATE fuse ***
[    8.965720][    T1] *** VALIDATE fuse ***
[    8.966179][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.966431][    T1] orangefs_init: module version upstream loaded
[    8.966446][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.011660][    T1] async_tx: api initialized (async)
[    9.011686][    T1] Key type asymmetric registered
[    9.011698][    T1] Asymmetric key parser 'x509' registered
[    9.011766][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.013517][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.015328][    T1] mvebu-gpio f1010140.gpio: IRQ index 3 not found
[    9.016144][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.075459][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.078487][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.135446][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.138804][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.140319][    T1] printk: console [ttyS0] disabled
[    9.140426][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a A
[    9.921360][    T1] printk: console [ttyS0] enabled
[    9.927062][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a A
[    9.946435][    T1] loop: module loaded
[    9.950948][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.960518][    T1] scsi host0: sata_mv
[    9.965085][    T1] scsi host1: sata_mv
[    9.969212][    T1] ata1: SATA max UDMA/133 irq 33
[    9.973992][    T1] ata2: SATA max UDMA/133 irq 33
[    9.980149][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    9.987269][    T1] nand: Hynix H27U1G8F2BTR-BC
[    9.991781][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.000059][    T1] Scanning device for bad blocks
[   10.092114][    T1] Bad eraseblock 783 at 0x0000061e0000
[   10.124200][    T1] 7 fixed-partitions partitions found on MTD device orion_nand
[   10.131590][    T1] Creating 7 MTD partitions on "orion_nand":
[   10.137427][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.144778][    T1] 0x000000100000-0x000000600000 : "uImage"
[   10.152029][    T1] 0x000000600000-0x000000b00000 : "ramdisk"
[   10.159374][    T1] 0x000000b00000-0x000006f00000 : "image"
[   10.167040][    T1] 0x000006f00000-0x000007900000 : "mini firmware"
[   10.174931][    T1] 0x000007900000-0x000007e00000 : "config"
[   10.182171][    T1] 0x000007e00000-0x000008000000 : "my-dlink"
[   10.191071][    T1] libphy: Fixed MDIO Bus: probed
[   10.196903][    T1] libphy: orion_mdio_bus: probed
[   10.203179][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.212540][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:022
[   10.222206][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.229524][    T1] ehci-pci: EHCI PCI platform driver
[   10.234785][    T1] ehci-orion: EHCI orion driver
[   10.239694][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.245966][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.254597][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.284261][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.291293][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   10.300278][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.308209][  T118] ata1: SATA link down (SStatus 0 SControl F300)
[   10.314397][    T1] usb usb1: Product: EHCI Host Controller
[   10.319947][    T1] usb usb1: Manufacturer: Linux 5.4.2-kirkwood-tld-1 ehci_hcd
[   10.327317][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.333484][    T1] hub 1-0:1.0: USB hub found
[   10.338155][    T1] hub 1-0:1.0: 1 port detected
[   10.343613][    T1] usbcore: registered new interface driver usb-storage
[   10.350788][    T1] mousedev: PS/2 mouse device common for all mice
[   10.665935][  T120] ata2: SATA link down (SStatus 0 SControl F300)
[   10.704271][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   10.905260][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5151, bcdDevice= 1.26
[   10.914119][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.921964][   T15] usb 1-1: Product: Cruzer Micro
[   10.926764][   T15] usb 1-1: Manufacturer: SanDisk
[   10.931537][   T15] usb 1-1: SerialNumber: 20043515700598026046
[   10.938343][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   10.945652][   T15] scsi host2: usb-storage 1-1:1.0
[   10.952122][   T22] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
[   10.962805][    T7] sd 2:0:0:0: [sda] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   10.972664][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   10.978913][    T7] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPA
[   10.994036][    T7]  sda: sda1
[   11.000796][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   11.444264][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.450530][    T1] i2c /dev entries driver
[   11.455509][    T1] device-mapper: uevent: version 1.0.3
[   11.461129][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   11.470745][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.478019][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.485348][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.492695][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.499492][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.507769][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.514145][    T1] exFAT: Version 1.3.0
[   11.518207][    T1] drop_monitor: Initializing network drop monitor service
[   11.525496][    T1] NET: Registered protocol family 17
[   11.530901][    T1] Key type dns_resolver registered
[   11.536423][    T1] registered taskstats version 1
[   11.541197][    T1] Loading compiled-in X.509 certificates
[   11.546810][    T1] zswap: loaded using pool lzo/zbud
[   11.552115][    T1] Key type ._fscrypt registered
[   11.556836][    T1] Key type .fscrypt registered
[   11.581374][    T1] Key type big_key registered
[   11.589979][    T1] Key type encrypted registered
[   11.597737][    T1] hctosys: unable to open rtc device (rtc0)
[   11.603946][    T1] Waiting 1 sec before mounting root device...
[   12.644451][    T1] md: Waiting for all devices to be available before autodetect
[   12.651905][    T1] md: If you don't use raid, use raid=noautodetect
[   12.659170][    T1] md: Autodetecting RAID arrays.
[   12.663940][    T1] md: autorun ...
[   12.667489][    T1] md: ... autorun DONE.
[   12.671722][    T1] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.680447][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   12.689556][    T1] 1f00            1024 mtdblock0 
[   12.689560][    T1]  (driver?)
[   12.697516][    T1] 1f01            5120 mtdblock1 
[   12.697519][    T1]  (driver?)
[   12.705466][    T1] 1f02            5120 mtdblock2 
[   12.705470][    T1]  (driver?)
[   12.713366][    T1] 1f03          102400 mtdblock3 
[   12.713369][    T1]  (driver?)
[   12.721290][    T1] 1f04           10240 mtdblock4 
[   12.721294][    T1]  (driver?)
[   12.729213][    T1] 1f05            5120 mtdblock5 
[   12.729217][    T1]  (driver?)
[   12.737131][    T1] 1f06            2048 mtdblock6 
[   12.737134][    T1]  (driver?)
[   12.745054][    T1] 0800         1954176 sda 
[   12.745058][    T1]  driver: sd
[   12.752522][    T1]   0801         1952768 sda1 00046dc1-01
[   12.752525][    T1] 
[   12.760273][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.769199][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.2-kirkwood-tld-1 #1.0
[   12.776993][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.783954][    T1] [<8010f5a8>] (unwind_backtrace) from [<8010b930>] (show_stack+0x10/0x14)
[   12.792368][    T1] [<8010b930>] (show_stack) from [<80119bb8>] (panic+0xfc/0x328)
[   12.799911][    T1] [<80119bb8>] (panic) from [<80e01550>] (mount_block_root+0x1f8/0x290)
[   12.808057][    T1] [<80e01550>] (mount_block_root) from [<80e016d8>] (mount_root+0xf0/0x130)
[   12.816548][    T1] [<80e016d8>] (mount_root) from [<80e01860>] (prepare_namespace+0x148/0x188)
[   12.825215][    T1] [<80e01860>] (prepare_namespace) from [<80e010d0>] (kernel_init_freeable+0x174/0)
[   12.834751][    T1] [<80e010d0>] (kernel_init_freeable) from [<809c036c>] (kernel_init+0x8/0x10c)
[   12.843595][    T1] [<809c036c>] (kernel_init) from [<801010e0>] (ret_from_fork+0x14/0x34)
[   12.851818][    T1] Exception stack(0x87883fb0 to 0x87883ff8)
[   12.857540][    T1] 3fa0:                                     00000000 00000000 00000000 00000000
[   12.866373][    T1] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   12.875210][    T1] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   12.882493][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-blo-

I have also tried to use kwboot to load a newer u-boot image to see if that helps, but it gets to 98/99% and hangs.

I'm using an ubuntu vm with usb passthrough for my usb-serial cable, similar to Ironaxe's post. I also experience the same problem via ubuntu running directly on a laptop... Therefore I'm either stuck with stock u-boot or may need to try another method (RPi Zero?) to test a newer u-boot if necessary.

Hopefully this can be fixed by tweaking the stock U-Boot boot arguments, appreciate any suggestions.

Thanks.



Edited 3 time(s). Last edit at 01/07/2020 05:16PM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 07, 2020 05:36PM
For reference, here's a full printenv:

Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=2.66.66.201
serverip=2.66.66.32
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
bootargs_orig=root=/dev/ram=console=ttyS0,115200 :::DB88FXX81:egiga0:none
bootcmd_orig=nand=read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000
bootargs=console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw
bootcmd=usb reset; ext2load usb 0:1 0xa00000 /boot/uImage; ext2load usb 0:1 0xf00000 /boot/uInitrd; bootm 0xa00000 0xf00000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=1
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

and a full console output of a successful boot with root=dev/sda1, with no SATA disk attached:

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
...................................................................................................................................................................................................................
....
....................................................................................

5104012 bytes read
....
...................................................................................................................................................................................................................
...................................................................................................................................................................................................................
............................................................................................................................

9713936 bytes read
## Booting image at 00a00000 ...
   Image Name:   Linux-5.4.2-kirkwood-tld-1
   Created:      1970-01-01   0:04:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5103948 Bytes =  4.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00f00000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-01-07   1:58:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.2-kirkwood-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 PREEMPT Sat Dec 14 15:53:53 PST 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: D-Link DNS-320L
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] INITRD: 0x00f00000+0x00944000 overlaps in-use memory region - disabling initrd
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 114296K/131072K available (9216K kernel code, 897K rwdata, 3636K rodata, 1024K init, 296K bss, 16776K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000010][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000055][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000936][    T0] Console: colour dummy device 80x30
[    0.000992][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001023][    T0] pid_max: default: 32768 minimum: 301
[    0.001461][    T0] LSM: Security Framework initializing
[    0.001656][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001689][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001844][    T0] *** VALIDATE tmpfs ***
[    0.002835][    T0] *** VALIDATE proc ***
[    0.003148][    T0] *** VALIDATE cgroup1 ***
[    0.003176][    T0] *** VALIDATE cgroup2 ***
[    0.003304][    T0] CPU: Testing write buffer coherency: ok
[    0.005314][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005645][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.005974][    T1] rcu: Hierarchical SRCU implementation.
[    0.008880][    T1] devtmpfs: initialized
[    0.015991][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016031][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.016338][    T1] xor: measuring software checksum speed
[    0.110133][    T1]    arm4regs  :   906.800 MB/sec
[    0.210081][    T1]    8regs     :   544.400 MB/sec
[    0.310081][    T1]    32regs    :   791.600 MB/sec
[    0.310104][    T1] xor: using function: arm4regs (906.800 MB/sec)
[    0.310130][    T1] prandom: seed boundary self test passed
[    0.315140][    T1] prandom: 100 self tests passed
[    0.315154][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316878][    T1] NET: Registered protocol family 16
[    0.317657][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318835][    T1] audit: initializing netlink subsys (disabled)
[    0.320511][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320645][    T1] cpuidle: using governor ladder
[    0.320732][    T1] cpuidle: using governor menu
[    0.321343][    T1] Feroceon L2: Enabling L2
[    0.321393][    T1] Feroceon L2: Cache support initialised.
[    0.328576][    T1] No ATAGs?
[    2.560062][    C0] random: fast init done
[    6.380988][    T1] raid6: int32x8  gen()    88 MB/s
[    6.550550][    T1] raid6: int32x8  xor()    55 MB/s
[    6.720620][    T1] raid6: int32x4  gen()    91 MB/s
[    6.890146][    T1] raid6: int32x4  xor()    58 MB/s
[    7.060206][    T1] raid6: int32x2  gen()   116 MB/s
[    7.230276][    T1] raid6: int32x2  xor()    79 MB/s
[    7.400643][    T1] raid6: int32x1  gen()    94 MB/s
[    7.570484][    T1] raid6: int32x1  xor()    58 MB/s
[    7.570497][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.570507][    T1] raid6: .... xor() 79 MB/s, rmw enabled
[    7.570518][    T1] raid6: using intx1 recovery algorithm
[    7.570816][    T1] vgaarb: loaded
[    7.571495][    T1] SCSI subsystem initialized
[    7.572074][    T1] usbcore: registered new interface driver usbfs
[    7.572150][    T1] usbcore: registered new interface driver hub
[    7.572246][    T1] usbcore: registered new device driver usb
[    7.572502][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.572516][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.572549][    T1] PTP clock support registered
[    7.574231][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.945560][    T1] *** VALIDATE bpf ***
[    8.945818][    T1] VFS: Disk quotas dquot_6.6.0
[    8.945924][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.946037][    T1] *** VALIDATE ramfs ***
[    8.957744][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    8.958074][    T1] NET: Registered protocol family 2
[    8.959072][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    8.959112][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959147][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959172][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    8.959321][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959354][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959614][    T1] NET: Registered protocol family 1
[    8.960420][    T1] RPC: Registered named UNIX socket transport module.
[    8.960435][    T1] RPC: Registered udp transport module.
[    8.960445][    T1] RPC: Registered tcp transport module.
[    8.960456][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.960473][    T1] PCI: CLS 0 bytes, default 32
[    8.961043][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.962421][    T1] Initialise system trusted keyrings
[    8.962485][    T1] Key type blacklist registered
[    8.962731][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    8.962866][    T1] zbud: loaded
[    8.964335][    T1] NFS: Registering the id_resolver key type
[    8.964370][    T1] Key type id_resolver registered
[    8.964382][    T1] Key type id_legacy registered
[    8.964408][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.964428][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.964944][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
[    8.965440][    T1] *** VALIDATE jffs2 ***
[    8.965460][    T1] fuse: init (API version 7.31)
[    8.965488][    T1] *** VALIDATE fuse ***
[    8.965504][    T1] *** VALIDATE fuse ***
[    8.965964][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.966214][    T1] orangefs_init: module version upstream loaded
[    8.966229][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.010066][    T1] async_tx: api initialized (async)
[    9.010091][    T1] Key type asymmetric registered
[    9.010103][    T1] Asymmetric key parser 'x509' registered
[    9.010171][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.011934][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.013597][    T1] mvebu-gpio f1010140.gpio: IRQ index 3 not found
[    9.014554][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.075466][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.078567][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.135450][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.138800][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.140318][    T1] printk: console [ttyS0] disabled
[    9.140424][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[    9.921089][    T1] printk: console [ttyS0] enabled
[    9.926790][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A
[    9.946152][    T1] loop: module loaded
[    9.950664][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.960225][    T1] scsi host0: sata_mv
[    9.964802][    T1] scsi host1: sata_mv
[    9.968932][    T1] ata1: SATA max UDMA/133 irq 33
[    9.973703][    T1] ata2: SATA max UDMA/133 irq 33
[    9.979864][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    9.986980][    T1] nand: Hynix H27U1G8F2BTR-BC
[    9.991494][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.999772][    T1] Scanning device for bad blocks
[   10.091836][    T1] Bad eraseblock 783 at 0x0000061e0000
[   10.123919][    T1] 7 fixed-partitions partitions found on MTD device orion_nand
[   10.131311][    T1] Creating 7 MTD partitions on "orion_nand":
[   10.137145][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.144486][    T1] 0x000000100000-0x000000600000 : "uImage"
[   10.151747][    T1] 0x000000600000-0x000000b00000 : "ramdisk"
[   10.159117][    T1] 0x000000b00000-0x000006f00000 : "image"
[   10.166792][    T1] 0x000006f00000-0x000007900000 : "mini firmware"
[   10.174677][    T1] 0x000007900000-0x000007e00000 : "config"
[   10.181915][    T1] 0x000007e00000-0x000008000000 : "my-dlink"
[   10.190819][    T1] libphy: Fixed MDIO Bus: probed
[   10.196646][    T1] libphy: orion_mdio_bus: probed
[   10.202884][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.212250][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[   10.221921][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.229246][    T1] ehci-pci: EHCI PCI platform driver
[   10.234506][    T1] ehci-orion: EHCI orion driver
[   10.239417][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.245696][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.254336][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.284262][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.291301][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   10.300282][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.308215][  T118] ata1: SATA link down (SStatus 0 SControl F300)
[   10.314403][    T1] usb usb1: Product: EHCI Host Controller
[   10.319952][    T1] usb usb1: Manufacturer: Linux 5.4.2-kirkwood-tld-1 ehci_hcd
[   10.327315][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.333478][    T1] hub 1-0:1.0: USB hub found
[   10.338144][    T1] hub 1-0:1.0: 1 port detected
[   10.343597][    T1] usbcore: registered new interface driver usb-storage
[   10.350777][    T1] mousedev: PS/2 mouse device common for all mice
[   10.665929][  T120] ata2: SATA link down (SStatus 0 SControl F300)
[   10.704273][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   10.905221][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5151, bcdDevice= 1.26
[   10.914073][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.921918][   T15] usb 1-1: Product: Cruzer Micro
[   10.926718][   T15] usb 1-1: Manufacturer: SanDisk
[   10.931492][   T15] usb 1-1: SerialNumber: 20043515700598026046
[   10.938303][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   10.945614][   T15] scsi host2: usb-storage 1-1:1.0
[   10.952080][   T22] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
[   10.962766][    T7] sd 2:0:0:0: [sda] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   10.972624][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   10.978873][    T7] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.994437][    T7]  sda: sda1
[   11.001128][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   11.444267][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.450534][    T1] i2c /dev entries driver
[   11.455517][    T1] device-mapper: uevent: version 1.0.3
[   11.461141][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   11.470774][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.478051][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.485380][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.492726][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.499514][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.507779][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.514150][    T1] exFAT: Version 1.3.0
[   11.518211][    T1] drop_monitor: Initializing network drop monitor service
[   11.525503][    T1] NET: Registered protocol family 17
[   11.530903][    T1] Key type dns_resolver registered
[   11.536426][    T1] registered taskstats version 1
[   11.541203][    T1] Loading compiled-in X.509 certificates
[   11.546817][    T1] zswap: loaded using pool lzo/zbud
[   11.552121][    T1] Key type ._fscrypt registered
[   11.556842][    T1] Key type .fscrypt registered
[   11.581410][    T1] Key type big_key registered
[   11.590019][    T1] Key type encrypted registered
[   11.597783][    T1] hctosys: unable to open rtc device (rtc0)
[   11.603987][    T1] Waiting 1 sec before mounting root device...
[   12.644457][    T1] md: Waiting for all devices to be available before autodetect
[   12.651910][    T1] md: If you don't use raid, use raid=noautodetect
[   12.659174][    T1] md: Autodetecting RAID arrays.
[   12.663945][    T1] md: autorun ...
[   12.667491][    T1] md: ... autorun DONE.
[   12.690034][    T1] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[   12.697926][    T1] VFS: Mounted root (ext4 filesystem) on device 8:1.
[   12.715565][    T1] devtmpfs: mounted
[   12.722380][    T1] Freeing unused kernel memory: 1024K
[   12.728478][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.734862][    T1] Run /sbin/init as init process
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ... (warning).
[....] Starting hotplug events dispatcher: systemd-udevd. ok 
[....] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   15.605622][  T325] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   15.682834][  T321] systemd-udevd[321]: Using default interface naming scheme 'v240'.
done.
[....] Waiting for /dev to be fully populated...[   15.869596][  T321] systemd-udevd[321]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   16.250110][  T320] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   16.365408][  T320] watchdog: f1020300.watchdog-timer: falling back to default timeout (25)
[   16.463462][  T321] usbcore: registered new interface driver uas
[   16.502251][  T320] orion_wdt f1020300.watchdog-timer: IRQ index 1 not found
[   16.576289][  T320] orion_wdt: Initial timeout 25 sec
[   16.649161][  T342] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   16.858957][  T324] systemd-udevd[324]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.102667][  T341] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[....] Setting hostname to 'debian'...done.
[....] Activating swap:. ok 
[   19.511252][    C0] random: crng init done
[   19.629257][  T554] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -y -C0 /dev/sda1 
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 18066/122160 files, 198252/488192 blocks
. ok 
[   20.134663][  T580] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.. ok 
[....] Cleaning up temporary files...[....] Cleaning /tmp...done.
 /tmp. ok 
[....] Will now mount local filesystems:. ok 
[....] Will now activate swapfile swap:done.
[....] Checking minimum space in /tmp...done.
[....] Cleaning up temporary files.... ok 
[....] Starting Setting kernel variables: sysctl. ok 
[....] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   24.275171][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   24.285896][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   24.292683][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   24.303212][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Listening on LPF/eth0/00:50:43:00:02:02
Sending on   LPF/eth0/00:50:43:00:02:02
Sending on   Socket/fallback
DHCPREQUEST for 10.0.1.185 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.1.185 from 10.0.1.1
bound to 10.0.1.185 -- renewal in 35627 seconds.
[   25.551017][ T1134] NET: Registered protocol family 10
[   25.557926][ T1134] Segment Routing with IPv6
done.
[....] Starting RPC port mapper daemon: rpcbind. ok 
[....] Starting NFS common utilities: statd idmapd. ok 
[....] Cleaning up temporary files.... ok 
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1345 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1372 (klogd)
. ok 
[....] Starting system message bus: dbus. ok 
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. ok 
[....] Starting NFS common utilities: statd idmapd. ok 
[....] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting NTP server: ntpd. ok 
[....] Starting OpenBSD Secure Shell server: sshd. ok 
[....] Running local boot scripts (/etc/rc.local). ok 

Debian GNU/Linux 10 debian ttyS0

debian login: 
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 07, 2020 11:42PM
TenCX,

Please post the full serial console boot log for the USB rootfs with label, no SATA, with envs adjustment.

Basically, I need to see the failure case boot log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 01:43AM
bodhi,

Thanks for your reply. Heres the full log:

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw'
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=2.66.66.201
serverip=2.66.66.32
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
bootargs_orig=root=/dev/ram=console=ttyS0,115200 :::DB88FXX81:egiga0:none
bootcmd_orig=nand=read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000
bootcmd=usb reset; ext2load usb 0:1 0xa00000 /boot/uImage; ext2load usb 0:1 0xf00000 /boot/uInitrd; bootm 0xa00000 0xf00000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=1
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
bootargs=console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw

Environment size: 1493/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
...................................................................................................................................................................................................................
....
....................................................................................

5104012 bytes read
....
...................................................................................................................................................................................................................
...................................................................................................................................................................................................................
............................................................................................................................

9713936 bytes read
## Booting image at 00a00000 ...
   Image Name:   Linux-5.4.2-kirkwood-tld-1
   Created:      1970-01-01   0:04:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5103948 Bytes =  4.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00f00000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-01-07   1:58:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.2-kirkwood-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 PREEMPT Sat Dec 14 15:53:53 PST 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: D-Link DNS-320L
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] INITRD: 0x00f00000+0x00944000 overlaps in-use memory region - disabling initrd
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 114296K/131072K available (9216K kernel code, 897K rwdata, 3636K rodata, 1024K init, 296K bss, 16776K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000010][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000055][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.000933][    T0] Console: colour dummy device 80x30
[    0.000988][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001020][    T0] pid_max: default: 32768 minimum: 301
[    0.001452][    T0] LSM: Security Framework initializing
[    0.001645][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001679][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001836][    T0] *** VALIDATE tmpfs ***
[    0.002819][    T0] *** VALIDATE proc ***
[    0.003136][    T0] *** VALIDATE cgroup1 ***
[    0.003164][    T0] *** VALIDATE cgroup2 ***
[    0.003292][    T0] CPU: Testing write buffer coherency: ok
[    0.005301][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005633][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.005963][    T1] rcu: Hierarchical SRCU implementation.
[    0.008875][    T1] devtmpfs: initialized
[    0.015915][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015957][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.016260][    T1] xor: measuring software checksum speed
[    0.110131][    T1]    arm4regs  :   907.200 MB/sec
[    0.210083][    T1]    8regs     :   544.400 MB/sec
[    0.310084][    T1]    32regs    :   791.600 MB/sec
[    0.310106][    T1] xor: using function: arm4regs (907.200 MB/sec)
[    0.310131][    T1] prandom: seed boundary self test passed
[    0.315140][    T1] prandom: 100 self tests passed
[    0.315154][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316872][    T1] NET: Registered protocol family 16
[    0.317649][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318822][    T1] audit: initializing netlink subsys (disabled)
[    0.320492][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320628][    T1] cpuidle: using governor ladder
[    0.320715][    T1] cpuidle: using governor menu
[    0.321325][    T1] Feroceon L2: Enabling L2
[    0.321376][    T1] Feroceon L2: Cache support initialised.
[    0.328555][    T1] No ATAGs?
[    2.560064][    C0] random: fast init done
[    6.380901][    T1] raid6: int32x8  gen()    88 MB/s
[    6.550515][    T1] raid6: int32x8  xor()    55 MB/s
[    6.720586][    T1] raid6: int32x4  gen()    91 MB/s
[    6.890174][    T1] raid6: int32x4  xor()    58 MB/s
[    7.060549][    T1] raid6: int32x2  gen()   116 MB/s
[    7.230283][    T1] raid6: int32x2  xor()    79 MB/s
[    7.400645][    T1] raid6: int32x1  gen()    94 MB/s
[    7.570479][    T1] raid6: int32x1  xor()    58 MB/s
[    7.570492][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.570503][    T1] raid6: .... xor() 79 MB/s, rmw enabled
[    7.570513][    T1] raid6: using intx1 recovery algorithm
[    7.570807][    T1] vgaarb: loaded
[    7.571486][    T1] SCSI subsystem initialized
[    7.572070][    T1] usbcore: registered new interface driver usbfs
[    7.572146][    T1] usbcore: registered new interface driver hub
[    7.572245][    T1] usbcore: registered new device driver usb
[    7.572502][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.572516][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.572548][    T1] PTP clock support registered
[    7.574227][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.945668][    T1] *** VALIDATE bpf ***
[    8.945925][    T1] VFS: Disk quotas dquot_6.6.0
[    8.946024][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.946138][    T1] *** VALIDATE ramfs ***
[    8.957837][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    8.958170][    T1] NET: Registered protocol family 2
[    8.959163][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    8.959202][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959232][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    8.959257][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    8.959406][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959440][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.959707][    T1] NET: Registered protocol family 1
[    8.960508][    T1] RPC: Registered named UNIX socket transport module.
[    8.960524][    T1] RPC: Registered udp transport module.
[    8.960535][    T1] RPC: Registered tcp transport module.
[    8.960545][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.960562][    T1] PCI: CLS 0 bytes, default 32
[    8.961132][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.962498][    T1] Initialise system trusted keyrings
[    8.962559][    T1] Key type blacklist registered
[    8.962809][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    8.962944][    T1] zbud: loaded
[    8.964414][    T1] NFS: Registering the id_resolver key type
[    8.964449][    T1] Key type id_resolver registered
[    8.964462][    T1] Key type id_legacy registered
[    8.964487][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.964508][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.965025][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
[    8.965527][    T1] *** VALIDATE jffs2 ***
[    8.965547][    T1] fuse: init (API version 7.31)
[    8.965571][    T1] *** VALIDATE fuse ***
[    8.965586][    T1] *** VALIDATE fuse ***
[    8.966040][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.966292][    T1] orangefs_init: module version upstream loaded
[    8.966307][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.010374][    T1] async_tx: api initialized (async)
[    9.010400][    T1] Key type asymmetric registered
[    9.010412][    T1] Asymmetric key parser 'x509' registered
[    9.010479][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.012224][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.013894][    T1] mvebu-gpio f1010140.gpio: IRQ index 3 not found
[    9.014855][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.075463][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.078485][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.135441][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.138790][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.140304][    T1] printk: console [ttyS0] disabled
[    9.140410][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[    9.921356][    T1] printk: console [ttyS0] enabled
[    9.927057][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A
[    9.946451][    T1] loop: module loaded
[    9.950961][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.960526][    T1] scsi host0: sata_mv
[    9.965096][    T1] scsi host1: sata_mv
[    9.969226][    T1] ata1: SATA max UDMA/133 irq 33
[    9.974006][    T1] ata2: SATA max UDMA/133 irq 33
[    9.980165][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    9.987284][    T1] nand: Hynix H27U1G8F2BTR-BC
[    9.991796][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.000074][    T1] Scanning device for bad blocks
[   10.092158][    T1] Bad eraseblock 783 at 0x0000061e0000
[   10.124269][    T1] 7 fixed-partitions partitions found on MTD device orion_nand
[   10.131632][    T1] Creating 7 MTD partitions on "orion_nand":
[   10.137467][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.144822][    T1] 0x000000100000-0x000000600000 : "uImage"
[   10.152066][    T1] 0x000000600000-0x000000b00000 : "ramdisk"
[   10.159426][    T1] 0x000000b00000-0x000006f00000 : "image"
[   10.167091][    T1] 0x000006f00000-0x000007900000 : "mini firmware"
[   10.174991][    T1] 0x000007900000-0x000007e00000 : "config"
[   10.182221][    T1] 0x000007e00000-0x000008000000 : "my-dlink"
[   10.191118][    T1] libphy: Fixed MDIO Bus: probed
[   10.196960][    T1] libphy: orion_mdio_bus: probed
[   10.203208][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.212566][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[   10.222235][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.229556][    T1] ehci-pci: EHCI PCI platform driver
[   10.234816][    T1] ehci-orion: EHCI orion driver
[   10.239727][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.246006][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.254643][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.284260][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.291298][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   10.300276][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.308206][  T118] ata1: SATA link down (SStatus 0 SControl F300)
[   10.314396][    T1] usb usb1: Product: EHCI Host Controller
[   10.319953][    T1] usb usb1: Manufacturer: Linux 5.4.2-kirkwood-tld-1 ehci_hcd
[   10.327323][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.333484][    T1] hub 1-0:1.0: USB hub found
[   10.338152][    T1] hub 1-0:1.0: 1 port detected
[   10.343605][    T1] usbcore: registered new interface driver usb-storage
[   10.350786][    T1] mousedev: PS/2 mouse device common for all mice
[   10.665928][  T120] ata2: SATA link down (SStatus 0 SControl F300)
[   10.704269][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   10.905279][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5151, bcdDevice= 1.26
[   10.914133][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.921979][   T15] usb 1-1: Product: Cruzer Micro
[   10.926780][   T15] usb 1-1: Manufacturer: SanDisk
[   10.931552][   T15] usb 1-1: SerialNumber: 20043515700598026046
[   10.938362][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   10.945664][   T15] scsi host2: usb-storage 1-1:1.0
[   10.952138][   T22] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
[   10.962825][    T7] sd 2:0:0:0: [sda] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   10.972683][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   10.978932][    T7] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.994484][    T7]  sda: sda1
[   11.001065][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   11.444263][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.450536][    T1] i2c /dev entries driver
[   11.455518][    T1] device-mapper: uevent: version 1.0.3
[   11.461137][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   11.470762][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.478042][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.485373][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.492717][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.499506][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.507789][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.514162][    T1] exFAT: Version 1.3.0
[   11.518230][    T1] drop_monitor: Initializing network drop monitor service
[   11.525516][    T1] NET: Registered protocol family 17
[   11.530917][    T1] Key type dns_resolver registered
[   11.536439][    T1] registered taskstats version 1
[   11.541212][    T1] Loading compiled-in X.509 certificates
[   11.546826][    T1] zswap: loaded using pool lzo/zbud
[   11.552127][    T1] Key type ._fscrypt registered
[   11.556851][    T1] Key type .fscrypt registered
[   11.581453][    T1] Key type big_key registered
[   11.590035][    T1] Key type encrypted registered
[   11.597778][    T1] hctosys: unable to open rtc device (rtc0)
[   11.603983][    T1] Waiting 1 sec before mounting root device...
[   12.644449][    T1] md: Waiting for all devices to be available before autodetect
[   12.651902][    T1] md: If you don't use raid, use raid=noautodetect
[   12.659169][    T1] md: Autodetecting RAID arrays.
[   12.663945][    T1] md: autorun ...
[   12.667494][    T1] md: ... autorun DONE.
[   12.671728][    T1] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.680457][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   12.689562][    T1] 1f00            1024 mtdblock0 
[   12.689566][    T1]  (driver?)
[   12.697521][    T1] 1f01            5120 mtdblock1 
[   12.697525][    T1]  (driver?)
[   12.705472][    T1] 1f02            5120 mtdblock2 
[   12.705476][    T1]  (driver?)
[   12.713372][    T1] 1f03          102400 mtdblock3 
[   12.713375][    T1]  (driver?)
[   12.721297][    T1] 1f04           10240 mtdblock4 
[   12.721300][    T1]  (driver?)
[   12.729219][    T1] 1f05            5120 mtdblock5 
[   12.729222][    T1]  (driver?)
[   12.737137][    T1] 1f06            2048 mtdblock6 
[   12.737140][    T1]  (driver?)
[   12.745059][    T1] 0800         1954176 sda 
[   12.745063][    T1]  driver: sd
[   12.752527][    T1]   0801         1952768 sda1 00046dc1-01
[   12.752530][    T1] 
[   12.760280][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.769205][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.2-kirkwood-tld-1 #1.0
[   12.776999][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.783960][    T1] [<8010f5a8>] (unwind_backtrace) from [<8010b930>] (show_stack+0x10/0x14)
[   12.792373][    T1] [<8010b930>] (show_stack) from [<80119bb8>] (panic+0xfc/0x328)
[   12.799917][    T1] [<80119bb8>] (panic) from [<80e01550>] (mount_block_root+0x1f8/0x290)
[   12.808061][    T1] [<80e01550>] (mount_block_root) from [<80e016d8>] (mount_root+0xf0/0x130)
[   12.816554][    T1] [<80e016d8>] (mount_root) from [<80e01860>] (prepare_namespace+0x148/0x188)
[   12.825221][    T1] [<80e01860>] (prepare_namespace) from [<80e010d0>] (kernel_init_freeable+0x174/0x1d8)
[   12.834756][    T1] [<80e010d0>] (kernel_init_freeable) from [<809c036c>] (kernel_init+0x8/0x10c)
[   12.843602][    T1] [<809c036c>] (kernel_init) from [<801010e0>] (ret_from_fork+0x14/0x34)
[   12.851824][    T1] Exception stack(0x87883fb0 to 0x87883ff8)
[   12.857547][    T1] 3fa0:                                     00000000 00000000 00000000 00000000
[   12.866378][    T1] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   12.875215][    T1] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   12.882499][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 01:50AM
TenCX,

Apparently the load addresses are not good.

[    0.000000][    T0] INITRD: 0x00f00000+0x00944000 overlaps in-use memory region - disabling initrd

So initrd was never loaded. That was the reason for the kernel not being able to mount the rootfs with label (sda1 worked because it was an explicit root device).

Let me modify the envs for you to try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 02:02AM
In serial console, with what you already have, enter these 2 modified envs:

setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv bootcmd 'usb reset; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd; bootm 0x800000 0x2100000'

and then try booting

boot

Explanation:

I also modified the bootargs above, because with a modern kernel, the old settings that you had were not needed. Also use earlyprintk because you have serial console, that will be very useful for future troubleshooting and it does not effect the boot process even without serial console attached.

The load addresses in the bootcmd above are better (the old addresses only work for that stock kernel version).

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



Edited 1 time(s). Last edit at 01/08/2020 02:04AM by bodhi.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 02:03PM
Thanks. This certainly seems to have loaded initrd, but fails to boot properly...

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv bootcmd 'usb reset; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd; bootm 0x800000 0x2100000'
Marvell>> 
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=2.66.66.201
serverip=2.66.66.32
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
bootargs_orig=root=/dev/ram=console=ttyS0,115200 :::DB88FXX81:egiga0:none
bootcmd_orig=nand=read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=1
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
bootcmd=usb reset; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd; bootm 0x800000 0x2100000

Environment size: 1488/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
....................................................................................

5104012 bytes read
....
.........................................................................................................................................................................................................................................................................................................................................................................................................................
.........................................................................................................................................................................................................................................................................................................................................................................................................................
............................................................................................................................

9713936 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.4.2-kirkwood-tld-1
   Created:      1970-01-01   0:04:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5103948 Bytes =  4.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-01-07   1:58:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.2-kirkwood-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 PREEMPT Sat Dec 14 15:53:53 PST 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: D-Link DNS-320L
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 104808K/131072K available (9216K kernel code, 897K rwdata, 3636K rodata, 1024K init, 296K bss, 26264K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.008533][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.015984][    T0] Console: colour dummy device 80x30
[    0.021195][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.032419][    T0] pid_max: default: 32768 minimum: 301
[    0.038137][    T0] LSM: Security Framework initializing
[    0.043663][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051697][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.060288][    T0] *** VALIDATE tmpfs ***
[    0.065348][    T0] *** VALIDATE proc ***
[    0.069687][    T0] *** VALIDATE cgroup1 ***
[    0.073950][    T0] *** VALIDATE cgroup2 ***
[    0.078310][    T0] CPU: Testing write buffer coherency: ok
[    0.085911][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.093170][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.099320][    T1] rcu: Hierarchical SRCU implementation.
[    0.107671][    T1] devtmpfs: initialized
[    0.118724][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.129305][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137102][    T1] xor: measuring software checksum speed
[    0.238560][    T1]    arm4regs  :   906.800 MB/sec
[    0.338559][    T1]    8regs     :   544.400 MB/sec
[    0.438561][    T1]    32regs    :   791.600 MB/sec
[    0.443428][    T1] xor: using function: arm4regs (906.800 MB/sec)
[    0.449634][    T1] prandom: seed boundary self test passed
[    0.460219][    T1] prandom: 100 self tests passed
[    0.464993][    T1] pinctrl core: initialized pinctrl subsystem
[    0.472640][    T1] NET: Registered protocol family 16
[    0.478493][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.487250][    T1] audit: initializing netlink subsys (disabled)
[    0.494958][   T14] audit: type=2000 audit(0.480:1): state=initialized audit_enabled=0 res=1
[    0.503529][    T1] cpuidle: using governor ladder
[    0.508392][    T1] cpuidle: using governor menu
[    0.513641][    T1] Feroceon L2: Enabling L2
[    0.517929][    T1] Feroceon L2: Cache support initialised.
[    0.530734][    T1] No ATAGs?
[    2.568541][    C0] random: fast init done
[    6.589320][    T1] raid6: int32x8  gen()    88 MB/s
[    6.759036][    T1] raid6: int32x8  xor()    55 MB/s
[    6.929062][    T1] raid6: int32x4  gen()    91 MB/s
[    7.098658][    T1] raid6: int32x4  xor()    58 MB/s
[    7.268904][    T1] raid6: int32x2  gen()   116 MB/s
[    7.438752][    T1] raid6: int32x2  xor()    79 MB/s
[    7.609122][    T1] raid6: int32x1  gen()    94 MB/s
[    7.778961][    T1] raid6: int32x1  xor()    58 MB/s
[    7.783907][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.789990][    T1] raid6: .... xor() 79 MB/s, rmw enabled
[    7.795449][    T1] raid6: using intx1 recovery algorithm
[    7.801126][    T1] vgaarb: loaded
[    7.805171][    T1] SCSI subsystem initialized
[    7.810201][    T1] usbcore: registered new interface driver usbfs
[    7.816421][    T1] usbcore: registered new interface driver hub
[    7.822537][    T1] usbcore: registered new device driver usb
[    7.828498][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.834156][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.843980][    T1] PTP clock support registered
[    7.850229][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.228412][    T1] *** VALIDATE bpf ***
[    9.232611][    T1] VFS: Disk quotas dquot_6.6.0
[    9.237296][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.245053][    T1] *** VALIDATE ramfs ***
[    9.260832][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    9.261165][    T1] NET: Registered protocol family 2
[    9.273893][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.283001][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.291391][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.299110][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    9.306322][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.313564][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.321468][    T1] NET: Registered protocol family 1
[    9.327287][    T1] RPC: Registered named UNIX socket transport module.
[    9.333962][    T1] RPC: Registered udp transport module.
[    9.339340][    T1] RPC: Registered tcp transport module.
[    9.344740][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.351870][    T1] PCI: CLS 0 bytes, default 32
[    9.356829][    T1] Trying to unpack rootfs image as initramfs...
[   10.371785][    T1] Freeing initrd memory: 9488K
[   10.376571][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.385311][    T1] Initialise system trusted keyrings
[   10.390570][    T1] Key type blacklist registered
[   10.395526][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.402814][    T1] zbud: loaded
[   10.407424][    T1] NFS: Registering the id_resolver key type
[   10.413265][    T1] Key type id_resolver registered
[   10.418122][    T1] Key type id_legacy registered
[   10.422879][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.430278][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.437798][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.446038][    T1] *** VALIDATE jffs2 ***
[   10.450122][    T1] fuse: init (API version 7.31)
[   10.454853][    T1] *** VALIDATE fuse ***
[   10.458847][    T1] *** VALIDATE fuse ***
[   10.463276][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.470653][    T1] orangefs_init: module version upstream loaded
[   10.476720][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   10.544902][    T1] async_tx: api initialized (async)
[   10.549947][    T1] Key type asymmetric registered
[   10.554839][    T1] Asymmetric key parser 'x509' registered
[   10.560517][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.570521][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.580122][    T1] mvebu-gpio f1010140.gpio: IRQ index 3 not found
[   10.587240][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.651451][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.662444][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.731444][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.742753][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.751323][    T1] printk: console [ttyS0] disabled
[   10.756357][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[   10.766099][    T1] printk: console [ttyS0] enabled
[   10.766099][    T1] printk: console [ttyS0] enabled
[   10.775861][    T1] printk: bootconsole [earlycon0] disabled
[   10.775861][    T1] printk: bootconsole [earlycon0] disabled
[   10.788001][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A
[   10.807278][    T1] loop: module loaded
[   10.811892][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.821398][    T1] scsi host0: sata_mv
[   10.825903][    T1] scsi host1: sata_mv
[   10.830028][    T1] ata1: SATA max UDMA/133 irq 33
[   10.834871][    T1] ata2: SATA max UDMA/133 irq 33
[   10.841043][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[   10.848067][    T1] nand: Hynix H27U1G8F2BTR-BC
[   10.852672][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.860955][    T1] Scanning device for bad blocks
[   10.952910][    T1] Bad eraseblock 783 at 0x0000061e0000
[   10.984974][    T1] 7 fixed-partitions partitions found on MTD device orion_nand
[   10.992362][    T1] Creating 7 MTD partitions on "orion_nand":
[   10.998177][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   11.005511][    T1] 0x000000100000-0x000000600000 : "uImage"
[   11.012805][    T1] 0x000000600000-0x000000b00000 : "ramdisk"
[   11.020114][    T1] 0x000000b00000-0x000006f00000 : "image"
[   11.027773][    T1] 0x000006f00000-0x000007900000 : "mini firmware"
[   11.035654][    T1] 0x000007900000-0x000007e00000 : "config"
[   11.042943][    T1] 0x000007e00000-0x000008000000 : "my-dlink"
[   11.051859][    T1] libphy: Fixed MDIO Bus: probed
[   11.057597][    T1] libphy: orion_mdio_bus: probed
[   11.078632][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.088267][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[   11.097903][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.105265][    T1] ehci-pci: EHCI PCI platform driver
[   11.110530][    T1] ehci-orion: EHCI orion driver
[   11.115447][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.121724][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   11.130331][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   11.160261][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   11.167302][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   11.176285][  T118] ata1: SATA link down (SStatus 0 SControl F300)
[   11.182474][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.190449][    T1] usb usb1: Product: EHCI Host Controller
[   11.196005][    T1] usb usb1: Manufacturer: Linux 5.4.2-kirkwood-tld-1 ehci_hcd
[   11.203441][    T1] usb usb1: SerialNumber: f1050000.ehci
[   11.209626][    T1] hub 1-0:1.0: USB hub found
[   11.214172][    T1] hub 1-0:1.0: 1 port detected
[   11.219600][    T1] usbcore: registered new interface driver usb-storage
[   11.226776][    T1] mousedev: PS/2 mouse device common for all mice
[   11.531922][  T120] ata2: SATA link down (SStatus 0 SControl F300)
[   11.580272][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.781217][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5151, bcdDevice= 1.26
[   11.790072][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.797917][   T15] usb 1-1: Product: Cruzer Micro
[   11.802710][   T15] usb 1-1: Manufacturer: SanDisk
[   11.807483][   T15] usb 1-1: SerialNumber: 20043515700598026046
[   11.814299][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.821604][   T15] scsi host2: usb-storage 1-1:1.0
[   12.250281][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   12.256565][    T1] i2c /dev entries driver
[   12.261650][    T1] device-mapper: uevent: version 1.0.3
[   12.267268][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   12.276901][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.284180][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.291510][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.298864][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.305660][    T1] device-mapper: raid: Loading target version 1.14.0
[   12.313913][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   12.320366][    T1] exFAT: Version 1.3.0
[   12.324370][    T1] drop_monitor: Initializing network drop monitor service
[   12.331651][    T1] NET: Registered protocol family 17
[   12.337057][    T1] Key type dns_resolver registered
[   12.342553][    T1] registered taskstats version 1
[   12.347324][    T1] Loading compiled-in X.509 certificates
[   12.352925][    T1] zswap: loaded using pool lzo/zbud
[   12.358219][    T1] Key type ._fscrypt registered
[   12.362937][    T1] Key type .fscrypt registered
[   12.475664][    T1] Key type big_key registered
[   12.528102][    T1] Key type encrypted registered
[   12.535964][    T1] hctosys: unable to open rtc device (rtc0)
[   12.545269][    T1] Freeing unused kernel memory: 1024K
[   12.571107][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.577441][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   12.891469][   T22] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
[   12.916150][    T7] sd 2:0:0:0: [sda] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   12.935036][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   12.948787][    T7] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   12.986272][    T7]  sda: sda1
[   13.003905][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
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: Will now check root file system ... fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
mount: mounting /dev/sda1 on /root failed: No such device
Failed to mount /dev/sda1 as root file system.


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

(initramfs)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 08:18PM
So I checked what would happen with the new bootcmd (with the new load addresses) but the previous bootargs (with root=/dev/sda1) and this failed too.

Given the earlier error was:

fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1

I decided to try fsck.ext2 /dev/sda1 manually at the initramfs prompt:

(initramfs) fsck.ext2 /dev/sda1
sh: fsck.ext2: not found

OK, that didn't work, so I just tried fsck:

(initramfs) fsck /dev/sda1
fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1

Same error as the kernel. I originally thought it couldn't find /dev/sda1... but then it clicked...

(initramfs) fs[TAB-autocomplete]
fsck       fsck.ext3  fsfreeze   fstrim     fstype

Duh! No fsck.ext2 command in the initrd environment! I obviously wasn't paying close enough attention to the rootfs instructions (from the 25 Aug 2019 section) to:

Quote
bodhi
1. Format a new USB drive with a single Ext3 partition

So I put my USB stick into my Ubuntu machine, and converted my ext2 partition to ext3 :)

# tune2fs -j /dev/sdb1
tune2fs 1.45.3 (14-Jul-2019)
Creating journal inode: done
#

Tried booting again with the USB stick, still with the previous bootargs (with root=/dev/sda1) and it booted sucessfully into Debian.

Then I tried setting the new bootargs (with root=LABEL=rootfs) and added the SATA drive... and... bingo... it also successfully boots!

Full console for reference:

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset


 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  1 

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.....................................................................................................................................................................................
....
....................................................................................

5104012 bytes read
....
.....................................................................................................................................................................................
.....................................................................................................................................................................................
............................................................................................................................

9713936 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.4.2-kirkwood-tld-1
   Created:      1970-01-01   0:04:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5103948 Bytes =  4.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2020-01-07   1:58:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.2-kirkwood-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 PREEMPT Sat Dec 14 15:53:53 PST 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: D-Link DNS-320L
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 104808K/131072K available (9216K kernel code, 897K rwdata, 3636K rodata, 1024K init, 296K bss, 26264K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x46c/0x808 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000011][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.008533][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.015985][    T0] Console: colour dummy device 80x30
[    0.021194][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.032418][    T0] pid_max: default: 32768 minimum: 301
[    0.038130][    T0] LSM: Security Framework initializing
[    0.043657][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051696][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.060283][    T0] *** VALIDATE tmpfs ***
[    0.065341][    T0] *** VALIDATE proc ***
[    0.069691][    T0] *** VALIDATE cgroup1 ***
[    0.073959][    T0] *** VALIDATE cgroup2 ***
[    0.078319][    T0] CPU: Testing write buffer coherency: ok
[    0.085933][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.093194][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.099347][    T1] rcu: Hierarchical SRCU implementation.
[    0.107697][    T1] devtmpfs: initialized
[    0.118754][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.129339][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137134][    T1] xor: measuring software checksum speed
[    0.238567][    T1]    arm4regs  :   907.200 MB/sec
[    0.338565][    T1]    8regs     :   544.800 MB/sec
[    0.438564][    T1]    32regs    :   791.600 MB/sec
[    0.443428][    T1] xor: using function: arm4regs (907.200 MB/sec)
[    0.449633][    T1] prandom: seed boundary self test passed
[    0.460219][    T1] prandom: 100 self tests passed
[    0.464993][    T1] pinctrl core: initialized pinctrl subsystem
[    0.472634][    T1] NET: Registered protocol family 16
[    0.478493][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.487250][    T1] audit: initializing netlink subsys (disabled)
[    0.494966][   T14] audit: type=2000 audit(0.480:1): state=initialized audit_enabled=0 res=1
[    0.503535][    T1] cpuidle: using governor ladder
[    0.508389][    T1] cpuidle: using governor menu
[    0.513639][    T1] Feroceon L2: Enabling L2
[    0.517929][    T1] Feroceon L2: Cache support initialised.
[    0.530737][    T1] No ATAGs?
[    2.568541][    C0] random: fast init done
[    6.589320][    T1] raid6: int32x8  gen()    88 MB/s
[    6.759028][    T1] raid6: int32x8  xor()    55 MB/s
[    6.929071][    T1] raid6: int32x4  gen()    91 MB/s
[    7.098660][    T1] raid6: int32x4  xor()    58 MB/s
[    7.268704][    T1] raid6: int32x2  gen()   116 MB/s
[    7.438746][    T1] raid6: int32x2  xor()    79 MB/s
[    7.609122][    T1] raid6: int32x1  gen()    94 MB/s
[    7.778960][    T1] raid6: int32x1  xor()    58 MB/s
[    7.783899][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.789982][    T1] raid6: .... xor() 79 MB/s, rmw enabled
[    7.795441][    T1] raid6: using intx1 recovery algorithm
[    7.801118][    T1] vgaarb: loaded
[    7.805163][    T1] SCSI subsystem initialized
[    7.810188][    T1] usbcore: registered new interface driver usbfs
[    7.816405][    T1] usbcore: registered new interface driver hub
[    7.822520][    T1] usbcore: registered new device driver usb
[    7.828480][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.834140][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.843962][    T1] PTP clock support registered
[    7.850213][    T1] clocksource: Switched to clocksource orion_clocksource
[    9.228325][    T1] *** VALIDATE bpf ***
[    9.232527][    T1] VFS: Disk quotas dquot_6.6.0
[    9.237220][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.244982][    T1] *** VALIDATE ramfs ***
[    9.260752][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    9.261080][    T1] NET: Registered protocol family 2
[    9.273799][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    9.282913][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.291305][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    9.299023][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    9.306234][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.313470][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    9.321371][    T1] NET: Registered protocol family 1
[    9.327192][    T1] RPC: Registered named UNIX socket transport module.
[    9.333868][    T1] RPC: Registered udp transport module.
[    9.339245][    T1] RPC: Registered tcp transport module.
[    9.344646][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.351775][    T1] PCI: CLS 0 bytes, default 32
[    9.356737][    T1] Trying to unpack rootfs image as initramfs...
[   10.371797][    T1] Freeing initrd memory: 9488K
[   10.376579][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.385324][    T1] Initialise system trusted keyrings
[   10.390594][    T1] Key type blacklist registered
[   10.395549][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.402838][    T1] zbud: loaded
[   10.407448][    T1] NFS: Registering the id_resolver key type
[   10.413291][    T1] Key type id_resolver registered
[   10.418148][    T1] Key type id_legacy registered
[   10.422904][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.430304][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.437828][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
[   10.446064][    T1] *** VALIDATE jffs2 ***
[   10.450148][    T1] fuse: init (API version 7.31)
[   10.454880][    T1] *** VALIDATE fuse ***
[   10.458873][    T1] *** VALIDATE fuse ***
[   10.463307][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.470690][    T1] orangefs_init: module version upstream loaded
[   10.476754][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   10.547045][    T1] async_tx: api initialized (async)
[   10.552198][    T1] Key type asymmetric registered
[   10.556968][    T1] Asymmetric key parser 'x509' registered
[   10.562666][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.572635][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.582335][    T1] mvebu-gpio f1010140.gpio: IRQ index 3 not found
[   10.589373][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.651439][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.662421][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.731420][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.742716][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.751289][    T1] printk: console [ttyS0] disabled
[   10.756330][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[   10.766070][    T1] printk: console [ttyS0] enabled
[   10.766070][    T1] printk: console [ttyS0] enabled
[   10.775834][    T1] printk: bootconsole [earlycon0] disabled
[   10.775834][    T1] printk: bootconsole [earlycon0] disabled
[   10.787973][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A
[   10.807256][    T1] loop: module loaded
[   10.811870][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.821380][    T1] scsi host0: sata_mv
[   10.825884][    T1] scsi host1: sata_mv
[   10.830009][    T1] ata1: SATA max UDMA/133 irq 33
[   10.834849][    T1] ata2: SATA max UDMA/133 irq 33
[   10.841014][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[   10.848032][    T1] nand: Hynix H27U1G8F2BTR-BC
[   10.852639][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.860919][    T1] Scanning device for bad blocks
[   10.952907][    T1] Bad eraseblock 783 at 0x0000061e0000
[   10.984974][    T1] 7 fixed-partitions partitions found on MTD device orion_nand
[   10.992363][    T1] Creating 7 MTD partitions on "orion_nand":
[   10.998178][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   11.005519][    T1] 0x000000100000-0x000000600000 : "uImage"
[   11.012821][    T1] 0x000000600000-0x000000b00000 : "ramdisk"
[   11.020138][    T1] 0x000000b00000-0x000006f00000 : "image"
[   11.027803][    T1] 0x000006f00000-0x000007900000 : "mini firmware"
[   11.035683][    T1] 0x000007900000-0x000007e00000 : "config"
[   11.042971][    T1] 0x000007e00000-0x000008000000 : "my-dlink"
[   11.051882][    T1] libphy: Fixed MDIO Bus: probed
[   11.057615][    T1] libphy: orion_mdio_bus: probed
[   11.078707][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.088343][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[   11.097975][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.105336][    T1] ehci-pci: EHCI PCI platform driver
[   11.110598][    T1] ehci-orion: EHCI orion driver
[   11.115515][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.121796][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   11.130406][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   11.160245][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   11.167284][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   11.176317][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.184229][    T1] usb usb1: Product: EHCI Host Controller
[   11.189783][    T1] usb usb1: Manufacturer: Linux 5.4.2-kirkwood-tld-1 ehci_hcd
[   11.197080][    T1] usb usb1: SerialNumber: f1050000.ehci
[   11.203251][    T1] hub 1-0:1.0: USB hub found
[   11.207727][    T1] hub 1-0:1.0: 1 port detected
[   11.213216][    T1] usbcore: registered new interface driver usb-storage
[   11.220393][    T1] mousedev: PS/2 mouse device common for all mice
[   11.340269][  T118] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.349684][  T118] ata1.00: ATA-10: WDC WD40EFRX-68N32N0, 82.00A82, max UDMA/133
[   11.357171][  T118] ata1.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   11.367329][  T118] ata1.00: configured for UDMA/133
[   11.382904][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD40EFRX-68N 0A82 PQ: 0 ANSI: 5
[   11.392883][  T122] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   11.401814][  T122] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   11.407855][  T122] sd 0:0:0:0: [sda] Write Protect is off
[   11.413540][  T122] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.439708][  T122] sd 0:0:0:0: [sda] Attached SCSI disk
[   11.580259][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.731884][  T120] ata2: SATA link down (SStatus 0 SControl F300)
[   11.781293][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5151, bcdDevice= 1.26
[   11.790150][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.797996][   T15] usb 1-1: Product: Cruzer Micro
[   11.802797][   T15] usb 1-1: Manufacturer: SanDisk
[   11.807568][   T15] usb 1-1: SerialNumber: 20043515700598026046
[   11.814386][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.821683][   T15] scsi host2: usb-storage 1-1:1.0
[   12.250267][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   12.256531][    T1] i2c /dev entries driver
[   12.261639][    T1] device-mapper: uevent: version 1.0.3
[   12.267263][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   12.276892][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.284170][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.291501][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.298862][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.305652][    T1] device-mapper: raid: Loading target version 1.14.0
[   12.313910][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   12.320331][    T1] exFAT: Version 1.3.0
[   12.324338][    T1] drop_monitor: Initializing network drop monitor service
[   12.331623][    T1] NET: Registered protocol family 17
[   12.337019][    T1] Key type dns_resolver registered
[   12.342531][    T1] registered taskstats version 1
[   12.347306][    T1] Loading compiled-in X.509 certificates
[   12.352919][    T1] zswap: loaded using pool lzo/zbud
[   12.358221][    T1] Key type ._fscrypt registered
[   12.362946][    T1] Key type .fscrypt registered
[   12.475916][    T1] Key type big_key registered
[   12.528506][    T1] Key type encrypted registered
[   12.536379][    T1] hctosys: unable to open rtc device (rtc0)
[   12.545680][    T1] Freeing unused kernel memory: 1024K
[   12.571090][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.577425][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   12.891287][   T22] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
[   12.915977][  T122] sd 2:0:0:0: [sdb] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
[   12.935117][  T122] sd 2:0:0:0: [sdb] Write Protect is off
[   12.954110][  T122] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   12.987849][  T122]  sdb: sdb1
[   13.006100][  T122] sd 2:0:0:0: [sdb] Attached SCSI removable disk
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: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1 
rootfs: clean, 18066/122160 files, 206459/488192 blocks
done.
[   24.667731][  T199] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   24.696866][  T199] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting hotplug events dispatcher: systemd-udevd. ok 
[....] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   27.836288][  T378] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   28.108159][  T379] systemd-udevd[379]: Using default interface naming scheme 'v240'.
[   28.297272][  T379] systemd-udevd[379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   28.381119][  T380] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   28.486272][  T380] watchdog: f1020300.watchdog-timer: falling back to default timeout (25)
[   28.631661][    C0] random: crng init done
[   28.650804][  T380] orion_wdt f1020300.watchdog-timer: IRQ index 1 not found
[   28.681608][  T420] usbcore: registered new interface driver uas
[   28.753977][  T382] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   28.804485][  T380] orion_wdt: Initial timeout 25 sec
[   28.843197][  T382] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   29.218920][  T399] systemd-udevd[399]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   29.291121][  T378] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[....] Setting hostname to 'debian'...done.
[....] Activating swap:. ok 
[   31.751607][  T611] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.. ok 
[....] Cleaning up temporary files...[....] Cleaning /tmp...done.
 /tmp. ok 
[....] Will now mount local filesystems:. ok 
[....] Will now activate swapfile swap:done.
[....] Checking minimum space in /tmp...done.
[....] Cleaning up temporary files.... ok 
[....] Starting Setting kernel variables: sysctl. ok 
[....] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:00:02:02
Sending on   LPF/eth0/00:50:43:00:02:02
Sending on   Socket/fallback
DHCPREQUEST for 10.0.1.185 on eth0 to 255.255.255.255 port 67
[   38.449372][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPREQUEST for 10.0.1.185 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.1.185 from 10.0.1.1
bound to 10.0.1.185 -- renewal in 39666 seconds.
[   40.117451][ T1165] NET: Registered protocol family 10
[   40.124361][ T1165] Segment Routing with IPv6
done.
[....] Starting RPC port mapper daemon: rpcbind. ok 
[....] Starting NFS common utilities: statd idmapd. ok 
[....] Cleaning up temporary files.... ok 
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1376 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1403 (klogd)
. ok 
[....] Starting system message bus: dbus. ok 
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. ok 
[....] Starting NFS common utilities: statd idmapd. ok 
[....] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting NTP server: ntpd. ok 
[....] Starting OpenBSD Secure Shell server: sshd. ok 
[....] Running local boot scripts (/etc/rc.local). ok 

Debian GNU/Linux 10 debian ttyS0

debian login: root 
Password: 
Last login: Thu Jan  1 01:00:48 BST 1970 on ttyS0
Linux debian 5.4.2-kirkwood-tld-1 #1.0 PREEMPT Sat Dec 14 15:53:53 PST 2019 armv5tel

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

For good measure I added a 2nd SATA drive and it also boots successfully, I won't bore you with the console log for that :-)

So unless there's anything that looks wrong I guess I'm good to go?

Is there any value in me upgrading my u-boot? If so, can you point me to any instructions on how to use a RPi for this, given my efforts to kwboot have failed via Ubuntu VM and laptop, and I want to have a backout plan incase anything goes wrong. Would I use my usb-serial cable for this or connect specific pins from the RPi directly to the NAS?

Finally, I guess I need a new button battery, as it's certainly not Jan 1970...!
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 08, 2020 11:28PM
Cool!

Everything looks good to go.

Regarding u-boot, it is best that you stay with stock u-boot for now. It is time consuming to build and test new u-boot, and I don't have much free time, atm.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 09, 2020 12:14PM
Thanks for your help getting it working!

I noticed my fan doesn't seem to be working, do you have any suggestions on how I can control the fan via Debian?

I booted into stock OS to test the fan is actually working, and I can successfully control the fan using the fan_control command.



Edited 1 time(s). Last edit at 01/09/2020 03:51PM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 05:45AM
TenCX,


> I booted into stock OS to test the fan is actually
> working, and I can successfully control the fan
> using the fan_control command.

Look at the fan_control command to see if it is a script. And if it is, post here.

The mainline DTS source does not have fan device. So it is most likely that it is not a GPIO fan, or a sensor module that can be controlled. It might be a i2c device (which can be controlled by a script with i2cget/i2cset).

which fan_control

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 06:51AM
It was a compiled c program I believe rather than a shell script.

Is there anything I could monitor while in stock OS to work out how its controlling the fan?



Edited 1 time(s). Last edit at 01/10/2020 08:01AM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 08:48AM
TenCX Wrote:
-------------------------------------------------------
> It was a compiled c program I believe rather than
> a shell script.
>
> Is there anything I could monitor while in stock
> OS to work out how its controlling the fan?

First thing is seeing the entire stock boot log. And then execute the fan_control to see if any logging is going on when it was executed. And usually, Linux binary options can be found by:

fan_control --help

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 04:59PM
Heres the stock console log:

 ** MARVELL BOARD: DB-88F6702A-BP LE 

U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootargs 'root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none'
Marvell>> 
Marvell>> setenv bootcmd 'nand read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000'
Marvell>> 
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
load addr ....  =a00000

 3145728 bytes read: OK

NAND read: device 0 offset 0x600000, size 0x300000
load addr ....  =f00000

 3145728 bytes read: OK
## Booting image at 00a00000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2012-01-17  10:46:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2610908 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00f00000 ...
   Image Name:   Ramdisk
   Created:      2012-07-06  11:53:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    1750186 Bytes =  1.7 MB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux..................................................................................................................................................................
Linux version 2.6.31.8 (jack@swtest5) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #3 Tue Jan 17 18:46:16 CST 2012
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32512
Kernel command line: root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 115468KB available (4924K code, 334K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 999.42 BogoMIPS (lpj=4997120)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....no such
PEX1_IO ....no such
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch29)-- DB-88F6702A-BP  Soc: 88F6702 A1 LE

 Detected Tclk 166666667 and SysClk 400000000 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c403e740
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1708K
RTC has been updated!!!
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
cpufreq: Init kirkwood cpufreq driver
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed5c)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
msgmni has been set to 229
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Initializing ths8200_init
Initializing dove_adi9889_init
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o egiga0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c4569000): 1024 entries, 4096 bytes
Counter=0, opIdx=6, overhead=16
Counter=1, opIdx=2, overhead=0
Counter=2, opIdx=1, overhead=18
Counter=3, opIdx=2, overhead=0
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 783 at 0x0000061e0000
Using static partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000600000 : "uImage"
0x000000600000-0x000000b00000 : "ramdisk"
0x000000b00000-0x000006f00000 : "image"
0x000006f00000-0x000007900000 : "rescue firmware"
0x000007900000-0x000007e00000 : "config"
0x000007e00000-0x000008000000 : "my-dlink"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
usb 1-1: new high speed USB device using ehci_marvell and address 2
EXT4-fs (ram0): no journal
EXT4-fs (ram0): delayed allocation enabled
EXT4-fs: mballoc enabled
EXT4-fs (ram0): mounted filesystem without journal
VFS: Mounted root (ext4 filesystem) on device 1:0.
Freeing init memory: 136K
init started: BusyBox v1.11.2 (2012-06-28 16:57:05 CST)
starting pid 538, tty '': '/etc/rc.sh'
** Mounting /etc/fstab
umount: proc: not mounted
umount: proc: not mounted
umount: /usr/local/modules: not mounted
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
sh: can't open /usr/sbin/pre_usb.sh
sh: can't open /usr/sbin/pre_usb.sh
insmod: applet not found
umount: /usr/local/tmp/image.cfs: not found
umount: /usr/local/tmp: not mounted
first good block is 0
image len = 25034752 , image checksum = 8b73f1e3
scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     1.26 PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 3908352 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda:
sd 2:0:0:0: Attached scsi generic sg0 type 0
 sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
dump image checksum=8b73f1e3
rmmod: applet not found
ln: /lib/./libnss_dns-2.8.so: File exists
ln: /lib/./libnss_dns.so.2: File exists
ln: /usr/sbin/./system_init: File exists
mknod: /dev/REG: File exists
hardware init
GbE port 0: TxEnable WA - Enabled, deep=1, tx_en_bk=1

mtd check v1.01.05292012
/usr/local/config free size is 4739072
** copy config files
cp: cannot stat '/usr/local/config/user.log.old': No such file or directory
usbcore: registered new interface driver usblp
** set loopback interface
old ver:20120712
new ver:20120712
first good block is 0
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB sizegiga0: mac address changed
e 64
Dumping data starting at 0x00000000 and ending at 0x00000800...
mac1 = 78:54:2E:29:72:2A
lan0:ifconfig egiga0 hw ether 78:54:2E:29:72:2A
egiga0: link down
egiga0: started
DNS-320B function
egiga0: link up, full duplex, speed 1 Gbps
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
IPv4 over IPv4 tunneling driver
tunl0: Disabled Privacy Extensions
net.ipv6.conf.default.accept_dad = 2
net.ipv6.conf.egiga0.accept_dad = 2
net.ipv6.conf.default.dad_transmits = 1
net.ipv6.conf.egiga0.dad_transmits = 1
net.ipv6.conf.default.forwarding = 0
net.ipv6.conf.default.accept_redirects = 1
*** execute rc.init.sh
awk: /var/run/udhcpc0.pid: No such file or directory
udhcpc (v1.11.2) started
Sending discover...
Sending select for 10.0.1.187...
Lease of 10.0.1.187 obtained, lease time 86400
sh: you need to specify whom to kill
crond[1336]: crond (busybox 1.11.2) started, log level 8

deleting routers
route: SIOCDELRT: No such process
call load_module network
ip: RTNETLINK answers: Operation not supported
ip: RTNETLINK answers: Operation not supported
crond[1372]: crond (busybox 1.11.2) started, log level 8

*** get Time from rtc and set it into system ****
rtc: RTC time = 2000/1/7 Sat 1:19:35
Fri Jan  7 01:19:35 UTC 2000
*** set Time Zone ****
Fri Jan  7 01:19:35 GMT 2000
*** Do not adjust RTC time ***

Module IPC SERVER Version:(1.00.20090706)

ads=0
created mail daemon thread 0
ifconfig: egiga1: error fetching interface information: Device not found
Command: wget -T5 -t3 -q http://cfaj.freeshell.org/ipaddr.cgi -O /tmp/exip.0
do nothing
ls: /tmp/HDDBlackList_a: No such file or directory
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: invalid media value (0x00)
VFS: Can't find a valid FAT filesystem on dev sda.
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

FAT: Unrecognized mount option "iocharset=utf8" or missing value
mount: you must specify the filesystem type
VFS: Can't find ext3 filesystem on dev sda.
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mount: unknown filesystem type 'ext2'
NTFS signature is missing.
Failed to mount '/dev/sda': Invalid argument
The device '/dev/sda' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

EXT3-fs: Unrecognized mount option "umask=0" or missing value
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
find: /tmp/cardreader: No such file or directory
system daemon v1.03.0529212
chk_io v1.02.20120118
cp: cannot stat '/usr/local/config/ups_slave.dat': No such file or directory

mfg_start version 1.00(2012-07-12)

Fri Jan  7 01:19:57 2000


Please press Enter to activate this console. usb_dir </mnt/USB/USB1_a1>
filename_mfg mfg_DNS_320B
check /mnt/USB/USB1_a1/mfg_DNS_320B file
open  /mnt/USB/USB1_a1/mfg_DNS_320B file failed
2000-01-07 01:19:55: (../../src/log.c.166) server started 
2000-01-07 01:19:57: (../../src/server.c.1396) [note] graceful shutdown started 
call load_module
2000-01-07 01:19:57: (../../src/log.c.166) server started 
2000-01-07 01:19:57: (../../src/server.c.1512) server stopped by UID = 0 PID = 1695 
$Shutting down P2P services: P2P share lib connect: Connection refused

*** APKG Daemon is starting ... ***
/usr/sbin/load_module: line 380: mmfc: not found
Version: [v1.00.20111111]
OK: Inotify Multimedia File monitor Established.
sh: you need to specify whom to kill
killall: chk_blockip: no process killed
name            : [USBDisk1_1]
path            : [/mnt/USB/USB1_a1]
samba share name : [USBDisk1_1]
Shutting down AFP services:
Shutting down AFP services:
testtStop NFS Deamon....
Stop NFS mountd....
Unload Driver....
Stop Portmap.
No NFS information .
Stop NFS Server OVER.
LED_POWER_ON
**pressed ENTER**
starting pid 1759, tty '/dev/ttyS0': '/bin/login'
Password of admin: 


BusyBox v1.11.2 (2012-06-28 16:57:05 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# 
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 06:27PM
fan_control help:

# fan_control --help
*** Fan Cobtrol Help Message ***

fan_control b c: for NAS booting
fan_control 0 d : [auto: high/low/stop] open debug msg
fan_control 1 d : [auto: high/low] open debug msg
fan_control 2 d : [always-high] open debug msg
fan_control 0 c : [auto: high/low/stop] close debug msg
fan_control 1 c : [auto: high/low] close debug msg
fan_control 2 c : [always-high] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
fan_control -g 3 : get fan state
fan_control -f 0 : set fan stop
fan_control -f 1 : set fan speed low
fan_control -f 2 : set fan speed high

I tried one of the debug options:

# fan_control 1 d
[fan_control.c:158] temperature_low=45,temperature_high=49,temperature_stop=39
[fan_control.c:325] Set Fan-Control Mode To "Auto(Low/High)"
[fan_control.c:331] current temperature is 38
[fan_control.c:346] board_temper < TEMPERATURE_LOW: 45
[fan_control.c:349] Set Fan Speed To "LOW".
[fan_control.c:175] fan state =1
[fan_control.c:358] sleep 60 secs 0
[fan_control.c:76] sleep duration is 60
[fan_control.c:79] 59
[fan_control.c:79] 58
[fan_control.c:79] 57
...
[fan_control.c:79] 2
[fan_control.c:79] 1
[fan_control.c:79] 0
[fan_control.c:331] current temperature is 38
[fan_control.c:346] board_temper < TEMPERATURE_LOW: 45
[fan_control.c:175] fan state =1
[fan_control.c:358] sleep 60 secs 0
[fan_control.c:76] sleep duration is 60
[fan_control.c:79] 59
[fan_control.c:79] 58
[fan_control.c:79] 57
^C

I'll have a play around and see what else I can find, but I'm kind of shooting in the dark at the moment. The commands i2cget/i2cset were available in stock if that helps.



Edited 1 time(s). Last edit at 01/10/2020 06:35PM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 10, 2020 09:49PM
TenCX,

This is an old box, someone might have a solution for this already. And GPL source for stock might be available from D-Link or somebody. Try google.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 05:02AM
Have you tried running pwmconfig to see if it detects PWM controls and is able to control the fan?

Ray
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 07:41AM
@TenCX,

Looks like the fan could be GPIO base, too.

But this is the DNS-320 A1 version. So not sure the B1 has such fan.

kirkwood-dnskw.dtsi

#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
        model = "D-Link DNS NASes (kirkwood-based)";
        compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";

.....

gpio_fan {
                /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
                compatible = "gpio-fan";
                pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>;
                pinctrl-names = "default";
                gpios = <&gpio1 14 GPIO_ACTIVE_HIGH
                         &gpio1 13 GPIO_ACTIVE_HIGH>;
                gpio-fan,speed-map = <0    0
                                      3000 1
                                      6000 2>;
        };


@Ray,

Is there a new wikidevi? I know you were very active in adding devices (BTW, thanks for all your contributions there, much appreciated). This is one of those times we need that site badly :)

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



Edited 1 time(s). Last edit at 01/11/2020 07:43AM by bodhi.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 10:50AM
Quote
rayknight
Have you tried running pwmconfig to see if it detects PWM controls and is able to control the fan?

I tried... but no luck?

root@debian:~# pwmconfig 
# pwmconfig revision $Revision$ ($Date$)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

/usr/sbin/pwmconfig: No sensors found! (modprobe sensor modules?)

Quote
bodhi
Looks like the fan could be GPIO base, too.

How could I test this?



Edited 1 time(s). Last edit at 01/11/2020 10:52AM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 11:34AM
I copied the file system from the stock OS into the Debian OS.

I'm trying to run fan_control and have got this far, but I'm stuck with the errors:

root@debian:~/dns320_root/usr/local/modules/usrsbin# PATH=$PATH:. LD_LIBRARY_PATH=/root/dns320_root/usr/local/modules/usrlib/:/root/dns320_root/usr/local/modules/lib ./fan_control
*** Fan Cobtrol Help Message ***

fan_control b c: for NAS booting
fan_control 0 d : [auto: high/low/stop] open debug msg
fan_control 1 d : [auto: high/low] open debug msg
fan_control 2 d : [always-high] open debug msg
fan_control 0 c : [auto: high/low/stop] close debug msg
fan_control 1 c : [auto: high/low] close debug msg
fan_control 2 c : [always-high] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
fan_control -g 3 : get fan state
fan_control -f 0 : set fan stop
fan_control -f 1 : set fan speed low
fan_control -f 2 : set fan speed high
root@debian:~/dns320_root/usr/local/modules/usrsbin# 
root@debian:~/dns320_root/usr/local/modules/usrsbin# 
root@debian:~/dns320_root/usr/local/modules/usrsbin# 
root@debian:~/dns320_root/usr/local/modules/usrsbin# PATH=$PATH:. LD_LIBRARY_PATH=/root/dns320_root/usr/local/modules/usrlib/:/root/dns320_root/usr/local/modules/lib ./fan_control -f 1
up_send_ctl: /root/dns320_root/usr/local/modules/lib/libz.so.1: no version information available (required by /usr/lib/arm-linux-gnueabi/libxml2.so.2)
up_send_ctl: /root/dns320_root/usr/local/modules/lib/libz.so.1: no version information available (required by /usr/lib/arm-linux-gnueabi/libxml2.so.2)
up_send_ctl: relocation error: /usr/lib/arm-linux-gnueabi/libxml2.so.2: symbol gzopen64 version ZLIB_1.2.3.3 not defined in file libz.so.1 with link time reference
root@debian:~/dns320_root/usr/local/modules/usrsbin# 
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 12:26PM
TenCX,

> I copied the file system from the stock OS into
> the Debian OS.
>
> I'm trying to run fan_control and have got this
> far, but I'm stuck with the errors:

That's a reasonable step to take, to see if it works . But as usual with stock kernel, the binary was built in a very old Debian distribution (i.e. 2.6.31.8, i.e. squeeze). So it cannot be run in the new Debian version such as wheezy, stretch, or buster (which is the current rootfs is at).

That's why I think the best bet here is to find the GPL source for this box (from D-Link website, or somebody who already download that).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 12:33PM
I'm downloading this, suggest you do the same:

https://tsd.dlink.com.tw/downloads2008detailgo.asp

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 03:46PM
I've downloaded the GLP source, but not really sure what I'm looking for. I've looked in some of the tar files but can't see anything obvious.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 04:57PM
A bit more digging online and I've found these resources:


https://ncrmnt.org/2014/10/28/dlink-dns-327l-how-you-should-not-make-a-nas/
This describes a Weltrend MCU on the DNS-327L which is similar to the DNS-320L. I checked on my board and it looks like I have the same.

http://www.aboehler.at/hg/dns320l-daemon
https://www.aboehler.at/doku/doku.php/projects:dns320l
The first blog post references to this daemon which controls the MCU to carry out various things like fan control.


https://github.com/martignlo/DNS-320L
The daemon references this python script


To start with I've tried the python script and it works!

I ran the script with debug mode but the fan didn't come on, because 38 is below the LOW_TEMP value of 45 in the script.

# export DEBUG=0
# python fan-daemon.py
Temp: 38 Speed: 0

So I tweaked the temperatures temporarily to test if it works...

LOW_TEMP = 34 #45
HIGH_TEMP = 36 #50
HYSTERESIS = 2

And ran it again...

# python fan-daemon.py 
Temp: 36 Speed: 0
Temp: 36 Speed: 2
Temp: 36 Speed: 2
... I decided to use a hand held travel fan to blow inside the case to speed the cooling up a little :)
Temp: 35 Speed: 2
Temp: 35 Speed: 2
Temp: 34 Speed: 2
Temp: 33 Speed: 2
Temp: 33 Speed: 1
Temp: 32 Speed: 1
Temp: 31 Speed: 1
Temp: 31 Speed: 0
Temp: 31 Speed: 0
Temp: 31 Speed: 0

Next step will be to compile and try the dns320l-daemon as per the blog posting.



Edited 1 time(s). Last edit at 01/11/2020 05:02PM by TenCX.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 10:22PM
Quote

This describes a Weltrend MCU on the DNS-327L which is similar to the DNS-320L. I checked on my board and it looks like I have the same.

That's why neither fan GPIO nor module was specified in the DTS.

Quote

https://github.com/martignlo/DNS-320L
The daemon references this python script


To start with I've tried the python script and it works!

Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 11, 2020 11:02PM
bodhi Wrote:
-------------------------------------------------------
> @Ray,
>
> Is there a new wikidevi? I know you were very
> active in adding devices (BTW, thanks for all your
> contributions there, much appreciated). This is
> one of those times we need that site badly :)

I have now begun contributing to Wireless CAT WikiDevi which started with a dump of the data files from wikidevi. It doesn't appear that much was lost.
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 14, 2020 04:00AM
rayknight Wrote:
-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
> > @Ray,
> >
> > Is there a new wikidevi? I know you were very
> > active in adding devices (BTW, thanks for all
> your
> > contributions there, much appreciated). This is
> > one of those times we need that site badly :)
>
> I have now begun contributing to
> Wireless
> CAT WikiDevi
which started with a dump of
> the data files from wikidevi. It doesn't appear
> that much was lost.

Thanks Ray!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unable to use LABEL for root fs on D-Link DNS-320 B1
January 15, 2020 09:15PM
Just an FYI that OpenWrt is now pointing all WikiDevi URL tags in their TechData to links at Wireless CAT WikiDevi

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