DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 01:42PM
Hi,

few days ago my Synology DS411 slim got bricked. After few restarts kernel booted from flash but it hang and some point.
I made flash dump using md.b and I captured it using minicom. Then I edited img file, I replaced ramdisk and zimage and flashed to serial flash using u-boot. I uploaded img file using tftboot. After this operation. DS411 slim is not booting at all. I desolderef flash memory, I have read it using EZP2019+ programmer and I compared it with both, unmodified flash dump and modied one. In both cases, u-boot section was not changed so I think that I have dumped wrong u-boot data somehow. Now my DS411 slim is bricked and I cannot find stock u-boot.img file. So. Here are my questions:

1. Can someone send me stock DS411 slim u-boot?
2. If not, can someone help me to install Debian + compile/get another working u-boot image?

So far, I tried few u-boot's from bodhi, and one for NSA235 seems to work. I even booted kernel, however, It panicked. Can someone help me to get my box work again?
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 01:51PM
Nefarious19,

> So far, I tried few u-boot's from bodhi,
> and one for NSA235 seems to work. I even booted
> kernel, however, It panicked. Can someone help me
> to get my box work again?

If you want to boot Debian with th NSA325 u-boot, post the entire serial console boot log (from the kwboot command to the kernel panic).

If it booted then the panic is most likely not something big (most of the time it is related to the rootfs).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 02:33PM
Here you can find log:

 rafal @ workstation  ~/Desktop/ds_fix  kwboot -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -t -p -B 115200 /dev/ttyUSB0 
kwboot version 2022.01+dfsg-2ubuntu2.4
Patching image boot signature to UART
Aligning image header to Xmodem block size
Sending boot message. Please reboot the target.../
Waiting 2s and flushing tty
Sending boot image header (512 bytes)...
 25 % [....                                                                  ]
Done
Sending boot image data (502572 bytes)...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 12 % [......................................................................]
 14 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 21 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 55 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 89 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 96 % [......................................................................]
 98 % [......................................................................]
 99 % [.......                                                               ]
Done
Finishing transfer
[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_A0
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
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      	8089600   	02b699bd-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 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 753 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5457760 bytes read in 1180 ms (4.4 MiB/s)
loading uInitrd ...
9671091 bytes read in 1213 ms (7.6 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14014 bytes read in 1677 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2023-09-18  19:26:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5457696 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 1f1cd000, end 1f1d36bd ... 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 DS411slim
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200n8
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 110504K/131072K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 20568K 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.000049][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000792][    T0] Console: colour dummy device 80x30
[    0.000855][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000892][    T0] pid_max: default: 32768 minimum: 301
[    0.001220][    T0] LSM: Security Framework initializing
[    0.001372][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001411][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002621][    T0] CPU: Testing write buffer coherency: ok
[    0.004664][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004950][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x0
[    0.005236][    T1] rcu: Hierarchical SRCU implementation.
[    0.006415][    T1] devtmpfs: initialized
[    0.014734][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014782][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.042946][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.042983][    T1] prandom: seed boundary self test passed
[    0.046141][    T1] prandom: 100 self tests passed
[    0.046156][    T1] pinctrl core: initialized pinctrl subsystem
[    0.047520][    T1] NET: Registered protocol family 16
[    0.048059][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.048864][    T1] audit: initializing netlink subsys (disabled)
[    0.050124][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.050477][   T16] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.050615][    T1] cpuidle: using governor ladder
[    0.050699][    T1] cpuidle: using governor menu
[    0.051052][    T1] Feroceon L2: Enabling L2
[    0.051098][    T1] Feroceon L2: Cache support initialised.
[    0.060446][    T1] No ATAGs?
[    2.560055][    C0] random: fast init done
[    3.706610][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.726564][   T59] wait_for_initramfs() called before rootfs_initcalls
[    3.910298][    T1] raid6: int32x8  gen()   150 MB/s
[    4.080179][    T1] raid6: int32x8  xor()    91 MB/s
[    4.250186][    T1] raid6: int32x4  gen()   146 MB/s
[    4.420162][    T1] raid6: int32x4  xor()    95 MB/s
[    4.590161][    T1] raid6: int32x2  gen()   189 MB/s
[    4.760106][    T1] raid6: int32x2  xor()   113 MB/s
[    4.930124][    T1] raid6: int32x1  gen()   129 MB/s
[    5.100172][    T1] raid6: int32x1  xor()    79 MB/s
[    5.100185][    T1] raid6: using algorithm int32x2 gen() 189 MB/s
[    5.100196][    T1] raid6: .... xor() 113 MB/s, rmw enabled
[    5.100205][    T1] raid6: using intx1 recovery algorithm
[    5.100453][    T1] vgaarb: loaded
[    5.100918][    T1] SCSI subsystem initialized
[    5.101356][    T1] usbcore: registered new interface driver usbfs
[    5.101415][    T1] usbcore: registered new interface driver hub
[    5.101462][    T1] usbcore: registered new device driver usb
[    5.101634][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.101648][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.101675][    T1] PTP clock support registered
[    5.103108][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.183667][    T1] VFS: Disk quotas dquot_6.6.0
[    5.183763][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.198700][    T1] NET: Registered protocol family 2
[    5.198847][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    5.199605][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.199650][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    5.199680][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    5.199706][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    5.199903][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.199971][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.200005][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.200201][    T1] NET: Registered protocol family 1
[    5.213546][    T1] RPC: Registered named UNIX socket transport module.
[    5.213567][    T1] RPC: Registered udp transport module.
[    5.213577][    T1] RPC: Registered tcp transport module.
[    5.213586][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.213601][    T1] PCI: CLS 0 bytes, default 32
[    5.213672][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.316801][    T1] Initialise system trusted keyrings
[    6.316860][    T1] Key type blacklist registered
[    6.317093][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    6.317195][    T1] zbud: loaded
[    6.318414][    T1] NFS: Registering the id_resolver key type
[    6.318450][    T1] Key type id_resolver registered
[    6.318463][    T1] Key type id_legacy registered
[    6.318502][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.318524][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.318536][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.318760][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.319150][    T1] fuse: init (API version 7.34)
[    6.319496][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.319672][    T1] orangefs_init: module version upstream loaded
[    6.319689][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    6.398464][    T1] xor: measuring software checksum speed
[    6.405182][    T1]    arm4regs        :  1485 MB/sec
[    6.416293][    T1]    8regs           :   890 MB/sec
[    6.423954][    T1]    32regs          :  1296 MB/sec
[    6.423969][    T1] xor: using function: arm4regs (1485 MB/sec)
[    6.423988][    T1] async_tx: api initialized (async)
[    6.424004][    T1] Key type asymmetric registered
[    6.424015][    T1] Asymmetric key parser 'x509' registered
[    6.424068][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.424147][    T1] io scheduler bfq registered
[    6.573903][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.575542][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    6.575615][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    6.575653][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    6.575687][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    6.575722][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    6.575754][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    6.575786][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    6.575811][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    6.576150][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.576171][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.576190][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    6.576209][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    6.576227][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    6.576242][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.576257][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.576407][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.576441][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.576773][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    6.576805][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.578526][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.578556][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.578587][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.578773][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    6.578808][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[    6.578832][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[    6.578961][    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)
[    6.579144][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    6.580756][    T1] PCI: bus1: Fast back to back transfers disabled
[    6.580781][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.582510][    T1] PCI: bus2: Fast back to back transfers enabled
[    6.582534][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.582707][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.582730][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.582749][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.582770][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[    6.582791][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    6.582818][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    6.582838][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.582853][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.582871][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.582890][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    6.582993][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.583604][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.643973][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.646040][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.703973][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.706258][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.707479][    T1] printk: console [ttyS0] disabled
[    6.707563][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.888177][    T1] printk: console [ttyS0] enabled
[    7.893782][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    7.910557][    T1] loop: module loaded
[    7.914885][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[    7.921755][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    7.936005][    T1] scsi host0: sata_mv
[    7.940399][    T1] scsi host1: sata_mv
[    7.944788][    T1] scsi host2: sata_mv
[    7.949136][    T1] scsi host3: sata_mv
[    7.953256][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 37
[    7.961654][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 37
[    7.970071][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 37
[    7.978480][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 37
[    7.988243][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.997126][    T1] scsi host4: sata_mv
[    8.001505][    T1] scsi host5: sata_mv
[    8.005634][    T1] ata5: SATA max UDMA/133 irq 34
[    8.010459][    T1] ata6: SATA max UDMA/133 irq 34
[    8.016938][    T1] spi-nor spi0.0: found m25p32, expected m25p80
[    8.023212][    T1] spi-nor spi0.0: m25p32 (4096 Kbytes)
[    8.028598][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    8.035707][    T1] Creating 6 MTD partitions on "spi0.0":
[    8.041233][    T1] 0x000000000000-0x000000080000 : "RedBoot"
[    8.048275][    T1] 0x000000080000-0x000000280000 : "zImage"
[    8.055221][    T1] 0x000000280000-0x0000003c0000 : "rd.gz"
[    8.062014][    T1] 0x0000003c0000-0x0000003d0000 : "vendor"
[    8.068918][    T1] 0x0000003d0000-0x0000003f0000 : "RedBoot config"
[    8.076509][    T1] 0x0000003f0000-0x000000400000 : "FIS directory"
[    8.084538][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.093151][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.104436][    T1] libphy: Fixed MDIO Bus: probed
[    8.110454][    T1] libphy: orion_mdio_bus: probed
[    8.116688][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[    8.125071][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.133054][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN20 already requested by f1080000.sata; cannot claim for f1076000.ethernet-controller
[    8.146948][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-20 (f1076000.ethernet-controller) status -22
[    8.157059][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 20 (PIN20) from group mpp20  on device f1010000.pin-controller
[    8.170278][    T1] mv643xx_eth f1076000.ethernet-controller: Error applying setting, reverse things back
[    8.179937][    T1] mv643xx_eth: probe of f1076000.ethernet-controller failed with error -22
[    8.324640][   T94] ata1: SATA link down (SStatus 0 SControl 300)
[    8.356639][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[    8.664639][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[    8.924031][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.933670][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.940983][    T1] ehci-pci: EHCI PCI platform driver
[    8.946236][    T1] ehci-orion: EHCI orion driver
[    8.951135][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.957428][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.966015][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    8.993128][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.000129][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    9.009189][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[    9.015340][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.023360][    T1] usb usb1: Product: EHCI Host Controller
[    9.028964][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    9.036943][    T1] usb usb1: SerialNumber: f1050000.ehci
[    9.042989][    T1] hub 1-0:1.0: USB hub found
[    9.047549][    T1] hub 1-0:1.0: 1 port detected
[    9.052825][    T1] usbcore: registered new interface driver usb-storage
[    9.059941][    T1] mousedev: PS/2 mouse device common for all mice
[    9.066531][    T1] i2c /dev entries driver
[    9.333128][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.365950][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[    9.534894][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    9.543842][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.551729][   T17] usb 1-1: Product: USB2.0 Hub
[    9.557192][   T17] hub 1-1:1.0: USB hub found
[    9.562024][   T17] hub 1-1:1.0: 4 ports detected
[    9.584427][    T1] rtc-s35390a 0-0030: registered as rtc0
[    9.590265][    T1] rtc-s35390a 0-0030: setting system clock to 2000-01-01T00:18:47 UTC (946685927)
[    9.600057][    T1] device-mapper: uevent: version 1.0.3
[    9.605702][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    9.615284][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.622588][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.629989][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.637434][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.644292][    T1] device-mapper: raid: Loading target version 1.15.1
[    9.652950][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.659140][    T1] drop_monitor: Initializing network drop monitor service
[    9.666576][    T1] NET: Registered protocol family 10
[    9.672917][    T1] Segment Routing with IPv6
[    9.677439][    T1] RPL Segment Routing with IPv6
[    9.682310][    T1] NET: Registered protocol family 17
[    9.687767][    T1] Key type dns_resolver registered
[    9.693337][    T1] registered taskstats version 1
[    9.698230][    T1] Loading compiled-in X.509 certificates
[    9.704127][    T1] zswap: loaded using pool lzo/zbud
[    9.709530][    T1] Key type ._fscrypt registered
[    9.714335][  T106] ata6: SATA link down (SStatus 0 SControl F300)
[    9.720618][    T1] Key type .fscrypt registered
[    9.725323][    T1] Key type fscrypt-provisioning registered
[    9.732591][    T1] Key type big_key registered
[    9.740343][    T1] Key type encrypted registered
[    9.747977][    T1] md: Waiting for all devices to be available before autodetect
[    9.755606][    T1] md: If you don't use raid, use raid=noautodetect
[    9.761994][    T1] md: Autodetecting RAID arrays.
[    9.766871][    T1] md: autorun ...
[    9.770372][    T1] md: ... autorun DONE.
[    9.775023][    T1] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    9.783316][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    9.792423][    T1] 1f00             512 mtdblock0 
[    9.792430][    T1]  (driver?)
[    9.800456][    T1] 1f01            2048 mtdblock1 
[    9.800465][    T1]  (driver?)
[    9.808585][    T1] 1f02            1280 mtdblock2 
[    9.808595][    T1]  (driver?)
[    9.816663][    T1] 1f03              64 mtdblock3 
[    9.816672][    T1]  (driver?)
[    9.824736][    T1] 1f04             128 mtdblock4 
[    9.824745][    T1]  (driver?)
[    9.832747][    T1] 1f05              64 mtdblock5 
[    9.832755][    T1]  (driver?)
[    9.840765][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    9.849770][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.13.6-kirkwood-tld-1 #1.0
[    9.857729][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    9.864731][    T1] [<8010e0a4>] (unwind_backtrace) from [<8010a8ac>] (show_stack+0x10/0x14)
[    9.873226][    T1] [<8010a8ac>] (show_stack) from [<80afddf4>] (panic+0xfc/0x328)
[    9.880848][    T1] [<80afddf4>] (panic) from [<81101ad0>] (mount_block_root+0x1e0/0x26c)
[    9.889079][    T1] [<81101ad0>] (mount_block_root) from [<81101c4c>] (mount_root+0xf0/0x120)
[    9.897650][    T1] [<81101c4c>] (mount_root) from [<81101dc0>] (prepare_namespace+0x144/0x180)
[    9.906395][    T1] [<81101dc0>] (prepare_namespace) from [<811015e4>] (kernel_init_freeable+0x1d0/0x234)
[    9.916014][    T1] [<811015e4>] (kernel_init_freeable) from [<80b091cc>] (kernel_init+0x8/0x118)
[    9.924943][    T1] [<80b091cc>] (kernel_init) from [<80100148>] (ret_from_fork+0x14/0x2c)
[    9.933253][    T1] Exception stack(0x814a5fb0 to 0x814a5ff8)
[    9.939028][    T1] 5fa0:                                     00000000 00000000 00000000 00000000
[    9.947941][    T1] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.956852][    T1] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    9.964203][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---



Edited 1 time(s). Last edit at 09/18/2023 02:36PM by Nefarious19.
Attachments:
open | download - log.txt (29.3 KB)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 03:20PM
Do you have any idea what can be wrong?
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 03:35PM
There are 2 errors in this boot. By default, the new u-boot expects the uImage be the original one without the DTB embedded. The real fix is a 2 step process (u-boot and rootfs).

So try this quick fix in 1 step first, and later we'll do the real fix.

Run kwboot, with the USB rootfs attached, power up, and interrupt u-boot at count down and

setenv dtb_file
Also get the current listing of envs:
printenv
And then boot
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 18, 2023 04:10PM
Ok, I'll do that tomorrow because I already left my workshop. Thank's for quick replay and your help. I really appreciate it.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 20, 2023 01:52PM
Ok, yesterday was crazy day but today I'm back with logs you asked:

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
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  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.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
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_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

this is what u-boot prints with printenv command. I already used command setenv dtb_file before printing.

And voila! After this change, kernel booted correctly!

NSA325> boot
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      	8089600   	02b699bd-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 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 568 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5457760 bytes read in 1007 ms (5.2 MiB/s)
loading uInitrd ...
9671091 bytes read in 1415 ms (6.5 MiB/s)
loading DTB ...
** No boot file defined **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2023-09-18  20:11:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5457696 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-09-18  20:12:11 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
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d173 ... 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 DS411slim
[    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=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    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.000005][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000121][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001905][    T0] Console: colour dummy device 80x30
[    0.002059][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.002140][    T0] pid_max: default: 32768 minimum: 301
[    0.002938][    T0] LSM: Security Framework initializing
[    0.003295][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003388][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.006264][    T0] CPU: Testing write buffer coherency: ok
[    0.011306][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.011988][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x0
[    0.012706][    T1] rcu: Hierarchical SRCU implementation.
[    0.015605][    T1] devtmpfs: initialized
[    0.036141][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.036254][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.103994][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.104087][    T1] prandom: seed boundary self test passed
[    0.111740][    T1] prandom: 100 self tests passed
[    0.111801][    T1] pinctrl core: initialized pinctrl subsystem
[    0.115059][    T1] NET: Registered protocol family 16
[    0.116556][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.118459][    T1] audit: initializing netlink subsys (disabled)
[    0.121498][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.122333][   T16] audit: type=2000 audit(0.110:1): state=initialized audit_enabled=0 res=1
[    0.122729][    T1] cpuidle: using governor ladder
[    0.122926][    T1] cpuidle: using governor menu
[    0.123967][    T1] Feroceon L2: Enabling L2
[    0.124074][    T1] Feroceon L2: Cache support initialised.
[    0.146569][    T1] No ATAGs?
[    2.560133][    C0] random: fast init done
[    8.910080][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    8.957319][   T59] wait_for_initramfs() called before rootfs_initcalls
[    9.170277][    T1] raid6: int32x8  gen()    62 MB/s
[    9.340316][    T1] raid6: int32x8  xor()    38 MB/s
[    9.510174][    T1] raid6: int32x4  gen()    60 MB/s
[    9.680302][    T1] raid6: int32x4  xor()    39 MB/s
[    9.850206][    T1] raid6: int32x2  gen()    76 MB/s
[   10.020260][    T1] raid6: int32x2  xor()    47 MB/s
[   10.190351][    T1] raid6: int32x1  gen()    54 MB/s
[   10.360497][    T1] raid6: int32x1  xor()    33 MB/s
[   10.360533][    T1] raid6: using algorithm int32x2 gen() 76 MB/s
[   10.360560][    T1] raid6: .... xor() 47 MB/s, rmw enabled
[   10.360583][    T1] raid6: using intx1 recovery algorithm
[   10.361133][    T1] vgaarb: loaded
[   10.362255][    T1] SCSI subsystem initialized
[   10.363297][    T1] usbcore: registered new interface driver usbfs
[   10.363440][    T1] usbcore: registered new interface driver hub
[   10.363551][    T1] usbcore: registered new device driver usb
[   10.363971][    T1] pps_core: LinuxPPS API ver. 1 registered
[   10.364004][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   10.364069][    T1] PTP clock support registered
[   10.367664][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.558937][    T1] VFS: Disk quotas dquot_6.6.0
[   10.559160][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.586485][    T1] NET: Registered protocol family 2
[   10.586897][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[   10.598547][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[   10.598674][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[   10.598842][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[   10.598984][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[   10.599460][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[   10.599618][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[   10.599701][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[   10.600173][    T1] NET: Registered protocol family 1
[   10.601658][    T1] RPC: Registered named UNIX socket transport module.
[   10.601704][    T1] RPC: Registered udp transport module.
[   10.601728][    T1] RPC: Registered tcp transport module.
[   10.601750][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.601785][    T1] PCI: CLS 0 bytes, default 32
[   10.602424][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.603328][   T58] Trying to unpack rootfs image as initramfs...
[   13.807131][   T58] Freeing initrd memory: 9448K
[   14.902022][    T1] Initialise system trusted keyrings
[   14.902173][    T1] Key type blacklist registered
[   14.902740][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[   14.902994][    T1] zbud: loaded
[   14.905875][    T1] NFS: Registering the id_resolver key type
[   14.905961][    T1] Key type id_resolver registered
[   14.905991][    T1] Key type id_legacy registered
[   14.906079][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   14.906130][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   14.906161][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.906710][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   14.907635][    T1] fuse: init (API version 7.34)
[   14.908713][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   14.909145][    T1] orangefs_init: module version upstream loaded
[   14.909183][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   15.097107][    T1] xor: measuring software checksum speed
[   15.113261][    T1]    arm4regs        :   618 MB/sec
[   15.139991][    T1]    8regs           :   369 MB/sec
[   15.158376][    T1]    32regs          :   539 MB/sec
[   15.158412][    T1] xor: using function: arm4regs (618 MB/sec)
[   15.158457][    T1] async_tx: api initialized (async)
[   15.158497][    T1] Key type asymmetric registered
[   15.158523][    T1] Asymmetric key parser 'x509' registered
[   15.158647][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   15.158807][    T1] io scheduler bfq registered
[   15.519269][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   15.523144][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   15.523318][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   15.523408][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[   15.523490][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[   15.523571][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   15.523649][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   15.523724][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[   15.523784][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[   15.524588][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   15.524638][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   15.524686][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   15.524730][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[   15.524772][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[   15.524811][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   15.524846][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   15.525232][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[   15.525311][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   15.526108][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[   15.526186][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   15.530459][    T1] PCI: bus0: Fast back to back transfers disabled
[   15.530532][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   15.530607][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   15.531050][    T1] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[   15.531120][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x14000000-0x140fffff 64bit]
[   15.531172][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x00ff]
[   15.531391][    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)
[   15.531844][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[   15.535731][    T1] PCI: bus1: Fast back to back transfers disabled
[   15.535791][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   15.540043][    T1] PCI: bus2: Fast back to back transfers enabled
[   15.540103][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[   15.540524][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   15.540579][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[   15.540624][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   15.540674][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0200000-0xe02007ff pref]
[   15.540726][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[   15.540784][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[   15.540830][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   15.540865][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[   15.540907][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   15.540954][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[   15.541208][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[   15.542542][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   15.609759][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   15.614652][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   15.679671][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   15.685154][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   15.688204][    T1] printk: console [ttyS0] disabled
[   15.688406][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[   16.902633][    T1] printk: console [ttyS0] enabled
[   16.909283][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[   16.936148][    T1] loop: module loaded
[   16.941056][    T1] sata_mv 0000:01:00.0: enabling device (0140 -> 0143)
[   16.948156][    T1] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[   16.970777][    T1] scsi host0: sata_mv
[   16.975962][    T1] scsi host1: sata_mv
[   16.981130][    T1] scsi host2: sata_mv
[   16.986181][    T1] scsi host3: sata_mv
[   16.990660][    T1] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 37
[   16.999229][    T1] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 37
[   17.007703][    T1] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 37
[   17.016122][    T1] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 37
[   17.027201][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   17.040721][    T1] scsi host4: sata_mv
[   17.045874][    T1] scsi host5: sata_mv
[   17.050395][    T1] ata5: SATA max UDMA/133 irq 34
[   17.055250][    T1] ata6: SATA max UDMA/133 irq 34
[   17.064225][    T1] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
[   17.072769][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   17.081433][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   17.094084][    T1] libphy: Fixed MDIO Bus: probed
[   17.101819][    T1] libphy: orion_mdio_bus: probed
[   17.139099][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 9 is missing.
[   17.147900][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   17.156583][    T1] kirkwood-pinctrl f1010000.pin-controller: pin PIN20 already requested by f1080000.sata; cannot claim for f1076000.ethernet-controller
[   17.170713][    T1] kirkwood-pinctrl f1010000.pin-controller: pin-20 (f1076000.ethernet-controller) status -22
[   17.180902][    T1] kirkwood-pinctrl f1010000.pin-controller: could not request pin 20 (PIN20) from group mpp20  on device f1010000.pin-controller
[   17.194218][    T1] mv643xx_eth f1076000.ethernet-controller: Error applying setting, reverse things back
[   17.203942][    T1] mv643xx_eth: probe of f1076000.ethernet-controller failed with error -22
[   17.389755][  T104] ata5: SATA link down (SStatus 0 SControl F300)
[   17.949346][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   17.959203][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   17.966577][    T1] ehci-pci: EHCI PCI platform driver
[   17.971935][    T1] ehci-orion: EHCI orion driver
[   17.977124][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   17.983479][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   17.992289][    T1] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[   18.027709][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   18.035084][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   18.044177][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   18.052200][    T1] usb usb1: Product: EHCI Host Controller
[   18.057857][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   18.065312][    T1] usb usb1: SerialNumber: f1050000.ehci
[   18.072141][    T1] hub 1-0:1.0: USB hub found
[   18.076725][    T1] hub 1-0:1.0: 1 port detected
[   18.083030][    T1] usbcore: registered new interface driver usb-storage
[   18.090945][    T1] mousedev: PS/2 mouse device common for all mice
[   18.097992][    T1] i2c /dev entries driver
[   18.367713][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   18.569671][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[   18.578690][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   18.586630][   T17] usb 1-1: Product: USB2.0 Hub
[   18.592838][   T17] hub 1-1:1.0: USB hub found
[   18.597813][   T17] hub 1-1:1.0: 4 ports detected
[   18.619655][    T1] rtc-s35390a 0-0030: registered as rtc0
[   18.625630][    T1] rtc-s35390a 0-0030: setting system clock to 2000-01-01T00:06:18 UTC (946685178)
[   18.636390][    T1] device-mapper: uevent: version 1.0.3
[   18.642449][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   18.652606][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   18.660027][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   18.667395][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   18.674935][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   18.681826][    T1] device-mapper: raid: Loading target version 1.15.1
[   18.688923][    T1] freq_table: Duplicate freq-table entries: 0
[   18.694984][    T1] kirkwood-cpufreq kirkwood-cpufreq: Failed to register cpufreq driver
[   18.707472][    T1] hid: raw HID events driver (C) Jiri Kosina
[   18.714583][    T1] drop_monitor: Initializing network drop monitor service
[   18.722966][    T1] NET: Registered protocol family 10
[   18.730960][    T1] Segment Routing with IPv6
[   18.735450][    T1] RPL Segment Routing with IPv6
[   18.740521][    T1] NET: Registered protocol family 17
[   18.746212][    T1] Key type dns_resolver registered
[   18.752390][    T1] registered taskstats version 1
[   18.757246][    T1] Loading compiled-in X.509 certificates
[   18.763682][    T1] zswap: loaded using pool lzo/zbud
[   18.769593][    T1] Key type ._fscrypt registered
[   18.774353][    T1] Key type .fscrypt registered
[   18.779189][    T1] Key type fscrypt-provisioning registered
[   18.788787][    T1] Key type big_key registered
[   18.854486][    T1] Key type encrypted registered
[   18.927728][   T17] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   19.096549][   T17] usb 1-1.1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.01
[   19.105736][   T17] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   19.113866][   T17] usb 1-1.1: Product: Mass Storage
[   19.118918][   T17] usb 1-1.1: Manufacturer: Generic
[   19.123931][   T17] usb 1-1.1: SerialNumber: 1CA0FA13
[   19.130582][   T17] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   19.138870][   T17] scsi host6: usb-storage 1-1.1:1.0
[   20.107766][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.170511][  T110] scsi 6:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[   20.183882][  T110] sd 6:0:0:0: [sda] 8091648 512-byte logical blocks: (4.14 GB/3.86 GiB)
[   20.193355][  T110] sd 6:0:0:0: [sda] Write Protect is off
[   20.199643][   T94] ata1.00: ATA-10: WDC WD5000LPCX-75VHAT0, 02.01A02, max UDMA/133
[   20.207429][   T94] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   20.216124][  T110] sd 6:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   20.226747][   T94] ata1.00: configured for UDMA/133
[   20.238869][  T110]  sda: sda1
[   20.243802][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000LPCX-7 1A02 PQ: 0 ANSI: 5
[   20.258127][  T110] sd 6:0:0:0: [sda] Attached SCSI removable disk
[   20.264832][  T129] sd 0:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   20.274727][  T129] sd 0:0:0:0: [sdb] 4096-byte physical blocks
[   20.281044][  T129] sd 0:0:0:0: [sdb] Write Protect is off
[   20.286842][  T129] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   20.323803][  T129]  sdb: sdb1
[   20.330012][  T129] sd 0:0:0:0: [sdb] Attached SCSI disk
[   20.609816][   T96] ata2: SATA link down (SStatus 0 SControl 300)
[   20.959781][   T98] ata3: SATA link down (SStatus 0 SControl 300)
[   21.309769][  T100] ata4: SATA link down (SStatus 0 SControl 300)
[   21.649725][  T106] ata6: SATA link down (SStatus 0 SControl F300)
[   21.673372][    T1] Freeing unused kernel memory: 1024K
[   21.680555][    T1] Checked W+X mappings: passed, no W+X pages found
[   21.686999][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   23.997470][  T157] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 15633/252960 files, 262042/1011200 blocks
done.
[   35.420219][  T183] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   35.512027][  T183] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
[   37.856873][    C0] random: crng init done
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   40.652327][  T367] gpio-fan gpio-fan-100-15-35-1: GPIO fan initialized
[   41.192533][  T377] sd 6:0:0:0: Attached scsi generic sg0 type 0
[   41.293369][  T377] sd 0:0:0:0: Attached scsi generic sg1 type 0
[   41.593467][  T367] orion_wdt: Initial timeout 21 sec
[   42.611928][  T370] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
[   44.926028][  T514] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.15 on eth0 to 255.255.255.255 port 67
[   52.986978][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   52.997747][  T113] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST for 192.168.0.15 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.31.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.31.109 from 192.168.31.1
DHCPREQUEST for 192.168.31.109 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.31.109 from 192.168.31.1
bound to 192.168.31.109 -- renewal in 3220 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1072 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting NTP server: ntpd.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1092 (klogd)
.
Starting OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.
 failed!
Running local boot scripts (/etc/rc.local)
ssh-keygen: generating new host keys: RSA 
DSA 
ECDSA 
ED25519 

Starting OpenBSD Secure Shell server: sshd
.
.

Debian GNU/Linux 11 debian ttyS0

debian login:

Thank you! So, what are next steps here?



Edited 1 time(s). Last edit at 09/20/2023 01:54PM by Nefarious19.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 20, 2023 03:23PM
Before we go too far, please try running the same kwboot test again, but this time use this new Synology 411j u-boot:

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 21, 2023 04:16AM
This u-boot does not work. There is no u-boot console displayed after sending image.

I don't know if that's a problem but DS411j have diferent SoC and less DRAM. Find attached file.

Also slim has DDR3 and j has DDR2



Edited 2 time(s). Last edit at 09/21/2023 04:24AM by Nefarious19.
Attachments:
open | download - proc.png (20.7 KB)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 21, 2023 01:35PM
> I don't know if that's a problem but DS411j have
> diferent SoC and less DRAM. Find attached file.

That's OK. 6281 and 6282 are nearly identical. And less DRAM should be OK.

> Also slim has DDR3 and j has DDR2

I did not look at the specs closely. That's most likely the reason it does not work.

========

The NSA325 u-boot can only be used to kwboot, it cannot be flashed permanently. This 411Slim has 4MB SPI flash and also only 256MB RAM. So it is just a way to boot into Debian, and do recovery, the sysem will crash at some point when you use more than 256MB RAM.

So the next step is to either:

1. Find stock u-boot image for this box, and flash it to the SPI flash. Like you mentioned in the first post "I cannot find stock u-boot.img file"

2. Rebuild stock u-boot from GPL source, and flash it.

3. I'll build new u-boot for this box. It will not be a full blown version, but hopefully it will allow booting with Debian rootfs on USB. I just did one for the 411j (still waiting for testing report). If I can find a few hours in the next couple days I'll do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 25, 2023 07:08AM
I modified u-boot to use 256mb of ram using existing NSA325 configs and compiled it (I used crosstool -ng to build toolchain). It worked, U-Boot showed 256MiB at start. However after trying to to apt update, linux hanged. I started to think that maybe there is a problem with PIC16F uC wihich is mounted on PCB so I tried to read flash to check if maybe corrupted and resets 88F6282. Unfortunatelly I ereased flash completly so now board is bricked for good. It was locked for read and when I accidentaly changed config bit to remove lock, flash got erased. This uC was responsible for whole startup sequence including controling LEDs and buzzer. Thank you for your help but I think it's time to throw out this box :)



Edited 1 time(s). Last edit at 09/25/2023 07:09AM by Nefarious19.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
September 25, 2023 03:23PM
Nefarious19,

> Unfortunatelly I ereased flash completly
> so now board is bricked for good. It was locked
> for read and when I accidentaly changed config bit
> to remove lock, flash got erased. This uC was
> responsible for whole startup sequence including
> controling LEDs and buzzer. Thank you for your
> help but I think it's time to throw out this box
> :)

Perhaps you can just kwboot with the NSA325 u-boot. And change the kernel bootargs to limit it to 256MB. And run Debian that way.


Flash is not important at all. What's more important is the kernel DTS must be correct. And this board has been in mainline Linux for a long time. I believe the DTS is good enough.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi. I have the same problem but i cant reach my nas with tty from rpi.
I purchased that if thats can solve the problem. PL2303ta usb-ttl
https://hardverapro.hu/apro/pl2303ta_usb-ttl_serial_debug_kabel_konzol_kabel_1_2/hsz_1-50.html
Can you to help me?
I also followed the tutorial what i found but nothing works.



Edited 2 time(s). Last edit at 10/03/2023 10:26AM by Krisztian12005.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 03, 2023 01:51PM
Krisztian12005,

Try crossing the TX and RX wire (connect RX of the module converter to TX on the board, and TX of the module converter to RX on the board). If it does not work, swap the wire connection.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
It still doesnt work sadly. I used that command
 kwboot -t -B 115200 /dev/ttyAMA0 -b uboot.2017.07-tld-1.nsa310s.mtd0.kwb -p
and still says
 Sending boot message. Please reboot the target...
Firstly i powered on with the power button then i sent the command after that i powered off with disconnect from the psu and then reconnected it then i pressed power button.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 03, 2023 02:41PM
> It still doesnt work sadly. I used that command
>
 kwboot -t -B 115200 /dev/ttyAMA0 -b
> uboot.2017.07-tld-1.nsa310s.mtd0.kwb -p
> and still says
>
 Sending boot message. Please reboot the
> target...

You should verify that your serial console work first, if possible.

And also try this ARM 32-bit kwboot version (it might work on the rPI).

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I downloaded the kwboot file. But i cant run it. I added execute permission to the file and i tried to run it with
 ./kwboot
the file was in the current directory and the linux says
 
pi@raspberrypi:~/tools$ ./kwboot
-bash: ./kwboot: No such file or directory
How can i try out the serial port?



Edited 1 time(s). Last edit at 10/03/2023 03:03PM by Krisztian12005.
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 03, 2023 04:26PM
> How can i try out the serial port?

Try running picocom/minicom as a normal serial console (instead of kwboot). If the box u-boot image is not corrupted, it will show the u-boot log. In this case, you'd know the kwboot session is not working, but the serial console HW is OK.

picocom --b 115200 --f n --p n --d 8 /dev/ttyAMA0


It's hard to test the connection if you don't have another box with serial console to test the module converter itself. But you could loop TX and RX on the module converter and type something, it should echo back.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I pasted the command then i got that. And after that writes out "Terminal Ready" i cant write into the terminal. Is it good or not?
Attachments:
open | download - Screenshot_2023-10-03-23-28-16-717_it.Ettore.raspcontroller.png (63.1 KB)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 03, 2023 05:50PM
Power up the DS411Slim. See anything comming out of the terminal?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi, nothing was came out to the terminal.
What I did:
Started picom
Turned on the Nas (cable connection: TX-TX, RX-RX)
Waited about 30 minutes.
Am I doing something wrong what i didnt noticed about?
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 05, 2023 04:23PM
> What I did:
> Started picom
> Turned on the Nas (cable connection: TX-TX,
> RX-RX)

With this converter (Prolifc PL2303x), I'm quite sure that was wrong connection. You must cross TX-RX and RX-TX.

> Waited about 30 minutes.
> Am I doing something wrong what i didnt noticed
> about?

Also check the rPi dmesg to see if there is any error with the converter itself. Shutdown, unplug the module converter. Start the rPI, log in and plug in the module converter. And
dmesg

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



Edited 1 time(s). Last edit at 10/05/2023 04:24PM by bodhi.
Hi,
At the dmesg is found something about ttyAMA0
[    1.602488] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
Is it good right?
Also i switched the cable from TX-TX & RX-RX to TX-RX & RX-TX
Started the picocom with that command
picocom --b 115200 --f n --p n --d 8 /dev/ttyAMA0
I turned on the ds411 slim nas and on the console nothing was came out.

Terminal out:
pi@raspberrypi:~$ picocom --b 115200 --f n --p n --d 8 /dev/ttyAMA0
picocom v3.1

port is        : /dev/ttyAMA0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready

Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 22, 2023 02:31PM
I'm out of idea! perhaps you can find another board that you can connect this serial module converter to, and see if it works with that box. If it does not work then the converter itself is bad. If it does, then perhaps the serial header on this DS411 Slim is bad.

I've seen a serial converter is bad out of the box before (purchased for 3 USD from China). I own 3 converters now just make sure I always have a good one. You'll get what you paid for :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: DS411 Slim flash is corrupted and it's bricked. Please help install Debian.
October 22, 2023 07:12PM
I use this device for most serial connections https://www.crowdsupply.com/signoid/muart. It isn't exactly cheap, and requires you to connect the power pin, but it also has some features that I find useful.
  • Complete galvanic isolation
  • Reverse polarity protection
  • over-current protection
  • voltage auto-sensing
  • working voltage from 1.8-5.4V
  • up to 3Mbaud transfer speed
Hi im back. So my cable was bad. Now i have a new one what is works. Can send me a pin layout for DS411 slim? The adapter what i will use:
Attachments:
open | download - REhDVDFPVi00LTNNMw.webp (39.6 KB)
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: