Welcome! Log In Create A New Profile

Advanced

2023.04 U-Boot MVEBU -- Armada 38x

Posted by bodhi 
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 07, 2025 10:33PM
Hi bodhi,

I got the ds116, hooked up serial.

Tried tftp boot with stock uboot to usb rootfs (following the relevant part of ds116 usb rootfs installation), success.
Tried kwboot uboot.2025.07.07-rc5 next with the same usb rootfs (with uImage reverted to the original), success.

I don't know how to setup a default u-boot env, so I converted your uboot.2024.04-tld-1.ds116.environment to setenv statements and copied into u-boot line-by-line.
while logged in, I installed a couple of packages and upgraded kernel to your latest release.

Then I kwboot'ed to the usb rootfs again, and captured the log.
Please see log below, and let me know what's the next steps.

Thanks,

-Brian

# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2025.07-rc5-tld-1.ds116.kwb -p
kwboot version 2025.01
Detected kwbimage v1 with SPI boot signature
Patching image boot signature to UART
Aligning image header to Xmodem block size
Sending boot message. Please reboot the target...|
Sending boot image header (101248 bytes)...
  0 % [......................................................................]
  8 % [......................................................................]
 17 % [......................................................................]
 26 % [......................................................................]
 35 % [......................................................................]
 44 % [......................................................................]
 53 % [......................................................................]
 62 % [......................................................................]
 70 % [......................................................................]
 79 % [......................................................................]
 88 % [......................................................................]
 97 % [.....................                                                 ]
Done

U-Boot SPL 2025.07-rc5-tld-1-gf2575cac0c98 (Jun 29 2025 - 23:10:07 -0700)
High speed PHY - Version: 2.0
Detected Device ID 6820
board SerDes lanes topology details:
 | Lane # | Speed |  Type       |
 --------------------------------
 |   0    |   0   | SGMII0	|
 |   1    |   6   | SATA0	|
 |   4    |   5   | USB3 HOST0	|
 |   5    |   5   | USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from BOOTROM
Returning to BootROM (return address 0xffff05c4)...

Sending boot image data (513632 bytes)...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 31 % [......................................................................]
 33 % [......................................................................]
 34 % [......................................................................]
 36 % [......................................................................]
 38 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 57 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [.......................                                               ]
Done
Finishing transfer
[Type Ctrl-\ + c to quit]


U-Boot 2025.07-rc5-tld-1-gf2575cac0c98 (Jun 29 2025 - 23:10:07 -0700)
Synology DS116

SoC:   MV88F6820-A0 at 1866 MHz
DRAM:  1 GiB (933 MHz, 32-bit, ECC not enabled)
Core:  49 devices, 21 uclasses, devicetree: separate
MMC:
Loading Environment from SPIFlash... SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

Model: Synology DS116
Net:
Warning: ethernet@70000 (eth0) using random MAC address - 4a:e2:dd:a3:47:6c
eth0: ethernet@70000
Hit any key to stop autoboot:  0
DS116> setenv baudrate '115200'
DS116> setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
DS116> setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi'
DS116> setenv bootcmd_uenv 'run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi'
DS116> setenv bootdelay '10'
DS116> setenv bootdev 'usb'
DS116> setenv console 'ttyS0,115200'
DS116> setenv custom_params 'raid=noautodetect earlyprintk=serial'
DS116> setenv device '0:1'
DS116> setenv devices 'usb scsi'
DS116> setenv disks '0 1 2 3'
DS116> setenv dtb_file '/boot/dts/armada-385-synology-ds116.dtb'
DS116> setenv ethaddr '00:11:22:33:44:55'
DS116> setenv initrd_high '0x8000000'
DS116> setenv load_dtb 'echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file'
DS116> setenv load_dtb_addr '0x2000000'
DS116> setenv load_uimage 'echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage'
DS116> setenv load_uimage_addr '0x1000000'
DS116> setenv load_initrd 'echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd'
DS116> setenv load_initrd_addr '0x2200000'
DS116> setenv mtdids 'spi0=spi_flash'
DS116> setenv mtdparts 'mtdparts=spi0.0:1m(u-boot),7040k(kernel),64k(u-boot-env),-(data)'
DS116> setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset";  setenv scan_scsi "scsi reset"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done'
DS116> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
DS116> setenv stderr 'serial'
DS116> setenv stdin 'serial'
DS116> setenv stdout 'serial'
DS116> setenv uenv_addr '0x1100000'
DS116> setenv uenv_import 'echo importing envs ...; env import -t $uenv_addr $filesize'
DS116> setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb reset"; setenv init_scsi "scsi reset"; for devtype in $devices; do run init_$devtype; done;'
DS116> setenv uenv_load 'run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;'
DS116> setenv uenv_read 'echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi'
DS116> run bootcmd
Initializing devices...
resetting USB...
MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f0000: 1 USB Device(s) found
Bus usb3@f8000: 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset SCSI
scanning bus for devices...
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Loading envs from usb 0...
Failed to load '/boot/uEnv.txt'
Loading envs from usb 1...
** Bad device specification usb 1 **
Couldn't find partition usb 1:1
Can't set block device
Loading envs from usb 2...
** Bad device specification usb 2 **
Couldn't find partition usb 2:1
Can't set block device
Loading envs from usb 3...
** Bad device specification usb 3 **
Couldn't find partition usb 3:1
Can't set block device
Loading envs from scsi 0...
** Bad device specification scsi 0 **
Couldn't find partition scsi 0:1
Can't set block device
Loading envs from scsi 1...
** Bad device specification scsi 1 **
Couldn't find partition scsi 1:1
Can't set block device
Loading envs from scsi 2...
** Bad device specification scsi 2 **
Couldn't find partition scsi 2:1
Can't set block device
Loading envs from scsi 3...
** Bad device specification scsi 3 **
Couldn't find partition scsi 3:1
Can't set block device
running scan_disk ...
Scan device usb
resetting USB...
MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f0000: 1 USB Device(s) found
Bus usb3@f8000: 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
device usb 0:1
1 bytes read in 5 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5173840 bytes read in 72 ms (68.5 MiB/s)
loading uInitrd ...
5268221 bytes read in 65 ms (77.3 MiB/s)
loading DTB /boot/dts/armada-385-synology-ds116.dtb ...
19147 bytes read in 5 ms (3.7 MiB/s)
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-6.15.2-mvebu-tld-1
   Created:      2025-07-08   3:06:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5173776 Bytes = 4.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02200000 ...
   Image Name:   initramfs-6.15.2-mvebu-tld-1
   Created:      2025-07-08   3:06:45 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5268157 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
Working FDT set to 2000000
   Loading Kernel Image to 8000
   Loading Ramdisk to 07af9000, end 07fff2bd ... OK
   Loading Device Tree to 0fff8000, end 0ffffaca ... OK
Working FDT set to fff8000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.15.2-mvebu-tld-1 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Thu Jun 19 20:30:12 PDT 2025
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: legacy bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] OF: reserved mem: Reserved memory: No reserved-memory node in the DT
[    0.000000][    T0] percpu: Embedded 29 pages/cpu s28620 r8192 d81972 u118784
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:1m(u-boot),7040k(kernel),64k(u-boot-env),-(data) raid=noautodetect earlyprintk=serial
[    0.000000][    T0] printk: log buffer data + meta data: 131072 + 409600 = 540672 bytes
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 262144
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000002][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008755][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020646][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027465][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.035257][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.047140][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.056764][    T0] Console: colour dummy device 80x30
[    0.061958][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.073328][    T0] CPU: Testing write buffer coherency: ok
[    0.078958][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.084732][    T0] pid_max: default: 32768 minimum: 301
[    0.092586][    T0] LSM: initializing lsm=capability
[    0.098268][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.106315][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.117857][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.124260][    T1] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.131921][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.138938][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.144890][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.151919][    T1] rcu: Hierarchical SRCU implementation.
[    0.157440][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.163556][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.172861][    T1] smp: Bringing up secondary CPUs ...
[    0.178492][    T1] Booting CPU 1
[    0.181976][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.182023][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.194280][    T1] smp: Brought up 1 node, 2 CPUs
[    0.199105][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.206199][    T1] CPU: All CPU(s) started in SVC mode.
[    0.211812][    T1] Memory: 1011496K/1048576K available (10240K kernel code, 833K rwdata, 3456K rodata, 1024K init, 451K bss, 34356K reserved, 0K cma-reserved, 262144K highmem)
[    0.228267][    T1] devtmpfs: initialized
[    0.235831][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.244644][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.255256][    T1] posixtimers hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.263383][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.272953][    T1] prandom: seed boundary self test passed
[    0.279699][    T1] prandom: 100 self tests passed
[    0.284512][    T1] pinctrl core: initialized pinctrl subsystem
[    0.291533][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.298798][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.307004][    T1] audit: initializing netlink subsys (disabled)
[    0.313309][   T33] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.313686][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.321849][    T1] cpuidle: using governor ladder
[    0.333411][    T1] cpuidle: using governor menu
[    0.338182][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.346924][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.353611][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.362448][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.547377][    T1] raid6: int32x8  gen()   343 MB/s
[    0.717347][    T1] raid6: int32x4  gen()   368 MB/s
[    0.887346][    T1] raid6: int32x2  gen()   643 MB/s
[    1.057347][    T1] raid6: int32x1  gen()   699 MB/s
[    1.062336][    T1] raid6: using algorithm int32x1 gen() 699 MB/s
[    1.237382][    T1] raid6: .... xor() 275 MB/s, rmw enabled
[    1.242982][    T1] raid6: using intx1 recovery algorithm
[    1.249457][    T1] SCSI subsystem initialized
[    1.254256][    T1] usbcore: registered new interface driver usbfs
[    1.260521][    T1] usbcore: registered new interface driver hub
[    1.266578][    T1] usbcore: registered new device driver usb
[    1.272578][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.278274][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.288185][    T1] PTP clock support registered
[    1.294024][    T1] vgaarb: loaded
[    1.297856][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.307256][    T1] VFS: Disk quotas dquot_6.6.0
[    1.312071][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.320245][    T1] netfs: FS-Cache loaded
[    1.331069][    T1] NET: Registered PF_INET protocol family
[    1.336796][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.346295][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.355473][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.363984][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.372531][    T1] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.380626][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.388026][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.396293][    T1] UDP hash table entries: 512 (order: 2, 28672 bytes, linear)
[    1.403684][    T1] UDP-Lite hash table entries: 512 (order: 2, 28672 bytes, linear)
[    1.411756][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.418679][    T1] RPC: Registered named UNIX socket transport module.
[    1.425331][    T1] RPC: Registered udp transport module.
[    1.430772][    T1] RPC: Registered tcp transport module.
[    1.436195][    T1] RPC: Registered tcp-with-tls transport module.
[    1.442411][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.449598][    T1] PCI: CLS 0 bytes, default 64
[    1.454391][   T32] Trying to unpack rootfs image as initramfs...
[    1.461734][    T1] Initialise system trusted keyrings
[    1.466937][    T1] Key type blacklist registered
[    1.471970][    T1] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    1.485271][    T1] NFS: Registering the id_resolver key type
[    1.491206][    T1] Key type id_resolver registered
[    1.496117][    T1] Key type id_legacy registered
[    1.500991][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.508466][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.600860][    T1] xor: measuring software checksum speed
[    1.601123][   T32] Freeing initrd memory: 5148K
[    1.607469][    T1]    arm4regs        :  3038 MB/sec
[    1.617544][    T1]    8regs           :  2335 MB/sec
[    1.623990][    T1]    32regs          :  2425 MB/sec
[    1.629076][    T1] xor: using function: arm4regs (3038 MB/sec)
[    1.635031][    T1] async_tx: api initialized (async)
[    1.640119][    T1] Key type asymmetric registered
[    1.644933][    T1] Asymmetric key parser 'x509' registered
[    1.650752][    T1] bounce: pool size: 64 pages
[    1.655623][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.663972][    T1] io scheduler bfq registered
[    1.670155][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.679767][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.689912][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    1.698916][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.708910][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    1.718820][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.726968][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.778449][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.788413][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.838442][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.913300][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.923212][    T1] printk: legacy console [ttyS0] disabled
[    1.949603][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.959416][    T1] printk: legacy console [ttyS0] enabled
[    1.959416][    T1] printk: legacy console [ttyS0] enabled
[    1.970451][    T1] printk: legacy bootconsole [earlycon0] disabled
[    1.970451][    T1] printk: legacy bootconsole [earlycon0] disabled
[    2.009425][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 39, base_baud = 12500000) is a 16550A
[    2.021072][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.029569][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.040542][    T1] spi-nor spi0.0: supply vcc not found, using dummy regulator
[    2.048250][    T1] 4 cmdlinepart partitions found on MTD device spi0.0
[    2.054905][    T1] Creating 4 MTD partitions on "spi0.0":
[    2.060436][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.066663][    T1] 0x000000100000-0x0000007e0000 : "kernel"
[    2.072854][    T1] 0x0000007e0000-0x0000007f0000 : "u-boot-env"
[    2.079309][    T1] 0x0000007f0000-0x000000800000 : "data"
[    2.085496][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.094128][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.118248][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.127594][    T1] usbcore: registered new interface driver usblp
[    2.133932][    T1] usbcore: registered new interface driver usb-storage
[    2.142109][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    2.148429][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2025-07-08T03:11:34 UTC (1751944294)
[    2.159103][    T1] i2c_dev: i2c /dev entries driver
[    2.164948][    T1] at24 0-0057: supply vcc not found, using dummy regulator
[    2.200850][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    2.208891][    T1] orion_wdt: Initial timeout 171 sec
[    2.214612][    T1] device-mapper: uevent: version 1.0.3
[    2.220250][    T1] device-mapper: ioctl: 4.49.0-ioctl (2025-01-17) initialised: dm-devel@lists.linux.dev
[    2.230130][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.237393][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.244767][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.252172][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.259470][    T1] sdhci: Secure Digital Host Controller Interface driver
[    2.266383][    T1] sdhci: Copyright(c) Pierre Ossman
[    2.271637][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.278697][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.287346][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 (8000003f) counters available
[    2.298237][    T1] NET: Registered PF_INET6 protocol family
[    2.304965][    T1] Segment Routing with IPv6
[    2.309366][    T1] RPL Segment Routing with IPv6
[    2.314125][    T1] In-situ OAM (IOAM) with IPv6
[    2.318823][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.326697][    T1] NET: Registered PF_PACKET protocol family
[    2.332653][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.337595][    T1] Key type dns_resolver registered
[    2.342739][    T1] ThumbEE CPU extension supported.
[    2.347734][    T1] Registering SWP/SWPB emulation handler
[    2.372957][    T1] registered taskstats version 1
[    2.378011][    T1] Loading compiled-in X.509 certificates
[    2.395329][    T1] Key type .fscrypt registered
[    2.401002][    T1] Key type fscrypt-provisioning registered
[    2.406796][    T1] Key type big_key registered
[    2.466748][    T1] Key type encrypted registered
[    2.473119][   T26] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.481603][   T26] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.490874][   T26] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.499292][   T26] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.508525][    T1] clk: Disabling unused clocks
[    2.513189][    T1] PM: genpd: Disabling unused power domains
[    2.520649][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    2.527794][    T1] Checked W+X mappings: passed, no W+X pages found
[    2.534210][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.38-1~deb12u1
[    2.948240][   T26] usb_phy_generic usb3_0_phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    2.971892][   T26] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.985927][   T26] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.004070][   T26] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.056231][   T26] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.079513][   T26] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    3.096404][   T26] xhci-hcd f10f0000.usb3: irq 40, io mem 0xf10f0000
[    3.115238][   T26] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.125587][   T26] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.138429][   T26] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.146276][   T26] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.15
[    3.155421][   T26] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.163662][   T26] usb usb1: Product: xHCI Host Controller
[    3.169570][   T26] usb usb1: Manufacturer: Linux 6.15.2-mvebu-tld-1 xhci-hcd
[    3.177261][   T26] usb usb1: SerialNumber: f10f0000.usb3
[    3.184171][   T26] hub 1-0:1.0: USB hub found
[    3.189834][   T26] hub 1-0:1.0: 1 port detected
[    3.195876][   T26] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.205421][   T26] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.15
[    3.215507][   T26] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.224472][   T26] usb usb2: Product: xHCI Host Controller
[    3.230158][   T26] usb usb2: Manufacturer: Linux 6.15.2-mvebu-tld-1 xhci-hcd
[    3.237338][   T26] usb usb2: SerialNumber: f10f0000.usb3
[    3.243673][   T26] hub 2-0:1.0: USB hub found
[    3.248514][   T26] hub 2-0:1.0: 1 port detected
[    3.254223][   T26] usb_phy_generic usb3_1_phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    3.265293][   T26] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.273775][   T26] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.282469][   T26] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.289387][   T26] ahci-mvebu f10a8000.sata: AHCI vers 0001.0000, 32 command slots, 6 Gbps, platform mode
[    3.299234][   T26] ahci-mvebu f10a8000.sata: 1/2 ports implemented (port mask 0x1)
[    3.306939][   T26] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.370716][   T26] scsi host0: ahci-mvebu
[    3.376155][   T26] scsi host1: ahci-mvebu
[    3.381143][   T26] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 49 lpm-pol 0
[    3.391380][   T26] ata2: DUMMY
[    3.396950][   T26] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.403149][   T26] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.411563][   T26] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    3.421640][   T26] xhci-hcd f10f8000.usb3: irq 41, io mem 0xf10f8000
Begin: Loading e[    3.429423][   T26] xhci-hcd f10f8000.usb3: xHCI Host Controller
ssential drivers[    3.437048][   T26] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
 ... done.
[    3.446418][   T26] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.454526][   T26] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.15
[    3.463658][   T26] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.471631][   T26] usb usb3: Product: xHCI Host Controller
[    3.477232][   T26] usb usb3: Manufacturer: Linux 6.15.2-mvebu-tld-1 xhci-hcd
[    3.484490][   T26] usb usb3: SerialNumber: f10f8000.usb3
[    3.490408][   T26] hub 3-0:1.0: USB hub found
[    3.494916][   T26] hub 3-0:1.0: 1 port detected
[    3.500041][   T26] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.509088][   T26] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.15
[    3.518180][   T26] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.526138][   T26] usb usb4: Product: xHCI Host Controller
[    3.531812][   T26] usb usb4: Manufacturer: Linux 6.15.2-mvebu-tld-1 xhci-hcd
[    3.539043][   T26] usb usb4: SerialNumber: f10f8000.usb3
[    3.544891][   T26] hub 4-0:1.0: USB hub found
[    3.549462][   T26] hub 4-0:1.0: 1 port detected
[    3.719172][ T1205] ata1: SATA link down (SStatus 0 SControl 300)
[    4.267913][ T1209] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.288588][ T1209] usb 4-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    4.297510][ T1209] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.305395][ T1209] usb 4-1: Product: Ultra Fit
[    4.309956][ T1209] usb 4-1: Manufacturer: SanDisk
[    4.314772][ T1209] usb 4-1: SerialNumber: 4C530001160626107432
[    4.321948][ T1209] usb-storage 4-1:1.0: USB Mass Storage device detected
[    4.329189][ T1209] scsi host2: usb-storage 4-1:1.0
[    4.338442][ T1196] usbcore: registered new interface driver uas
[    5.398862][   T39] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    5.414936][   T27] sd 2:0:0:0: [sda] 120127488 512-byte logical blocks: (61.5 GB/57.3 GiB)
[    5.424772][   T27] sd 2:0:0:0: [sda] Write Protect is off
[    5.430717][   T27] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.480321][   T27]  sda: sda1
[    5.484324][   T27] sd 2:0:0:0: [sda] Attached SCSI removable disk
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.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 34435/3760128 files, 602642/15015680 blocks
done.
[   13.645475][ T1232] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   13.728389][ T1232] EXT4-fs (sda1): mounted filesystem 445573e1-6054-4f48-86b8-224d000a9e4e 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...[   15.455726][ T1421] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[   15.493369][ T1428] mvneta f1070000.ethernet eth0: Using hardware mac address 00:11:22:33:44:55
[   15.671802][ T1420] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
Activating swap:.
[   16.332707][ T1565] EXT4-fs (sda1): re-mounted 445573e1-6054-4f48-86b8-224d000a9e4e r/w.
Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
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.
[   18.897864][    C0] random: crng init done
Initializing random number generator...done.
[   19.268459][ T1957] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[   19.280810][ T1957] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
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/00:11:22:33:44:55
Sending on   LPF/eth0/00:11:22:33:44:55
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   24.518327][ T1209] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPOFFER of 192.168.1.16 from 192.168.1.1
DHCPREQUEST for 192.168.1.16 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.16 from 192.168.1.1
bound to 192.168.1.16 -- renewal in 38497 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...
2118 (syslogd)
.
Starting NTP server: ntpd2025-07-07T20:11:58 ntpd[2159]: INIT: ntpd ntpsec-1.2.2: Starting
2025-07-07T20:11:58 ntpd[2159]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-07-07T20:11:58 ntpd[2143]: INIT: ntpd ntpsec-1.2.2: Starting
2025-07-07T20:11:58 ntpd[2143]: INIT: Command line: /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
.
Starting periodic command scheduler: cron.
Starting OpenBSD Secure Shell server: sshd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2150 (klogd)
.
Running local boot scripts (/etc/rc.local)
Cannot read environment, using default
Cannot read default environment from file
<13>Jul  7 20:12:01 root[2207]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login: [   33.157851][ T1209] v12.0-sata0: disabling
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 07, 2025 10:47PM
Alright, I found the instruction of loading env.scr at https://forum.doozan.com/read.php?3,29362,29390#msg-29390.
Will do that next time.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 07, 2025 11:44PM
Brian,

> I got the ds116, hooked up serial.
>
> Tried tftp boot with stock uboot to usb rootfs
> (following the relevant part of ds116 usb rootfs
> installation), success.
> Tried kwboot uboot.2025.07.07-rc5 next with the
> same usb rootfs (with uImage reverted to the
> original), success.

The boot log looks flawless!

>
> I don't know how to setup a default u-boot env, so
> I converted your
> uboot.2024.04-tld-1.ds116.environment to setenv
> statements and copied into u-boot line-by-line.
> while logged in, I installed a couple of packages
> and upgraded kernel to your latest release.

Nice!

I see your post above.

> Alright, I found the instruction of loading env.scr at https://forum.doozan.com/read.php?3,29362,29390#msg-29390.

Yes, that's the way to load the script while u-boot is running.

When you flash the new u-boot for real, these envs will be formatted into a default envs image. And this is the layout where things are:

DS116> setenv mtdparts 'mtdparts=spi0.0:1m(u-boot),7040k(kernel),64k(u-boot-env),-(data)'

I'm about to start my trip so I will be able to only answer questions. The 2025.07 u-boot image and flashing instruction will be coming in a few weeks after I'm back.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 12:07AM
This post is in the Wiki:

How to create a u-boot boot script on USB rootfs
https://forum.doozan.com/read.php?2,136786,136978#msg-136978

After you'v created the boot script, I'll come back and show you how to boot that automatically (no manual interaction) after kwboot started.

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



Edited 1 time(s). Last edit at 07/08/2025 12:14AM by bodhi.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 11:18AM
Thanks bodhi, created the u-boot boot.scr on the USB rootfs /boot. Works very well, one command.

U-Boot 2025.07-rc5-tld-1-gf2575cac0c98 (Jun 29 2025 - 23:10:07 -0700)
Synology DS116

SoC:   MV88F6820-A0 at 1866 MHz
DRAM:  1 GiB (933 MHz, 32-bit, ECC not enabled)
Core:  49 devices, 21 uclasses, devicetree: separate
MMC:
Loading Environment from SPIFlash... SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

Model: Synology DS116
Net:
Warning: ethernet@70000 (eth0) using random MAC address - e6:63:5e:47:74:a2
eth0: ethernet@70000
Hit any key to stop autoboot:  0
DS116> usb start; ext2load usb 0:1 0x02000000 /boot/boot.scr; source 0x02000000; printenv
starting USB...
MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f0000: 2 USB Device(s) found
Bus usb3@f8000: 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
2817 bytes read in 7 ms (392.6 KiB/s)
## Executing script at 02000000
... snip ...
Running local boot scripts (/etc/rc.local)
Cannot read environment, using default
Cannot read default environment from file
<13>Jul  8 08:58:40 root[2206]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login:
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 03:54PM
Brian,

> Cannot read environment, using default
> Cannot read default environment from file
> <13>Jul 8 08:58:40 root[2206]: Cannot read u-boot
> env ethaddr

The default envs image has not been flashed. So atm you can't see the envs in Debian yet. The error above is OK.

Check the MAC address in dmesg, you'll see it is
mvneta f1070000.ethernet eth0: Using hardware mac address  xxxxxx

Always do this for the DS116 box (this script in the rootfs tried to read ethaddr, it it caused the error above).
chmod -x /root/set_persistent_mac_address


> DS116> usb start; ext2load usb 0:1 0x02000000
> /boot/boot.scr; source 0x02000000; printenv

> ## Executing script at 02000000
> ... snip ...
> Running local boot scripts (/etc/rc.local)

Cool!

I was going to ask you to place the boot.scr in /boot! and you already done that.

This u-boot is configured to use bootstd (Standard Boot) already. When u-boot starts and the envs are not found, it will automatially boot with that boot.scr.

So go ahead kwboot again and let it boot automatically without any interruption. It will do all the scanning and reading the boot.scr and boot into Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 07:03PM
Tried auto boot and it failed. See log below.

Do I need to add anything to trigger the equivalent of
DS116> usb start; ext2load usb 0:1 0x02000000 /boot/boot.scr; source 0x02000000; boot
After auto-boot failed, I verified I can still invoke the above and manually boot successfully.

... snip ...
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [.......................                                               ]
Done
Finishing transfer
[Type Ctrl-\ + c to quit]


U-Boot 2025.07-rc5-tld-1-gf2575cac0c98 (Jun 29 2025 - 23:10:07 -0700)
Synology DS116

SoC:   MV88F6820-A0 at 1866 MHz
DRAM:  1 GiB (933 MHz, 32-bit, ECC not enabled)
Core:  49 devices, 21 uclasses, devicetree: separate
MMC:
Loading Environment from SPIFlash... SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

Model: Synology DS116
Net:
Warning: ethernet@70000 (eth0) using random MAC address - 3a:f1:4f:09:5b:b2
eth0: ethernet@70000
Hit any key to stop autoboot:  0
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Scanning global bootmeth 'efi_mgr':
Cannot persist EFI variables without system partition
Hunting with: mmc
Hunting with: scsi
scanning bus for devices...
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Hunting with: usb
MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f0000: 2 USB Device(s) found
Bus usb3@f8000: 1 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
Boot failed (err=-14)
Hunting with: ethernet
Scanning bootdev 'ethernet@70000.bootdev':
ethernet@70000 Waiting for PHY auto negotiation to complete........ done
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.1.16 (257 ms)
*** Warning: no boot file name; using 'C0A80110.img'
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'C0A80110.img'.
Load address: 0x1000000
Loading: *
TFTP server died; starting again
BOOTP broadcast 1
DHCP client bound to address 192.168.1.16 (4 ms)
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-00-11-32-75-c9-16
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/01-00-11-32-75-c9-16'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A80110
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A80110'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A8011
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A8011'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A801
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A801'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A80
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A80'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A8
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A8'.
Load address: 0x1900000
Loading: T
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0A'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C0'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/C'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm-mvebu-ds116
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/default-arm-mvebu-ds116'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm-mvebu
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/default-arm-mvebu'.
Load address: 0x1900000
Loading: T
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/default-arm'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.16
Filename 'pxelinux.cfg/default'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
No more bootdevs
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 09:41PM
Brian,

Download the attached uboot.2025.07-rc5-tld-1.ds116.boot.scr and copy it to your rootfs /boot. I also attached the boot.cmd used to create the boot.scr.

cd /boot
cp -a uboot.2025.07-rc5-tld-1.ds116.boot.scr boot.scr
sync

and run kwboot, reboot the box.

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



Edited 1 time(s). Last edit at 07/08/2025 09:42PM by bodhi.
Attachments:
open | download - uboot.2025.07-rc5-tld-1.ds116.boot.scr (1.1 KB)
open | download - uboot.2025.07-rc5-tld-1.ds116.boot.cmd (1.1 KB)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 10:47PM
Hi Bodhi,

Using your boot.scr, kwboot booted the USB rootfs all the way to debian login prompt successfully. (to have kwboot running more reliably, I need to keep the serial cable away from the power cord).

The only problem seems to be the ethernet mac address not quite right. I'm going to hard-code it in debian network config for the moment.

Thank you so much,

-Brian



Edited 2 time(s). Last edit at 07/08/2025 11:13PM by eno789.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 11:02PM
Hi Brian,

> Using your boot.scr, kwboot booted the USB rootfs
> all the way to debian login prompt successfully.

Cool!

>
> The only problem seems to be the ethernet mac
> address not quite right. I'm going to hard-code it
> in debian network config for the moment.

Yes, it is a random local MAC address when you kwboot this way. So that's the best way to fix it for now.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 11:13PM
I think I'm ready to flash the u-boot and environment on the ds116. Let me know if you want me to test anything else. Maybe we also want to test the rootfs on SATA?

I also got access to a thecus n2350, I have serial console and installed 2015 uboot & env, can boot USB rootfs automatically. But for some reason I could not get the download-serial.sh to work.

This is fun.

-Brian
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 08, 2025 11:38PM
Brian,

Let me write the flashing instruction (in the next few days or weeks if I can). It will save you some headache :) there is an established procedure what to do when you flash new u-boot and envs image. You could also post what you think you need to do next and I'll comment on it.

But now that you know you can recover the box with kwboot, you could experiment.

> Maybe we also want to
> test the rootfs on SATA?

Youl could boot SATA rootfs now if you want. Just copy the boot.scr to the SATA rootfs, remove the USB rootfs. And it will boot all the way to Debian rootfs on SATA.

I'm booting my DS116 with SSD SATA roots (it's my development environment).

> I also got access to a thecus n2350, I have serial
> console and installed 2015 uboot & env, can boot
> USB rootfs automatically. But for some reason I
> could not get the download-serial.sh to work.

You don't need to use download-serial.sh anymore with the new Thecus N250 u-boot. That's the one of the main reasons I worked on the new u-boot for Thecus N2350.

Just make sure you use the latest kwboot binary I've uploaded.

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

And you can repeat the same similar test you did for the DS116.

> This is fun.

Glad to hear!

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



Edited 2 time(s). Last edit at 07/08/2025 11:55PM by bodhi.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 09, 2025 05:17PM
Good news is kwboot (version 2025.01) works (handshake and transfer). But probably the n2350 uboot was too old, boot failed.

What I did was copied the ds116 boot.cmd, modified to ns2350, generated boot.scr and placed it in rootfs /boot directory.

Please let me know what I should fix.

Thanks,

-Brian

# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2023.04-rc1-tld-1.n2350.mtd0.kwb -p
kwboot version 2025.01
Detected kwbimage v1 with SPI boot signature
Patching image boot signature to UART
Aligning image header to Xmodem block size
Sending boot message. Please reboot the target...-
Sending boot image header (118784 bytes)...
  0 % [......................................................................]
  7 % [......................................................................]
 15 % [......................................................................]
 22 % [......................................................................]
 30 % [......................................................................]
 37 % [......................................................................]
 45 % [......................................................................]
 52 % [......................................................................]
 60 % [......................................................................]
 67 % [......................................................................]
 75 % [......................................................................]
 83 % [......................................................................]
 90 % [......................................................................]
 98 % [..................                                                    ]
Done

U-Boot SPL 2023.04-tld-1-00214-gda66cc7a1c-dirty (Feb 06 2023 - 16:09:42 -0800)
High speed PHY - Version: 2.0
Detected Device ID 6820
board SerDes lanes topology details:
 | Lane # | Speed |  Type       |
 --------------------------------
 |   0    |   0   | SGMII0	|
 |   1    |   3   | SATA0	|
 |   2    |   3   | SATA1	|
 |   4    |   5   | USB3 HOST0	|
 |   5    |   5   | USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from BOOTROM
Returning to BootROM (return address 0xffff05c4)...

Sending boot image data (477812 bytes)...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  9 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 48 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 84 % [......................................................................]
 86 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 91 % [......................................................................]
 93 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [.......................                                               ]
Done
Finishing transfer
[Type Ctrl-\ + c to quit]


U-Boot 2023.04-tld-1-00214-gda66cc7a1c-dirty (Feb 06 2023 - 16:09:42 -0800)
Thecus N2350

SoC:   MV88F6820-A0 at 1066 MHz
DRAM:  1 GiB (533 MHz, 32-bit, ECC not enabled)
Core:  62 devices, 22 uclasses, devicetree: separate
MMC:
Loading Environment from SPIFlash... SF: Detected mx25l3205d with page size 256 Bytes, erase size 4 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

Model: Thecus N2350
Net:
Warning: ethernet@70000 (eth0) using random MAC address - 9a:e8:68:b5:b9:43
eth0: ethernet@70000
Hit any key to stop autoboot:  0
pcie0.0: Link down
pcie1.0: Link down
scanning bus for devices...
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs

Device 0: unknown device
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 2 USB Device(s) found
scanning bus usb3@f8000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: SanDisk Rev: 1.00 Prod: Ultra Fit
            Type: Removable Hard Disk
            Capacity: 58656.0 MB = 57.2 GB (120127488 x 512)
... is now current device
Scanning usb 0:1...
Found U-Boot script /boot/boot.scr
1146 bytes read in 2 ms (559.6 KiB/s)
## Executing script at 01800000
Booting with N2350 distro boot script
loading uImage from usb 0:1 ...
5173840 bytes read in 73 ms (67.6 MiB/s)
loading uInitrd from usb 0:1 ...
5268566 bytes read in 69 ms (72.8 MiB/s)
loading DTB file from usb 0:1 ...
Failed to load '/boot/dts/armada-thecus-n2350.dtb'
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-6.15.2-mvebu-tld-1
   Created:      2025-07-09  16:20:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5173776 Bytes = 4.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02200000 ...
   Image Name:   initramfs-6.15.2-mvebu-tld-1
   Created:      2025-07-09   2:58:08 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5268502 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...
No EFI system partition
No EFI system partition
Failed to persist EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
ethernet@70000 Waiting for PHY auto negotiation to complete....... done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
DHCP client bound to address 192.168.1.152 (3513 ms)
*** Warning: no boot file name; using 'C0A80198.img'
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'C0A80198.img'.
Load address: 0x800000
Loading: *
TFTP server died; starting again
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-9a-e8-68-b5-b9-43
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/01-9a-e8-68-b5-b9-43'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A80198
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A80198'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A8019
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A8019'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A801
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A801'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A80
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A80'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A8
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A8'.
Load address: 0x1900000
Loading: T
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0A
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0A'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C0
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C0'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/C
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/C'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm-mvebu-n2350
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/default-arm-mvebu-n2350'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm-mvebu
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/default-arm-mvebu'.
Load address: 0x1900000
Loading: T
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default-arm
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/default-arm'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Retrieving file: pxelinux.cfg/default
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'pxelinux.cfg/default'.
Load address: 0x1900000
Loading: *
TFTP server died; starting again
Config file not found
BOOTP broadcast 1
DHCP client bound to address 192.168.1.152 (3 ms)
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'boot.scr.uimg'.
Load address: 0x1800000
Loading: *
TFTP server died; starting again
BOOTP broadcast 1
DHCP client bound to address 192.168.1.152 (4 ms)
Using ethernet@70000 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.152
Filename 'boot.scr.uimg'.
Load address: 0x1000000
Loading: *
TFTP server died; starting again
N2350 > usb start; ext2load usb 0:1 0x02000000 /boot/boot.scr; source 0x02000000;
1146 bytes read in 0 ms
## Executing script at 02000000
Booting with N2350 distro boot script
loading uImage from dhcp 0:1 ...
** Bad device specification dhcp 0 **
Couldn't find partition dhcp 0:1
Can't set block device
loading uInitrd from dhcp 0:1 ...
** Bad device specification dhcp 0 **
Couldn't find partition dhcp 0:1
Can't set block device
loading DTB file from dhcp 0:1 ...
** Bad device specification dhcp 0 **
Couldn't find partition dhcp 0:1
Can't set block device
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-6.15.2-mvebu-tld-1
   Created:      2025-07-09  16:20:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5173776 Bytes = 4.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02200000 ...
   Image Name:   initramfs-6.15.2-mvebu-tld-1
   Created:      2025-07-09   2:58:08 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5268502 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree from Legacy Image at 02000000
   Image Name:   Boot Script
   Created:      2025-07-09  16:17:39 UTC
   Image Type:   ARM Linux Script (uncompressed)
   Data Size:    1082 Bytes = 1.1 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Contents:
      Image 0: 1074 Bytes = 1 KiB
   Verifying Checksum ... OK
ERROR: uImage is not a fdt - must RESET the board to recover.
Working FDT set to 0
   Loading Kernel Image
   Loading Ramdisk to 0faf9000, end 0ffff416 ... OK

Starting kernel ...


Error: invalid dtb and unrecognized/unsupported machine ID
  r1=0x00000000, r2=0x00000100
  r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00
Available machine support:

ID (hex)	NAME
ffffffff	Generic DT based system
ffffffff	Marvell MMP2 (Device Tree Support)
ffffffff	Marvell MMP3
ffffffff	Marvell Armada 39x (Device Tree)
ffffffff	Marvell Armada 380/385 (Device Tree)
ffffffff	Marvell Armada 375 (Device Tree)
ffffffff	Marvell Armada 370/XP (Device Tree)
ffffffff	Marvell Dove

Please check your kernel config and/or bootloader.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 09, 2025 06:13PM
Strange, it looks like it should work

Scanning usb 0:1...
Found U-Boot script /boot/boot.scr
1146 bytes read in 2 ms (559.6 KiB/s)
## Executing script at 01800000
Booting with N2350 distro boot script
loading uImage from usb 0:1 ...
5173840 bytes read in 73 ms (67.6 MiB/s)
loading uInitrd from usb 0:1 ...
5268566 bytes read in 69 ms (72.8 MiB/s)
loading DTB file from usb 0:1 ...
Failed to load '/boot/dts/armada-thecus-n2350.dtb'


Is the USB rootfs type Ext3? Can you take the USB root to another box and check the folder and file
ls -l /media/sdb1/boot/dts/armada-thecus-n2350.dtb  ## if it is mounted at /media/sdb1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 09, 2025 06:26PM
Brian,

Yes, this u-boot is a bit old for the new DS116 boot.scr.

Try creating the script like you did here

https://forum.doozan.com/read.php?3,133945,140004#msg-140004

And boot automatically.

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



Edited 1 time(s). Last edit at 07/09/2025 06:28PM by bodhi.
Re: 2023.04 U-Boot MVEBU -- Armada 38x
July 09, 2025 11:28PM
Hi Bodhi,

Everything's working now.

On Synology DS116
kwboot your uboot.2025.07-rc5-tld-1.ds116.kwb (standard uImage)
autoboot with uboot.2025.07-rc5-tld-1.ds116.boot.scr as /boot/boot.scr
of either USB or SATA rootfs.

On Thecus N2350
kwboot uboot.2023.04-rc1-tld-1.n2350.mtd0.kwb (uImage still the one with dtb appended)
autoboots with /boot/boot.scr generated from setenv commands converted from thecus-n2350-boot-script-tld-5.sh
only tried USB rootfs.

I understand that the 2025.07 uboot is the one we eventually want to flash.
It's good that I verified kwboot works great on both now.

Appreciate your continued help. When you're ready with the flash instruction, I can test it.

-Brian
Re: 2023.04 U-Boot MVEBU -- Armada 38x
September 30, 2025 01:43AM
Hi Brian,

I did not have time to work on this, and now u-boot 2025.10 will be out a week from now. I'll rebase to 2025.10 before releasing these 2 u-boots.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot MVEBU -- Armada 38x
October 01, 2025 07:41PM
Sounds good, thank you bodhi!
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: