Welcome! Log In Create A New Profile

Advanced

kirkwood uboot for dlink dns-325

Posted by sparks 
kirkwood uboot for dlink dns-325
February 11, 2025 10:32AM
@bodhi,

In the topic u-boot for d-link dns35, you provide u-boot for the device but with the warning not to flash to nand. I have DLed the u-boot and have been able to boot via UART and there was much joy. Could I get a version of this that is flashable? What makes the version in the linked topic unflashable?

I have tried to cross-compile u-boot myself but never had success. To shamelessly impose on you even more, what cross compiler do you use? Any other hints?

sparks
Re: kirkwood uboot for dlink dns-325
February 11, 2025 10:49AM
I forgot to include the boot messages.

Quote

root@balder:/home/michael/Downloads/u-boot-dns325# ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2021.04-tld-1.dns325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
0 % [......................................................................]
1 % [......................................................................]
2 % [......................................................................]
4 % [......................................................................]
5 % [......................................................................]
6 % [......................................................................]
8 % [......................................................................]
9 % [......................................................................]
10 % [......................................................................]
12 % [......................................................................]
13 % [......................................................................]
15 % [......................................................................]
16 % [......................................................................]
17 % [......................................................................]
19 % [......................................................................]
20 % [......................................................................]
21 % [......................................................................]
23 % [......................................................................]
24 % [......................................................................]
25 % [......................................................................]
27 % [......................................................................]
28 % [......................................................................]
30 % [......................................................................]
31 % [......................................................................]
32 % [......................................................................]
34 % [......................................................................]
35 % [......................................................................]
36 % [......................................................................]
38 % [......................................................................]
39 % [......................................................................]
41 % [......................................................................]
42 % [......................................................................]
43 % [......................................................................]
45 % [......................................................................]
46 % [......................................................................]
47 % [......................................................................]
49 % [......................................................................]
50 % [......................................................................]
51 % [......................................................................]
53 % [......................................................................]
54 % [......................................................................]
56 % [......................................................................]
57 % [......................................................................]
58 % [......................................................................]
60 % [......................................................................]
61 % [......................................................................]
62 % [......................................................................]
64 % [......................................................................]
65 % [......................................................................]
67 % [......................................................................]
68 % [......................................................................]
69 % [......................................................................]
71 % [......................................................................]
72 % [......................................................................]
73 % [......................................................................]
75 % [......................................................................]
76 % [......................................................................]
77 % [......................................................................]
79 % [......................................................................]
80 % [......................................................................]
82 % [......................................................................]
83 % [......................................................................]
84 % [......................................................................]
86 % [......................................................................]
87 % [......................................................................]
88 % [......................................................................]
90 % [......................................................................]
91 % [......................................................................]
92 % [......................................................................]
94 % [......................................................................]
95 % [......................................................................]
97 % [......................................................................]
98 % [......................................................................]
99 % [..........]
[Type Ctrl-\ + c to quit]


U-Boot 2021.04-tld-1 (Jun 04 2021 - 18:27:16 -0700)
D-Link DNS-325

SoC: Kirkwood 88F6281_A1
DRAM: 256 MiB
NAND: 128 MiB
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0
starting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2040 7829010 823ef3a6-01 83
loading envs from usb 0 ...
Failed to load '/boot/uEnv.txt'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
6235609 bytes read in 238 ms (25 MiB/s)
loading uInitrd ...
5791271 bytes read in 207 ms (26.7 MiB/s)
loading DTB /boot/dts/kirkwood-dns325.dtb ...
13079 bytes read in 17 ms (751 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-6.5.7-kirkwood-tld-1
Created: 2025-02-10 22:20:34 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6235545 Bytes = 5.9 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-6.5.7-kirkwood-tld-1
Created: 2023-10-31 22:53:55 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5791207 Bytes = 5.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image
Loading Ramdisk to 0f5af000, end 0fb34de7 ... OK
Loading Device Tree to 0f5a8000, end 0f5ae316 ... OK

Quote

Starting kernel ...

[ 0.000000][ T0] Booting Linux on physical CPU 0x0
[ 0.000000][ T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[ 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: Seagate GoFlex Net
[ 0.000000][ T0] printk: bootconsole [earlycon0] enabled
[ 0.000000][ T0] Memory policy: Data cache writeback
[ 0.000000][ T0] Zone ranges:
[ 0.000000][ T0] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000][ T0] Movable zone start for each node
[ 0.000000][ T0] Early memory node ranges
[ 0.000000][ T0] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000][ T0] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[ 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] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.000000][ T0] Memory: 108180K/131072K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 22892K reserved, 0K cma-reserved)
[ 0.000000][ T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000][ T0] trace event string verifier disabled
[ 0.000000][ T0] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000][ T0] Trampoline variant of Tasks RCU enabled.
[ 0.000000][ T0] Tracing variant of Tasks RCU enabled.
[ 0.000000][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000][ T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000][ T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000002][ T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.008622][ T0] Switching to timer-based delay loop, resolution 5ns
[ 0.015886][ T0] Console: colour dummy device 80x30
[ 0.021192][ T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[ 0.032546][ T0] CPU: Testing write buffer coherency: ok
[ 0.038300][ T0] pid_max: default: 32768 minimum: 301
[ 0.052586][ T0] LSM: initializing lsm=capability,integrity
[ 0.060969][ T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.069107][ T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.090665][ T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[ 0.098932][ T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[ 0.107763][ T1] Setting up static identity map for 0x100000 - 0x100058
[ 0.115121][ T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[ 0.121507][ T1] rcu: Hierarchical SRCU implementation.
[ 0.127044][ T1] rcu: Max phase no-delay instances is 1000.
[ 0.136207][ T1] devtmpfs: initialized
[ 0.150915][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.161638][ T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.172079][ T1] prandom: seed boundary self test passed
[ 0.182009][ T1] prandom: 100 self tests passed
[ 0.186849][ T1] pinctrl core: initialized pinctrl subsystem
[ 0.196851][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.205194][ T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.218317][ T1] audit: initializing netlink subsys (disabled)
[ 0.226684][ T1] thermal_sys: Registered thermal governor 'step_wise'
[ 0.226861][ T1] cpuidle: using governor ladder
[ 0.238507][ T19] audit: type=2000 audit(0.210:1): state=initialized audit_enabled=0 res=1
[ 0.247171][ T1] cpuidle: using governor menu
[ 0.252527][ T1] Feroceon L2: Enabling L2
[ 0.256870][ T1] Feroceon L2: Cache support initialised.
[ 0.272658][ T1] No ATAGs?
[ 0.638639][ T1] raid6: int32x8 gen() 109 MB/s
[ 0.978639][ T1] raid6: int32x4 gen() 106 MB/s
[ 1.318666][ T1] raid6: int32x2 gen() 139 MB/s
[ 1.658639][ T1] raid6: int32x1 gen() 97 MB/s
[ 1.663644][ T1] raid6: using algorithm int32x2 gen() 139 MB/s
[ 2.018638][ T1] raid6: .... xor() 86 MB/s, rmw enabled
[ 2.024164][ T1] raid6: using intx1 recovery algorithm
[ 2.040383][ T1] SCSI subsystem initialized
[ 2.049182][ T1] usbcore: registered new interface driver usbfs
[ 2.055509][ T1] usbcore: registered new interface driver hub
[ 2.078712][ T1] usbcore: registered new device driver usb
[ 2.084891][ T1] pps_core: LinuxPPS API ver. 1 registered
[ 2.098703][ T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 2.118659][ T1] PTP clock support registered
[ 2.131270][ T1] vgaarb: loaded
[ 2.139323][ T1] clocksource: Switched to clocksource orion_clocksource
[ 2.168265][ T1] VFS: Disk quotas dquot_6.6.0
[ 2.189776][ T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.227371][ T1] NET: Registered PF_INET protocol family
[ 2.249650][ T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 2.269520][ T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 2.278944][ T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 2.299369][ T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 2.307796][ T1] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 2.329365][ T1] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.337171][ T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 2.369592][ T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 2.376883][ T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 2.400242][ T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 2.420176][ T1] RPC: Registered named UNIX socket transport module.
[ 2.426837][ T1] RPC: Registered udp transport module.
[ 2.432348][ T1] RPC: Registered tcp transport module.
[ 2.437780][ T1] RPC: Registered tcp-with-tls transport module.
[ 2.459344][ T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.466538][ T1] PCI: CLS 0 bytes, default 32
[ 3.634313][ T1] Initialise system trusted keyrings
[ 3.640715][ T1] Key type blacklist registered
[ 3.645882][ T1] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 3.653342][ T1] zbud: loaded
[ 3.675870][ T1] NFS: Registering the id_resolver key type
[ 3.681764][ T1] Key type id_resolver registered
[ 3.686677][ T1] Key type id_legacy registered
[ 3.691623][ T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 3.699079][ T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 3.708869][ T1] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 3.717589][ T1] fuse: init (API version 7.38)
[ 3.723847][ T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 3.731424][ T1] orangefs_init: module version upstream loaded
[ 3.737941][ T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[ 3.959218][ T1] xor: measuring software checksum speed
[ 3.973744][ T1] arm4regs : 1101 MB/sec
[ 3.993588][ T1] 8regs : 667 MB/sec
[ 4.009066][ T1] 32regs : 947 MB/sec
[ 4.014167][ T1] xor: using function: arm4regs (1101 MB/sec)
[ 4.020145][ T1] async_tx: api initialized (async)
[ 4.025231][ T1] Key type asymmetric registered
[ 4.030080][ T1] Asymmetric key parser 'x509' registered
[ 4.045091][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 4.053809][ T1] io scheduler bfq registered
[ 4.248219][ T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 4.258167][ T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 4.269252][ T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 4.280676][ T1] mv_xor f1060800.xor: Marvell shared XOR driver
[ 4.352017][ T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 4.364964][ T1] mv_xor f1060900.xor: Marvell shared XOR driver
[ 4.432029][ T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 4.445342][ T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.455244][ T1] printk: console [ttyS0] disabled
[ 4.461032][ T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[ 4.470880][ T1] printk: console [ttyS0] enabled
[ 4.470880][ T1] printk: console [ttyS0] enabled
[ 4.480723][ T1] printk: bootconsole [earlycon0] disabled
[ 4.480723][ T1] printk: bootconsole [earlycon0] disabled
[ 4.523342][ T1] loop: module loaded
[ 4.528322][ T1] sata_mv f1080000.sata: slots 32 ports 2
[ 4.539012][ T1] scsi host0: sata_mv
[ 4.544600][ T1] scsi host1: sata_mv
[ 4.548900][ T1] ata1: SATA max UDMA/133 irq 28
[ 4.553799][ T1] ata2: SATA max UDMA/133 irq 28
[ 4.560023][ T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[ 4.567127][ T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[ 4.572502][ T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 4.580872][ T1] Scanning device for bad blocks
[ 4.645357][ T1] Bad eraseblock 559 at 0x0000045e0000
[ 4.700262][ T1] 4 fixed-partitions partitions found on MTD device orion_nand
[ 4.707702][ T1] Creating 4 MTD partitions on "orion_nand":
[ 4.713598][ T1] 0x000000000000-0x000000100000 : "u-boot"
[ 4.720168][ T1] 0x000000100000-0x000000500000 : "uImage"
[ 4.726662][ T1] 0x000000500000-0x000002500000 : "pogoplug"
[ 4.733575][ T1] 0x000002500000-0x00000fd00000 : "root"
[ 4.739101][ T1] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x5b00000
[ 4.751898][ T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 4.760515][ T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[ 4.775824][ T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 0 is missing.
[ 4.784367][ T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 4.793571][ T1] orion-ehci f1050000.ehci: EHCI Host Controller
[ 4.800003][ T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 4.808712][ T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[ 4.839352][ T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 4.846546][ T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[ 4.855624][ T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.863634][ T1] usb usb1: Product: EHCI Host Controller
[ 4.869270][ T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[ 4.876667][ T1] usb usb1: SerialNumber: f1050000.ehci
[ 4.883203][ T1] hub 1-0:1.0: USB hub found
[ 4.887769][ T1] hub 1-0:1.0: 1 port detected
[ 4.892842][ T52] ata1: SATA link down (SStatus 0 SControl F300)
[ 4.899986][ T1] usbcore: registered new interface driver usb-storage
[ 4.907337][ T1] mousedev: PS/2 mouse device common for all mice
[ 4.915682][ T1] rtc-mv f1010300.rtc: registered as rtc0
[ 4.921550][ T1] rtc-mv f1010300.rtc: setting system clock to 2000-01-01T00:33:21 UTC (946686801)
[ 4.931101][ T1] i2c_dev: i2c /dev entries driver
[ 4.937289][ T1] device-mapper: uevent: version 1.0.3
[ 4.943280][ T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[ 4.953261][ T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[ 4.960607][ T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[ 4.967962][ T1] device-mapper: multipath service-time: version 0.3.0 loaded
[ 4.975421][ T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[ 4.985974][ T1] ledtrig-cpu: registered to indicate activity on CPUs
[ 4.992895][ T1] hid: raw HID events driver (C) Jiri Kosina
[ 4.999265][ T1] drop_monitor: Initializing network drop monitor service
[ 5.007886][ T1] NET: Registered PF_INET6 protocol family
[ 5.015679][ T1] Segment Routing with IPv6
[ 5.020180][ T1] RPL Segment Routing with IPv6
[ 5.025012][ T1] In-situ OAM (IOAM) with IPv6
[ 5.030019][ T1] NET: Registered PF_PACKET protocol family
[ 5.036255][ T1] Key type dns_resolver registered
[ 5.060816][ T1] registered taskstats version 1
[ 5.065998][ T1] Loading compiled-in X.509 certificates
[ 5.094095][ T1] Key type .fscrypt registered
[ 5.098762][ T1] Key type fscrypt-provisioning registered
[ 5.111364][ T1] Key type big_key registered
[ 5.121934][ T1] Key type encrypted registered
[ 5.179454][ T49] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 5.203095][ T102] "cryptomgr_test" (102) uses obsolete ecb(arc4) skcipher
[ 5.240735][ T54] ata2: SATA link down (SStatus 0 SControl F300)
[ 5.913342][ T49] usb 1-1: New USB device found, idVendor=13fe, idProduct=4200, bcdDevice= 1.00
[ 5.929364][ T49] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.937249][ T49] usb 1-1: Product:
[ 5.959344][ T49] usb 1-1: Manufacturer:
[ 5.964266][ T49] usb 1-1: SerialNumber: 07015B331E3EAA03
[ 5.980534][ T49] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 5.999968][ T49] scsi host2: usb-storage 1-1:1.0
[ 7.297183][ T18] scsi 2:0:0:0: Direct-Access PMAP PQ: 0 ANSI: 6
[ 7.321635][ T29] sd 2:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 7.340379][ T29] sd 2:0:0:0: [sda] Write Protect is off
[ 7.359376][ T29] sd 2:0:0:0: [sda] No Caching mode page found
[ 7.365434][ T29] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 7.386628][ T29] sda: sda1
[ 7.399967][ T29] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 7.612496][ T1] clk: Disabling unused clocks
[ 7.617483][ T1] Waiting 10 sec before mounting root device...
[ 17.769709][ T49] platform mv643xx_eth_port.0: deferred probe pending
[ 17.776399][ T1] md: Waiting for all devices to be available before autodetect
[ 17.783957][ T1] md: If you don't use raid, use raid=noautodetect
[ 17.790363][ T1] md: Autodetecting RAID arrays.
[ 17.795183][ T1] md: autorun ...
[ 17.798688][ T1] md: ... autorun DONE.
[ 17.815621][ T1] EXT4-fs (sda1): mounted filesystem dae5296d-3ea5-4b26-b639-88809533db89 ro without journal. Quota mode: none.
[ 17.827523][ T1] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[ 17.842568][ T1] devtmpfs: mounted
[ 17.849522][ T1] Freeing unused kernel image (initmem) memory: 1024K
[ 17.856979][ T1] Checked W+X mappings: passed, no W+X pages found
[ 17.863443][ T1] Run /sbin/init as init process
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[ 21.209683][ T284] orion_wdt: Initial timeout 21 sec
[ 21.989661][ T282] usbcore: registered new interface driver uas
[ 22.043882][ T292] marvell-cesa f1030000.crypto: CESA device successfully registered
[ 22.219983][ T290] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
Setting hostname to 'debian'...done.
Activating swap:.
[ 24.101145][ T450] EXT4-fs (sda1): re-mounted dae5296d-3ea5-4b26-b639-88809533db89 ro. Quota mode: none.
Will now check root file system:[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -y -C0 /dev/sda1
e2fsck 1.47.0 (5-Feb-2023)
rootfs: clean, 20046/244800 files, 203151/978626 blocks
.
[ 24.890926][ T457] EXT4-fs (sda1): re-mounted dae5296d-3ea5-4b26-b639-88809533db89 r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
/tmp.
[ 27.991865][ T119] random: crng init done
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging.

exiting.
ifup: failed to bring up eth0
failed.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
938 (syslogd)
.
Starting NTP server: ntpd1999-12-31T16:33:47 ntpd[970]: INIT: ntpd ntpsec-1.2.2: Starting
1999-12-31T16:33:47 ntpd[970]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting system message bus: dbus.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
956 (klogd)
.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshd.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 12 debian ttyS0

debian login:
Re: kirkwood uboot for dlink dns-325
February 11, 2025 09:41PM
sparks,

Cool! this u-boot has not been tested anybody before you did. And it is an incomplete version. I need to check the source code to see if the envs are at the right location as same as other Kirkwood u-boots I released here. I will release a 2025 u-boot for this box, if you are willing to be a tester.

However, it is OK if you want flash it to NAND. Because you can boot with the internal envs currently, you can use it with the limitation that you cannot change the envs yet. I need to build a new version with the correct envs location.

I'm away from my development environment for an extended time. So I cannnot build a new version or look at my u-boot source code. It will be a couple of months.

I build u-boot natively on ARM boxes. I also build kernels both on native ARM, and cross-compile on Linux Mint (Ubuntu) using Linaro tool chain. I strongly recommend Linaro toolchain if you want to cross compile.

> ifup: failed to bring up eth0
Did you connect the Ethernet cable? you don't have network in this boot log.

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



Edited 2 time(s). Last edit at 02/11/2025 09:48PM by bodhi.
Re: kirkwood uboot for dlink dns-325
February 12, 2025 03:01AM
>
> > ifup: failed to bring up eth0
>
> Did you connect the Ethernet cable? you don't have
> network in this boot log.

I see. You're using the wrong uImage. Whhen you create the rootfs Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 you did step 4:

Quote

4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-6.5.7-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.5.7-kirkwood-tld-1 -d zImage.fdt uImage
sync


But now that you're booting with the new u-boot, you are booting with separate DTB. So reverse step 4:

cd /boot
mv uImage uImage.dns_325_dtb
cp -a uImage.orig uImage
sync

And reboot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kirkwood uboot for dlink dns-325
February 12, 2025 05:00PM
bodhi Wrote:
-------------------------------------------------------
>
> Cool! this u-boot has not been tested anybody
> before you did. And it is an incomplete version. I
> need to check the source code to see if the envs
> are at the right location as same as other
> Kirkwood u-boots I released here. I will release a
> 2025 u-boot for this box, if you are willing to be
> a tester.
>

Of course I will be a tester.

I cannot duplicate the boot of the linux-6.5.7 rootfs. Some how my u-boot env got hosed. I think memory and mtd addresses are wrong. But at least I have got a couple of months to work it out.

U-Boot 2021.04-tld-1 (Jun 04 2021 - 18:27:16 -0700)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
NAND:  128 MiB
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
starting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 
USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	7829504   	496ade0d-01	83
loading envs from usb 0 ...
Failed to load '/boot/uEnv.txt'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 8 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
6223944 bytes read in 223 ms (26.6 MiB/s)
loading uInitrd ...
5791271 bytes read in 206 ms (26.8 MiB/s)
loading DTB /boot/dts/kirkwood-dns325.dtb ...
13079 bytes read in 17 ms (751 KiB/s)
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2023-10-31  22:53:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
resetting ...

It comes up the same when u-boot does a re-try. I am using the default uImage that comes with the rootfs package per your instructions. u-boot env is

=> printenv
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw
bootcmd=usb reset ;run loaduImage;run loaduInitrd; bootm 0xa00000 0xf00000
bootdelay=5
bootenv=uEnv.txt
cmdlinepart.mtdparts=mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),-(root)
ethact=egiga0
ethaddr=c8:be:19:00:72:4d
filesize=585E27
ipaddr=192.168.0.19
loaduImage=ext2load usb 0:1 0xa00000 /boot/uImage
loaduInitrd=ext2load usb 0:1 0xf00000 /boot/uInitrd
mainlineLinux=yes
mtdids=nand0=orion_nand
serverip=192.168.0.17
stderr=serial
stdin=serial
stdout=serial
Re: kirkwood uboot for dlink dns-325
February 12, 2025 10:25PM
sparks ,

> I cannot duplicate the boot of the linux-6.5.7
> rootfs. Some how my u-boot env got hosed. I think
> memory and mtd addresses are wrong.

Correct.

> But at least I
> have got a couple of months to work it out.

Not that long! I can answer questions when you have problem.

> U-Boot 2021.04-tld-1 (Jun 04 2021 - 18:27:16
> -0700)
> D-Link DNS-325
>
> SoC: Kirkwood 88F6281_A1
> DRAM: 256 MiB
> NAND: 128 MiB
> Loading Environment from NAND... OK

So you did save envs to NAND to get rid of the CRC error. It's good and bad. Bad because the envs you have entered were not good for booting Debian and the latest kernel.

Before fixing it properly on NAND, for now you can use the uEnv.txt approach to boot Debian

The Wiki thread
https://forum.doozan.com/read.php?2,23630

Quote

Booting Debian on Kirkwood boxes

Booting with uEnv.txt (to fix messed up U-Boot envs or corrupted NAND envs area)

The example was for the GoFlex Home. So you need to edit the uEnv.txt to have

dtb_file=/boot/dts/kirkwood-dns325.dtb

And also edit other envs that are specific to your box, e.g. ipaddr, serverip, ethaddr....

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



Edited 1 time(s). Last edit at 02/12/2025 10:33PM by bodhi.
Re: kirkwood uboot for dlink dns-325
February 22, 2025 09:29AM
Thank you for your last suggestion. It got my boxes booted into Debian. I hadn't mentioned that I have 2 of these boxes. The reason for the delay in reply is that one of the boxes boots but doesn't recognize the hard drives. I've been spending a lot of time trying to figure this out. I approached it as a software problem and burned a lot of time getting nowhere. I went down this path because the working box is HW rev A1 and the non-working is HW rev A2. I finally decided that it's a hardware problem. I came to the conclusion that the problem is beyond my abilities (no schematic, poor eyesight, multi-sided PCB, not-very-clever) though I believe it to be a failure in the +5V bus since I haven't seen the fan run once.

Thank you for your help and I'll await contact for u-boot testing. I'll PM my e-mail address.
Re: kirkwood uboot for dlink dns-325
February 23, 2025 11:26AM
sparks,

> Thank you for your last suggestion. It got my
> boxes booted into Debian.

Cool!

> it's a hardware problem.
> I came to the conclusion
> that the problem is beyond my abilities (no
> schematic, poor eyesight, multi-sided PCB,
> not-very-clever) though I believe it to be a
> failure in the +5V bus since I haven't seen the
> fan run once.
>
> Thank you for your help and I'll await contact for
> u-boot testing. I'll PM my e-mail address.

OK. You can register for this thread update in the forum, too.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kirkwood uboot for dlink dns-325
April 03, 2025 04:39PM
sparks,

Attached here is the new u-boot for DNS-325

uboot.2024.10-tld-1.dns325.bodhi.tar
md5:
be1a9ec2ed06eb506f5bb8f6c555c5e4
sha256:
a9dc50b189399bbd64de9d45f8f93d8d617d5206be671b280f2bc68a7d7fc309


This tarball includes 4 files
uboot.2024.10-tld-1.dns325.kwb
uboot.2024.10-tld-1.dns325.environment
uboot.2024.10-tld-1.dns325.boot.cmd
uboot.2024.10-tld-1.dns325.boot.scr

Try kwboot with uboot.2024.10-tld-1.dns325.kwb.

1. Since the envs are not at the same place as stock envs location, you will get CRC error but it should boot to the u-boot prompt. Try that without the USB rootfs. Interrupt the countdown and

2. Bring the USB rootfs to another Linux host, and copy the script file to /boot. Assuming it is mounted at /media/usb.

cd /media/usb/boot
cp -a uboot.2024.10-tld-1.dns325.boot.scr boot.scr
sync
# unmount

3. Attach the USB rootfs to the box and continue booting

boot

Please post the entire serial console log here.

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



Edited 1 time(s). Last edit at 04/03/2025 04:46PM by bodhi.
Attachments:
open | download - uboot.2024.10-tld-1.dns325.bodhi.tar (520 KB)
Re: kirkwood uboot for dlink dns-325
April 05, 2025 10:29AM
The good news is that the system boots. The bad news is that it seems to be really confused about the network and leaves it in a non-working state. I booted with uboot.2021.04-tld-1.dns325.mtd0.kwb just to check that it still worked. It booted just fine. I use uEnv.txt for the older u-boot. There was no mention of this file in your post so I didn't use it for the test. I used only uboot.2024.10-tld-1.dns325.boot.scr.

I have a question about the tarball. When is the scr file and the cmd file used? What is the difference? Is one compiled and the other interpreted?

root@balder:/home/michael/Downloads/u-boot-dns325/test new uboot# ../kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2024.10-tld-1.dns325.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  ...
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2024.10-tld-1 (Apr 02 2025 - 17:27:12 -0700)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
Model: D-Link DNS-325 NAS (Rev A1)
DRAM:  256 MiB
Core:  15 devices, 11 uclasses, devicetree: separate
NAND:  128 MiB
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Error: ethernet-controller@72000 No valid MAC address found.
No ethernet found.

Hit any key to stop autoboot:  0 
=> boot
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Hunting with: ahci
Removing devices on SATA bus...
Rescanning SATA bus for devices...
Scanning bootdev 'sata@80000.bootdev':
Hunting with: usb
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
Scanning bootdev 'usb_mass_storage.lun0.bootdev':
  0  script       ready   usb_mass_    1  usb_mass_storage.lun0.boo /boot/boot.scr
** Booting bootflow 'usb_mass_storage.lun0.bootdev.part_1' with script
loading uImage ...
6223944 bytes read in 226 ms (26.3 MiB/s)
loading uInitrd ...
5798942 bytes read in 211 ms (26.2 MiB/s)
loading DTB file ...
13079 bytes read in 19 ms (671.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2025-02-13  20:27:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Created:      2025-02-13  20:28:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5798878 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
Working FDT set to 2c00000


Starting kernel ...

mdio_register: non unique device name 'ethernet-controller@72000'
mdio_register: non unique device name 'ethernet-controller@72000'
   Loading Kernel Image to 8000
   Loading Ramdisk to 0f5d2000, end 0fb59bde ... OK
   Loading Device Tree to 0f5cb000, end 0f5d1316 ... OK
Working FDT set to f5cb000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    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-325 NAS (Rev A1)
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232332K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 29812K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008623][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015894][    T0] Console: colour dummy device 80x30
[    0.021200][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032554][    T0] CPU: Testing write buffer coherency: ok
[    0.038317][    T0] pid_max: default: 32768 minimum: 301
[    0.052577][    T0] LSM: initializing lsm=capability,integrity
[    0.060956][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.069099][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090643][    T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.098908][    T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.107732][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.115108][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.121492][    T1] rcu: Hierarchical SRCU implementation.
[    0.127035][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.136206][    T1] devtmpfs: initialized
[    0.152127][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.162851][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.173310][    T1] prandom: seed boundary self test passed
[    0.183240][    T1] prandom: 100 self tests passed
[    0.188077][    T1] pinctrl core: initialized pinctrl subsystem
[    0.198070][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.206385][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.219708][    T1] audit: initializing netlink subsys (disabled)
[    0.228018][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.228194][    T1] cpuidle: using governor ladder
[    0.239883][   T19] audit: type=2000 audit(0.210:1): state=initialized audit_enabled=0 res=1
[    0.248495][    T1] cpuidle: using governor menu
[    0.253910][    T1] Feroceon L2: Enabling L2
[    0.258247][    T1] Feroceon L2: Cache support initialised.
[    0.267956][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-temp-alarm
[    0.280162][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-fan-tacho
[    0.292264][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata1
[    0.304714][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata0
[    0.317157][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-power-back-on
[    0.337755][    T1] No ATAGs?
[    0.708640][    T1] raid6: int32x8  gen()   110 MB/s
[    1.048638][    T1] raid6: int32x4  gen()   106 MB/s
[    1.388666][    T1] raid6: int32x2  gen()   135 MB/s
[    1.728640][    T1] raid6: int32x1  gen()    97 MB/s
[    1.733639][    T1] raid6: using algorithm int32x2 gen() 135 MB/s
[    2.088638][    T1] raid6: .... xor() 86 MB/s, rmw enabled
[    2.094159][    T1] raid6: using intx1 recovery algorithm
[    2.110577][    T1] SCSI subsystem initialized
[    2.119242][    T1] usbcore: registered new interface driver usbfs
[    2.125526][    T1] usbcore: registered new interface driver hub
[    2.148750][    T1] usbcore: registered new device driver usb
[    2.154937][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.168640][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.178549][    T1] PTP clock support registered
[    2.211313][    T1] vgaarb: loaded
[    2.215600][    T1] clocksource: Switched to clocksource orion_clocksource
[    2.244877][    T1] VFS: Disk quotas dquot_6.6.0
[    2.256051][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.304622][    T1] NET: Registered PF_INET protocol family
[    2.315946][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    2.336846][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.355856][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.364373][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    2.385659][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    2.393577][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    2.416340][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.424580][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.455649][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.464283][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.486740][    T1] RPC: Registered named UNIX socket transport module.
[    2.493405][    T1] RPC: Registered udp transport module.
[    2.505627][    T1] RPC: Registered tcp transport module.
[    2.511062][    T1] RPC: Registered tcp-with-tls transport module.
[    2.535619][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.542811][    T1] PCI: CLS 0 bytes, default 32
[    2.558703][   T10] Trying to unpack rootfs image as initramfs...
[    3.563075][   T10] Freeing initrd memory: 5664K
[    4.215564][    T1] Initialise system trusted keyrings
[    4.220975][    T1] Key type blacklist registered
[    4.227232][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    4.234596][    T1] zbud: loaded
[    4.257171][    T1] NFS: Registering the id_resolver key type
[    4.263003][    T1] Key type id_resolver registered
[    4.267963][    T1] Key type id_legacy registered
[    4.272894][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.280370][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    4.290153][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.298879][    T1] fuse: init (API version 7.38)
[    4.305073][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.312626][    T1] orangefs_init: module version upstream loaded
[    4.319185][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    4.540544][    T1] xor: measuring software checksum speed
[    4.554955][    T1]    arm4regs        :  1113 MB/sec
[    4.574797][    T1]    8regs           :   667 MB/sec
[    4.590297][    T1]    32regs          :   947 MB/sec
[    4.595377][    T1] xor: using function: arm4regs (1113 MB/sec)
[    4.601351][    T1] async_tx: api initialized (async)
[    4.606465][    T1] Key type asymmetric registered
[    4.611284][    T1] Asymmetric key parser 'x509' registered
[    4.670401][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.679133][    T1] io scheduler bfq registered
[    4.873703][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.884410][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.895531][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    4.907002][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.978313][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.991248][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.058299][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.071567][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.081437][    T1] printk: console [ttyS0] disabled
[    5.087226][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    5.097070][    T1] printk: console [ttyS0] enabled
[    5.097070][    T1] printk: console [ttyS0] enabled
[    5.106913][    T1] printk: bootconsole [earlycon0] disabled
[    5.106913][    T1] printk: bootconsole [earlycon0] disabled
[    5.149629][    T1] loop: module loaded
[    5.154760][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    5.165393][    T1] scsi host0: sata_mv
[    5.171019][    T1] scsi host1: sata_mv
[    5.175324][    T1] ata1: SATA max UDMA/133 irq 28
[    5.180228][    T1] ata2: SATA max UDMA/133 irq 28
[    5.186553][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.193659][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.199045][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.207407][    T1] Scanning device for bad blocks
[    5.215173][    T1] Bad eraseblock 30 at 0x0000003c0000
[    5.265210][    T1] Bad eraseblock 494 at 0x000003dc0000
[    5.321707][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.328735][    T1] Creating 4 MTD partitions on "orion_nand":
[    5.334604][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    5.341162][    T1] 0x000000100000-0x000000500000 : "uImage"
[    5.347698][    T1] 0x000000500000-0x000002500000 : "rootfs"
[    5.354355][    T1] 0x000002500000-0x000008000000 : "data"
[    5.361946][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.370566][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.408932][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.685647][   T52] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.697248][   T52] ata1.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    5.704262][   T52] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.718606][   T52] ata1.00: configured for UDMA/133
[    5.734307][   T28] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    5.744913][   T10] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    5.754084][   T10] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.760227][   T10] sd 0:0:0:0: [sda] Write Protect is off
[    5.765938][   T10] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.775908][   T10] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    5.844256][   T10]  sda: sda1 sda2
[    5.848831][   T10] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.077043][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:00:00:00:00:00
[    6.087328][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.093587][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.102290][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    6.135636][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.142867][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    6.151916][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.159901][    T1] usb usb1: Product: EHCI Host Controller
[    6.165511][    T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    6.172882][    T1] usb usb1: SerialNumber: f1050000.ehci
[    6.179431][    T1] hub 1-0:1.0: USB hub found
[    6.183956][    T1] hub 1-0:1.0: 1 port detected
[    6.189716][    T1] usbcore: registered new interface driver usb-storage
[    6.197212][    T1] mousedev: PS/2 mouse device common for all mice
[    6.205171][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    6.210900][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-03-17T16:46:02 UTC (1742229962)
[    6.220669][    T1] i2c_dev: i2c /dev entries driver
[    6.228460][    T1] device-mapper: uevent: version 1.0.3
[    6.234440][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    6.244437][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.251791][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.259210][   T54] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.266253][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.273684][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.283829][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    6.290723][   T54] ata2.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    6.297862][   T54] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.305730][    T1] hid: raw HID events driver (C) Jiri Kosina
[    6.312200][    T1] drop_monitor: Initializing network drop monitor service
[    6.321038][    T1] NET: Registered PF_INET6 protocol family
[    6.329613][    T1] Segment Routing with IPv6
[    6.334007][    T1] RPL Segment Routing with IPv6
[    6.339019][   T54] ata2.00: configured for UDMA/133
[    6.344187][    T1] In-situ OAM (IOAM) with IPv6
[    6.349001][    T1] NET: Registered PF_PACKET protocol family
[    6.355364][   T18] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    6.364639][    T1] Key type dns_resolver registered
[    6.377430][   T10] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    6.395767][   T10] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    6.401835][   T10] sd 1:0:0:0: [sdb] Write Protect is off
[    6.412067][    T1] registered taskstats version 1
[    6.417147][   T10] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.427099][    T1] Loading compiled-in X.509 certificates
[    6.435835][   T10] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    6.464386][    T1] Key type .fscrypt registered
[    6.469134][    T1] Key type fscrypt-provisioning registered
[    6.475765][   T61] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.490694][    T1] Key type big_key registered
[    6.518880][   T10]  sdb: sdb1 sdb2
[    6.526602][   T10] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.555141][    T1] Key type encrypted registered
[    6.671379][  T104] "cryptomgr_test" (104) uses obsolete ecb(arc4) skcipher
[    6.689680][   T61] usb 1-1: New USB device found, idVendor=13fe, idProduct=4200, bcdDevice= 1.00
[    6.705717][   T61] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.713608][   T61] usb 1-1: Product:                 
[    6.727513][   T61] usb 1-1: Manufacturer:         
[    6.732435][   T61] usb 1-1: SerialNumber: 07015B331E3EAA03
[    6.742085][   T61] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.766366][   T61] scsi host2: usb-storage 1-1:1.0
[    7.797132][   T18] scsi 2:0:0:0: Direct-Access                               PMAP PQ: 0 ANSI: 6
[    7.817834][   T10] sd 2:0:0:0: [sdc] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[    7.836705][   T10] sd 2:0:0:0: [sdc] Write Protect is off
[    7.855654][   T10] sd 2:0:0:0: [sdc] No Caching mode page found
[    7.861705][   T10] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    7.881947][   T10]  sdc: sdc1
[    7.895924][   T10] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    9.072926][    T1] clk: Disabling unused clocks
[    9.081172][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    9.096440][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.102851][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.33-1~deb12u1
[   10.638412][  T152] usbcore: registered new interface driver uas
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 ... Begin: Waiting for suspend/resume device ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   28.965670][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for suspend/resume device
done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 
rootfs: clean, 20146/244800 files, 227244/978688 blocks
done.
[   43.386233][  T292] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   43.458811][  T292] EXT4-fs (sdc1): mounted filesystem 1b238437-3b7f-4a43-93eb-12db5eea054a ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   47.367246][  T470] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   47.379834][  T471] gpio-fan gpio_fan: GPIO fan initialized
[   47.799222][  T479] lm75 0-0048: supply vs not found, using dummy regulator
[   47.893342][  T479] hwmon hwmon1: temp1_input not attached to any thermal zone
[   47.973788][  T472] orion_wdt: Initial timeout 21 sec
[   48.046106][  T479] lm75 0-0048: hwmon1: sensor 'lm75'
[   48.079528][  T485] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   48.186010][  T485] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   48.257590][  T485] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   48.588162][  T483] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
[   51.008644][  T633] EXT4-fs (sdc1): re-mounted 1b238437-3b7f-4a43-93eb-12db5eea054a r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Cannot assign requested address
Listening on LPF/eth0/00:00:00:00:00:00
Sending on   LPF/eth0/00:00:00:00:00:00
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
receive_packet failed on eth0: Network is down

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
send_packet: Network is down
dhclient.c:2600: Failed to send 300 byte long packet over eth0 interface.
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1135 (syslogd)
.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
.
Starting NTP server: ntpd2025-03-17T12:47:54 ntpd[1178]: INIT: ntpd ntpsec-1.2.2: Starting
2025-03-17T12:47:54 ntpd[1178]: INIT: Command line: /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
.
Starting NTP server: ntpd2025-03-17T12:47:54 ntpd[1183]: INIT: ntpd ntpsec-1.2.2: Starting
2025-03-17T12:47:54 ntpd[1183]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1155 (klogd)
.
Starting OpenBSD Secure Shell server: sshd.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 12 debian ttyS0

debian login: root
Password: 
Linux debian 6.5.7-kirkwood-tld-1 #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023 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.
Last login: Mon Mar 17 12:38:00 EDT 2025 from 192.168.0.41 on pts/0
debian
D-Link DNS-325 NAS (Rev A1)
Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
Debian 12.9
Mon Mar 17 12:48:53 EDT 2025 up 2 minutes
root@debian:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
root@debian:~# 
Re: kirkwood uboot for dlink dns-325
April 05, 2025 01:49PM
Sparks,

> The good news is that the system boots.

Everything looks good! except networking.

> The bad news is that it seems to be really confused about
> the network and leaves it in a non-working state.
> I booted with uboot.2021.04-tld-1.dns325.mtd0.kwb
> just to check that it still worked. It booted just
> fine. I use uEnv.txt for the older u-boot. There
> was no mention of this file in your post so I
> didn't use it for the test. I used only
> uboot.2024.10-tld-1.dns325.boot.scr.

My bad! Since the envs are not populated yet, we need a random MAC address to bring up the network. And I've missed it in the configuration!.

> I have a question about the tarball. When is the
> scr file and the cmd file used? What is the
> difference? Is one compiled and the other
> interpreted?

Yes. The scr file is what we call "distro boot script". This u-boot uses standard boot method, which can scan and load the distro boot script. The .cmd file is the envs commands, which is used to generate the scrip boot.scr.

For us, this is a good way to rescue the system when the envs in NAND are corrupted. We use our own envs scripting logic, and produce an env image which needs to be flashed along with the u-boot image.

For any Linux distro, if there is a /boot/boot.scr in its rootfs, this u-boot will boot that distro in accordance with that booting script.

The command to generate the boot script is

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "DNS-325 Distro Boot Script" -d uboot.2024.10-tld-1.dns325.boot.cmd uboot.2024.10-tld-1.dns325.boot.scr

Will upload new u-boot-version.

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



Edited 1 time(s). Last edit at 04/05/2025 03:08PM by bodhi.
Re: kirkwood uboot for dlink dns-325
April 05, 2025 03:25PM
Sparks,

Attached here is the April 05 u-boot for DNS-325

uboot.2024.10-tld-1.dns325.250405.bodhi.tar
md5:
5b3be8184d0596c434d8e201cdad3e71
sha256:
5f9151700aa2c731d37f47f2de8dcba6f9b69b5857fc4942b401c383adabf4da

This tarball includes 4 files
uboot.2024.10-tld-1.dns325.kwb
uboot.2024.10-tld-1.dns325.environment
uboot.2024.10-tld-1.dns325.boot.cmd
uboot.2024.10-tld-1.dns325.boot.scr

Only the image uboot.2024.10-tld-1.dns325.kwb is updated, other files are the same as previous version.

Please do the same test as before.

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



Edited 1 time(s). Last edit at 04/05/2025 03:28PM by bodhi.
Attachments:
open | download - uboot.2024.10-tld-1.dns325.250405.bodhi.tar (520 KB)
Re: kirkwood uboot for dlink dns-325
April 06, 2025 11:41AM
Much joy! Things look very good from my perspective. I had to do some cleanup to get it this way. Plus I moved the boot disk to one of the SATA disks. I figured I'd need that usb port someday to expand my jbod.

Thank you.

root@balder:/home/michael/Downloads/u-boot-dns325/test new uboot# ../kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2024.10-tld-1.dns325.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  ...
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2024.10-tld-1 (Apr 05 2025 - 13:06:13 -0700)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
Model: D-Link DNS-325 NAS (Rev A1)
DRAM:  256 MiB
Core:  15 devices, 11 uclasses, devicetree: separate
NAND:  128 MiB
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 86:74:b6:2b:07:fd
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Hunting with: ahci
Removing devices on SATA bus...
Rescanning SATA bus for devices...
Scanning bootdev 'sata@80000.bootdev':
  0  script       ready   ahci         1  sata@80000.bootdev.part_1 /boot/boot.scr
** Booting bootflow 'sata@80000.bootdev.part_1' with script
loading uImage ...
6223944 bytes read in 55 ms (107.9 MiB/s)
loading uInitrd ...
8031007 bytes read in 69 ms (111 MiB/s)
loading DTB file ...
13079 bytes read in 9 ms (1.4 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2025-04-06  16:26:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Created:      2025-04-06  16:26:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8030943 Bytes = 7.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
Working FDT set to 2c00000


Starting kernel ...

   Loading Kernel Image to 8000
   Loading Ramdisk to 0f3b0000, end 0fb58adf ... OK
   Loading Device Tree to 0f3a9000, end 0f3af316 ... OK
Working FDT set to f3a9000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    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-325 NAS (Rev A1)
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 230152K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 31992K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008622][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015894][    T0] Console: colour dummy device 80x30
[    0.021200][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032555][    T0] CPU: Testing write buffer coherency: ok
[    0.038317][    T0] pid_max: default: 32768 minimum: 301
[    0.052588][    T0] LSM: initializing lsm=capability,integrity
[    0.060970][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.069107][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090621][    T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.098890][    T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.107721][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.115101][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.121482][    T1] rcu: Hierarchical SRCU implementation.
[    0.127026][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.136196][    T1] devtmpfs: initialized
[    0.152141][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.162866][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.173310][    T1] prandom: seed boundary self test passed
[    0.183238][    T1] prandom: 100 self tests passed
[    0.188077][    T1] pinctrl core: initialized pinctrl subsystem
[    0.198059][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.206362][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.219702][    T1] audit: initializing netlink subsys (disabled)
[    0.228011][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.228188][    T1] cpuidle: using governor ladder
[    0.239886][   T19] audit: type=2000 audit(0.210:1): state=initialized audit_enabled=0 res=1
[    0.248496][    T1] cpuidle: using governor menu
[    0.253905][    T1] Feroceon L2: Enabling L2
[    0.258247][    T1] Feroceon L2: Cache support initialised.
[    0.267958][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-temp-alarm
[    0.280162][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-fan-tacho
[    0.292263][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata1
[    0.304705][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata0
[    0.317148][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-power-back-on
[    0.337755][    T1] No ATAGs?
[    0.708640][    T1] raid6: int32x8  gen()   109 MB/s
[    1.048638][    T1] raid6: int32x4  gen()   106 MB/s
[    1.388664][    T1] raid6: int32x2  gen()   135 MB/s
[    1.728641][    T1] raid6: int32x1  gen()    98 MB/s
[    1.733639][    T1] raid6: using algorithm int32x2 gen() 135 MB/s
[    2.088638][    T1] raid6: .... xor() 86 MB/s, rmw enabled
[    2.094159][    T1] raid6: using intx1 recovery algorithm
[    2.110588][    T1] SCSI subsystem initialized
[    2.119242][    T1] usbcore: registered new interface driver usbfs
[    2.125526][    T1] usbcore: registered new interface driver hub
[    2.148749][    T1] usbcore: registered new device driver usb
[    2.154927][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.168639][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.178548][    T1] PTP clock support registered
[    2.211062][    T1] vgaarb: loaded
[    2.215351][    T1] clocksource: Switched to clocksource orion_clocksource
[    2.234632][    T1] VFS: Disk quotas dquot_6.6.0
[    2.255804][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.303959][    T1] NET: Registered PF_INET protocol family
[    2.315698][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    2.336591][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.355608][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.364127][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    2.385410][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    2.393332][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    2.416093][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.424337][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.455401][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.464027][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.486472][    T1] RPC: Registered named UNIX socket transport module.
[    2.493135][    T1] RPC: Registered udp transport module.
[    2.505377][    T1] RPC: Registered tcp transport module.
[    2.510809][    T1] RPC: Registered tcp-with-tls transport module.
[    2.535369][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.542566][    T1] PCI: CLS 0 bytes, default 32
[    2.558454][   T10] Trying to unpack rootfs image as initramfs...
[    3.962256][   T10] Freeing initrd memory: 7844K
[    4.417033][    T1] Initialise system trusted keyrings
[    4.422309][    T1] Key type blacklist registered
[    4.428663][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    4.436133][    T1] zbud: loaded
[    4.458602][    T1] NFS: Registering the id_resolver key type
[    4.464433][    T1] Key type id_resolver registered
[    4.469402][    T1] Key type id_legacy registered
[    4.474333][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.481847][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    4.491638][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.500364][    T1] fuse: init (API version 7.38)
[    4.506592][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.514142][    T1] orangefs_init: module version upstream loaded
[    4.520695][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    4.741926][    T1] xor: measuring software checksum speed
[    4.756443][    T1]    arm4regs        :  1101 MB/sec
[    4.776288][    T1]    8regs           :   667 MB/sec
[    4.791773][    T1]    32regs          :   947 MB/sec
[    4.796871][    T1] xor: using function: arm4regs (1101 MB/sec)
[    4.802833][    T1] async_tx: api initialized (async)
[    4.807941][    T1] Key type asymmetric registered
[    4.812760][    T1] Asymmetric key parser 'x509' registered
[    4.872129][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.880946][    T1] io scheduler bfq registered
[    5.075607][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.086295][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    5.097373][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    5.108716][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.178052][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.190933][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.258054][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.271318][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.281206][    T1] printk: console [ttyS0] disabled
[    5.286985][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    5.296829][    T1] printk: console [ttyS0] enabled
[    5.296829][    T1] printk: console [ttyS0] enabled
[    5.306678][    T1] printk: bootconsole [earlycon0] disabled
[    5.306678][    T1] printk: bootconsole [earlycon0] disabled
[    5.349480][    T1] loop: module loaded
[    5.354583][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    5.365224][    T1] scsi host0: sata_mv
[    5.370860][    T1] scsi host1: sata_mv
[    5.375158][    T1] ata1: SATA max UDMA/133 irq 28
[    5.380064][    T1] ata2: SATA max UDMA/133 irq 28
[    5.386392][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.393495][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.398873][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.407233][    T1] Scanning device for bad blocks
[    5.415002][    T1] Bad eraseblock 30 at 0x0000003c0000
[    5.465055][    T1] Bad eraseblock 494 at 0x000003dc0000
[    5.521565][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.528603][    T1] Creating 4 MTD partitions on "orion_nand":
[    5.534475][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    5.541039][    T1] 0x000000100000-0x000000500000 : "uImage"
[    5.547613][    T1] 0x000000500000-0x000002500000 : "rootfs"
[    5.554278][    T1] 0x000002500000-0x000008000000 : "data"
[    5.561835][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.570455][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.608824][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.885396][   T52] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.896996][   T52] ata1.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    5.904010][   T52] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.918352][   T52] ata1.00: configured for UDMA/133
[    5.934024][   T28] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    5.944633][   T10] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    5.953803][   T10] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.959950][   T10] sd 0:0:0:0: [sda] Write Protect is off
[    5.965663][   T10] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.975630][   T10] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    6.042174][   T10]  sda: sda1 sda2
[    6.046734][   T10] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.276796][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 3a:49:6d:b3:01:54
[    6.287073][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.293336][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.302034][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    6.335386][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.342562][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    6.351611][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.359596][    T1] usb usb1: Product: EHCI Host Controller
[    6.365200][    T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    6.372571][    T1] usb usb1: SerialNumber: f1050000.ehci
[    6.379124][    T1] hub 1-0:1.0: USB hub found
[    6.383654][    T1] hub 1-0:1.0: 1 port detected
[    6.389457][    T1] usbcore: registered new interface driver usb-storage
[    6.396921][    T1] mousedev: PS/2 mouse device common for all mice
[    6.404878][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    6.410611][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-04-06T16:28:59 UTC (1743956939)
[    6.421223][    T1] i2c_dev: i2c /dev entries driver
[    6.429069][    T1] device-mapper: uevent: version 1.0.3
[    6.435046][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    6.445049][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.452405][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.459825][   T54] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.466867][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.474295][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.484390][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    6.491281][   T54] ata2.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    6.498419][   T54] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.506117][    T1] hid: raw HID events driver (C) Jiri Kosina
[    6.512522][    T1] drop_monitor: Initializing network drop monitor service
[    6.521414][    T1] NET: Registered PF_INET6 protocol family
[    6.529698][    T1] Segment Routing with IPv6
[    6.534097][    T1] RPL Segment Routing with IPv6
[    6.539394][    T1] In-situ OAM (IOAM) with IPv6
[    6.544146][   T54] ata2.00: configured for UDMA/133
[    6.549314][    T1] NET: Registered PF_PACKET protocol family
[    6.555540][    T1] Key type dns_resolver registered
[    6.566023][   T18] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    6.587081][   T10] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    6.600601][    T1] registered taskstats version 1
[    6.605535][   T10] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    6.611587][   T10] sd 1:0:0:0: [sdb] Write Protect is off
[    6.617271][    T1] Loading compiled-in X.509 certificates
[    6.625571][   T10] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.645608][   T10] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    6.669962][    T1] Key type .fscrypt registered
[    6.674632][    T1] Key type fscrypt-provisioning registered
[    6.687419][    T1] Key type big_key registered
[    6.728312][   T10]  sdb: sdb1 sdb2
[    6.736304][   T10] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.752378][    T1] Key type encrypted registered
[    6.868587][  T104] "cryptomgr_test" (104) uses obsolete ecb(arc4) skcipher
[    9.168787][    T1] clk: Disabling unused clocks
[    9.176802][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    9.196227][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.202642][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.36-1~deb12u1
[   12.245414][    C0] random: crng init done
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.38.1
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1 
rootfs: clean, 20040/524288 files, 230182/2097152 blocks
done.
[   23.049837][  T182] EXT4-fs (sda1): mounted filesystem aa63b545-bc4e-4bc8-b1af-a7b1a1c29ebd ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Files under mount point '/run/lock' will be hidden. ... (warning).
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   26.304809][  T366] gpio-fan gpio_fan: GPIO fan initialized
[   26.317975][  T360] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   26.629632][  T368] lm75 0-0048: supply vs not found, using dummy regulator
[   26.707479][  T368] hwmon hwmon1: temp1_input not attached to any thermal zone
[   26.731358][  T358] orion_wdt: Initial timeout 21 sec
[   26.847333][  T368] lm75 0-0048: hwmon1: sensor 'lm75'
[   27.165791][  T360] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   27.307806][  T360] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   27.473714][  T366] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
[   30.015985][  T524] EXT4-fs (sda1): re-mounted aa63b545-bc4e-4bc8-b1af-a7b1a1c29ebd r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/3a:49:6d:b3:01:54
Sending on   LPF/eth0/3a:49:6d:b3:01:54
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   35.997228][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 192.168.0.185 from 192.168.0.1
DHCPREQUEST for 192.168.0.185 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.185 from 192.168.0.1
bound to 192.168.0.185 -- renewal in 34706 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1037 (syslogd)
.
Starting NTP server: ntpd2025-04-06T12:29:40 ntpd[1074]: INIT: ntpd ntpsec-1.2.2: Starting
2025-04-06T12:29:40 ntpd[1074]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting NTP server: ntpd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1054 (klogd)
.
Starting OpenBSD Secure Shell server: sshd.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 12 debian ttyS0

debian login: 

Re: kirkwood uboot for dlink dns-325
April 06, 2025 01:46PM
Awesome!

I'll create the env image and upload with flashing instruction.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kirkwood uboot for dlink dns-325
April 08, 2025 04:15PM
Sparks,

Attached here is the April 08 u-boot for DNS-325. Since I've made some minor changes in this version, please run the kwboot test again before I release it with flashing instruction.

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

uboot.2024.10-tld-1.dns325.250408.bodhi.tar
md5:
191129892f36f5e6538e86ffccd07fa9
sha256:
4f6eefbc570019b47f6db83a963876d6c213d221b59c07d6cdd874020f8830bd

This tarball includes 5 files

uboot.2024.10-tld-1.dns325.kwb
uboot.2024.10-tld-1.dns325.environment
uboot.2024.10-tld-1.dns325.environment.img
uboot.2024.10-tld-1.dns325.boot.cmd
uboot.2024.10-tld-1.dns325.boot.scr

All files were updated in this version.

Please do the same test as before.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2024.10-tld-1.dns325.250408.bodhi.tar (650 KB)
Re: kirkwood uboot for dlink dns-325
April 08, 2025 09:02PM
Looks good.

root@balder:/home/michael/Downloads/u-boot-dns325/test new uboot# ../kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2024.10-tld-1.dns325.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  ...
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2024.10-tld-1 (Apr 08 2025 - 13:52:33 -0700)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
Model: D-Link DNS-325 NAS (Rev A1)
DRAM:  256 MiB
Core:  15 devices, 11 uclasses, devicetree: separate
NAND:  128 MiB
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 4a:73:17:93:52:8b
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Hunting with: ahci
Removing devices on SATA bus...
Rescanning SATA bus for devices...
Scanning bootdev 'sata@80000.bootdev':
  0  script       ready   ahci         1  sata@80000.bootdev.part_1 /boot/boot.scr
** Booting bootflow 'sata@80000.bootdev.part_1' with script
loading uImage ...
6223944 bytes read in 54 ms (109.9 MiB/s)
loading uInitrd ...
8031007 bytes read in 70 ms (109.4 MiB/s)
loading DTB file ...
13079 bytes read in 18 ms (709 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2025-04-06  16:26:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Created:      2025-04-06  16:26:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8030943 Bytes = 7.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
Working FDT set to 2c00000


Starting kernel ...

   Loading Kernel Image to 8000
   Loading Ramdisk to 0f3b0000, end 0fb58adf ... OK
   Loading Device Tree to 0f3a9000, end 0f3af316 ... OK
Working FDT set to f3a9000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    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-325 NAS (Rev A1)
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),5M(kernel),-(rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 230152K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 31992K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008623][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015890][    T0] Console: colour dummy device 80x30
[    0.021190][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032546][    T0] CPU: Testing write buffer coherency: ok
[    0.038308][    T0] pid_max: default: 32768 minimum: 301
[    0.052558][    T0] LSM: initializing lsm=capability,integrity
[    0.060950][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.069091][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090580][    T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.098831][    T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.107659][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.115037][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.121421][    T1] rcu: Hierarchical SRCU implementation.
[    0.126965][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.136161][    T1] devtmpfs: initialized
[    0.152072][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.162800][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.173299][    T1] prandom: seed boundary self test passed
[    0.183232][    T1] prandom: 100 self tests passed
[    0.188068][    T1] pinctrl core: initialized pinctrl subsystem
[    0.198095][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.206418][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.219777][    T1] audit: initializing netlink subsys (disabled)
[    0.228077][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.228254][    T1] cpuidle: using governor ladder
[    0.239937][   T19] audit: type=2000 audit(0.210:1): state=initialized audit_enabled=0 res=1
[    0.248549][    T1] cpuidle: using governor menu
[    0.253959][    T1] Feroceon L2: Enabling L2
[    0.258300][    T1] Feroceon L2: Cache support initialised.
[    0.268009][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-temp-alarm
[    0.280215][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-fan-tacho
[    0.292316][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata1
[    0.304758][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-present-sata0
[    0.317201][    T1] platform f1010000.pin-controller: Fixed dependency cycle(s) with /ocp@f1000000/pin-controller@10000/pmx-power-back-on
[    0.337826][    T1] No ATAGs?
[    0.708640][    T1] raid6: int32x8  gen()   109 MB/s
[    1.048639][    T1] raid6: int32x4  gen()   106 MB/s
[    1.388666][    T1] raid6: int32x2  gen()   135 MB/s
[    1.728642][    T1] raid6: int32x1  gen()    99 MB/s
[    1.733640][    T1] raid6: using algorithm int32x2 gen() 135 MB/s
[    2.088639][    T1] raid6: .... xor() 86 MB/s, rmw enabled
[    2.094159][    T1] raid6: using intx1 recovery algorithm
[    2.110622][    T1] SCSI subsystem initialized
[    2.119238][    T1] usbcore: registered new interface driver usbfs
[    2.125517][    T1] usbcore: registered new interface driver hub
[    2.148713][    T1] usbcore: registered new device driver usb
[    2.154923][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.168640][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.178548][    T1] PTP clock support registered
[    2.211030][    T1] vgaarb: loaded
[    2.215350][    T1] clocksource: Switched to clocksource orion_clocksource
[    2.234639][    T1] VFS: Disk quotas dquot_6.6.0
[    2.255802][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.304134][    T1] NET: Registered PF_INET protocol family
[    2.315691][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    2.336605][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.355605][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.364120][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    2.385409][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    2.393333][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    2.416093][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.424336][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.455398][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.464034][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.486481][    T1] RPC: Registered named UNIX socket transport module.
[    2.493143][    T1] RPC: Registered udp transport module.
[    2.505377][    T1] RPC: Registered tcp transport module.
[    2.510809][    T1] RPC: Registered tcp-with-tls transport module.
[    2.535369][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.542558][    T1] PCI: CLS 0 bytes, default 32
[    2.558444][   T10] Trying to unpack rootfs image as initramfs...
[    3.962517][   T10] Freeing initrd memory: 7844K
[    4.417389][    T1] Initialise system trusted keyrings
[    4.422657][    T1] Key type blacklist registered
[    4.428917][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    4.436389][    T1] zbud: loaded
[    4.458857][    T1] NFS: Registering the id_resolver key type
[    4.464701][    T1] Key type id_resolver registered
[    4.469673][    T1] Key type id_legacy registered
[    4.474602][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.482119][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    4.491910][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.500633][    T1] fuse: init (API version 7.38)
[    4.506857][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.514407][    T1] orangefs_init: module version upstream loaded
[    4.520965][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    4.742188][    T1] xor: measuring software checksum speed
[    4.756715][    T1]    arm4regs        :  1101 MB/sec
[    4.776558][    T1]    8regs           :   667 MB/sec
[    4.792044][    T1]    32regs          :   947 MB/sec
[    4.797142][    T1] xor: using function: arm4regs (1101 MB/sec)
[    4.803104][    T1] async_tx: api initialized (async)
[    4.808211][    T1] Key type asymmetric registered
[    4.813030][    T1] Asymmetric key parser 'x509' registered
[    4.872426][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.881245][    T1] io scheduler bfq registered
[    5.075818][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.086504][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    5.097588][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    5.108932][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.178044][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.190928][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.258059][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.271317][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.281206][    T1] printk: console [ttyS0] disabled
[    5.286979][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    5.296818][    T1] printk: console [ttyS0] enabled
[    5.296818][    T1] printk: console [ttyS0] enabled
[    5.306670][    T1] printk: bootconsole [earlycon0] disabled
[    5.306670][    T1] printk: bootconsole [earlycon0] disabled
[    5.349418][    T1] loop: module loaded
[    5.354525][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    5.365160][    T1] scsi host0: sata_mv
[    5.370792][    T1] scsi host1: sata_mv
[    5.375125][    T1] ata1: SATA max UDMA/133 irq 28
[    5.380030][    T1] ata2: SATA max UDMA/133 irq 28
[    5.386320][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.393425][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.398801][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.407166][    T1] Scanning device for bad blocks
[    5.414940][    T1] Bad eraseblock 30 at 0x0000003c0000
[    5.464961][    T1] Bad eraseblock 494 at 0x000003dc0000
[    5.521418][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[    5.528452][    T1] Creating 3 MTD partitions on "orion_nand":
[    5.534327][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    5.540887][    T1] 0x000000100000-0x000000600000 : "kernel"
[    5.547470][    T1] 0x000000600000-0x000008000000 : "rootfs"
[    5.555429][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.564014][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.602264][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.885395][   T52] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.896996][   T52] ata1.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    5.904010][   T52] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.918351][   T52] ata1.00: configured for UDMA/133
[    5.934057][   T28] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    5.944620][   T10] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    5.953843][   T10] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.959988][   T10] sd 0:0:0:0: [sda] Write Protect is off
[    5.965696][   T10] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.975665][   T10] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    6.044072][   T10]  sda: sda1 sda2
[    6.048641][   T10] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.266820][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 3a:49:6d:b3:01:54
[    6.277185][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.283502][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.292260][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    6.325384][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.332539][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    6.341592][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.349578][    T1] usb usb1: Product: EHCI Host Controller
[    6.355189][    T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    6.362560][    T1] usb usb1: SerialNumber: f1050000.ehci
[    6.369149][    T1] hub 1-0:1.0: USB hub found
[    6.373710][    T1] hub 1-0:1.0: 1 port detected
[    6.379466][    T1] usbcore: registered new interface driver usb-storage
[    6.386959][    T1] mousedev: PS/2 mouse device common for all mice
[    6.394843][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    6.400587][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-04-09T01:50:50 UTC (1744163450)
[    6.410396][    T1] i2c_dev: i2c /dev entries driver
[    6.418262][    T1] device-mapper: uevent: version 1.0.3
[    6.424236][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    6.434243][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.441600][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.448990][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.456398][   T54] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.463647][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.472910][   T54] ata2.00: ATA-8: TOSHIBA HDWA130, MZ6OACF0, max UDMA/133
[    6.480676][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    6.487466][   T54] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.495284][    T1] hid: raw HID events driver (C) Jiri Kosina
[    6.501882][    T1] drop_monitor: Initializing network drop monitor service
[    6.510770][    T1] NET: Registered PF_INET6 protocol family
[    6.516636][   T54] ata2.00: configured for UDMA/133
[    6.524036][    T1] Segment Routing with IPv6
[    6.528677][    T1] RPL Segment Routing with IPv6
[    6.534017][   T18] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA HDWA130  ACF0 PQ: 0 ANSI: 5
[    6.543050][    T1] In-situ OAM (IOAM) with IPv6
[    6.547862][    T1] NET: Registered PF_PACKET protocol family
[    6.555680][   T10] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[    6.564187][   T10] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    6.570721][    T1] Key type dns_resolver registered
[    6.585533][   T10] sd 1:0:0:0: [sdb] Write Protect is off
[    6.591185][   T10] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.611115][    T1] registered taskstats version 1
[    6.616217][   T10] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[    6.623694][    T1] Loading compiled-in X.509 certificates
[    6.653332][    T1] Key type .fscrypt registered
[    6.658356][    T1] Key type fscrypt-provisioning registered
[    6.671774][    T1] Key type big_key registered
[    6.703359][   T10]  sdb: sdb1 sdb2
[    6.716730][   T10] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.735872][    T1] Key type encrypted registered
[    6.851769][  T103] "cryptomgr_test" (103) uses obsolete ecb(arc4) skcipher
[    9.152030][    T1] clk: Disabling unused clocks
[    9.160160][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    9.176233][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.182649][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.36-1~deb12u1
[   12.235408][    C0] random: crng init done
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.38.1
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1 
rootfs: clean, 20040/524288 files, 230187/2097152 blocks
done.
[   23.029831][  T180] EXT4-fs (sda1): mounted filesystem aa63b545-bc4e-4bc8-b1af-a7b1a1c29ebd ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Files under mount point '/run/lock' will be hidden. ... (warning).
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   26.299636][  T356] gpio-fan gpio_fan: GPIO fan initialized
[   26.321002][  T362] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   26.697212][  T367] lm75 0-0048: supply vs not found, using dummy regulator
[   26.761038][  T376] orion_wdt: Initial timeout 21 sec
[   26.804160][  T367] hwmon hwmon1: temp1_input not attached to any thermal zone
[   26.943641][  T367] lm75 0-0048: hwmon1: sensor 'lm75'
[   27.319440][  T359] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   27.355847][  T359] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   27.497662][  T371] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:swapon: /dev/sdb1: found signature [pagesize=4096, signature=swap]
swapon: /dev/sdb1: p[   29.914034][  T515] Adding 8388604k swap on /dev/sdb1.  Priority:-2 extents:1 across:8388604k FS
agesize=4096, swapsize=8589934592, devsize=8589934592
swapon /dev/sdb1
.
[   30.055674][  T522] EXT4-fs (sda1): re-mounted aa63b545-bc4e-4bc8-b1af-a7b1a1c29ebd r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
/dev/mapper/fulla_jbod-fulla_pool is not mounted
[/sbin/fsck.ext4 (1) -- /media/pool] fsck.ext4 -y -C0 /dev/mapper/fulla_jbod-fulla_pool 
e2fsck 1.47.0 (5-Feb-2023)
/dev/mapper/fulla_jbod-fulla_pool: clean, 11/182620160 files, 11802965/1460936704 blocks
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
[   43.446026][  T759] EXT4-fs (dm-0): mounted filesystem 2bedd8f6-7bce-4815-b4bc-57346fb2b7ca r/w with ordered data mode. Quota mode: none.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:swapon: /dev/sdb1: already active -- ignored
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/3a:49:6d:b3:01:54
Sending on   LPF/eth0/3a:49:6d:b3:01:54
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
[   47.555522][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER of 192.168.0.185 from 192.168.0.1
DHCPREQUEST for 192.168.0.185 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.185 from 192.168.0.1
bound to 192.168.0.185 -- renewal in 41921 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd
.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1034 (syslogd)
.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1055 (klogd)
.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Not starting NFS kernel daemon: no exports ... (warning).
Starting NTP server: ntpd2025-04-08T21:51:47 ntpd[1085]: INIT: ntpd ntpsec-1.2.2: Starting
2025-04-08T21:51:47 ntpd[1085]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshd.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 12 debian ttyS0

debian login: 

Re: kirkwood uboot for dlink dns-325
April 09, 2025 04:41PM
Sparks,

Please see the installation instruction here in the new thread:

https://forum.doozan.com/read.php?3,139569

Read the instruction over. And post the installation/boot log in that thread. Any suggestion is welcome.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: