Welcome! Log In Create A New Profile

Advanced

Debian on Synology DS413J

Posted by jhackert 
Re: Install Debian on Synology DS413J
March 22, 2023 01:51PM
Billy,

It looks very good. We lost 2 HDDs, but all 4 were detected properly before that.

Seagate ST1000DM003
[   14.923205][   T98] ata3: link is slow to respond, please be patient (ready=0)
[   15.203233][   T98] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   15.214917][   T98] ata3.00: ATA-9: ST1000DM003-1CH162, CC47, max UDMA/133
[   15.221834][   T98] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   15.236368][   T98] ata3.00: configured for UDMA/133
[   15.251791][   T81] scsi 2:0:0:0: Direct-Access     ATA      ST1000DM003-1CH1 CC47 PQ: 0 ANSI: 5
[   15.261643][    T7] sd 2:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   15.270872][    T7] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[   15.276950][    T7] sd 2:0:0:0: [sdb] Write Protect is off
[   15.282573][    T7] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

Seagate ST1000DM003
[   27.823232][  T100] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   27.834910][  T100] ata4.00: ATA-9: ST1000DM003-1ER162, CC45, max UDMA/133
[   27.841828][  T100] ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   27.858586][  T100] ata4.00: configured for UDMA/133
[   27.874030][  T102] scsi 3:0:0:0: Direct-Access     ATA      ST1000DM003-1ER1 CC45 PQ: 0 ANSI: 5
[   27.883914][    T7] sd 3:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   27.892321][    T7] sd 3:0:0:0: [sdc] 4096-byte physical blocks
[   27.898753][    T7] sd 3:0:0:0: [sdc] Write Protect is off
[   27.904432][    T7] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

TOSHIBA DT01ACA1
[   35.733234][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   35.744970][   T94] ata1.00: ATA-8: TOSHIBA DT01ACA100, MS2OA750, max UDMA/133
[   35.752290][   T94] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   35.766868][   T94] ata1.00: configured for UDMA/133
[   35.772303][  T117] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA DT01ACA1 A750 PQ: 0 ANSI: 5
[   35.785431][  T108] sd 0:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   35.798494][  T108] sd 0:0:0:0: [sdd] 4096-byte physical blocks
[   35.804683][  T108] sd 0:0:0:0: [sdd] Write Protect is off
[   35.810381][  T108] sd 0:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA


Error here:
[   39.603676][  T155] reg-fixed-voltage regulators-hdd-30-4:regulator@3: nonexclusive access to GPIO for regulators-hdd-30-4:regulator@3
[   39.944726][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[   44.644783][  T155] reg-fixed-voltage regulators-hdd-30-4:regulator@4: nonexclusive access to GPIO for regulators-hdd-30-4:regulator@4


Seagate ST1000DM003
[   44.963704][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   44.975473][   T96] ata2.00: supports DRM functions and may not be fully accessible
[   44.983251][   T96] ata2.00: ATA-9: ST1000DM003-1ER162, CC43, max UDMA/133
[   44.990210][   T96] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   45.008486][   T96] ata2.00: supports DRM functions and may not be fully accessible
[   45.017715][   T96] ata2.00: configured for UDMA/133
[   45.023172][  T117] scsi 1:0:0:0: Direct-Access     ATA      ST1000DM003-1ER1 CC43 PQ: 0 ANSI: 5
[   45.036435][  T108] sd 1:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   45.049713][  T108] sd 1:0:0:0: [sde] 4096-byte physical blocks
[   45.055927][  T108] sd 1:0:0:0: [sde] Write Protect is off
[   45.061633][  T108] sd 1:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Error here:
[   55.773348][  T117] sd 2:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[   61.094441][  T117] sd 3:0:0:0: [sdc] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

Quote

_________
|---disk1--------|
|---disk2--------|
|---disk3--------|
|---disk4--------|
|-motherbd----|
-------------------

My disk1 id detected as sdD this times and disk2 as sdE.

Strange, that could mean the first 2 slots are PCIe bus, and last 2 slots are internal SATA. But usually that's not the case.

The GPIOs might have been taken by other peripherals. So I think I know what I was lacking or what was wrong.

=====

I will write the next commands.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 22, 2023 03:02PM
It's the same test with USB rootfs and 4 HDDs in the slots. And the latest uEnv.txt on the USB rootfs /boot.

kwboot with the NSA325 uboot image. Interrupt the countdown. And,

MPPs

mw.l 0xF1010000	01002222
mw.l 0xF1010004	03303311
mw.l 0xF1010008	00000000
mw.l 0xF101000C	00000000
mw.l 0xF1010010	00000000
mw.l 0xF1010014	00000000
mw.l 0xF1010018	00000000
mw.l 0xF101001C	00000000
sleep 3

GPIOs
mw.l 0xF1010100 0x40008000
mw.l 0xF1010140 0x00003AA4
sleep 3

See if the 2 internal SATA HDDs can be seen by u-boot.
usb start
ide reset

And then
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 22, 2023 05:23PM
Bodhi

I'll try that tomorrow.

Thanks
Re: Install Debian on Synology DS413J
March 23, 2023 04:04AM
bodhi Wrote:
-------------------------------------------------------
> It's the same test with USB rootfs and 4 HDDs in
> the slots. And the latest uEnv.txt on the USB
> rootfs /boot.
>
> kwboot with the NSA325 uboot image. Interrupt the
> countdown. And,
>
> MPPs
>
>
> mw.l 0xF1010000	01002222
> mw.l 0xF1010004	03303311
> mw.l 0xF1010008	00000000
> mw.l 0xF101000C	00000000
> mw.l 0xF1010010	00000000
> mw.l 0xF1010014	00000000
> mw.l 0xF1010018	00000000
> mw.l 0xF101001C	00000000
> sleep 3
>
>
> GPIOs
>
> mw.l 0xF1010100 0x40008000
> mw.l 0xF1010140 0x00003AA4
> sleep 3
>
>
> See if the 2 internal SATA HDDs can be seen by
> u-boot.
>
> usb start
> ide reset
>
>
> And then
>
> boot
>

it didn(t boot :
root@Arc-170:~/tools# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> mw.l 0xF101000001002222
mw - memory write (fill)

Usage:
mw [.b, .w, .l] address value [count]
NSA325> mw.l 0xF101000001002222
mw - memory write (fill)

Usage:
mw [.b, .w, .l] address value [count]
NSA325> mw.l 0xF101000001002222
mw - memory write (fill)

Usage:
mw [.b, .w, .l] address value [count]
NSA325> mw.l 0xF101000001002222 1
NSA325> mw.l 0xF1010000 01002222
NSA325> mw.l 0xF1010004 03303311
NSA325> mw.l 0xF1010008 00000000
NSA325> mw.l 0xF101000C 00000000
NSA325> mw.l 0xF1010010 00000000
NSA325> mw.l 0xF1010014 00000000
NSA325> mw.l 0xF1010018 00000000
NSA325> mw.l 0xF101001C 00000000
NSA325> sleep 3
NSA325> mw.l 0xF1010100 0x40008000
NSA325> mw.l 0xF1010140 0x00003AA4
NSA325> sleep 3
NSA325> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
NSA325> ide reset

Reset IDE: ide_preinit failed
NSA325> boot

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     21920           60729952        00000000-01     07

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
310 bytes read in 876 ms (0 Bytes/s)

no IDE devices available
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 754 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 1068 ms (4.9 MiB/s)
loading uInitrd ...
9672316 bytes read in 1002 ms (9.2 MiB/s)
loading DTB /boot/dts/kirkwood-ds413j.dtb ...
21852 bytes read in 3997 ms (4.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2023-03-03  15:37:42 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9672252 Bytes = 9.2 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 ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d63c ... OK
   Loading Device Tree to 1f1cb000, end 1f1d355b ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    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: Synology DS413j
[    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-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:1M(u-boot),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490912K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33376K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    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] 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.008597][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015974][    T0] Console: colour dummy device 80x30
[    0.021227][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032551][    T0] pid_max: default: 32768 minimum: 301
[    0.038216][    T0] LSM: Security Framework initializing
[    0.043735][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051841][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061546][    T0] CPU: Testing write buffer coherency: ok
[    0.069208][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076389][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.082587][    T1] rcu: Hierarchical SRCU implementation.
[    0.089339][    T1] devtmpfs: initialized
[    0.101885][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112565][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.148212][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.155438][    T1] prandom: seed boundary self test passed
[    0.164221][    T1] prandom: 100 self tests passed
[    0.169077][    T1] pinctrl core: initialized pinctrl subsystem
[    0.176381][    T1] NET: Registered protocol family 16
[    0.182224][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.190664][    T1] audit: initializing netlink subsys (disabled)
[    0.197961][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.198317][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.213728][    T1] cpuidle: using governor ladder
[    0.218672][    T1] cpuidle: using governor menu
[    0.223768][    T1] Feroceon L2: Enabling L2
[    0.228091][    T1] Feroceon L2: Cache support initialised.
[    0.243864][    T1] No ATAGs?
[    2.568603][    C0] random: fast init done
[    3.897402][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.923922][   T59] wait_for_initramfs() called before rootfs_initcalls
[    4.118767][    T1] raid6: int32x8  gen()   150 MB/s
[    4.288672][    T1] raid6: int32x8  xor()    91 MB/s
[    4.458643][    T1] raid6: int32x4  gen()   145 MB/s
[    4.628716][    T1] raid6: int32x4  xor()    95 MB/s
[    4.798713][    T1] raid6: int32x2  gen()   188 MB/s
[    4.968710][    T1] raid6: int32x2  xor()   113 MB/s
[    5.138607][    T1] raid6: int32x1  gen()   131 MB/s
[    5.308670][    T1] raid6: int32x1  xor()    79 MB/s
[    5.313655][    T1] raid6: using algorithm int32x2 gen() 188 MB/s
[    5.319788][    T1] raid6: .... xor() 113 MB/s, rmw enabled
[    5.325383][    T1] raid6: using intx1 recovery algorithm
[    5.331043][    T1] vgaarb: loaded
[    5.334911][    T1] SCSI subsystem initialized
[    5.339822][    T1] usbcore: registered new interface driver usbfs
[    5.346076][    T1] usbcore: registered new interface driver hub
[    5.352191][    T1] usbcore: registered new device driver usb
[    5.358115][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.363820][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.373722][    T1] PTP clock support registered
[    5.379882][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.470431][    T1] VFS: Disk quotas dquot_6.6.0
[    5.475157][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.507579][    T1] NET: Registered protocol family 2
[    5.520055][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.540247][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.549377][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.569985][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.577908][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.600128][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.608142][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.629917][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.637812][    T1] NET: Registered protocol family 1
[    5.660460][    T1] RPC: Registered named UNIX socket transport module.
[    5.667112][    T1] RPC: Registered udp transport module.
[    5.689895][    T1] RPC: Registered tcp transport module.
[    5.695321][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.709904][    T1] PCI: CLS 0 bytes, default 32
[    5.719905][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.727528][   T58] Trying to unpack rootfs image as initramfs...
[    7.056803][   T58] Freeing initrd memory: 9448K
[    7.398365][    T1] Initialise system trusted keyrings
[    7.403633][    T1] Key type blacklist registered
[    7.408565][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    7.415901][    T1] zbud: loaded
[    7.420400][    T1] NFS: Registering the id_resolver key type
[    7.426196][    T1] Key type id_resolver registered
[    7.431156][    T1] Key type id_legacy registered
[    7.435915][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.443375][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.451518][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.458824][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    7.467004][    T1] fuse: init (API version 7.34)
[    7.472079][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.479409][    T1] orangefs_init: module version upstream loaded
[    7.485590][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.573457][    T1] xor: measuring software checksum speed
[    7.585748][    T1]    arm4regs        :  1469 MB/sec
[    7.601968][    T1]    8regs           :   890 MB/sec
[    7.614801][    T1]    32regs          :  1282 MB/sec
[    7.619913][    T1] xor: using function: arm4regs (1469 MB/sec)
[    7.625864][    T1] async_tx: api initialized (async)
[    7.630976][    T1] Key type asymmetric registered
[    7.635792][    T1] Asymmetric key parser 'x509' registered
[    7.641474][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.649656][    T1] io scheduler bfq registered
[    7.803831][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.813532][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.823497][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.833668][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.843842][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.854017][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.864714][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.875405][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.886088][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.897090][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.905424][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.911660][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.922602][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.933545][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.944487][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.952108][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.959244][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.966022][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.973806][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.980583][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.989730][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.996074][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.004849][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.013788][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    8.020566][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[    8.028094][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[    8.034566][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 8.000 Gb/s with 2.5 GT/s PCIe x4 link)
[    8.050389][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    8.062773][    T1] PCI: bus1: Fast back to back transfers disabled
[    8.069084][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.078195][    T1] PCI: bus2: Fast back to back transfers enabled
[    8.084435][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    8.091954][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.099567][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    8.106678][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    8.114654][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    8.122635][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    8.130704][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    8.137711][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.143418][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    8.150430][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.157960][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    8.163759][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    8.171152][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.230739][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.240854][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.300740][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.311107][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.319398][    T1] printk: console [ttyS0] disabled
[    8.324531][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    8.334332][    T1] printk: console [ttyS0] enabled
[    8.334332][    T1] printk: console [ttyS0] enabled
[    8.344155][    T1] printk: bootconsole [earlycon0] disabled
[    8.344155][    T1] printk: bootconsole [earlycon0] disabled
[    8.356211][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    8.372992][    T1] loop: module loaded
[    8.377234][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[    8.384161][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    8.398331][    T1] scsi host0: sata_mv
[    8.402778][    T1] scsi host1: sata_mv
[    8.407123][    T1] scsi host2: sata_mv
[    8.411499][    T1] scsi host3: sata_mv
[    8.415556][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 37
[    8.423996][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 37
[    8.432409][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 37
[    8.440821][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 37
[    8.450595][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.459466][    T1] scsi host4: sata_mv
[    8.463902][    T1] scsi host5: sata_mv
[    8.467961][    T1] ata5: SATA max UDMA/133 irq 34
[    8.472838][    T1] ata6: SATA max UDMA/133 irq 34
[    8.479288][    T1] spi-nor spi0.0: found n25q064, expected m25p80
[    8.485815][    T1] spi-nor spi0.0: n25q064 (8192 Kbytes)
[    8.491282][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    8.497931][    T1] Creating 2 MTD partitions on "spi0.0":
[    8.503473][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.510464][    T1] 0x000000100000-0x000000800000 : "data"
[    8.517480][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.526088][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.537369][    T1] libphy: Fixed MDIO Bus: probed
[    8.543470][    T1] libphy: orion_mdio_bus: probed
[    8.548491][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    8.570075][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.579536][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.589193][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.596553][    T1] ehci-pci: EHCI PCI platform driver
[    8.601812][    T1] ehci-orion: EHCI orion driver
[    8.606702][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.612998][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.621576][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    8.649915][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.656893][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.665927][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.673925][    T1] usb usb1: Product: EHCI Host Controller
[    8.679549][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.687011][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.693029][    T1] hub 1-0:1.0: USB hub found
[    8.697575][    T1] hub 1-0:1.0: 1 port detected
[    8.702948][    T1] usbcore: registered new interface driver usb-storage
[    8.710129][    T1] mousedev: PS/2 mouse device common for all mice
[    8.716705][    T1] i2c /dev entries driver
[    8.722582][    T1] rtc-s35390a 0-0030: error resetting chip
[    8.728827][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    8.736104][    T1] device-mapper: uevent: version 1.0.3
[    8.741767][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    8.751358][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.758672][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.766078][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.773521][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.780410][   T94] ata1: SATA link down (SStatus 0 SControl 300)
[    8.786561][    T1] device-mapper: raid: Loading target version 1.15.1
[    8.795316][    T1] hid: raw HID events driver (C) Jiri Kosina
[    8.801592][    T1] drop_monitor: Initializing network drop monitor service
[    8.809556][    T1] NET: Registered protocol family 10
[    8.814797][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[    8.822172][    T1] Segment Routing with IPv6
[    8.826562][    T1] RPL Segment Routing with IPv6
[    8.831478][    T1] NET: Registered protocol family 17
[    8.836861][    T1] Key type dns_resolver registered
[    8.842529][    T1] registered taskstats version 1
[    8.847354][    T1] Loading compiled-in X.509 certificates
[    8.853260][    T1] zswap: loaded using pool lzo/zbud
[    8.858630][    T1] Key type ._fscrypt registered
[    8.863430][    T1] Key type .fscrypt registered
[    8.868077][    T1] Key type fscrypt-provisioning registered
[    8.875362][    T1] Key type big_key registered
[    8.904351][    T1] Key type encrypted registered
[    8.989910][  T117] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.141434][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[    9.191584][  T117] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.200535][  T117] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.208420][  T117] usb 1-1: Product: USB2.0 Hub
[    9.213886][  T117] hub 1-1:1.0: USB hub found
[    9.218712][  T117] hub 1-1:1.0: 4 ports detected
�
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE 

U-Boot 1.1.4 (May 22 2012 - 19:52:31) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B3D4

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 512MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Using default environment

[8192kB@f8000000] Flash:  8 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.

Synology Model: DS413j
Fan Status: Not Good
Fan 1: Not Good
Fan 2: Not Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
## Booting image at f8090000 ...
Bad Magic Number
Marvell>> 
Re: Install Debian on Synology DS413J
March 23, 2023 01:41PM
NSA325> mw.l 0xF101000001002222 1      # this looks wrong
NSA325> mw.l 0xF1010000 01002222
NSA325> mw.l 0xF1010004 03303311
NSA325> mw.l 0xF1010008 00000000
NSA325> mw.l 0xF101000C 00000000
NSA325> mw.l 0xF1010010 00000000
NSA325> mw.l 0xF1010014 00000000
NSA325> mw.l 0xF1010018 00000000
NSA325> mw.l 0xF101001C 00000000
NSA325> sleep 3
NSA325> mw.l 0xF1010100 0x40008000
NSA325> mw.l 0xF1010140 0x00003AA4

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 23, 2023 03:12PM
Billy,

Put everything inside uEnv.txt, so you don't have to type in the commands. Note that the last 2 envs are very long. But I'd expect you will be able to do select/copy/paste to a text file OK.

cat /boot/uEnv.txt
ipaddr=192.168.10.200
serverip=192.168.10.161
netmask=255.255.255.0
gatewayip=192.168.10.1
mtdparts=mtdparts=spi0.0:1M(u-boot),-(data)
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
dtb_file=/boot/dts/kirkwood-ds413j.dtb
ethaddr=52:3b:20:xx:xx:xx
gpio_config=mw.l 0xF1010000 01002222; mw.l 0xF1010004 03303311; mw.l 0xF1010008 00000000; mw.l 0xF101000C 00000000; mw.l 0xF1010010 00000000; mw.l 0xF1010014 00000000; mw.l 0xF1010018 00000000; mw.l 0xF101001C 00000000; sleep 3; mw.l 0xF1010100 0x40008000; mw.l 0xF1010140 0x00003AA4; sleep 3
scan_disk=run gpio_config; echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset; sleep 1; usb reset";  setenv scan_sata "sata init";  setenv scan_mmc "mmc rescan"; 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

Run the same test with USB rootfs and 4 HDDs in the slots. And the latest uEnv.txt on the USB rootfs /boot.

kwboot with the NSA325 uboot image. Interrupt the countdown. And,

This loads and imports the envs from uEnv.txt, without booting,
run bootcmd_uenv
And then list the envs to check if the envs were populated correctly,
printenv
Copy the envs listing to some notepad for keepsake. And then boot
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 23, 2023 05:35PM
Billy,

I've released new Kirkwood kernel with this box initial supports.

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

Quote

Updated 23 Mar 2023:
Kernel linux-6.2.7-kirkwood-tld-1 package has been uploaded. The following features were added/updated:

You should intstall it on your USB rootfs. And since you are booting with the NSA325 u-boot-207.07, it is a new u-boot..

Quote

4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 24, 2023 02:44AM
Hi Bodhi,

Quote

Credits:

- Thanks BillyIT for doing most of the testing to bring up the Synology DS413j box.

Thanks for your passion about it to help do that together :)
Re: Install Debian on Synology DS413J
March 24, 2023 03:49AM
Hi Bodhi,

I'm a bit confused. I'm trying to install new version but i'm stucked at this :
root@Arc-170:/mnt/boot# ls -l
total 141740
-rw-r--r-- 1 root root   183927  1 août   2021 config-5.13.6-kirkwood-tld-1
-rw-r--r-- 1 root root   195246 21 mars  23:31 config-6.2.7-kirkwood-tld-1
drwxr-xr-x 2 root root     4096 26 févr. 03:35 dts
-rw-r--r-- 1 root root  9672252  3 mars  16:36 initrd.img-5.13.6-kirkwood-tld-1
-rw-r--r-- 1 root root 39528022 24 mars  09:15 linux-6.2.7-kirkwood-tld-1-bodhi.tar.bz2
-rw-r--r-- 1 root root   165133 22 mars  22:31 linux-6.2.7-kirkwood-tld-1.patch
-rw-r--r-- 1 root root  1382400 22 mars  03:46 linux-dtb-6.2.7-kirkwood-tld-1.tar
-rw-r--r-- 1 root root  7762080  1 août   2021 linux-headers-5.13.6-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root  8377012 22 mars  03:12 linux-headers-6.2.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root 24775556 22 mars  03:14 linux-image-6.2.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root  4403336  1 août   2021 System.map-5.13.6-kirkwood-tld-1
-rw-r--r-- 1 root root     1151 24 mars  09:28 uEnv.txt
-rw-r--r-- 1 root root        0 24 mars  09:29 uImage
-rw-r--r-- 1 root root  5435888 16 mars  09:16 uImage.before
-rw-r--r-- 1 root root  5457740  7 mars  08:29 uImage.dj413
-rw-r--r-- 1 root root  5435888 24 sept.  2021 uImage.orig
-rw-r--r-- 1 root root  9672316  3 mars  16:37 uInitrd
-rwxr-xr-x 1 root root  5435824  1 août   2021 vmlinuz-5.13.6-kirkwood-tld-1
-rwxr-xr-x 1 root root  5435824  1 août   2021 zImage-5.13.6-kirkwood-tld-1
-rwxr-xr-x 1 root root  6062616 22 mars  02:55 zImage-6.2.7-kirkwood-tld-1
-rwxr-xr-x 1 root root  5457676  7 mars  08:29 zImage.fdt
root@Arc-170:/mnt/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.2.7-kirkwood-tld-1 -d zImage-6.2.7-kirkwood-tld-1 uImage
Image Name:   Linux-6.2.7-kirkwood-tld-1
Created:      Fri Mar 24 09:42:11 2023
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    6062616 Bytes = 5920.52 KiB = 5.78 MiB
Load Address: 00008000
Entry Point:  00008000
root@Arc-170:/mnt/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.1.7-kirkwood-tld-1 -d initrd.img-6.1.7-kirkwood-tld-1 uInitrd
mkimage: Can't open initrd.img-6.1.7-kirkwood-tld-1: No such file or directory

inside the tar.bz2 there is not the files that we need to make with mkimage :
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.1.7-kirkwood-tld-1 -d vmlinuz-6.1.7-kirkwood-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.1.7-kirkwood-tld-1 -d initrd.img-6.1.7-kirkwood-tld-1 uInitrd

Can i do this line "dpkg -i linux-image-6.1.7-kirkwood-tld-1_1.0_armel.deb" because i'm on another system and i mount my usb key !

I tried to boot but it's crashed after usb :

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
NSA325> run bootcmd_uenv
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     21920           60729952        00000000-01     07

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
1151 bytes read in 861 ms (1000 Bytes/s)

no IDE devices available
importing envs ...
## Error: flags type check failure for "ethaddr" <= "52:3b:20:xx:xx:xx" (type: m)
himport_r: can't insert "ethaddr=52:3b:20:xx:xx:xx" into hash table
NSA325> printenv
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; 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
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-ds413j.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fileaddr=810000
filesize=47f
gatewayip=192.168.10.1
gpio_config=mw.l 0xF1010000 01002222; mw.l 0xF1010004 03303311; mw.l 0xF1010008 00000000; mw.l 0xF101000C 00000000; mw.l 0xF1010010 00000000; mw.l 0xF1010014 00000000; mw.l 0xF1010018 00000000; mw.l 0xF101001C 00000000; sleep 3; mw.l 0xF1010100 0x40008000; mw.l 0xF1010140 0x00003AA4; sleep 3
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.10.200
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=spi0.0:1M(u-boot),-(data)
netmask=255.255.255.0
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=run gpio_config; echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset; sleep 1; usb reset";  setenv scan_sata "sata init";  setenv scan_mmc "mmc rescan"; 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
serverip=192.168.10.161
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=1
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3368/131068 bytes
NSA325> boot

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     21920           60729952        00000000-01     07

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
1151 bytes read in 861 ms (1000 Bytes/s)

no IDE devices available
importing envs ...
## Error: flags type check failure for "ethaddr" <= "52:3b:20:xx:xx:xx" (type: m)
himport_r: can't insert "ethaddr=52:3b:20:xx:xx:xx" into hash table
running scan_disk ...
Scan device usb
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
device usb 0:1
1 bytes read in 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 1038 ms (5 MiB/s)
loading uInitrd ...
9672316 bytes read in 972 ms (9.5 MiB/s)
loading DTB /boot/dts/kirkwood-ds413j.dtb ...
22248 bytes read in 3952 ms (4.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2023-03-03  15:37:42 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9672252 Bytes = 9.2 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 ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d63c ... OK
   Loading Device Tree to 1f1cb000, end 1f1d36e7 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    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: Synology DS413j
[    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-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:1M(u-boot),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490912K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33376K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    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] 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.008597][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015974][    T0] Console: colour dummy device 80x30
[    0.021226][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032549][    T0] pid_max: default: 32768 minimum: 301
[    0.038219][    T0] LSM: Security Framework initializing
[    0.043733][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051832][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061543][    T0] CPU: Testing write buffer coherency: ok
[    0.069214][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076393][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.082595][    T1] rcu: Hierarchical SRCU implementation.
[    0.089340][    T1] devtmpfs: initialized
[    0.101948][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112633][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.148282][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.155508][    T1] prandom: seed boundary self test passed
[    0.164284][    T1] prandom: 100 self tests passed
[    0.169139][    T1] pinctrl core: initialized pinctrl subsystem
[    0.176454][    T1] NET: Registered protocol family 16
[    0.182309][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.190724][    T1] audit: initializing netlink subsys (disabled)
[    0.198042][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.198397][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.213806][    T1] cpuidle: using governor ladder
[    0.218758][    T1] cpuidle: using governor menu
[    0.223845][    T1] Feroceon L2: Enabling L2
[    0.228169][    T1] Feroceon L2: Cache support initialised.
[    0.244058][    T1] No ATAGs?
[    2.568603][    C0] random: fast init done
[    3.897588][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.924086][   T59] wait_for_initramfs() called before rootfs_initcalls
[    4.118752][    T1] raid6: int32x8  gen()   150 MB/s
[    4.288626][    T1] raid6: int32x8  xor()    91 MB/s
[    4.458715][    T1] raid6: int32x4  gen()   146 MB/s
[    4.628622][    T1] raid6: int32x4  xor()    95 MB/s
[    4.798606][    T1] raid6: int32x2  gen()   187 MB/s
[    4.968658][    T1] raid6: int32x2  xor()   113 MB/s
[    5.138614][    T1] raid6: int32x1  gen()   131 MB/s
[    5.308733][    T1] raid6: int32x1  xor()    78 MB/s
[    5.313725][    T1] raid6: using algorithm int32x2 gen() 187 MB/s
[    5.319858][    T1] raid6: .... xor() 113 MB/s, rmw enabled
[    5.325453][    T1] raid6: using intx1 recovery algorithm
[    5.331102][    T1] vgaarb: loaded
[    5.334987][    T1] SCSI subsystem initialized
[    5.339901][    T1] usbcore: registered new interface driver usbfs
[    5.346155][    T1] usbcore: registered new interface driver hub
[    5.352267][    T1] usbcore: registered new device driver usb
[    5.358206][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.363908][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.373810][    T1] PTP clock support registered
[    5.379962][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.470501][    T1] VFS: Disk quotas dquot_6.6.0
[    5.475226][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.507459][    T1] NET: Registered protocol family 2
[    5.520131][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.540329][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.549455][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.570065][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.577986][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.600210][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.608222][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.629997][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.637902][    T1] NET: Registered protocol family 1
[    5.660541][    T1] RPC: Registered named UNIX socket transport module.
[    5.667190][    T1] RPC: Registered udp transport module.
[    5.689975][    T1] RPC: Registered tcp transport module.
[    5.695400][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.709984][    T1] PCI: CLS 0 bytes, default 32
[    5.719984][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.727607][   T58] Trying to unpack rootfs image as initramfs...
[    7.058200][   T58] Freeing initrd memory: 9448K
[    7.398663][    T1] Initialise system trusted keyrings
[    7.403940][    T1] Key type blacklist registered
[    7.408872][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    7.416207][    T1] zbud: loaded
[    7.420697][    T1] NFS: Registering the id_resolver key type
[    7.426494][    T1] Key type id_resolver registered
[    7.431452][    T1] Key type id_legacy registered
[    7.436212][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.443672][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.451815][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.459122][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    7.467297][    T1] fuse: init (API version 7.34)
[    7.472383][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.479706][    T1] orangefs_init: module version upstream loaded
[    7.485898][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.572818][    T1] xor: measuring software checksum speed
[    7.585031][    T1]    arm4regs        :  1485 MB/sec
[    7.601247][    T1]    8regs           :   890 MB/sec
[    7.614044][    T1]    32regs          :  1282 MB/sec
[    7.619118][    T1] xor: using function: arm4regs (1485 MB/sec)
[    7.625105][    T1] async_tx: api initialized (async)
[    7.630217][    T1] Key type asymmetric registered
[    7.635033][    T1] Asymmetric key parser 'x509' registered
[    7.640706][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.648887][    T1] io scheduler bfq registered
[    7.803078][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.812776][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.822747][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.832918][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.843092][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.853267][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.863964][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.874655][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.885338][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.896339][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.904675][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.910910][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.921852][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.932795][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.943737][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.951358][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.958496][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.965271][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.973040][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.979790][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.989015][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.995358][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.004134][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.013066][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    8.019822][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[    8.027373][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[    8.033851][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 8.000 Gb/s with 2.5 GT/s PCIe x4 link)
[    8.049672][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    8.062073][    T1] PCI: bus1: Fast back to back transfers disabled
[    8.068386][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.077511][    T1] PCI: bus2: Fast back to back transfers enabled
[    8.083756][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    8.091273][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.098887][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    8.105998][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    8.113973][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    8.121954][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    8.130024][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    8.137023][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.142729][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    8.149726][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.157269][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    8.163070][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    8.170483][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.230821][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.240938][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.300819][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.311197][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.319472][    T1] printk: console [ttyS0] disabled
[    8.324612][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    8.334410][    T1] printk: console [ttyS0] enabled
[    8.334410][    T1] printk: console [ttyS0] enabled
[    8.344233][    T1] printk: bootconsole [earlycon0] disabled
[    8.344233][    T1] printk: bootconsole [earlycon0] disabled
[    8.356283][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    8.373074][    T1] loop: module loaded
[    8.377133][    T1] irq: no irq domain found for interrupt-controller !
[    8.383988][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[    8.390887][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    8.403363][    T1] ------------[ cut here ]------------
[    8.408708][    T1] WARNING: CPU: 0 PID: 1 at drivers/ata/libata-core.c:5830 ata_host_activate+0x4c/0x130
[    8.418356][    T1] Modules linked in:
[    8.422143][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.13.6-kirkwood-tld-1 #1.0
[    8.430112][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    8.437117][    T1] [<8010e0a4>] (unwind_backtrace) from [<8010a8ac>] (show_stack+0x10/0x14)
[    8.445629][    T1] [<8010a8ac>] (show_stack) from [<8011d708>] (__warn+0xc8/0xf4)
[    8.453266][    T1] [<8011d708>] (__warn) from [<80afe094>] (warn_slowpath_fmt+0x74/0xa4)
[    8.461516][    T1] [<80afe094>] (warn_slowpath_fmt) from [<807abee4>] (ata_host_activate+0x4c/0x130)
[    8.470811][    T1] [<807abee4>] (ata_host_activate) from [<807c0ccc>] (mv_pci_init_one+0x254/0x308)
[    8.480018][    T1] [<807c0ccc>] (mv_pci_init_one) from [<806fdf34>] (pci_device_probe+0xbc/0x138)
[    8.489038][    T1] [<806fdf34>] (pci_device_probe) from [<80764780>] (really_probe+0x2bc/0x4ac)
[    8.497896][    T1] [<80764780>] (really_probe) from [<80764b04>] (driver_probe_device+0x194/0x1c8)
[    8.507006][    T1] [<80764b04>] (driver_probe_device) from [<80764f1c>] (device_driver_attach+0x44/0x5c)
[    8.516641][    T1] [<80764f1c>] (device_driver_attach) from [<80765058>] (__driver_attach+0x124/0x144)
[    8.526103][    T1] [<80765058>] (__driver_attach) from [<80762848>] (bus_for_each_dev+0x64/0xa0)
[    8.535050][    T1] [<80762848>] (bus_for_each_dev) from [<80763958>] (bus_add_driver+0x178/0x1e0)
[    8.544123][    T1] [<80763958>] (bus_add_driver) from [<80765928>] (driver_register+0xac/0xf0)
[    8.552894][    T1] [<80765928>] (driver_register) from [<811271ac>] (mv_init+0x14/0x4c)
[    8.561063][    T1] [<811271ac>] (mv_init) from [<80102534>] (do_one_initcall+0x94/0x1dc)
[    8.569297][    T1] [<80102534>] (do_one_initcall) from [<811015fc>] (kernel_init_freeable+0x1e8/0x234)
[    8.578765][    T1] [<811015fc>] (kernel_init_freeable) from [<80b091cc>] (kernel_init+0x8/0x118)
[    8.587711][    T1] [<80b091cc>] (kernel_init) from [<80100148>] (ret_from_fork+0x14/0x2c)
[    8.596036][    T1] Exception stack(0x814affb0 to 0x814afff8)
[    8.601828][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[    8.610758][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.619673][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    8.627032][    T1] ---[ end trace 16872c4c48e89fa6 ]---
[    8.634032][    T1] scsi host0: sata_mv
[    8.638426][    T1] scsi host1: sata_mv
[    8.642842][    T1] scsi host2: sata_mv
[    8.647195][    T1] scsi host3: sata_mv
[    8.651290][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000
[    8.659077][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000
[    8.666876][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000
[    8.674674][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000
[    8.683809][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.692717][    T1] scsi host4: sata_mv
[    8.697105][    T1] scsi host5: sata_mv
[    8.701226][    T1] ata5: SATA max UDMA/133 irq 34
[    8.706051][    T1] ata6: SATA max UDMA/133 irq 34
[    8.712517][    T1] spi-nor spi0.0: found n25q064, expected m25p80
[    8.719015][    T1] spi-nor spi0.0: n25q064 (8192 Kbytes)
[    8.724499][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    8.731163][    T1] Creating 2 MTD partitions on "spi0.0":
[    8.736691][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.743649][    T1] 0x000000100000-0x000000800000 : "data"
[    8.750696][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.759269][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.770573][    T1] libphy: Fixed MDIO Bus: probed
[    8.776631][    T1] libphy: orion_mdio_bus: probed
[    8.781663][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    8.803144][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.812718][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.822376][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.829664][    T1] ehci-pci: EHCI PCI platform driver
[    8.834967][    T1] ehci-orion: EHCI orion driver
[    8.839861][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.846153][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.854739][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    8.889990][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.896971][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.906033][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.914022][    T1] usb usb1: Product: EHCI Host Controller
[    8.919644][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.927107][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.933142][    T1] hub 1-0:1.0: USB hub found
[    8.937687][    T1] hub 1-0:1.0: 1 port detected
[    8.943049][    T1] usbcore: registered new interface driver usb-storage
[    8.950226][    T1] mousedev: PS/2 mouse device common for all mice
[    8.956800][    T1] i2c /dev entries driver
[    8.962693][    T1] rtc-s35390a 0-0030: error resetting chip
[    8.968935][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    8.976211][    T1] device-mapper: uevent: version 1.0.3
[    8.981881][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    8.991469][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.998777][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.006183][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.013589][   T94] ata1: SATA link down (SStatus 0 SControl 300)
[    9.019824][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.026696][    T1] device-mapper: raid: Loading target version 1.15.1
[    9.036033][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.041962][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[    9.048572][    T1] drop_monitor: Initializing network drop monitor service
[    9.056024][    T1] NET: Registered protocol family 10
[    9.062364][    T1] Segment Routing with IPv6
[    9.066753][    T1] RPL Segment Routing with IPv6
[    9.071624][    T1] NET: Registered protocol family 17
[    9.076988][    T1] Key type dns_resolver registered
[    9.082621][    T1] registered taskstats version 1
[    9.087442][    T1] Loading compiled-in X.509 certificates
[    9.093349][    T1] zswap: loaded using pool lzo/zbud
[    9.098724][    T1] Key type ._fscrypt registered
[    9.103528][    T1] Key type .fscrypt registered
[    9.108174][    T1] Key type fscrypt-provisioning registered
[    9.115460][    T1] Key type big_key registered
[    9.144468][    T1] Key type encrypted registered
[    9.229990][  T117] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.361525][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[    9.431747][  T117] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.440693][  T117] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.448579][  T117] usb 1-1: Product: USB2.0 Hub
[    9.454049][  T117] hub 1-1:1.0: USB hub found
[    9.458874][  T117] hub 1-1:1.0: 4 ports detected
�
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE 

U-Boot 1.1.4 (May 22 2012 - 19:52:31) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B3D4

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 512MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Using default environment

[8192kB@f8000000] Flash:  8 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.

Synology Model: DS413j
Fan Status: Not Good
Fan 1: Not Good
Fan 2: Not Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
## Booting image at f8090000 ...
Bad Magic Number
Marvell>> 
Re: Install Debian on Synology DS413J
March 24, 2023 01:28PM
Billy,

You had a typo. These are kernel files 6.2.7-kirkwood-tld-1 after you extract the tarball.

-rw-r--r-- 1 root root   195246 21 mars  23:31 config-6.2.7-kirkwood-tld-1
-rw-r--r-- 1 root root 39528022 24 mars  09:15 linux-6.2.7-kirkwood-tld-1-bodhi.tar.bz2
-rw-r--r-- 1 root root   165133 22 mars  22:31 linux-6.2.7-kirkwood-tld-1.patch
-rw-r--r-- 1 root root  1382400 22 mars  03:46 linux-dtb-6.2.7-kirkwood-tld-1.tar
-rw-r--r-- 1 root root  8377012 22 mars  03:12 linux-headers-6.2.7-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root 24775556 22 mars  03:14 linux-image-6.2.7-kirkwood-tld-1_1.0_armel.deb

Quote

root@Arc-170:/mnt/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.1.7-kirkwood-tld-1 -d initrd.img-6.1.7-kirkwood-tld-1 uInitrd


> Can i do this line "dpkg -i
> linux-image-6.1.7-kirkwood-tld-1_1.0_armel.deb"
> because i'm on another system and i mount my usb
> key !

No, you can not do that on another system. dpkg -i is the Debian install command that extract the Linux kernel and install several parts in the host system.

> I tried to boot but it's crashed after usb :
>

I might have had a typo or something.

Restore back to the previous uEnv.txt.

BTW, you need to replace the xx:xx:xx in ethaddr with real numbers.

cat /boot/uEnv.txt
ipaddr=192.168.10.200
serverip=192.168.10.161
netmask=255.255.255.0
gatewayip=192.168.10.1
mtdparts=mtdparts=spi0.0:1M(u-boot),-(data)
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
dtb_file=/boot/dts/kirkwood-ds413j.dtb
ethaddr=52:3b:20:xx:xx:xx

Boot again. And install new kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 24, 2023 03:09PM
I saw the problem with mac address after the boot with the error :) stupid copy/pass; I'll try that tomorrow.
Thanks
Re: Install Debian on Synology DS413J
March 24, 2023 04:49PM
OK so after you've installed the new kernel. Down load the new DTB file and copy it to /boot/dts.

The DTS file is also attached, for reference.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-ds413j.dtb (21.7 KB)
open | download - kirkwood-ds413j.dts (967 bytes)
Re: Install Debian on Synology DS413J
March 30, 2023 11:17AM
Hi Bodhi,

Sorry, i need to make it again all because i wasn't on this project for a while.
If we can resume to make me do it easy :
i'll recreate a new usb with last kernel and the last DTB you gave me (no need to embedded it to uImage or whatever)
Recreate the uEnv.txt with latest version

Do the same on the first disk

and boot with the nsa u-boot, stop and find last commands which was given to test

I'm correct ? Thanks
Re: Install Debian on Synology DS413J
March 30, 2023 01:48PM
Biily,

Don't worry about new kernel.

1. Create the USB rootfs with Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

2. Copy the latest DTB in this post above

https://forum.doozan.com/read.php?2,132369,134425#msg-134425

to the USB /boot/dts folder

3. Create the uEnv.txt

cat /boot/uEnv.txt
ipaddr=192.168.10.200
serverip=192.168.10.161
netmask=255.255.255.0
gatewayip=192.168.10.1
mtdparts=mtdparts=spi0.0:1M(u-boot),-(data)
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
dtb_file=/boot/dts/kirkwood-ds413j.dtb
ethaddr=52:3b:20:xx:xx:xx

4. Attach the USB rootfs to the ds413j. And put all 4 HDDs in to the slots

5. Run kwboot
kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p

6. Power up the ds413j. Just let it boot automatically all the way to Debian.

7. Log in and verify that 4 HDDs are initialized.

lsblk
df -h

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian on Synology DS413J
March 31, 2023 09:21AM
Hi Bodhi,

Bad news, not working as expected.

root@Arc-170:~/tools# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            60749824        00000000-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
310 bytes read in 753 ms (0 Bytes/s)

no IDE devices available
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 992 ms (5.2 MiB/s)
loading uInitrd ...
9671091 bytes read in 956 ms (9.6 MiB/s)
loading DTB /boot/dts/kirkwood-ds413j.dtb ...
22252 bytes read in 3952 ms (4.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes = 9.2 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 ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d173 ... OK
   Loading Device Tree to 1f1cb000, end 1f1d36eb ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    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: Synology DS413j
[    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-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:1M(u-boot),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490912K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33376K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    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] 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.008597][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015971][    T0] Console: colour dummy device 80x30
[    0.021228][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032551][    T0] pid_max: default: 32768 minimum: 301
[    0.038218][    T0] LSM: Security Framework initializing
[    0.043737][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051843][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061548][    T0] CPU: Testing write buffer coherency: ok
[    0.069218][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076402][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.082605][    T1] rcu: Hierarchical SRCU implementation.
[    0.089355][    T1] devtmpfs: initialized
[    0.101948][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112635][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.148286][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.155509][    T1] prandom: seed boundary self test passed
[    0.164293][    T1] prandom: 100 self tests passed
[    0.169148][    T1] pinctrl core: initialized pinctrl subsystem
[    0.176474][    T1] NET: Registered protocol family 16
[    0.182334][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.190753][    T1] audit: initializing netlink subsys (disabled)
[    0.198061][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.198419][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.213831][    T1] cpuidle: using governor ladder
[    0.218785][    T1] cpuidle: using governor menu
[    0.223869][    T1] Feroceon L2: Enabling L2
[    0.228195][    T1] Feroceon L2: Cache support initialised.
[    0.243613][    T1] No ATAGs?
[    2.568603][    C0] random: fast init done
[    3.896921][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.923489][   T59] wait_for_initramfs() called before rootfs_initcalls
[    4.118725][    T1] raid6: int32x8  gen()   150 MB/s
[    4.288729][    T1] raid6: int32x8  xor()    91 MB/s
[    4.458742][    T1] raid6: int32x4  gen()   146 MB/s
[    4.628705][    T1] raid6: int32x4  xor()    95 MB/s
[    4.798711][    T1] raid6: int32x2  gen()   188 MB/s
[    4.968678][    T1] raid6: int32x2  xor()   113 MB/s
[    5.138768][    T1] raid6: int32x1  gen()   130 MB/s
[    5.308708][    T1] raid6: int32x1  xor()    79 MB/s
[    5.313699][    T1] raid6: using algorithm int32x2 gen() 188 MB/s
[    5.319832][    T1] raid6: .... xor() 113 MB/s, rmw enabled
[    5.325427][    T1] raid6: using intx1 recovery algorithm
[    5.331074][    T1] vgaarb: loaded
[    5.334949][    T1] SCSI subsystem initialized
[    5.339852][    T1] usbcore: registered new interface driver usbfs
[    5.346112][    T1] usbcore: registered new interface driver hub
[    5.352225][    T1] usbcore: registered new device driver usb
[    5.358160][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.363864][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.373766][    T1] PTP clock support registered
[    5.379923][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.470462][    T1] VFS: Disk quotas dquot_6.6.0
[    5.475190][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.507539][    T1] NET: Registered protocol family 2
[    5.520099][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.540290][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.549420][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.570028][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.577951][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.600168][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.608183][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.629961][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.637871][    T1] NET: Registered protocol family 1
[    5.660501][    T1] RPC: Registered named UNIX socket transport module.
[    5.667156][    T1] RPC: Registered udp transport module.
[    5.689937][    T1] RPC: Registered tcp transport module.
[    5.695365][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.709947][    T1] PCI: CLS 0 bytes, default 32
[    5.719947][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.727569][   T58] Trying to unpack rootfs image as initramfs...
[    7.055333][   T58] Freeing initrd memory: 9448K
[    7.397023][    T1] Initialise system trusted keyrings
[    7.402290][    T1] Key type blacklist registered
[    7.407226][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    7.414560][    T1] zbud: loaded
[    7.418992][    T1] NFS: Registering the id_resolver key type
[    7.424869][    T1] Key type id_resolver registered
[    7.429773][    T1] Key type id_legacy registered
[    7.434557][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.442016][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.450158][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.457467][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    7.465637][    T1] fuse: init (API version 7.34)
[    7.470720][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.478058][    T1] orangefs_init: module version upstream loaded
[    7.484250][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.570528][    T1] xor: measuring software checksum speed
[    7.582738][    T1]    arm4regs        :  1485 MB/sec
[    7.598911][    T1]    8regs           :   890 MB/sec
[    7.611657][    T1]    32regs          :  1296 MB/sec
[    7.616738][    T1] xor: using function: arm4regs (1485 MB/sec)
[    7.622725][    T1] async_tx: api initialized (async)
[    7.627810][    T1] Key type asymmetric registered
[    7.632664][    T1] Asymmetric key parser 'x509' registered
[    7.638300][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.646522][    T1] io scheduler bfq registered
[    7.800730][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.810441][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.820402][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.830582][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.840755][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.850930][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.861628][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.872318][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.883002][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.893997][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.902329][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.908548][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.919490][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.930433][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.941374][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.948980][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.956142][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.962917][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.970685][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.977436][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.986640][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.992977][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.001753][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.010686][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    8.017441][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[    8.024994][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[    8.031469][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 8.000 Gb/s with 2.5 GT/s PCIe x4 link)
[    8.047290][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    8.059694][    T1] PCI: bus1: Fast back to back transfers disabled
[    8.066029][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.075162][    T1] PCI: bus2: Fast back to back transfers enabled
[    8.081402][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    8.088902][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.096536][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    8.103640][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    8.111619][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    8.119585][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    8.127653][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    8.134675][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.140383][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    8.147381][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.154923][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    8.160722][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    8.168089][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.230779][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.240894][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.300777][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.311147][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.319428][    T1] printk: console [ttyS0] disabled
[    8.324558][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    8.334360][    T1] printk: console [ttyS0] enabled
[    8.334360][    T1] printk: console [ttyS0] enabled
[    8.344189][    T1] printk: bootconsole [earlycon0] disabled
[    8.344189][    T1] printk: bootconsole [earlycon0] disabled
[    8.356231][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    8.372982][    T1] loop: module loaded
[    8.377026][    T1] irq: no irq domain found for interrupt-controller !
[    8.383886][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[    8.390783][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    8.403286][    T1] ------------[ cut here ]------------
[    8.408630][    T1] WARNING: CPU: 0 PID: 1 at drivers/ata/libata-core.c:5830 ata_host_activate+0x4c/0x130
[    8.418278][    T1] Modules linked in:
[    8.422064][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.13.6-kirkwood-tld-1 #1.0
[    8.430031][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    8.437038][    T1] [<8010e0a4>] (unwind_backtrace) from [<8010a8ac>] (show_stack+0x10/0x14)
[    8.445550][    T1] [<8010a8ac>] (show_stack) from [<8011d708>] (__warn+0xc8/0xf4)
[    8.453186][    T1] [<8011d708>] (__warn) from [<80afe094>] (warn_slowpath_fmt+0x74/0xa4)
[    8.461437][    T1] [<80afe094>] (warn_slowpath_fmt) from [<807abee4>] (ata_host_activate+0x4c/0x130)
[    8.470732][    T1] [<807abee4>] (ata_host_activate) from [<807c0ccc>] (mv_pci_init_one+0x254/0x308)
[    8.479940][    T1] [<807c0ccc>] (mv_pci_init_one) from [<806fdf34>] (pci_device_probe+0xbc/0x138)
[    8.488959][    T1] [<806fdf34>] (pci_device_probe) from [<80764780>] (really_probe+0x2bc/0x4ac)
[    8.497816][    T1] [<80764780>] (really_probe) from [<80764b04>] (driver_probe_device+0x194/0x1c8)
[    8.506927][    T1] [<80764b04>] (driver_probe_device) from [<80764f1c>] (device_driver_attach+0x44/0x5c)
[    8.516563][    T1] [<80764f1c>] (device_driver_attach) from [<80765058>] (__driver_attach+0x124/0x144)
[    8.526023][    T1] [<80765058>] (__driver_attach) from [<80762848>] (bus_for_each_dev+0x64/0xa0)
[    8.534972][    T1] [<80762848>] (bus_for_each_dev) from [<80763958>] (bus_add_driver+0x178/0x1e0)
[    8.544044][    T1] [<80763958>] (bus_add_driver) from [<80765928>] (driver_register+0xac/0xf0)
[    8.552815][    T1] [<80765928>] (driver_register) from [<811271ac>] (mv_init+0x14/0x4c)
[    8.560985][    T1] [<811271ac>] (mv_init) from [<80102534>] (do_one_initcall+0x94/0x1dc)
[    8.569217][    T1] [<80102534>] (do_one_initcall) from [<811015fc>] (kernel_init_freeable+0x1e8/0x234)
[    8.578686][    T1] [<811015fc>] (kernel_init_freeable) from [<80b091cc>] (kernel_init+0x8/0x118)
[    8.587632][    T1] [<80b091cc>] (kernel_init) from [<80100148>] (ret_from_fork+0x14/0x2c)
[    8.595957][    T1] Exception stack(0x814affb0 to 0x814afff8)
[    8.601749][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[    8.610681][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.619595][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    8.626953][    T1] ---[ end trace b9745f479c78fb10 ]---
[    8.633948][    T1] scsi host0: sata_mv
[    8.638351][    T1] scsi host1: sata_mv
[    8.642759][    T1] scsi host2: sata_mv
[    8.647091][    T1] scsi host3: sata_mv
[    8.651203][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000
[    8.658990][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000
[    8.666798][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000
[    8.674596][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000
[    8.683720][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.692623][    T1] scsi host4: sata_mv
[    8.697003][    T1] scsi host5: sata_mv
[    8.701117][    T1] ata5: SATA max UDMA/133 irq 34
[    8.705938][    T1] ata6: SATA max UDMA/133 irq 34
[    8.712425][    T1] spi-nor spi0.0: found n25q064, expected m25p80
[    8.718919][    T1] spi-nor spi0.0: n25q064 (8192 Kbytes)
[    8.724393][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    8.731058][    T1] Creating 2 MTD partitions on "spi0.0":
[    8.736582][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.743502][    T1] 0x000000100000-0x000000800000 : "data"
[    8.750590][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.759165][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.770489][    T1] libphy: Fixed MDIO Bus: probed
[    8.776503][    T1] libphy: orion_mdio_bus: probed
[    8.781542][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    8.803109][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.812702][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.822349][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.829629][    T1] ehci-pci: EHCI PCI platform driver
[    8.834924][    T1] ehci-orion: EHCI orion driver
[    8.839817][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.846111][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.854715][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    8.889952][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.896940][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.905997][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.913986][    T1] usb usb1: Product: EHCI Host Controller
[    8.919610][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.927073][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.933101][    T1] hub 1-0:1.0: USB hub found
[    8.937651][    T1] hub 1-0:1.0: 1 port detected
[    8.943011][    T1] usbcore: registered new interface driver usb-storage
[    8.950174][    T1] mousedev: PS/2 mouse device common for all mice
[    8.956747][    T1] i2c /dev entries driver
[    8.962623][    T1] rtc-s35390a 0-0030: error resetting chip
[    8.968868][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    8.976137][    T1] device-mapper: uevent: version 1.0.3
[    8.981797][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    8.991375][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.998678][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.006078][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.013482][   T94] ata1: SATA link down (SStatus 0 SControl 300)
[    9.019721][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.026592][    T1] device-mapper: raid: Loading target version 1.15.1
[    9.034517][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.040457][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[    9.047032][    T1] drop_monitor: Initializing network drop monitor service
[    9.054464][    T1] NET: Registered protocol family 10
[    9.060789][    T1] Segment Routing with IPv6
[    9.065176][    T1] RPL Segment Routing with IPv6
[    9.070045][    T1] NET: Registered protocol family 17
[    9.075418][    T1] Key type dns_resolver registered
[    9.081047][    T1] registered taskstats version 1
[    9.085873][    T1] Loading compiled-in X.509 certificates
[    9.091781][    T1] zswap: loaded using pool lzo/zbud
[    9.097147][    T1] Key type ._fscrypt registered
[    9.101949][    T1] Key type .fscrypt registered
[    9.106596][    T1] Key type fscrypt-provisioning registered
[    9.113877][    T1] Key type big_key registered
[    9.142951][    T1] Key type encrypted registered
[    9.229952][  T117] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.371488][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[    9.431723][  T117] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.440674][  T117] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.448557][  T117] usb 1-1: Product: USB2.0 Hub
[    9.454015][  T117] hub 1-1:1.0: USB hub found
[    9.458850][  T117] hub 1-1:1.0: 4 ports detected
[    9.711491][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[   10.051503][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[   10.189946][  T117] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   10.341221][  T117] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5590, bcdDevice= 1.00
[   10.350360][  T117] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.358440][  T117] usb 1-1.2: Product: Ultra
[   10.362833][  T117] usb 1-1.2: Manufacturer: SanDisk
[   10.367844][  T117] usb 1-1.2: SerialNumber: 4C530001230325109084
[   10.374768][  T117] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   10.382316][  T117] scsi host6: usb-storage 1-1.2:1.0
[   10.392516][  T106] ata6: SATA link down (SStatus 0 SControl F300)
[   10.411859][    T1] Freeing unused kernel memory: 1024K
[   10.417886][    T1] Checked W+X mappings: passed, no W+X pages found
[   10.424312][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   11.297173][  T151] usbcore: registered new interface driver uas
[   11.450946][  T108] scsi 6:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[   11.468651][  T103] sd 6:0:0:0: [sda] 60751872 512-byte logical blocks: (31.1 GB/29.0 GiB)
[   11.484654][  T103] sd 6:0:0:0: [sda] Write Protect is off
[   11.496275][  T103] sd 6:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.543506][  T103]  sda: sda1
[   11.552026][  T103] sd 6:0:0:0: [sda] Attached SCSI removable disk
▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE

U-Boot 1.1.4 (May 22 2012 - 19:52:31) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B3D4

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Using default environment

[8192kB@f8000000] Flash:  8 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.

Synology Model: DS413j
Fan Status: Not Good
Fan 1: Not Good
Fan 2: Not Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
## Booting image at f8090000 ...
Bad Magic Number
Marvell>>

I tried to redo all like your last message.

I delete partition on my usb key, partition and ext3 with -L rootfs label
i downloaded the 5.3.6 linux
i untared it on my new partition on usb
i put the last dtb on the /boot/dts
i kwboot and let it finished on the error....
Re: Install Debian on Synology DS413J
March 31, 2023 03:07PM
OK, use the DTB in the 6.2.7 kernel then

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

Quote

linux-6.2.7-kirkwood-tld-1-bodhi.tar.bz2

md5:
9b152b6b924cadfd2e26b25d8d58ec38
sha256:
f375312e3d4b26fc0529622b678b23f8f6b9471e60487f9b70678925e9412f4e

This tarball contains 6 files:
linux-image-6.2.7-kirkwood-tld-1_1.0_armel.deb
linux-headers-6.2.7-kirkwood-tld-1_1.0_armel.deb
config-6.2.7-kirkwood-tld-1
zImage-6.2.7-kirkwood-tld-1
linux-dtb-6.2.7-kirkwood-tld-1.tar
linux-6.2.7-kirkwood-tld-1.patch

On another Linux box, as rootf, extract the kirkwood-ds413j.dtb from linux-dtb-6.2.7-kirkwood-tld-1.tar, copy it to the USB rootfs /boot/dts folder.


And then do the same test as above starting at Step 4.


Quote

1. Create the USB rootfs with Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

2. Copy the latest DTB in this post above

https://forum.doozan.com/read.php?2,132369,134425#msg-134425

to the USB /boot/dts folder

3. Create the uEnv.txt

cat /boot/uEnv.txt
ipaddr=192.168.10.200
serverip=192.168.10.161
netmask=255.255.255.0
gatewayip=192.168.10.1
mtdparts=mtdparts=spi0.0:1M(u-boot),-(data)
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
dtb_file=/boot/dts/kirkwood-ds413j.dtb
ethaddr=52:3b:20:xx:xx:xx

4. Attach the USB rootfs to the ds413j. And put all 4 HDDs in to the slots

5. Run kwboot
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p

6. Power up the ds413j. Just let it boot automatically all the way to Debian.

7. Log in and verify that 4 HDDs are initialized.

lsblk
df -h

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS413J
April 02, 2023 01:35AM
Hi Bodhi,

Just took the DTB on the page 4 and boot again (it boot and that make me happy because last boots were failing)

root@Arc-170:~/tools# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            60749824        00000000-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
310 bytes read in 754 ms (0 Bytes/s)

no IDE devices available
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 991 ms (5.2 MiB/s)
loading uInitrd ...
9671091 bytes read in 955 ms (9.7 MiB/s)
loading DTB /boot/dts/kirkwood-ds413j.dtb ...
21852 bytes read in 3983 ms (4.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes = 9.2 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 ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d173 ... OK
   Loading Device Tree to 1f1cb000, end 1f1d355b ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    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: Synology DS413j
[    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-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:1M(u-boot),-(data) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490912K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33376K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    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] 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.008598][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015973][    T0] Console: colour dummy device 80x30
[    0.021227][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032550][    T0] pid_max: default: 32768 minimum: 301
[    0.038216][    T0] LSM: Security Framework initializing
[    0.043734][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051841][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061546][    T0] CPU: Testing write buffer coherency: ok
[    0.069218][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076398][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.082596][    T1] rcu: Hierarchical SRCU implementation.
[    0.089342][    T1] devtmpfs: initialized
[    0.101832][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112514][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.148160][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.155385][    T1] prandom: seed boundary self test passed
[    0.164162][    T1] prandom: 100 self tests passed
[    0.169017][    T1] pinctrl core: initialized pinctrl subsystem
[    0.176319][    T1] NET: Registered protocol family 16
[    0.182163][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.190599][    T1] audit: initializing netlink subsys (disabled)
[    0.197908][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.198264][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.213677][    T1] cpuidle: using governor ladder
[    0.218575][    T1] cpuidle: using governor menu
[    0.223711][    T1] Feroceon L2: Enabling L2
[    0.228038][    T1] Feroceon L2: Cache support initialised.
[    0.243815][    T1] No ATAGs?
[    2.568602][    C0] random: fast init done
[    3.897350][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.923890][   T59] wait_for_initramfs() called before rootfs_initcalls
[    4.118684][    T1] raid6: int32x8  gen()   150 MB/s
[    4.288727][    T1] raid6: int32x8  xor()    91 MB/s
[    4.458731][    T1] raid6: int32x4  gen()   146 MB/s
[    4.628728][    T1] raid6: int32x4  xor()    95 MB/s
[    4.798687][    T1] raid6: int32x2  gen()   189 MB/s
[    4.968639][    T1] raid6: int32x2  xor()   113 MB/s
[    5.138730][    T1] raid6: int32x1  gen()   130 MB/s
[    5.308691][    T1] raid6: int32x1  xor()    78 MB/s
[    5.313681][    T1] raid6: using algorithm int32x2 gen() 189 MB/s
[    5.319815][    T1] raid6: .... xor() 113 MB/s, rmw enabled
[    5.325409][    T1] raid6: using intx1 recovery algorithm
[    5.331069][    T1] vgaarb: loaded
[    5.334938][    T1] SCSI subsystem initialized
[    5.339846][    T1] usbcore: registered new interface driver usbfs
[    5.346102][    T1] usbcore: registered new interface driver hub
[    5.352217][    T1] usbcore: registered new device driver usb
[    5.358143][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.363847][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.373748][    T1] PTP clock support registered
[    5.379909][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.470454][    T1] VFS: Disk quotas dquot_6.6.0
[    5.475175][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.507505][    T1] NET: Registered protocol family 2
[    5.520080][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.540281][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.549402][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.570011][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.577934][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.600153][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.608161][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.629944][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.637839][    T1] NET: Registered protocol family 1
[    5.660493][    T1] RPC: Registered named UNIX socket transport module.
[    5.667147][    T1] RPC: Registered udp transport module.
[    5.689923][    T1] RPC: Registered tcp transport module.
[    5.695356][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.709932][    T1] PCI: CLS 0 bytes, default 32
[    5.719931][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.727551][   T58] Trying to unpack rootfs image as initramfs...
[    7.056386][   T58] Freeing initrd memory: 9448K
[    7.396883][    T1] Initialise system trusted keyrings
[    7.402161][    T1] Key type blacklist registered
[    7.407090][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    7.414425][    T1] zbud: loaded
[    7.418844][    T1] NFS: Registering the id_resolver key type
[    7.424718][    T1] Key type id_resolver registered
[    7.429625][    T1] Key type id_legacy registered
[    7.434408][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.441867][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.450010][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.457316][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    7.465496][    T1] fuse: init (API version 7.34)
[    7.470567][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.477902][    T1] orangefs_init: module version upstream loaded
[    7.484090][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.570204][    T1] xor: measuring software checksum speed
[    7.582415][    T1]    arm4regs        :  1485 MB/sec
[    7.598587][    T1]    8regs           :   890 MB/sec
[    7.611333][    T1]    32regs          :  1296 MB/sec
[    7.616407][    T1] xor: using function: arm4regs (1485 MB/sec)
[    7.622394][    T1] async_tx: api initialized (async)
[    7.627479][    T1] Key type asymmetric registered
[    7.632331][    T1] Asymmetric key parser 'x509' registered
[    7.637983][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.646211][    T1] io scheduler bfq registered
[    7.800424][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.810125][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.820084][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.830258][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.840432][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.850608][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.861305][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.871995][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.882678][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.893673][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.902006][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.908225][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.919168][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.930110][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.941051][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.948658][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.955810][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.962586][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.970370][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.977122][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.986293][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.992627][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.001404][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.010342][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    8.017101][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[    8.024654][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[    8.031132][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 8.000 Gb/s with 2.5 GT/s PCIe x4 link)
[    8.046950][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    8.059337][    T1] PCI: bus1: Fast back to back transfers disabled
[    8.065670][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.074768][    T1] PCI: bus2: Fast back to back transfers enabled
[    8.081009][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    8.088519][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.096151][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    8.103256][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    8.111235][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    8.119201][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    8.127268][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    8.134292][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.139999][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    8.146997][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.154539][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    8.160340][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    8.167708][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.230765][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.240882][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.300766][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.311140][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.319420][    T1] printk: console [ttyS0] disabled
[    8.324559][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    8.334357][    T1] printk: console [ttyS0] enabled
[    8.334357][    T1] printk: console [ttyS0] enabled
[    8.344181][    T1] printk: bootconsole [earlycon0] disabled
[    8.344181][    T1] printk: bootconsole [earlycon0] disabled
[    8.356233][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    8.373010][    T1] loop: module loaded
[    8.377252][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[    8.384180][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    8.398355][    T1] scsi host0: sata_mv
[    8.402800][    T1] scsi host1: sata_mv
[    8.407141][    T1] scsi host2: sata_mv
[    8.411515][    T1] scsi host3: sata_mv
[    8.415575][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 37
[    8.424023][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 37
[    8.432434][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 37
[    8.440847][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 37
[    8.450618][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.459488][    T1] scsi host4: sata_mv
[    8.463922][    T1] scsi host5: sata_mv
[    8.467978][    T1] ata5: SATA max UDMA/133 irq 34
[    8.472853][    T1] ata6: SATA max UDMA/133 irq 34
[    8.479288][    T1] spi-nor spi0.0: found n25q064, expected m25p80
[    8.485812][    T1] spi-nor spi0.0: n25q064 (8192 Kbytes)
[    8.491283][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    8.497930][    T1] Creating 2 MTD partitions on "spi0.0":
[    8.503479][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.510456][    T1] 0x000000100000-0x000000800000 : "data"
[    8.517465][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.526072][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.537359][    T1] libphy: Fixed MDIO Bus: probed
[    8.543468][    T1] libphy: orion_mdio_bus: probed
[    8.548476][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    8.570101][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.579565][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.589219][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.596580][    T1] ehci-pci: EHCI PCI platform driver
[    8.601838][    T1] ehci-orion: EHCI orion driver
[    8.606729][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.613022][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.621603][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    8.649942][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.656917][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.665944][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.673943][    T1] usb usb1: Product: EHCI Host Controller
[    8.679565][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.687029][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.693039][    T1] hub 1-0:1.0: USB hub found
[    8.697577][    T1] hub 1-0:1.0: 1 port detected
[    8.702949][    T1] usbcore: registered new interface driver usb-storage
[    8.710126][    T1] mousedev: PS/2 mouse device common for all mice
[    8.716705][    T1] i2c /dev entries driver
[    8.722584][    T1] rtc-s35390a 0-0030: error resetting chip
[    8.728827][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    8.736107][    T1] device-mapper: uevent: version 1.0.3
[    8.741772][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    8.751358][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.758671][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.766076][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.773523][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.780410][   T94] ata1: SATA link down (SStatus 0 SControl 300)
[    8.786562][    T1] device-mapper: raid: Loading target version 1.15.1
[    8.795327][    T1] hid: raw HID events driver (C) Jiri Kosina
[    8.801603][    T1] drop_monitor: Initializing network drop monitor service
[    8.809576][    T1] NET: Registered protocol family 10
[    8.814816][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[    8.822192][    T1] Segment Routing with IPv6
[    8.826579][    T1] RPL Segment Routing with IPv6
[    8.831498][    T1] NET: Registered protocol family 17
[    8.836878][    T1] Key type dns_resolver registered
[    8.842539][    T1] registered taskstats version 1
[    8.847362][    T1] Loading compiled-in X.509 certificates
[    8.853257][    T1] zswap: loaded using pool lzo/zbud
[    8.858624][    T1] Key type ._fscrypt registered
[    8.863431][    T1] Key type .fscrypt registered
[    8.868077][    T1] Key type fscrypt-provisioning registered
[    8.875359][    T1] Key type big_key registered
[    8.904486][    T1] Key type encrypted registered
[    8.989937][  T117] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.141457][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[    9.191609][  T117] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.200562][  T117] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.208447][  T117] usb 1-1: Product: USB2.0 Hub
[    9.213909][  T117] hub 1-1:1.0: USB hub found
[    9.218737][  T117] hub 1-1:1.0: 4 ports detected
[    9.949931][  T117] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   10.101107][  T117] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5590, bcdDevice= 1.00
[   10.110230][  T117] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.118292][  T117] usb 1-1.2: Product: Ultra
[   10.122684][  T117] usb 1-1.2: Manufacturer: SanDisk
[   10.127673][  T117] usb 1-1.2: SerialNumber: 4C530001230325109084
[   10.134518][  T117] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   10.142055][  T117] scsi host6: usb-storage 1-1.2:1.0
[   11.210945][   T58] scsi 6:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[   11.221272][    T7] sd 6:0:0:0: [sda] 60751872 512-byte logical blocks: (31.1 GB/29.0 GiB)
[   11.230634][    T7] sd 6:0:0:0: [sda] Write Protect is off
[   11.236882][    T7] sd 6:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.282109][    T7]  sda: sda1
[   11.288138][    T7] sd 6:0:0:0: [sda] Attached SCSI removable disk
[   14.689929][   T98] ata3: link is slow to respond, please be patient (ready=0)
[   15.039957][   T98] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   15.051637][   T98] ata3.00: ATA-9: ST1000DM003-1CH162, CC47, max UDMA/133
[   15.058553][   T98] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   15.073084][   T98] ata3.00: configured for UDMA/133
[   15.088505][   T80] scsi 2:0:0:0: Direct-Access     ATA      ST1000DM003-1CH1 CC47 PQ: 0 ANSI: 5
[   15.098362][    T7] sd 2:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   15.107584][    T7] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[   15.113663][    T7] sd 2:0:0:0: [sdb] Write Protect is off
[   15.119304][    T7] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   15.146604][    T7]  sdb: sdb1 sdb2 sdb3
[   15.152140][    T7] sd 2:0:0:0: [sdb] Attached SCSI disk
[   20.649930][  T100] ata4: link is slow to respond, please be patient (ready=0)
[   25.129987][  T100] ata4: SRST failed (errno=-16)
[   26.609955][  T100] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   26.621629][  T100] ata4.00: ATA-9: ST1000DM003-1ER162, CC45, max UDMA/133
[   26.628547][  T100] ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   26.645310][  T100] ata4.00: configured for UDMA/133
[   26.660761][  T102] scsi 3:0:0:0: Direct-Access     ATA      ST1000DM003-1ER1 CC45 PQ: 0 ANSI: 5
[   26.670637][    T7] sd 3:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   26.679039][    T7] sd 3:0:0:0: [sdc] 4096-byte physical blocks
[   26.685459][    T7] sd 3:0:0:0: [sdc] Write Protect is off
[   26.691141][    T7] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   26.722647][    T7]  sdc: sdc1 sdc2 sdc3
[   26.728155][    T7] sd 3:0:0:0: [sdc] Attached SCSI disk
[   27.021427][  T106] ata6: SATA link down (SStatus 0 SControl F300)
[   27.040779][    T1] Freeing unused kernel memory: 1024K
[   27.046807][    T1] Checked W+X mappings: passed, no W+X pages found
[   27.053230][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   28.085083][  T152] usbcore: registered new interface driver uas
[   34.246959][    C0] random: crng init done
[   34.619956][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   34.631690][   T94] ata1.00: ATA-8: TOSHIBA DT01ACA100, MS2OA750, max UDMA/133
[   34.639009][   T94] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   34.653611][   T94] ata1.00: configured for UDMA/133
[   34.659062][  T117] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA DT01ACA1 A750 PQ: 0 ANSI: 5
[   34.672243][  T108] sd 0:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   34.685470][  T108] sd 0:0:0:0: [sdd] 4096-byte physical blocks
[   34.691676][  T108] sd 0:0:0:0: [sdd] Write Protect is off
[   34.697378][  T108] sd 0:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   34.737437][  T108]  sdd: sdd1 sdd2
[   34.747660][  T108] sd 0:0:0:0: [sdd] Attached SCSI disk
[   38.330398][  T155] reg-fixed-voltage regulators-hdd-30-4:regulator@3: nonexclusive access to GPIO for regulators-hdd-30-4:regulator@3
[   38.671467][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[   43.371515][  T155] reg-fixed-voltage regulators-hdd-30-4:regulator@4: nonexclusive access to GPIO for regulators-hdd-30-4:regulator@4
[   43.690424][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   43.702192][   T96] ata2.00: supports DRM functions and may not be fully accessible
[   43.709971][   T96] ata2.00: ATA-9: ST1000DM003-1ER162, CC43, max UDMA/133
[   43.716933][   T96] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   43.735187][   T96] ata2.00: supports DRM functions and may not be fully accessible
[   43.744439][   T96] ata2.00: configured for UDMA/133
[   43.749895][  T117] scsi 1:0:0:0: Direct-Access     ATA      ST1000DM003-1ER1 CC43 PQ: 0 ANSI: 5
[   43.763150][  T108] sd 1:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   43.776628][  T108] sd 1:0:0:0: [sde] 4096-byte physical blocks
[   43.782830][  T108] sd 1:0:0:0: [sde] Write Protect is off
[   43.788532][  T108] sd 1:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   43.823272][  T108]  sde: sde1 sde2 sde3
[   43.833988][  T108] sd 1:0:0:0: [sde] Attached SCSI disk
[   44.021712][   T98] ata3: SATA link down (SStatus 0 SControl 300)
Begin: Loading essential drivers ... done.
[   49.050428][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[   54.421492][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[   54.427661][   T98] ata3.00: disabled
[   54.431423][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[   54.437588][  T117] ata3.00: detaching (SCSI 2:0:0:0)
[   54.458270][  T117] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[   54.469828][  T117] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[   54.490079][  T117] sd 2:0:0:0: [sdb] Stopping disk
[   54.502346][  T117] sd 2:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
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.36.1
[/sbin/fsck.ext3 (1) -- /dev/sdd1] fsck.ext3 -a -C0 /dev/sdd1
rootfs: recovering journal
[   59.781614][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[   59.787991][  T100] ata4.00: disabled
[   59.791753][  T117] ata4.00: detaching (SCSI 3:0:0:0)
[   59.805013][  T117] sd 3:0:0:0: [sdc] Synchronizing SCSI cache
[   59.818281][  T117] sd 3:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[   59.840153][  T117] sd 3:0:0:0: [sdc] Stopping disk
[   59.847698][  T117] sd 3:0:0:0: [sdc] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
rootfs: clean, 17661/6553600 files, 912630/26214400 blocks
done.
[   59.964882][  T192] EXT4-fs (sdd1): mounting ext3 file system using the ext4 subsystem
[   60.295084][  T192] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   61.589045][    T1] systemd[1]: System time before build time, advancing clock.
[   61.742593][    T1] systemd[1]: Inserted module 'autofs4'
[   61.895176][    T1] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[   61.919831][    T1] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 11 (bullseye)!

[   62.004602][    T1] systemd[1]: Set hostname to <faucon>.
[   65.127114][    T1] systemd[1]: Queued start job for default target Graphical Interface.
[   65.138019][    T1] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   65.151367][    T1] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   65.162335][    T1] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[   65.201139][    T1] systemd[1]: Created slice system-modprobe.slice.
[  OK  ] Created slice system-modprobe.slice.
[   65.241148][    T1] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   65.280977][    T1] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   65.320649][    T1] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[   65.360529][    T1] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[   65.401199][    T1] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[   65.440403][    T1] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[   65.480638][    T1] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[   65.520419][    T1] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[   65.583454][    T1] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[   65.620888][    T1] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   65.660622][    T1] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[   65.701380][    T1] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[   65.741021][    T1] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   65.781116][    T1] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   65.821148][    T1] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   65.860808][    T1] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   65.901146][    T1] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[   65.914111][    T1] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   65.963719][    T1] systemd[1]: Mounting NFSD configuration filesystem...
         Mounting NFSD configuration filesystem...
[   66.004290][    T1] systemd[1]: Mounting RPC Pipe File System...
         Mounting RPC Pipe File System...
[   66.044732][    T1] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   66.106539][    T1] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
[   66.150455][    T1] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[   66.165892][    T1] systemd[1]: Starting Create list of static device nodes for the current kernel...
         Starting Create list of st…odes for the current kernel...
[   66.214370][    T1] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[   66.265692][    T1] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   66.314245][    T1] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[   66.496130][    T1] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   66.506577][    T1] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[   66.521377][    T1] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   66.726002][    T1] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   66.784051][    T1] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   66.834108][    T1] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[   66.925133][    T1] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   66.958594][    T1] systemd[1]: Mounted NFSD configuration filesystem.
[  OK  ] Mounted NFSD configuration filesystem.
[   67.001231][    T1] systemd[1]: Mounted RPC Pipe File System.
[  OK  ] Mounted RPC Pipe File System.
[   67.020209][  T233] EXT4-fs (sdd1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[   67.029792][    T1] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[   67.058781][    T1] systemd[1]: Mounted Kernel Trace File System.
[  OK  ] Mounted Kernel Trace File System.
[   67.111850][    T1] systemd[1]: Finished Create list of static device nodes for the current kernel.
[  OK  ] Finished Create list of st… nodes for the current kernel.
[   67.182191][    T1] systemd[1]: modprobe@configfs.service: Succeeded.
[   67.210173][    T1] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[   67.242300][    T1] systemd[1]: modprobe@drm.service: Succeeded.
[   67.260226][    T1] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[   67.282236][    T1] systemd[1]: modprobe@fuse.service: Succeeded.
[   67.310249][    T1] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[   67.352323][    T1] systemd[1]: Finished Load Kernel Modules.
[  OK  ] Finished Load Kernel Modules.
[   67.372013][    T1] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[   67.422503][    T1] systemd[1]: Activating swap /swapfile1...
         Activating swap /swapfile1...
[   67.446913][    T1] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   67.554323][    T1] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[   67.626452][    T1] systemd[1]: Starting pNFS block layout mapping daemon...
         Starting pNFS block layout mapping daemon...
[   67.711984][    T1] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[   67.750956][    T1] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[   67.781337][    T1] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/[   67.790372][  T235] Adding 524284k swap on /swapfile1.  Priority:-2 extents:22 across:27921988k FS
Save Random Seed...
[   67.831015][    T1] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   67.880699][    T1] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[   67.942281][    T1] systemd[1]: Activated swap /swapfile1.
[  OK  ] Activated swap /swapfile1.
[   67.982077][    T1] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started pNFS block layout mapping daemon.
[  OK  ] Reached target Swap.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Coldplug All udev Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[   68.453473][  T229] systemd-journald[229]: Received client request to flush runtime journal.
[   68.524954][  T229] systemd-journald[229]: File /var/log/journal/c4334d5b2fba8bce5294b56551baee86/system.journal corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Mounted /tmp.
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
[  OK  ] Finished Preprocess NFS configuration.
         Starting NFSv4 ID-name mapping service...
[  OK  ] Reached target NFS client services.
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
[   71.321818][  T257] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
         Starting RPC bind portmap service...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started D-Bus System Message Bus.
         Starting Remove Stale Onli…t4 Metadata Check Snapshots...
         Starting User Login Management...
[   72.440219][  T257] sd 6:0:0:0: Attached scsi generic sg0 type 0
[  OK  ] Started RPC bind portmap service.
[  OK  ] Found device /dev/ttyS0.
[   72.655009][  T257] sd 0:0:0:0: Attached scsi generic sg1 type 0
[   72.742413][  T257] sd 1:0:0:0: Attached scsi generic sg2 type 0
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Reached target RPC Port Mapper.
[   73.160585][  T258] orion_wdt: Initial timeout 21 sec
[  OK  ] Started User Login Management.
[   73.754242][  T259] marvell-cesa f1030000.crypto: CESA device successfully registered
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Started ifup for eth0.
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
[**    ] A start job is running for Raise network interfaces (12s / 5min 9s)
[   78.210699][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  OK  ] Finished Raise network interfaces.
[  OK  ] Reached target Network.
         Starting NFS Mount Daemon...
         Starting Network Time Service...
         Starting /etc/rc.local Compatibility...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[  OK  ] Started Network Time Service.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started OpenBSD Secure Shell server.
[   85.361831][  T410] NFSD: Using UMH upcall client tracking operations.
[   85.368482][  T410] NFSD: starting 90-second grace period (net f000001c)
[  OK  ] Finished NFS server and services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: Starts syslogd...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: Starts syslogd.
         Starting LSB: Starts klogd...
[  OK  ] Started LSB: Starts klogd.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.

Debian GNU/Linux 11 faucon ttyS0

faucon login: root
Password:
Linux faucon 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 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: Sun Aug  7 15:26:07 CEST 2022 on ttyS0
faucon
192.168.10.200
Synology DS413j
Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
Debian 11.6
Sun Aug 7 15:25:41 CEST 2022 up 1 minute
root@faucon:~#

root@faucon:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    1    29G  0 disk
`-sda1      8:1    1    29G  0 part
sdd         8:48   0 931.5G  0 disk
|-sdd1      8:49   0   100G  0 part /
`-sdd2      8:50   0 831.5G  0 part
sde         8:64   0 931.5G  0 disk
|-sde1      8:65   0   2.4G  0 part
|-sde2      8:66   0     2G  0 part
`-sde3      8:67   0 926.9G  0 part
mtdblock0  31:0    0     1M  0 disk
mtdblock1  31:1    0     7M  0 disk
root@faucon:~#

root@faucon:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            240M     0  240M   0% /dev
tmpfs            49M  464K   49M   1% /run
/dev/sdd1        99G  1.8G   93G   2% /
tmpfs           245M     0  245M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           245M     0  245M   0% /tmp
tmpfs            49M     0   49M   0% /run/user/0
root@faucon:~#
Re: Debian on Synology DS413J
April 02, 2023 01:37AM
_________
|---disk1--------|
|---disk2--------|
|---disk3--------|
|---disk4--------|
|-motherbd----|
-------------------

Disk1 is sdd
Disk2 may be the sde (not sure because nothing special to know it)
Re: Debian on Synology DS413J
April 02, 2023 02:01PM
Billy,

Now install the new kernel on USB rootfs.

After that you can set up to boot from the rootfs on the HDD here:

sdd         8:48   0 931.5G  0 disk
|-sdd1      8:49   0   100G  0 part /
`-sdd2      8:50   0 831.5G  0 part

The HDD rootfs can be prepared at the command line. If you already untar the rootfs to /dev/sdd1 then we'll just need to check a few things before testing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS413J
April 02, 2023 04:39PM
root@faucon:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=245456k,nr_inodes=61364,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=50140k,mode=755)
/dev/sdd1 on / type ext3 (rw,noatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=50136k,nr_inodes=12534,mode=700)

my sdd1 is the / of my system when i boot with usb.
maybe it's why we don't progress.
Let me try to make /boot copy from the usb key and try to boot without usb
Re: Debian on Synology DS413J
April 02, 2023 05:05PM
I tried to do this where /mnt/boot is my sda1 usb key
cp -a /mnt/boot/ /boot

and then :
root@Arc-170:~/tools# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...
▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE

U-Boot 1.1.4 (May 22 2012 - 19:52:31) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B3D4

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Using default environment

[8192kB@f8000000] Flash:  8 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.

Synology Model: DS413j
Fan Status: Not Good
Fan 1: Not Good
Fan 2: Not Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
## Booting image at f8090000 ...
Bad Magic Number
Marvell>>

i can't boot on my hdd but if i boot on my usb key, it's my hdd the root system.
Re: Debian on Synology DS413J
April 02, 2023 05:22PM
Billy,

> my sdd1 is the / of my system when i boot with
> usb.

Now it's time to explain it a bit more.

The rootfs you are booting with (Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2) is a very basic rootfs. It is barebone, and a learning verhicle. It is not a heavy rootfs like Ubuntu, Mint, etc. My intention is to provide a minimal rootfs for exerienced users so they can add whatever they already know they need. For inexperienced users, it is a vehicle to learn Linux.

So to see all your HDDs in Linux, you would need to either one of the below 3 approaches (there is another 4th approach that I think is redundant).

1. mount them manually. For example

mkdir -p /media/sde3
mount /dev/sde3 /media/sde3
And list the mount points
mount
You should see /media/sde3.

And df -h will show /media/sde3 and its capacity.

2. Label the disk partition to something unique. And use this automount tutorial to set up so that they will be mounted automatically:

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

udev

Automount USB drives with udev rules using disk label

3. Add the mount points to /etc/fstab.

I don't recommend this approach. It is not very flexible.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS413J
April 02, 2023 05:46PM
i know some linux basic

in /etc/fstab (on your linux kernel) you have the label rootfs that automount on /
as my usb key and my "sdd1" has this label rootfs, it mount automatically.

When i boot with usb, it boot all to the prompt and it's sdd1 that is mounted at /

When i try the same without usb, it doesn't find any boot device... maybe something about ide reset not working to find my disks.
Re: Debian on Synology DS413J
April 02, 2023 06:38PM
Billy,

> i know some linux basic

I know you know :) please do no take offense. When I post something, I'm thinking of all audiences, beginner or experienced, who are reading the post. So I always describe the fundementals, very basic stuff, but it is for the benefit of all readers. We are not talking to each other only.

> in /etc/fstab (on your linux kernel) you have the
> label rootfs that automount on /
> as my usb key and my "sdd1" has this label rootfs,
> it mount automatically.
>
> When i boot with usb, it boot all to the prompt
> and it's sdd1 that is mounted at /
>
> When i try the same without usb, it doesn't find
> any boot device... maybe something about ide reset
> not working to find my disks.

Please post the serial boot log for HDD booting.

Perhaps something I missed in the envs that needs further adjustment in u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS413J
April 02, 2023 07:15PM
Ok, no problem :)

i put all the serial logs from hdd boot previously

the problem for me is that :


Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...

i'm trying to find a way to help you/me to find the problems with the dts/dtb/dto or anything that peek/poke hdds

there is errors when i boot with hdds and usb that said that 2 disks are failing from gpio already in use.

i'm trying to understand how/why

on the last lines of my hdd boot.... there is something that jump in my eyes, it tried to boot kirkwood-nsa325.dtb ? or is it the default from the u-boot ?


i talked about the ide reset not showing anything except error.
1. Adjusting some of the timings in drivers/block/mvsata_ide.c has allowed
me to apparently solve a _small_ fraction of the problem. I can now get it
to consistently/reliably honor the 'ide reset' command. (before this
timing adjustment, I would frequently see:
..................................
Pogov4> ide reset

Reset IDE: ide_preinit failed
``````````````````````````````````

solutions maybe :
To adjust timings in the drivers/block/mvsata_ide.c file in U-Boot, you will need to follow these steps:

First, you need to have the U-Boot source code available on your development machine.

Open the drivers/block/mvsata_ide.c file in your preferred text editor.

Look for the section of code where the timings are defined. This could be in the form of constants or variables.

Modify the values of these timings as required to achieve the desired behavior.

Save the modified file and rebuild U-Boot. This will depend on your specific development environment and toolchain.

Flash the new U-Boot image to your target device and test the changes.
Re: Debian on Synology DS413J
April 02, 2023 10:19PM
BillyIT Wrote:
>
>
> 
> Reset IDE: ide_preinit failed
> device ide 0:1
> ** Bad device ide 0 **
> device ide 1:1
> ** Bad device ide 1 **
> device ide 2:1
> ** Bad device ide 2 **
> device ide 3:1
> ** Bad device ide 3 **
> loading uImage ...
> ** Bad device usb 0 **
> loading uInitrd ...
> ** Bad device usb 0 **
> loading DTB /boot/dts/kirkwood-nsa325.dtb ...
> ** Bad device usb 0 **
> Unknown command 'bootm0x800000' - try 'help'
> resetting ...
>
>
Your error is you are missing a space between bootm and the 0x800000 address.

Ray
Re: Debian on Synology DS413J
April 02, 2023 10:52PM
@Ray,
Quote

Your error is you are missing a space between bootm and the 0x800000 address.

It is a known typo in internal envs. Normally, if one installed u-boot image and the default envs, that error would never show up. In this case, kwboot the NSA325 u-boot on another box will result in the CRC error in default envs (it was not flashed), and other problem occured so it felt back to the internal envs. So it is not a real problem.

@Billy,

** Bad device usb 0 **

That's the real error. Post the entire serial boot log, it's easier for me to explain what happened. Reminder: the testing rule is that you should post the entire log, don't post excerpt.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS413J
April 03, 2023 03:46AM
Bodhi,

I did post all the logs from the flash of u-boot to the problem that i goes to stock u-boot

i tried without usb, only with all hdds.

The sdd is done as i did with usb with kirkwood 5.x.x. I just copy usb /boot to hdd /boot to have the uEnv.txt from usb and last DTB for ds413j

BillyIT Wrote:
-------------------------------------------------------
> I tried to do this where /mnt/boot is my sda1 usb
> key
> cp -a /mnt/boot/ /boot
>
> and then :
>
> root@Arc-170:~/tools# kwboot  -t -B 115200
> /dev/ttyUSB0 -b
> uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
> Sending boot message. Please reboot the
> target...|
> Sending boot image...
>   0 %
> [......................................................................]
>   1 %
> [......................................................................]
>   3 %
> [......................................................................]
>   5 %
> [......................................................................]
>   6 %
> [......................................................................]
>   8 %
> [......................................................................]
>  10 %
> [......................................................................]
>  11 %
> [......................................................................]
>  13 %
> [......................................................................]
>  15 %
> [......................................................................]
>  17 %
> [......................................................................]
>  18 %
> [......................................................................]
>  20 %
> [......................................................................]
>  22 %
> [......................................................................]
>  23 %
> [......................................................................]
>  25 %
> [......................................................................]
>  27 %
> [......................................................................]
>  29 %
> [......................................................................]
>  30 %
> [......................................................................]
>  32 %
> [......................................................................]
>  34 %
> [......................................................................]
>  35 %
> [......................................................................]
>  37 %
> [......................................................................]
>  39 %
> [......................................................................]
>  41 %
> [......................................................................]
>  42 %
> [......................................................................]
>  44 %
> [......................................................................]
>  46 %
> [......................................................................]
>  47 %
> [......................................................................]
>  49 %
> [......................................................................]
>  51 %
> [......................................................................]
>  53 %
> [......................................................................]
>  54 %
> [......................................................................]
>  56 %
> [......................................................................]
>  58 %
> [......................................................................]
>  59 %
> [......................................................................]
>  61 %
> [......................................................................]
>  63 %
> [......................................................................]
>  64 %
> [......................................................................]
>  66 %
> [......................................................................]
>  68 %
> [......................................................................]
>  70 %
> [......................................................................]
>  71 %
> [......................................................................]
>  73 %
> [......................................................................]
>  75 %
> [......................................................................]
>  76 %
> [......................................................................]
>  78 %
> [......................................................................]
>  80 %
> [......................................................................]
>  82 %
> [......................................................................]
>  83 %
> [......................................................................]
>  85 %
> [......................................................................]
>  87 %
> [......................................................................]
>  88 %
> [......................................................................]
>  90 %
> [......................................................................]
>  92 %
> [......................................................................]
>  94 %
> [......................................................................]
>  95 %
> [......................................................................]
>  97 %
> [......................................................................]
>  99 % [....................................]
> [Type Ctrl-\ + c to quit]
> 
> 
> U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03
> -0700)
> ZyXEL NSA325 2-Bay Power Media Server
> 
> SoC:   Kirkwood 88F6282_A1
> DRAM:  512 MiB
> WARNING: Caches not enabled
> NAND:  0 MiB
> *** Warning - readenv() failed, using default
> environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> Net:   egiga0
> MV88E1318 PHY initialized on egiga0
> Hit any key to stop autoboot:  0
> starting USB...
> USB0:   USB EHCI 1.00
> scanning bus 0 for devices... 2 USB Device(s)
> found
>        scanning usb for storage devices... 0
> Storage Device(s) found
> 
> Reset IDE: ide_preinit failed
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> 
> ## Unknown partition table type 0
> loading envs from usb 0 ...
> ** Bad device usb 0 **
> 
> no IDE devices available
> running scan_disk ...
> Scan device usb
> device usb 0:1
> ** Bad device usb 0 **
> device usb 1:1
> ** Bad device usb 1 **
> device usb 2:1
> ** Bad device usb 2 **
> device usb 3:1
> ** Bad device usb 3 **
> Scan device ide
> 
> Reset IDE: ide_preinit failed
> device ide 0:1
> ** Bad device ide 0 **
> device ide 1:1
> ** Bad device ide 1 **
> device ide 2:1
> ** Bad device ide 2 **
> device ide 3:1
> ** Bad device ide 3 **
> loading uImage ...
> ** Bad device usb 0 **
> loading uInitrd ...
> ** Bad device usb 0 **
> loading DTB /boot/dts/kirkwood-nsa325.dtb ...
> ** Bad device usb 0 **
> Unknown command 'bootm0x800000' - try 'help'
> resetting ...
> ▒
>          __  __                      _ _
>         |  \/  | __ _ _ ____   _____| | |
>         | |\/| |/ _` | '__\ \ / / _ \ | |
>         | |  | | (_| | |   \ V /  __/ | |
>         |_|  |_|\__,_|_|    \_/ \___|_|_|
>  _   _     ____              _
> | | | |   | __ )  ___   ___ | |_
> | | | |___|  _ \ / _ \ / _ \| __|
> | |_| |___| |_) | (_) | (_) | |_
>  \___/    |____/ \___/ \___/ \__|  ** LOADER **
>  ** MARVELL BOARD: Synology Disk Station LE
> 
> U-Boot 1.1.4 (May 22 2012 - 19:52:31) Marvell
> version: 3.5.9
> 
> U-Boot code: 00600000 -> 0067FFF0  BSS: ->
> 0068B3D4
> 
> Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @
> 533Mhz
> SysClock = 533Mhz , TClock = 200Mhz
> 
> DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20
> tRCD=7
> DRAM CS[0] base 0x00000000   size 512MB
> DRAM Total size 512MB  16bit width
> Addresses 8M - 0M are saved for the U-Boot usage.
> Mem malloc Initialization (8M - 7M): Done
> Using default environment
> 
> [8192kB@f8000000] Flash:  8 MB
> 
> CPU : Marvell Feroceon (Rev 1)
> 
> Streaming disabled
> Write allocate disabled
> 
> 
> USB 0: host mode
> PEX 0: PCI Express Root Complex Interface
> PEX interface detected Link X1
> PEX 1: interface detected no Link.
> 
> Synology Model: DS413j
> Fan Status: Not Good
> Fan 1: Not Good
> Fan 2: Not Good
> 
> Net:   egiga0 [PRIME], egiga1
> Hit any key to stop autoboot:  0
> ## Booting image at f8090000 ...
> Bad Magic Number
> Marvell>>
>
>
> i can't boot on my hdd but if i boot on my usb
> key, it's my hdd the root system.
Re: Debian on Synology DS413J
April 03, 2023 03:48AM
Hi Rayknight

It s the stock u-boot error (its why it doesnt boot DSM anymore but we are trying to boot from new u-boot and to Debian)

Thanks for your help

rayknight Wrote:
-------------------------------------------------------
> BillyIT Wrote:
> >
> >
> > 
> > Reset IDE: ide_preinit failed
> > device ide 0:1
> > ** Bad device ide 0 **
> > device ide 1:1
> > ** Bad device ide 1 **
> > device ide 2:1
> > ** Bad device ide 2 **
> > device ide 3:1
> > ** Bad device ide 3 **
> > loading uImage ...
> > ** Bad device usb 0 **
> > loading uInitrd ...
> > ** Bad device usb 0 **
> > loading DTB /boot/dts/kirkwood-nsa325.dtb ...
> > ** Bad device usb 0 **
> > Unknown command 'bootm0x800000' - try 'help'
> > resetting ...
> >
> >
> Your error is you are missing a space between
> bootm and the 0x800000 address.
>
> Ray
Re: Debian on Synology DS413J
April 03, 2023 03:32PM
Billy,

> > > Unknown command 'bootm0x800000' - try 'help'

That error is a typo in my inernal envs for uboot.2017.07-tld-1.nsa325.mtd0.kwb.

=====

Ok from now on, you should boot with USB rootfs using kwboot. And the HDDs are for data only. Until I can figure out the conflicts in the 2 HDDs, I think we should stop testing for a while.

From time to time, I will post an updated DTB for testing.

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