Welcome! Log In Create A New Profile

Advanced

Debian on Synology RS816 (Armada 385)

Posted by zifxify 
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 04:27AM
Also a hint here where this u-boot source might be.

U-Boot 2013.01-g6cc0a6d (Jan 29 2016 - 17:30:11) Marvell version: 2015_T1.0p16

That reminds me there is a Marvell GitHub for the Armada SoCs. Perhaps this u-boot was built directly from that GitHub.

But I forgot to save that link!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 05:03AM
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 05:45AM
Right!

2015_T1.0p16 is indeed the original source from:

https://github.com/MarvellEmbeddedProcessors/u-boot-marvell

But this is a custom u-boot for this box based on the a38x board in that source tree.

U-Boot 2013.01-g6cc0a6d (Jan 29 2016 - 17:30:11) Marvell version: 2015_T1.0p16 

Board: SYNO-DS116

So they have some customization done. Most likely, at the minimum, there were some patches for GPIO.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 05:49AM
I hope Synology will send me that in respond for my request.
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 02:12PM
I have the same error:
SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-21  19:59:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid

Have tried to boot with tftp and hdd:
Marvell>> setenv ipaddr 192.168.0.20
Marvell>> setenv serverip 192.168.0.1
Marvell>> setenv load_initrd_addr 0x3000000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage'
Marvell>> setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
Found 0 device(s).
Booting Debian ...
loading uImage from tftpserver ...
Using egiga0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.20
Filename 'uImage'.
Load address: 0x2000000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################
         253.9 KiB/s
done
Bytes transferred = 5075485 (4d721d hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.20
Filename 'uInitrd'.
Load address: 0x3000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############################################################
         347.7 KiB/s
done
Bytes transferred = 9488618 (90c8ea hex)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-13   0:27:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1014544K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 34032K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008668][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020444][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027178][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034886][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046800][    T0] Console: colour dummy device 80x30
[    0.051930][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063186][    T0] pid_max: default: 32768 minimum: 301
[    0.068560][    T0] LSM: Security Framework initializing
[    0.073882][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081163][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089166][    T0] *** VALIDATE proc ***
[    0.093235][    T0] *** VALIDATE cgroup1 ***
[    0.097491][    T0] *** VALIDATE cgroup2 ***
[    0.101763][    T0] CPU: Testing write buffer coherency: ok
[    0.107321][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113139][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177088][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189897][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207069][    T1] rcu: Hierarchical SRCU implementation.
[    0.247069][    T1] smp: Bringing up secondary CPUs ...
[    0.307123][    T1] Booting CPU 1
[    0.310556][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310559][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322660][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327444][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334458][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340235][    T1] devtmpfs: initialized
[    0.345955][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354502][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.364989][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371873][    T1] xor: measuring software checksum speed
[    0.477063][    T1]    arm4regs  :  2938.000 MB/sec
[    0.577065][    T1]    8regs     :  2220.400 MB/sec
[    0.677064][    T1]    32regs    :  2348.000 MB/sec
[    0.681917][    T1] xor: using function: arm4regs (2938.000 MB/sec)
[    0.688160][    T1] prandom: seed boundary self test passed
[    0.694818][    T1] prandom: 100 self tests passed
[    0.699589][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706124][    T1] NET: Registered protocol family 16
[    0.711724][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719592][    T1] audit: initializing netlink subsys (disabled)
[    0.725730][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737098][    T1] cpuidle: using governor ladder
[    0.741878][    T1] cpuidle: using governor menu
[    0.746610][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755324][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761931][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770693][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967076][    T1] raid6: int32x8  gen()   311 MB/s
[    1.137123][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307139][    T1] raid6: int32x4  gen()   303 MB/s
[    1.477141][    T1] raid6: int32x4  xor()   252 MB/s
[    1.647187][    T1] raid6: int32x2  gen()   333 MB/s
[    1.817112][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987171][    T1] raid6: int32x1  gen()   286 MB/s
[    2.157142][    T1] raid6: int32x1  xor()   314 MB/s
[    2.162085][    T1] raid6: using algorithm int32x2 gen() 333 MB/s
[    2.168147][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173694][    T1] raid6: using intx1 recovery algorithm
[    2.179844][    T1] vgaarb: loaded
[    2.183569][    T1] SCSI subsystem initialized
[    2.188395][    T1] usbcore: registered new interface driver usbfs
[    2.194609][    T1] usbcore: registered new interface driver hub
[    2.200652][    T1] usbcore: registered new device driver usb
[    2.206756][    T1] media: Linux media interface: v0.10
[    2.212007][    T1] videodev: Linux video capture interface: v2.00
[    2.218312][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.223953][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.233771][    T1] PTP clock support registered
[    2.239238][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.580677][    T1] VFS: Disk quotas dquot_6.6.0
[    2.585309][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.598702][    T1] NET: Registered protocol family 2
[    2.604079][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.612415][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.620168][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.627319][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.634390][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.640997][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.648112][    T1] NET: Registered protocol family 1
[    2.653398][    T1] RPC: Registered named UNIX socket transport module.
[    2.659999][    T1] RPC: Registered udp transport module.
[    2.665370][    T1] RPC: Registered tcp transport module.
[    2.670749][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.677852][    T1] PCI: CLS 0 bytes, default 64
[    2.682535][    T1] Trying to unpack rootfs image as initramfs...
[    2.943368][    T1] Freeing initrd memory: 9268K
[    2.948080][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.955535][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.965793][    T1] Initialise system trusted keyrings
[    2.970943][    T1] Key type blacklist registered
[    2.975703][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.982871][    T1] zbud: loaded
[    2.986535][    T1] NFS: Registering the id_resolver key type
[    2.992275][    T1] Key type id_resolver registered
[    2.997128][    T1] Key type id_legacy registered
[    3.001820][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.009182][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.016343][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.024313][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.031492][    T1] orangefs_init: module version upstream loaded
[    3.043874][    T1] async_tx: api initialized (async)
[    3.048907][    T1] Key type asymmetric registered
[    3.053688][    T1] Asymmetric key parser 'x509' registered
[    3.059281][    T1] bounce: pool size: 64 pages
[    3.063865][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    3.073272][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.082816][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.149591][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.158619][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.219590][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.262931][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.271130][    T1] printk: console [ttyS0] disabled
[    3.296142][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.305787][    T1] printk: console [ttyS0] enabled
[    3.305787][    T1] printk: console [ttyS0] enabled
[    3.315590][    T1] printk: bootconsole [earlycon0] disabled
[    3.315590][    T1] printk: bootconsole [earlycon0] disabled
[    3.347651][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.359722][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.365328][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.371985][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.377499][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.383711][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.391491][    T1] libphy: Fixed MDIO Bus: probed
[    3.397041][    T1] libphy: orion_mdio_bus: probed
[    3.407431][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.417234][    T1] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:c6:0b:26
[    3.426289][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.433567][    T1] ehci-pci: EHCI PCI platform driver
[    3.438787][    T1] ehci-orion: EHCI orion driver
[    3.444109][    T1] usbcore: registered new interface driver usblp
[    3.450380][    T1] usbcore: registered new interface driver usb-storage
[    3.457338][    T1] mousedev: PS/2 mouse device common for all mice
[    3.464314][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.470856][    T1] i2c /dev entries driver
[    3.502171][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.509696][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.518698][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.526861][    T1] orion_wdt: Initial timeout 171 sec
[    3.532310][    T1] device-mapper: uevent: version 1.0.3
[    3.537767][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.547063][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.554327][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.561674][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.569033][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.575858][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.633582][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.641742][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.648124][    T1] usbcore: registered new interface driver usbhid
[    3.654432][    T1] usbhid: USB HID core driver
[    3.659276][    T1] drop_monitor: Initializing network drop monitor service
[    3.666497][    T1] NET: Registered protocol family 10
[    3.672137][    T1] Segment Routing with IPv6
[    3.676550][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.683929][    T1] NET: Registered protocol family 17
[    3.689162][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.694097][    T1] Key type dns_resolver registered
[    3.699191][    T1] ThumbEE CPU extension supported.
[    3.704192][    T1] Registering SWP/SWPB emulation handler
[    3.710075][    T1] registered taskstats version 1
[    3.714889][    T1] Loading compiled-in X.509 certificates
[    3.720444][    T1] zswap: loaded using pool lzo/zbud
[    3.751174][    T1] Key type big_key registered
[    3.768161][    T1] Key type encrypted registered
[    3.774502][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.779944][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.786790][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.796602][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.806533][   T23] scsi host0: ahci-mvebu
[    3.810913][   T23] scsi host1: ahci-mvebu
[    3.815153][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.823832][   T23] ata2: DUMMY
[    3.827204][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.833264][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.841546][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.851537][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.858169][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.867182][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.875143][   T23] usb usb1: Product: xHCI Host Controller
[    3.880745][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.887825][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.893497][   T23] hub 1-0:1.0: USB hub found
[    3.897977][   T23] hub 1-0:1.0: 1 port detected
[    3.902772][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.908812][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.917047][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.924162][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.933045][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.942053][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.950011][   T23] usb usb2: Product: xHCI Host Controller
[    3.955608][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.962695][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.968321][   T23] hub 2-0:1.0: USB hub found
[    3.972807][   T23] hub 2-0:1.0: 1 port detected
[    3.977757][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.983821][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.992093][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.002080][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    4.008689][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    4.017701][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.025661][   T23] usb usb3: Product: xHCI Host Controller
[    4.031262][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    4.038341][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    4.043983][   T23] hub 3-0:1.0: USB hub found
[    4.048462][   T23] hub 3-0:1.0: 1 port detected
[    4.053249][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.059296][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.067523][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    4.074638][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.083523][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    4.092534][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.100493][   T23] usb usb4: Product: xHCI Host Controller
[    4.106091][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    4.113174][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    4.118799][   T23] hub 4-0:1.0: USB hub found
[    4.123285][   T23] hub 4-0:1.0: 1 port detected
[    4.128409][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-21T20:06:50 UTC (1608581210)
[    4.138509][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    4.143988][    T1] v12.0-sata0: disabling
[    6.559248][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    6.566266][ T1440] ata1.00: ATA-9: ADATA SP600, 2.9, max UDMA/100
[    6.572484][ T1440] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    6.579823][ T1440] ata1.00: configured for UDMA/100
[    6.595081][  T477] scsi 0:0:0:0: Direct-Access     ATA      ADATA SP600      2.9  PQ: 0 ANSI: 5
[    6.604390][    T7] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    6.612990][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    6.618543][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.628947][    T7]  sda: sda1
[    6.632626][    T7] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.639963][    T1] Freeing unused kernel memory: 1024K
[    6.669534][    T1] Checked W+X mappings: passed, no W+X pages found
[    6.675917][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
Error reading block 85606511 (Invalid argument).

rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
fsck exited with status code 4
done.
Failure: File system check of the root filesystem failed
The root filesystem on /dev/sda1 requires a manual fsck


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

(initramfs)
Whats is the problem? With ssd disk itself or with rootfs preparation? I will try with another disk.
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 03:06PM
Ok, I can boot with tftp and another HDD:
Marvell>> mw.l f1018100 00008000
Marvell>> setenv ipaddr 192.168.0.20
Marvell>> setenv serverip 192.168.0.1
Marvell>> setenv load_initrd_addr 0x3000000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage'
Marvell>> setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from tftpserver ...
Using egiga0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.20
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################
         333 KiB/s
done
Bytes transferred = 5075485 (4d721d hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 192.168.0.1; our IP address is 192.168.0.20
Filename 'uInitrd'.
Load address: 0x3000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############################################################
         336.9 KiB/s
done
Bytes transferred = 9488618 (90c8ea hex)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-13   0:27:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1014544K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 34032K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008669][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020444][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027178][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034886][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046801][    T0] Console: colour dummy device 80x30
[    0.051931][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063187][    T0] pid_max: default: 32768 minimum: 301
[    0.068561][    T0] LSM: Security Framework initializing
[    0.073884][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081164][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089166][    T0] *** VALIDATE proc ***
[    0.093235][    T0] *** VALIDATE cgroup1 ***
[    0.097490][    T0] *** VALIDATE cgroup2 ***
[    0.101764][    T0] CPU: Testing write buffer coherency: ok
[    0.107321][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113138][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177088][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189897][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207069][    T1] rcu: Hierarchical SRCU implementation.
[    0.247069][    T1] smp: Bringing up secondary CPUs ...
[    0.307126][    T1] Booting CPU 1
[    0.310560][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310563][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322664][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327449][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334463][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340242][    T1] devtmpfs: initialized
[    0.345965][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354513][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.365001][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371886][    T1] xor: measuring software checksum speed
[    0.477064][    T1]    arm4regs  :  2938.000 MB/sec
[    0.577063][    T1]    8regs     :  2220.400 MB/sec
[    0.677064][    T1]    32regs    :  2348.000 MB/sec
[    0.681917][    T1] xor: using function: arm4regs (2938.000 MB/sec)
[    0.688160][    T1] prandom: seed boundary self test passed
[    0.694818][    T1] prandom: 100 self tests passed
[    0.699589][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706127][    T1] NET: Registered protocol family 16
[    0.711727][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719593][    T1] audit: initializing netlink subsys (disabled)
[    0.725730][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737098][    T1] cpuidle: using governor ladder
[    0.741878][    T1] cpuidle: using governor menu
[    0.746610][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755323][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761930][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770692][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967074][    T1] raid6: int32x8  gen()   311 MB/s
[    1.137121][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307140][    T1] raid6: int32x4  gen()   303 MB/s
[    1.477159][    T1] raid6: int32x4  xor()   252 MB/s
[    1.647082][    T1] raid6: int32x2  gen()   333 MB/s
[    1.817063][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987273][    T1] raid6: int32x1  gen()   287 MB/s
[    2.157115][    T1] raid6: int32x1  xor()   315 MB/s
[    2.162059][    T1] raid6: using algorithm int32x2 gen() 333 MB/s
[    2.168121][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173667][    T1] raid6: using intx1 recovery algorithm
[    2.179815][    T1] vgaarb: loaded
[    2.183542][    T1] SCSI subsystem initialized
[    2.188372][    T1] usbcore: registered new interface driver usbfs
[    2.194589][    T1] usbcore: registered new interface driver hub
[    2.200632][    T1] usbcore: registered new device driver usb
[    2.206739][    T1] media: Linux media interface: v0.10
[    2.211989][    T1] videodev: Linux video capture interface: v2.00
[    2.218293][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.223934][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.233752][    T1] PTP clock support registered
[    2.239219][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.583418][    T1] VFS: Disk quotas dquot_6.6.0
[    2.588051][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.601480][    T1] NET: Registered protocol family 2
[    2.606835][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.615173][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.622922][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.630080][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.637139][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.643751][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.650871][    T1] NET: Registered protocol family 1
[    2.656146][    T1] RPC: Registered named UNIX socket transport module.
[    2.662747][    T1] RPC: Registered udp transport module.
[    2.668118][    T1] RPC: Registered tcp transport module.
[    2.673498][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.680607][    T1] PCI: CLS 0 bytes, default 64
[    2.685285][    T1] Trying to unpack rootfs image as initramfs...
[    2.945935][    T1] Freeing initrd memory: 9268K
[    2.950726][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.958101][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.968355][    T1] Initialise system trusted keyrings
[    2.973505][    T1] Key type blacklist registered
[    2.978260][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.985430][    T1] zbud: loaded
[    2.989085][    T1] NFS: Registering the id_resolver key type
[    2.994823][    T1] Key type id_resolver registered
[    2.999683][    T1] Key type id_legacy registered
[    3.004368][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.011735][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.018891][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.026863][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.034043][    T1] orangefs_init: module version upstream loaded
[    3.046463][    T1] async_tx: api initialized (async)
[    3.051514][    T1] Key type asymmetric registered
[    3.056280][    T1] Asymmetric key parser 'x509' registered
[    3.061871][    T1] bounce: pool size: 64 pages
[    3.066453][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    3.075851][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.085400][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.159576][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.168597][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.229569][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.272907][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.281123][    T1] printk: console [ttyS0] disabled
[    3.306134][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.315779][    T1] printk: console [ttyS0] enabled
[    3.315779][    T1] printk: console [ttyS0] enabled
[    3.325581][    T1] printk: bootconsole [earlycon0] disabled
[    3.325581][    T1] printk: bootconsole [earlycon0] disabled
[    3.357643][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.369712][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.375318][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.381975][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.387490][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.393700][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.401483][    T1] libphy: Fixed MDIO Bus: probed
[    3.407038][    T1] libphy: orion_mdio_bus: probed
[    3.417339][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.427137][    T1] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:c6:0b:26
[    3.436196][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.443474][    T1] ehci-pci: EHCI PCI platform driver
[    3.448695][    T1] ehci-orion: EHCI orion driver
[    3.454012][    T1] usbcore: registered new interface driver usblp
[    3.460285][    T1] usbcore: registered new interface driver usb-storage
[    3.467245][    T1] mousedev: PS/2 mouse device common for all mice
[    3.474225][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.480767][    T1] i2c /dev entries driver
[    3.511634][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.519158][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.528175][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.536332][    T1] orion_wdt: Initial timeout 171 sec
[    3.541785][    T1] device-mapper: uevent: version 1.0.3
[    3.547242][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.556540][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.563805][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.571152][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.578510][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.585335][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.643061][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.651219][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.657600][    T1] usbcore: registered new interface driver usbhid
[    3.663908][    T1] usbhid: USB HID core driver
[    3.668729][    T1] drop_monitor: Initializing network drop monitor service
[    3.675977][    T1] NET: Registered protocol family 10
[    3.681610][    T1] Segment Routing with IPv6
[    3.686024][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.693403][    T1] NET: Registered protocol family 17
[    3.698637][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.703577][    T1] Key type dns_resolver registered
[    3.708672][    T1] ThumbEE CPU extension supported.
[    3.713669][    T1] Registering SWP/SWPB emulation handler
[    3.719570][    T1] registered taskstats version 1
[    3.724384][    T1] Loading compiled-in X.509 certificates
[    3.729938][    T1] zswap: loaded using pool lzo/zbud
[    3.760620][    T1] Key type big_key registered
[    3.777519][    T1] Key type encrypted registered
[    3.783871][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.789449][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.796296][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.806147][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.816077][   T23] scsi host0: ahci-mvebu
[    3.820472][   T23] scsi host1: ahci-mvebu
[    3.824713][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.833381][   T23] ata2: DUMMY
[    3.836771][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.842836][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.851120][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.861108][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.867739][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.876751][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.884712][   T23] usb usb1: Product: xHCI Host Controller
[    3.890314][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.897393][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.903062][   T23] hub 1-0:1.0: USB hub found
[    3.907543][   T23] hub 1-0:1.0: 1 port detected
[    3.912338][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.918377][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.926613][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.933727][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.942612][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.951619][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.959580][   T23] usb usb2: Product: xHCI Host Controller
[    3.965177][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.972262][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.977887][   T23] hub 2-0:1.0: USB hub found
[    3.982373][   T23] hub 2-0:1.0: 1 port detected
[    3.987334][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.993390][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    4.001661][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.011648][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    4.018260][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    4.027274][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.035232][   T23] usb usb3: Product: xHCI Host Controller
[    4.040834][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    4.047914][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    4.053555][   T23] hub 3-0:1.0: USB hub found
[    4.058034][   T23] hub 3-0:1.0: 1 port detected
[    4.062818][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.068857][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.077093][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    4.084206][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.093095][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    4.102105][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.110063][   T23] usb usb4: Product: xHCI Host Controller
[    4.115660][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    4.122744][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    4.128366][   T23] hub 4-0:1.0: USB hub found
[    4.132854][   T23] hub 4-0:1.0: 1 port detected
[    4.137937][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-21T20:55:47 UTC (1608584147)
[    4.148037][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    4.153498][    T1] v12.0-sata0: disabling
[    4.329231][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.337381][ T1440] ata1.00: ATA-10: ST4000VN008-2DR166, SC60, max UDMA/133
[    4.344385][ T1440] ata1.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 32)
[    4.548430][ T1440] ata1.00: configured for UDMA/133
[    4.563698][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
[    4.572972][ T1449] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    4.581648][ T1449] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.587680][ T1449] sd 0:0:0:0: [sda] Write Protect is off
[    4.593246][ T1449] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.644001][ T1449]  sda: sda1
[    4.647675][ T1449] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.655036][    T1] Freeing unused kernel memory: 1024K
[    4.709500][    T1] Checked W+X mappings: passed, no W+X pages found
[    4.715883][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
[   15.682711][    C0] random: fast init done
rootfs: clean, 24100/3276800 files, 458851/13107200 blocks
done.
[   15.718296][ T1533] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.737902][ T1533] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   17.776638][ T1722] systemd-udevd[1722]: Using default interface naming scheme 'v240'.
[   17.828401][ T1723] systemd-udevd[1723]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.829807][ T1718] systemd-udevd[1718]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.840687][ T1717] systemd-udevd[1717]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.865523][ T1723] systemd-udevd[1723]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
[   17.877073][ T1726] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   17.883468][ T1722] systemd-udevd[1722]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   19.378637][ T1926] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs [ ok at location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   20.351077][ T2407] random: dd: uninitialized urandom read (512 bytes read)
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/

[   20.758535][ T2457] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   20.768126][ T2457] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
Listening on LPF/eth0/00:50:43:c6:0b:26
Sending on   LPF/eth0/00:50:43:c6:0b:26
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
[   25.939492][ T2458] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   25.948244][ T2458] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPOFFER of 192.168.0.153 from 192.168.0.1
DHCPREQUEST for 192.168.0.153 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.153 from 192.168.0.1
bound to 192.168.0.153 -- renewal in 21588 seconds.
[   39.475997][    C0] random: crng init done
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2678 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2705 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Running local boot scripts (/etc/rc.local)Warning: Bad CRC, using default environment
Warning: Bad CRC, using default environment
[   45.219216][ T2912] Setting Persistent MAC address to 00:00:11:22:33:44
<13>Dec 21 12:56:39 root[2919]: Setting Persistent MAC address to 00:00:11:22:33:44
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:c6:0b:26
Sending on   LPF/eth0/00:50:43:c6:0b:26
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.153 on eth0 to 192.168.0.1 port 67
[   46.378126][ T2458] mvneta f1070000.ethernet eth0: Link is Down
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights rese[   46.445817][ T2956] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
rved.
For info,[   46.456213][ T2956] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
 please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:11:22:33:44
Sending on   LPF/eth0/00:00:11:22:33:44
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   51.703613][   T49] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   51.712367][   T49] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPOFFER of 192.168.0.153 from 192.168.0.1
DHCPREQUEST for 192.168.0.153 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.153 from 192.168.0.1
bound to 192.168.0.153 -- renewal in 20580 seconds.
. ok

Debian GNU/Linux 10 debian ttyS0

debian login: root

But not with that HDD itself:
SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
... is now current device

SCSI read: device 0 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-21  20:49:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
Booting Stock OS ...

I don't know whats wrong.
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 04:22PM
bonk,

As I've mentioned before, we need to examine the log when you flashed uImage and uInitrd to the raw sectors to see they were done correctly. Apparently the uImage was OK.

===========

But we should try this first:

- With the current HDD rootfs attached.
- Power up, interrupt serial console and poke the HDD GPIO to activate it. And start the HDD.

mw.l f1018100 00008000
scsi init

And try to list the files on the HDD. if we can do that then there is no need for raw sectors:

ext2ls scsi 0:1 /boot
or

ext2ls scsi 0 /boot

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



Edited 1 time(s). Last edit at 12/21/2020 04:26PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 04:42PM
Ok, I will create hdd rootfs one again.

Marvell>> mw.l f1018100 00008000
Marvell>> scsi init
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Found 1 device(s).
Marvell>> ext2ls scsi 0:1 /boot
Unknown command 'ext2ls' - try 'help'
Marvell>> ext2ls scsi 0 /boot
Unknown command 'ext2ls' - try 'help'

Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 04:56PM
I'm very greatful for your help!

Procedure:
root@debian:~# dd if=/dev/zero of=/dev/sdb bs=1MiB count=50
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.533839 s, 98.2 MB/s
root@debian:~# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
The size of this disk is 3.7 TiB (4000787030016 bytes). DOS partition table format cannot be used on drives for volumes larger than 4294966784 bytes for 512-byte sectors. Use GUID partition table format (GPT).

Created a new DOS disklabel with disk identifier 0xc9982d68.

Command (m for help): g
Created a new GPT disklabel (GUID: E386B7D0-958E-DF45-9ED3-05E866E61E62).

Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-7814037134, default 2048): 51200
Last sector, +/-sectors or +/-size{K,M,G,T,P} (51200-7814037134, default 7814037134): +50G

Created a new partition 1 of type 'Linux filesystem' and of size 50 GiB.

Command (m for help): w
The partition table has been altered.
Calling i[  208.870262][ T3061]  sdb: sdb1
octl() to re-read partition table.
Syncing disks.

root@debian:~# mkfs.ext3 -L rootfs /dev/sdb1
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 13107200 4k blocks and 3276800 inodes
Filesystem UUID: 7ce2e707-fc1e-4175-a5f4-1ce2420e2064
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424

Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done

root@debian:~# mount /dev/sdb1 /media/sdb1
[  239.694747][ T3066] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[  240.128352][ T3066] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
root@debian:~# cd /media/sdb1
root@debian:/media/sdb1# tar -xjf /home/debian/Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2
root@debian:/media/sdb1# sync
root@debian:/media/sdb1# cd boot
root@debian:/media/sdb1/boot# cp -a zImage-5.2.9-mvebu-tld-1 zImage.fdt
root@debian:/media/sdb1/boot# cat dts/armada-385-synology-ds116.dtb  >> zImage.fdt
root@debian:/media/sdb1/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-mvebu-tld-1 -d zImage.fdt uImage
Image Name:   Linux-5.2.9-mvebu-tld-1
Created:      Mon Dec 21 14:52:42 2020
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5075421 Bytes = 4956.47 KiB = 4.84 MiB
Load Address: 00008000
Entry Point:  00008000
root@debian:/media/sdb1/boot# sync
root@debian:/media/sdb1/boot# ls
.                                              uImage
..                                             uInitrd
System.map-5.2.9-mvebu-tld-1                   vmlinuz-5.2.9-mvebu-tld-1
config-5.2.9-mvebu-tld-1                       zImage
dts                                            zImage-5.2.9-mvebu-tld-1
initrd.img-5.2.9-mvebu-tld-1                   zImage.fdt
linux-headers-5.2.9-mvebu-tld-1_1.0_armhf.deb
root@debian:/media/sdb1/boot# dd if=uImage of=/dev/sdb bs=1MiB seek=10
4+1 records in
4+1 records out
5075485 bytes (5.1 MB, 4.8 MiB) copied, 0.0539841 s, 94.0 MB/s
root@debian:/media/sdb1/boot# dd if=uInitrd of=/dev/sdb bs=1MiB seek=20
9+1 records in
9+1 records out
9488618 bytes (9.5 MB, 9.0 MiB) copied, 0.0325139 s, 292 MB/s
root@debian:/media/sdb1/boot# sync

Booting:

Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd_addr 0x3000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x4F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
loading uInitrd from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
... is now current device

SCSI read: device 0 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-21  22:52:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
Booting Stock OS ...

Re: Debian on Synology RS816 (Armada 385)
December 21, 2020 11:03PM
Let's try to boot it without uInitrd (similar to booting USB rootfs).

Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; run load_image; bootm $load_image_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 22, 2020 06:54AM
Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; run load_image; bootm $load_image_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ST4000VN008-2DR1 Rev: SC60
            Type: Hard Disk
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-22  12:51:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1023812K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 24764K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008669][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020445][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027177][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034886][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046800][    T0] Console: colour dummy device 80x30
[    0.051930][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063186][    T0] pid_max: default: 32768 minimum: 301
[    0.068560][    T0] LSM: Security Framework initializing
[    0.073883][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081164][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089165][    T0] *** VALIDATE proc ***
[    0.093234][    T0] *** VALIDATE cgroup1 ***
[    0.097490][    T0] *** VALIDATE cgroup2 ***
[    0.101763][    T0] CPU: Testing write buffer coherency: ok
[    0.107320][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113138][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177089][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183998][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189897][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207069][    T1] rcu: Hierarchical SRCU implementation.
[    0.247069][    T1] smp: Bringing up secondary CPUs ...
[    0.307125][    T1] Booting CPU 1
[    0.310558][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310561][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322661][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327447][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334461][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340238][    T1] devtmpfs: initialized
[    0.345973][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354532][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.365021][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371902][    T1] xor: measuring software checksum speed
[    0.477063][    T1]    arm4regs  :  2937.600 MB/sec
[    0.577066][    T1]    8regs     :  2220.400 MB/sec
[    0.677065][    T1]    32regs    :  2348.000 MB/sec
[    0.681918][    T1] xor: using function: arm4regs (2937.600 MB/sec)
[    0.688161][    T1] prandom: seed boundary self test passed
[    0.694819][    T1] prandom: 100 self tests passed
[    0.699590][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706134][    T1] NET: Registered protocol family 16
[    0.711736][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719603][    T1] audit: initializing netlink subsys (disabled)
[    0.725738][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737102][    T1] cpuidle: using governor ladder
[    0.741885][    T1] cpuidle: using governor menu
[    0.746615][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755324][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761933][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770695][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967263][    T1] raid6: int32x8  gen()   312 MB/s
[    1.137133][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307140][    T1] raid6: int32x4  gen()   303 MB/s
[    1.477175][    T1] raid6: int32x4  xor()   252 MB/s
[    1.647172][    T1] raid6: int32x2  gen()   332 MB/s
[    1.817092][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987122][    T1] raid6: int32x1  gen()   286 MB/s
[    2.157142][    T1] raid6: int32x1  xor()   315 MB/s
[    2.162085][    T1] raid6: using algorithm int32x2 gen() 332 MB/s
[    2.168147][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173694][    T1] raid6: using intx1 recovery algorithm
[    2.179853][    T1] vgaarb: loaded
[    2.183579][    T1] SCSI subsystem initialized
[    2.188407][    T1] usbcore: registered new interface driver usbfs
[    2.194624][    T1] usbcore: registered new interface driver hub
[    2.200667][    T1] usbcore: registered new device driver usb
[    2.206769][    T1] media: Linux media interface: v0.10
[    2.212019][    T1] videodev: Linux video capture interface: v2.00
[    2.218326][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.223968][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.233786][    T1] PTP clock support registered
[    2.239242][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.581489][    T1] VFS: Disk quotas dquot_6.6.0
[    2.586121][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.599551][    T1] NET: Registered protocol family 2
[    2.604912][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.613247][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.620995][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.628147][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.635211][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.641822][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.648936][    T1] NET: Registered protocol family 1
[    2.654231][    T1] RPC: Registered named UNIX socket transport module.
[    2.660831][    T1] RPC: Registered udp transport module.
[    2.666203][    T1] RPC: Registered tcp transport module.
[    2.671583][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.678686][    T1] PCI: CLS 0 bytes, default 64
[    2.683478][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.690811][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.700800][    T1] Initialise system trusted keyrings
[    2.705929][    T1] Key type blacklist registered
[    2.710711][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.717870][    T1] zbud: loaded
[    2.721533][    T1] NFS: Registering the id_resolver key type
[    2.727258][    T1] Key type id_resolver registered
[    2.732127][    T1] Key type id_legacy registered
[    2.736812][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.744181][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.751336][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.759308][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.766477][    T1] orangefs_init: module version upstream loaded
[    2.773424][    T1] async_tx: api initialized (async)
[    2.778452][    T1] Key type asymmetric registered
[    2.783231][    T1] Asymmetric key parser 'x509' registered
[    2.788795][    T1] bounce: pool size: 64 pages
[    2.793357][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    2.802745][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.812274][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.879586][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.888598][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.949581][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.992858][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.001063][    T1] printk: console [ttyS0] disabled
[    3.026076][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.035721][    T1] printk: console [ttyS0] enabled
[    3.035721][    T1] printk: console [ttyS0] enabled
[    3.045523][    T1] printk: bootconsole [earlycon0] disabled
[    3.045523][    T1] printk: bootconsole [earlycon0] disabled
[    3.077593][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.089669][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.095275][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.101932][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.107447][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.113647][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.121424][    T1] libphy: Fixed MDIO Bus: probed
[    3.126980][    T1] libphy: orion_mdio_bus: probed
[    3.132787][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.142573][    T1] mvneta f1070000.ethernet eth0: Using random mac address f6:be:92:1e:48:10
[    3.151451][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.158717][    T1] ehci-pci: EHCI PCI platform driver
[    3.163947][    T1] ehci-orion: EHCI orion driver
[    3.169229][    T1] usbcore: registered new interface driver usblp
[    3.175510][    T1] usbcore: registered new interface driver usb-storage
[    3.182487][    T1] mousedev: PS/2 mouse device common for all mice
[    3.189469][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.196001][    T1] i2c /dev entries driver
[    3.232186][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.239711][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.248712][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.256878][    T1] orion_wdt: Initial timeout 171 sec
[    3.262335][    T1] device-mapper: uevent: version 1.0.3
[    3.267790][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.277091][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.284356][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.291703][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.299061][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.305886][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.314365][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.322464][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.328836][    T1] usbcore: registered new interface driver usbhid
[    3.335143][    T1] usbhid: USB HID core driver
[    3.339962][    T1] drop_monitor: Initializing network drop monitor service
[    3.347180][    T1] NET: Registered protocol family 10
[    3.352833][    T1] Segment Routing with IPv6
[    3.357247][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.364645][    T1] NET: Registered protocol family 17
[    3.369890][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.374814][    T1] Key type dns_resolver registered
[    3.379917][    T1] ThumbEE CPU extension supported.
[    3.384906][    T1] Registering SWP/SWPB emulation handler
[    3.390793][    T1] registered taskstats version 1
[    3.395606][    T1] Loading compiled-in X.509 certificates
[    3.401163][    T1] zswap: loaded using pool lzo/zbud
[    3.407100][    T1] Key type big_key registered
[    3.411951][    T1] Key type encrypted registered
[    3.418285][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.423831][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.430689][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.440483][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.450423][   T23] scsi host0: ahci-mvebu
[    3.454781][   T23] scsi host1: ahci-mvebu
[    3.459023][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.467688][   T23] ata2: DUMMY
[    3.471170][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.477220][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.485512][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.495503][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.502143][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.511155][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.519108][   T23] usb usb1: Product: xHCI Host Controller
[    3.524714][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.531798][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.537528][   T23] hub 1-0:1.0: USB hub found
[    3.542019][   T23] hub 1-0:1.0: 1 port detected
[    3.546857][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.552905][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.561138][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.568249][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.577133][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.586145][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.594102][   T23] usb usb2: Product: xHCI Host Controller
[    3.599704][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.606783][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.612466][   T23] hub 2-0:1.0: USB hub found
[    3.616945][   T23] hub 2-0:1.0: 1 port detected
[    3.621985][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.628031][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.636311][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.646299][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    3.652917][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.661928][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.669887][   T23] usb usb3: Product: xHCI Host Controller
[    3.675484][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.682568][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    3.688268][   T23] hub 3-0:1.0: USB hub found
[    3.692757][   T23] hub 3-0:1.0: 1 port detected
[    3.697591][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.703639][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.711873][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.718986][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.727870][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.736879][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.744836][   T23] usb usb4: Product: xHCI Host Controller
[    3.750437][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.757517][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    3.763193][   T23] hub 4-0:1.0: USB hub found
[    3.767672][   T23] hub 4-0:1.0: 1 port detected
[    3.772877][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-22T12:53:16 UTC (1608641596)
[    3.782930][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    3.788395][    T1] v12.0-sata0: disabling
[    3.792837][    T1] Waiting 10 sec before mounting root device...
[    3.969253][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.977654][ T1440] ata1.00: ATA-10: ST4000VN008-2DR166, SC60, max UDMA/133
[    3.984658][ T1440] ata1.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 32)
[    4.075151][ T1440] ata1.00: configured for UDMA/133
[    4.090423][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST4000VN008-2DR1 SC60 PQ: 0 ANSI: 5
[    4.099731][   T20] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    4.108211][   T20] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.114230][   T20] sd 0:0:0:0: [sda] Write Protect is off
[    4.119798][   T20] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.198806][   T20]  sda: sda1
[    4.202440][   T20] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.939277][    T1] md: Waiting for all devices to be available before autodetect
[   13.946795][    T1] md: If you don't use raid, use raid=noautodetect
[   13.953523][    T1] md: Autodetecting RAID arrays.
[   13.958335][    T1] md: autorun ...
[   13.961850][    T1] md: ... autorun DONE.
[   13.984780][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   14.008947][    C0] random: fast init done
[   14.013679][    T1] EXT4-fs (sda1): ext4_check_descriptors: Block bitmap for group 0 not in group (block 4277499151)!
[   14.024345][    T1] EXT4-fs (sda1): group descriptors corrupted!
[   14.030721][    T1] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -117
[   14.038935][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   14.048032][    T1] 1f00            4096 mtdblock0
[   14.048033][    T1]  (driver?)
[   14.056003][    T1] 1f01            4096 mtdblock1
[   14.056004][    T1]  (driver?)
[   14.063971][    T1] 0800      3907018584 sda
[   14.063973][    T1]  driver: sd
[   14.071503][    T1]   0801      3906992967 sda1 4fee0b36-79a0-fb40-841b-7c3105deae28
[   14.071504][    T1]
[   14.081477][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[   14.090478][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.9-mvebu-tld-1 #1
[   14.098080][    T1] Hardware name: Marvell Armada 380/385 (Device Tree)
[   14.104736][    T1] [<c0117684>] (unwind_backtrace) from [<c0112034>] (show_stack+0x10/0x14)
[   14.113215][    T1] [<c0112034>] (show_stack) from [<c0a258a8>] (dump_stack+0x70/0x8c)
[   14.121171][    T1] [<c0a258a8>] (dump_stack) from [<c0127104>] (panic+0xf0/0x300)
[   14.128778][    T1] [<c0127104>] (panic) from [<c0e016ac>] (mount_block_root+0x19c/0x284)
[   14.136994][    T1] [<c0e016ac>] (mount_block_root) from [<c0e0187c>] (mount_root+0xe8/0x150)
[   14.145558][    T1] [<c0e0187c>] (mount_root) from [<c0e01a2c>] (prepare_namespace+0x148/0x188)
[   14.154297][    T1] [<c0e01a2c>] (prepare_namespace) from [<c0e01270>] (kernel_init_freeable+0x350/0x3bc)
[   14.163909][    T1] [<c0e01270>] (kernel_init_freeable) from [<c0a3af7c>] (kernel_init+0x8/0x10c)
[   14.172823][    T1] [<c0a3af7c>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[   14.181123][    T1] Exception stack(0xef0b1fb0 to 0xef0b1ff8)
[   14.186895][    T1] 1fa0:                                     00000000 00000000 00000000 00000000
[   14.195808][    T1] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   14.204720][    T1] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   14.212064][    C1] CPU1: stopping
[   14.215483][    C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.2.9-mvebu-tld-1 #1
[   14.223085][    C1] Hardware name: Marvell Armada 380/385 (Device Tree)
[   14.229734][    C1] [<c0117684>] (unwind_backtrace) from [<c0112034>] (show_stack+0x10/0x14)
[   14.238211][    C1] [<c0112034>] (show_stack) from [<c0a258a8>] (dump_stack+0x70/0x8c)
[   14.246166][    C1] [<c0a258a8>] (dump_stack) from [<c0115338>] (handle_IPI+0x2b8/0x3d4)
[   14.254298][    C1] [<c0115338>] (handle_IPI) from [<c05a0adc>] (gic_handle_irq+0x84/0x90)
[   14.262601][    C1] [<c05a0adc>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[   14.270813][    C1] Exception stack(0xef0cff60 to 0xef0cffa8)
[   14.276586][    C1] ff60: 00000000 00001428 ef7e24a0 c0120500 00000000 00000000 c0f04d48 00000002
[   14.285498][    C1] ff80: ffffe000 c0f04dac c0d04d83 00000000 c0f03d00 ef0cffb0 c010e8a4 c010e894
[   14.294409][    C1] ffa0: 60000113 ffffffff
[   14.298612][    C1] [<c01021cc>] (__irq_svc) from [<c010e894>] (arch_cpu_idle+0x1c/0x38)
[   14.306742][    C1] [<c010e894>] (arch_cpu_idle) from [<c0154030>] (do_idle+0x13c/0x270)
[   14.314870][    C1] [<c0154030>] (do_idle) from [<c01543f8>] (cpu_startup_entry+0x18/0x1c)
[   14.323172][    C1] [<c01543f8>] (cpu_startup_entry) from [<00102d6c>] (0x102d6c)
[   14.330694][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1) ]---


Re: Debian on Synology RS816 (Armada 385)
December 22, 2020 05:28PM
Quote

[ 14.013679][ T1] EXT4-fs (sda1): ext4_check_descriptors: Block bitmap for group 0 not in group (block 4277499151)!
[ 14.024345][ T1] EXT4-fs (sda1): group descriptors corrupted!
[ 14.030721][ T1] VFS: Cannot open root device "sda1" or unknown-block(8,1): error -117

That meant your HDD rootfs partition is not good.

I think you need to wipe it, write uImage to raw sectors, format the Ext3 partition, and then untar the rootfs tarball. After that, run e2fsck to see if the disk will be OK.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 22, 2020 05:46PM
By wipe do you mean:
dd if=/dev/zero of=/dev/sdb bs=1MiB
?
Re: Debian on Synology RS816 (Armada 385)
December 22, 2020 06:43PM
root@debian:/# e2fsck /dev/sdb
e2fsck 1.44.5 (15-Dec-2018)
ext2fs_open2: Bad magic number[ 1007.779919][ T1686]  sdb: sdb1
 in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a gpt partition table in /dev/sdb
root@debian:/# e2fsck /dev/sdb1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24099/1954064 files, 341007/7810257 blocks

Re: Debian on Synology RS816 (Armada 385)
December 22, 2020 09:29PM
> root@debian:/# e2fsck /dev/sdb1
> e2fsck 1.44.5 (15-Dec-2018)
> rootfs: clean, 24099/1954064 files, 341007/7810257
> blocks

That's good. So this /dev/sdb1 should be poplulated with the rootfs tarball.

And when you boot the box it should be /dev/sda1.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 04:29PM
Ok, so now i have this:
root@debian:~# e2fsck /dev/sdb1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24100/1954064 files, 341011/7810257 blocks
root@debian:~# reboot

Broadcast message from root@debian (ttyS0) (Wed [info] Using makefile-style concurrent boot in runlevel 6.
[ ok ] Stopping hotplug events dispatcher: systemd-udevd.
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' klogd implementation: klogd2708 (klogd)
Stopped klogd (pid 2708).
. ok
[....] Stopping busybox' syslogd implementation: syslogd2681 (syslogd)
. ok
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping NFS common utilities: idmapd statd.
[info] Saving the system clock.
[info] Hardware Clock updated to Wed Dec 23 14:22:10 PST 2020.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[....] Deconfiguring network interfaces...Removed stale PID file
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:11:22:33:44
Sending on   LPF/eth0/00:00:11:22:33:44
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.152 on eth0 to 192.168.0.1 port 67
[  106.931423][   T23] mvneta f1070000.ethernet eth0: Link is Down
done.
[ ok ] Saving random seed...done.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok
[ ok ] Will now deactivate swap:.
[....] Mounting root filesystem read-only...[  107.292076][ T3452] EXT4-fs (sda1): re-mounted. Opts: (null)
done.
[info] Will now restart.
[  107.443175][ T3473] sd 0:0:0:0: [sdb] Synchronizing SCSI cache
[  107.462936][ T3473] reboot: Restarting system

BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Synology board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  6   |  SATA0      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.46.0
WARNING:Wrong configuration for pup #1 CS mask and CS mirroring for all pups should be the same
WARNING:Wrong configuration for pup #3 CS mask and CS mirroring for all pups should be the same
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2013.01-g6cc0a6d (Jan 29 2016 - 17:30:11) Marvell version: 2015_T1.0p16

Board: SYNO-DS116
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1866 [MHz]
       L2     @ 933 [MHz]
       TClock @ 200 [MHz]
       DDR3    @ 933 [MHz]
       DDR3 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
MMC:   mv_sdh: 0
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:                    0x3ff3b000:0x3ffc949c
       BSS:                     0x3ffefa88
       Stack:                   0x3fa2af20
       Heap:                    0x3fa2b000:0x3ff3b000
       U-Boot Environment:      0x007e0000:0x007f0000 (SPI)

Board configuration detected:

Synology Model: DS116

Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Press Ctrl+C to abort autoboot in 3 second
Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; run load_image; bootm $load_image_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-23  21:46:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1023812K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 24764K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008668][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020443][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027177][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034885][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046800][    T0] Console: colour dummy device 80x30
[    0.051930][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063186][    T0] pid_max: default: 32768 minimum: 301
[    0.068559][    T0] LSM: Security Framework initializing
[    0.073883][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081163][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089165][    T0] *** VALIDATE proc ***
[    0.093235][    T0] *** VALIDATE cgroup1 ***
[    0.097491][    T0] *** VALIDATE cgroup2 ***
[    0.101763][    T0] CPU: Testing write buffer coherency: ok
[    0.107321][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113139][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177087][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183996][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189895][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207069][    T1] rcu: Hierarchical SRCU implementation.
[    0.247069][    T1] smp: Bringing up secondary CPUs ...
[    0.307123][    T1] Booting CPU 1
[    0.310557][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310560][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322661][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327446][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334460][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340240][    T1] devtmpfs: initialized
[    0.345961][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354509][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.364996][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371877][    T1] xor: measuring software checksum speed
[    0.477064][    T1]    arm4regs  :  2938.000 MB/sec
[    0.577064][    T1]    8regs     :  2220.000 MB/sec
[    0.677064][    T1]    32regs    :  2348.000 MB/sec
[    0.681917][    T1] xor: using function: arm4regs (2938.000 MB/sec)
[    0.688159][    T1] prandom: seed boundary self test passed
[    0.694818][    T1] prandom: 100 self tests passed
[    0.699589][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706128][    T1] NET: Registered protocol family 16
[    0.711728][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719597][    T1] audit: initializing netlink subsys (disabled)
[    0.725730][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737098][    T1] cpuidle: using governor ladder
[    0.741877][    T1] cpuidle: using governor menu
[    0.746609][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755323][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761931][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770694][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967257][    T1] raid6: int32x8  gen()   312 MB/s
[    1.137143][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307111][    T1] raid6: int32x4  gen()   305 MB/s
[    1.477167][    T1] raid6: int32x4  xor()   253 MB/s
[    1.647181][    T1] raid6: int32x2  gen()   333 MB/s
[    1.817157][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987068][    T1] raid6: int32x1  gen()   287 MB/s
[    2.157102][    T1] raid6: int32x1  xor()   314 MB/s
[    2.162047][    T1] raid6: using algorithm int32x2 gen() 333 MB/s
[    2.168110][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173657][    T1] raid6: using intx1 recovery algorithm
[    2.179813][    T1] vgaarb: loaded
[    2.183536][    T1] SCSI subsystem initialized
[    2.200693][    T1] usbcore: registered new interface driver usbfs
[    2.206865][    T1] usbcore: registered new interface driver hub
[    2.212890][    T1] usbcore: registered new device driver usb
[    2.218819][    T1] media: Linux media interface: v0.10
[    2.224083][    T1] videodev: Linux video capture interface: v2.00
[    2.230272][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.235913][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.245707][    T1] PTP clock support registered
[    2.250996][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.592721][    T1] VFS: Disk quotas dquot_6.6.0
[    2.597353][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.608766][    T1] NET: Registered protocol family 2
[    2.614192][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.622529][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.630270][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.637432][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.644501][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.651115][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.658231][    T1] NET: Registered protocol family 1
[    2.663510][    T1] RPC: Registered named UNIX socket transport module.
[    2.670093][    T1] RPC: Registered udp transport module.
[    2.675478][    T1] RPC: Registered tcp transport module.
[    2.680848][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.687964][    T1] PCI: CLS 0 bytes, default 64
[    2.692753][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.700074][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.709621][    T1] Initialise system trusted keyrings
[    2.714771][    T1] Key type blacklist registered
[    2.719516][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.726702][    T1] zbud: loaded
[    2.730354][    T1] NFS: Registering the id_resolver key type
[    2.736093][    T1] Key type id_resolver registered
[    2.740946][    T1] Key type id_legacy registered
[    2.745637][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.753005][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.760154][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.768092][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.775274][    T1] orangefs_init: module version upstream loaded
[    2.782239][    T1] async_tx: api initialized (async)
[    2.787269][    T1] Key type asymmetric registered
[    2.792047][    T1] Asymmetric key parser 'x509' registered
[    2.797612][    T1] bounce: pool size: 64 pages
[    2.802148][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    2.811200][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.820163][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.881333][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.890254][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.951333][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.984189][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.992182][    T1] printk: console [ttyS0] disabled
[    3.017247][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.027184][    T1] printk: console [ttyS0] enabled
[    3.027184][    T1] printk: console [ttyS0] enabled
[    3.036997][    T1] printk: bootconsole [earlycon0] disabled
[    3.036997][    T1] printk: bootconsole [earlycon0] disabled
[    3.068943][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.080464][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.086088][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.092748][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.098261][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.104323][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.111430][    T1] libphy: Fixed MDIO Bus: probed
[    3.116610][    T1] libphy: orion_mdio_bus: probed
[    3.122241][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.131527][    T1] mvneta f1070000.ethernet eth0: Using random mac address b6:8e:b8:72:b9:34
[    3.140289][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.147567][    T1] ehci-pci: EHCI PCI platform driver
[    3.152768][    T1] ehci-orion: EHCI orion driver
[    3.157946][    T1] usbcore: registered new interface driver usblp
[    3.164185][    T1] usbcore: registered new interface driver usb-storage
[    3.171094][    T1] mousedev: PS/2 mouse device common for all mice
[    3.177977][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.184357][    T1] i2c /dev entries driver
[    3.213727][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.221127][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.230129][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.238235][    T1] orion_wdt: Initial timeout 171 sec
[    3.253636][    T1] device-mapper: uevent: version 1.0.3
[    3.259057][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.268351][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.275616][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.282963][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.290323][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.297148][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.305484][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.313485][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.319757][    T1] usbcore: registered new interface driver usbhid
[    3.326082][    T1] usbhid: USB HID core driver
[    3.330818][    T1] drop_monitor: Initializing network drop monitor service
[    3.338045][    T1] NET: Registered protocol family 10
[    3.343676][    T1] Segment Routing with IPv6
[    3.348089][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.355306][    T1] NET: Registered protocol family 17
[    3.360535][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.365506][    T1] Key type dns_resolver registered
[    3.370601][    T1] ThumbEE CPU extension supported.
[    3.375598][    T1] Registering SWP/SWPB emulation handler
[    3.381378][    T1] registered taskstats version 1
[    3.386192][    T1] Loading compiled-in X.509 certificates
[    3.391746][    T1] zswap: loaded using pool lzo/zbud
[    3.397670][    T1] Key type big_key registered
[    3.402518][    T1] Key type encrypted registered
[    3.408907][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.414343][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.421206][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.431001][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.440948][   T23] scsi host0: ahci-mvebu
[    3.455338][   T23] scsi host1: ahci-mvebu
[    3.459587][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.468274][   T23] ata2: DUMMY
[    3.471648][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.477696][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.485979][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.495967][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.502603][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.511614][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.519567][   T23] usb usb1: Product: xHCI Host Controller
[    3.525180][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.532264][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.537928][   T23] hub 1-0:1.0: USB hub found
[    3.542420][   T23] hub 1-0:1.0: 1 port detected
[    3.547207][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.553258][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.561490][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.568600][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.577485][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.586501][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.594458][   T23] usb usb2: Product: xHCI Host Controller
[    3.600056][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.607139][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.612767][   T23] hub 2-0:1.0: USB hub found
[    3.617243][   T23] hub 2-0:1.0: 1 port detected
[    3.622196][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.628242][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.636525][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.646512][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    3.653128][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.662139][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.670092][   T23] usb usb3: Product: xHCI Host Controller
[    3.675696][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.682780][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    3.688421][   T23] hub 3-0:1.0: USB hub found
[    3.692908][   T23] hub 3-0:1.0: 1 port detected
[    3.697682][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.703729][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.711962][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.719072][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.727956][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.736965][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.744922][   T23] usb usb4: Product: xHCI Host Controller
[    3.750519][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.757602][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    3.763229][   T23] hub 4-0:1.0: USB hub found
[    3.767707][   T23] hub 4-0:1.0: 1 port detected
[    3.772846][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-23T22:22:40 UTC (1608762160)
[    3.782935][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    3.788399][    T1] v12.0-sata0: disabling
[    3.792821][    T1] Waiting 10 sec before mounting root device...
[    3.971007][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.978024][ T1440] ata1.00: ATA-9: ADATA SP600, 2.9, max UDMA/100
[    3.984243][ T1440] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    3.991581][ T1440] ata1.00: configured for UDMA/100
[    4.006841][   T20] scsi 0:0:0:0: Direct-Access     ATA      ADATA SP600      2.9  PQ: 0 ANSI: 5
[    4.016148][    T7] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    4.024669][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    4.030264][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.041648][    T7]  sda: sda1
[    4.045355][    T7] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.951032][    T1] md: Waiting for all devices to be available before autodetect
[   13.958549][    T1] md: If you don't use raid, use raid=noautodetect
[   13.965376][    T1] md: Autodetecting RAID arrays.
[   13.970189][    T1] md: autorun ...
[   13.973706][    T1] md: ... autorun DONE.
[   13.978018][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   13.993102][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   14.001533][    T1] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   14.010369][    T1] devtmpfs: mounted
[   14.015171][    T1] Freeing unused kernel memory: 1024K
[   14.041282][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.047667][    T1] Run /sbin/init as init process
[   14.058544][    C0] random: fast init done
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[warn] Files under mount point '/run' will be hidden. ... (warning).
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   14.849990][ T1665] systemd-udevd[1665]: Using default interface naming scheme 'v240'.
[   14.863634][ T1670] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   14.865098][ T1665] systemd-udevd[1665]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.893262][ T1665] systemd-udevd[1665]: Could not generate persistent MAC address for eth0: No such file or directory
[   14.916035][ T1663] systemd-udevd[1663]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.918626][ T1662] systemd-udevd[1662]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.929923][ T1663] systemd-udevd[1663]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
[   14.940274][ T1661] systemd-udevd[1661]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   16.022900][ T1872] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24100/1954064 files, 341011/7810257 blocks
. ok
[   16.144551][ T1898] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   16.917066][ T2379] random: dd: uninitialized urandom read (512 bytes read)
done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info,[   17.069039][ T2429] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
 please visit ht[   17.079508][ T2429] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
tps://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:8e:b8:72:b9:34
Sending on   LPF/eth0/b6:8e:b8:72:b9:34
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.136 on eth0 to 255.255.255.255 port 67
DHCPREQUEST for 192.168.0.136 on eth0 to 255.255.255.255 port 67
[   22.271281][    T5] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   22.280034][    T5] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST for 192.168.0.136 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.0.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.0.231 from 192.168.0.1
DHCPREQUEST for 192.168.0.231 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.231 from 192.168.0.1
bound to 192.168.0.231 -- renewal in 17403 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2671 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2698 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting system message bus: dbus[   32.934751][ T2795] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   32.951199][ T2795] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   33.009591][ T2818] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd
Booting stops at this..

I think i will boot from hdd but use tftp server on my router to load kernel. HDD raw sectors metod is killing me;p



Edited 1 time(s). Last edit at 12/23/2020 04:31PM by bonk1990.
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 05:25PM
> I think i will boot from hdd but use tftp server
> on my router to load kernel. HDD raw sectors metod
> is killing me;p

:) It does work for richjn back when he tested it. But it is not really a standard way to set up the system, so hard to say.

Don't forget to tell us if/when you receive GPL source info from Synology. Usually it does not take much effort to rebuild their u-boot with Ext3/Ext4 file system supports.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 05:31PM
i will not forget. I'm still open for testing.
Is there a way to resolve problem with ssh server start?
Should I remove some files from bootfs?
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 05:38PM
> i will not forget. I'm still open for testing.
> Is there a way to resolve problem with ssh server
> start?

Not sure why it stopped there. The booting process is almost done. And OpenSSH is part of Debian.

Assuming it was a delay in getting entropy. Try this:

Boot with uImage in raw sector as you did. But also plug in a USB drive before power up. This USB drive should be a normal Ext3/Ext4 partition with no rootfs on it (i.e. don't reuse the USB rootfs for this purpose).

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



Edited 1 time(s). Last edit at 12/23/2020 05:40PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 05:46PM
Also,

When you are booting without uInitrd, the /etc/fstab needs to be modified:

from:
LABEL=rootfs    /               ext4    noatime,errors=remount-ro 0 1

to :
/dev/sda1    /               ext4    noatime,errors=remount-ro 0 1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 05:53PM
Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; run load_image; bootm $load_image_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-23  21:46:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1023812K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 24764K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008668][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020443][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027178][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034886][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046802][    T0] Console: colour dummy device 80x30
[    0.051931][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063187][    T0] pid_max: default: 32768 minimum: 301
[    0.068561][    T0] LSM: Security Framework initializing
[    0.073885][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081165][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089168][    T0] *** VALIDATE proc ***
[    0.093238][    T0] *** VALIDATE cgroup1 ***
[    0.097494][    T0] *** VALIDATE cgroup2 ***
[    0.101767][    T0] CPU: Testing write buffer coherency: ok
[    0.107324][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113142][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177088][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189896][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207068][    T1] rcu: Hierarchical SRCU implementation.
[    0.247068][    T1] smp: Bringing up secondary CPUs ...
[    0.307124][    T1] Booting CPU 1
[    0.310558][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310561][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322661][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327447][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334461][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340242][    T1] devtmpfs: initialized
[    0.345977][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354525][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.365012][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371895][    T1] xor: measuring software checksum speed
[    0.477062][    T1]    arm4regs  :  2937.600 MB/sec
[    0.577063][    T1]    8regs     :  2220.400 MB/sec
[    0.677064][    T1]    32regs    :  2348.000 MB/sec
[    0.681916][    T1] xor: using function: arm4regs (2937.600 MB/sec)
[    0.688159][    T1] prandom: seed boundary self test passed
[    0.694818][    T1] prandom: 100 self tests passed
[    0.699588][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706126][    T1] NET: Registered protocol family 16
[    0.711727][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719595][    T1] audit: initializing netlink subsys (disabled)
[    0.725730][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737101][    T1] cpuidle: using governor ladder
[    0.741885][    T1] cpuidle: using governor menu
[    0.746614][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755323][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761931][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770692][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967252][    T1] raid6: int32x8  gen()   312 MB/s
[    1.137139][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307148][    T1] raid6: int32x4  gen()   305 MB/s
[    1.477127][    T1] raid6: int32x4  xor()   253 MB/s
[    1.647090][    T1] raid6: int32x2  gen()   332 MB/s
[    1.817093][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987255][    T1] raid6: int32x1  gen()   286 MB/s
[    2.157127][    T1] raid6: int32x1  xor()   314 MB/s
[    2.162073][    T1] raid6: using algorithm int32x2 gen() 332 MB/s
[    2.168135][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173682][    T1] raid6: using intx1 recovery algorithm
[    2.179834][    T1] vgaarb: loaded
[    2.183560][    T1] SCSI subsystem initialized
[    2.200697][    T1] usbcore: registered new interface driver usbfs
[    2.206869][    T1] usbcore: registered new interface driver hub
[    2.212895][    T1] usbcore: registered new device driver usb
[    2.218825][    T1] media: Linux media interface: v0.10
[    2.224091][    T1] videodev: Linux video capture interface: v2.00
[    2.230281][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.235923][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.245718][    T1] PTP clock support registered
[    2.251007][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.594073][    T1] VFS: Disk quotas dquot_6.6.0
[    2.598706][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.610126][    T1] NET: Registered protocol family 2
[    2.615552][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.623890][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.631643][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.638795][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.645864][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.652474][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.659587][    T1] NET: Registered protocol family 1
[    2.664866][    T1] RPC: Registered named UNIX socket transport module.
[    2.671462][    T1] RPC: Registered udp transport module.
[    2.676833][    T1] RPC: Registered tcp transport module.
[    2.682216][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.689319][    T1] PCI: CLS 0 bytes, default 64
[    2.694106][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.701438][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.710970][    T1] Initialise system trusted keyrings
[    2.716125][    T1] Key type blacklist registered
[    2.720870][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.728057][    T1] zbud: loaded
[    2.731725][    T1] NFS: Registering the id_resolver key type
[    2.737450][    T1] Key type id_resolver registered
[    2.742315][    T1] Key type id_legacy registered
[    2.747000][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.754368][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.761523][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.769449][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.776631][    T1] orangefs_init: module version upstream loaded
[    2.783577][    T1] async_tx: api initialized (async)
[    2.788606][    T1] Key type asymmetric registered
[    2.793384][    T1] Asymmetric key parser 'x509' registered
[    2.798950][    T1] bounce: pool size: 64 pages
[    2.803484][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    2.812512][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.821524][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.891347][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.900278][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.961348][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.994283][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.002284][    T1] printk: console [ttyS0] disabled
[    3.027352][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.037305][    T1] printk: console [ttyS0] enabled
[    3.037305][    T1] printk: console [ttyS0] enabled
[    3.047119][    T1] printk: bootconsole [earlycon0] disabled
[    3.047119][    T1] printk: bootconsole [earlycon0] disabled
[    3.079078][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.090591][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.096217][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.102872][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.108386][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.114446][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.121535][    T1] libphy: Fixed MDIO Bus: probed
[    3.126733][    T1] libphy: orion_mdio_bus: probed
[    3.132301][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.141580][    T1] mvneta f1070000.ethernet eth0: Using random mac address 0a:99:e8:4b:2c:0e
[    3.150346][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.157625][    T1] ehci-pci: EHCI PCI platform driver
[    3.162826][    T1] ehci-orion: EHCI orion driver
[    3.168003][    T1] usbcore: registered new interface driver usblp
[    3.174243][    T1] usbcore: registered new interface driver usb-storage
[    3.181147][    T1] mousedev: PS/2 mouse device common for all mice
[    3.188032][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.194410][    T1] i2c /dev entries driver
[    3.223824][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.231228][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.240229][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.248337][    T1] orion_wdt: Initial timeout 171 sec
[    3.263738][    T1] device-mapper: uevent: version 1.0.3
[    3.269160][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.278456][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.285720][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.293068][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.300428][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.307252][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.315579][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.323581][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.329854][    T1] usbcore: registered new interface driver usbhid
[    3.336181][    T1] usbhid: USB HID core driver
[    3.340910][    T1] drop_monitor: Initializing network drop monitor service
[    3.348141][    T1] NET: Registered protocol family 10
[    3.353762][    T1] Segment Routing with IPv6
[    3.358174][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.365389][    T1] NET: Registered protocol family 17
[    3.370620][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.375594][    T1] Key type dns_resolver registered
[    3.380689][    T1] ThumbEE CPU extension supported.
[    3.385686][    T1] Registering SWP/SWPB emulation handler
[    3.391466][    T1] registered taskstats version 1
[    3.396280][    T1] Loading compiled-in X.509 certificates
[    3.401835][    T1] zswap: loaded using pool lzo/zbud
[    3.407755][    T1] Key type big_key registered
[    3.412604][    T1] Key type encrypted registered
[    3.418983][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.424417][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.431281][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.441076][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.451053][   T23] scsi host0: ahci-mvebu
[    3.455416][   T23] scsi host1: ahci-mvebu
[    3.459656][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.468340][   T23] ata2: DUMMY
[    3.471739][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.477787][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.486076][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.496067][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.502701][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.511713][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.519666][   T23] usb usb1: Product: xHCI Host Controller
[    3.525281][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.532366][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.538036][   T23] hub 1-0:1.0: USB hub found
[    3.542529][   T23] hub 1-0:1.0: 1 port detected
[    3.547315][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.553362][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.561593][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.568708][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.577593][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.586608][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.594565][   T23] usb usb2: Product: xHCI Host Controller
[    3.600162][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.607247][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.612876][   T23] hub 2-0:1.0: USB hub found
[    3.617353][   T23] hub 2-0:1.0: 1 port detected
[    3.622308][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.628354][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.636633][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.646623][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    3.653247][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.662258][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.670210][   T23] usb usb3: Product: xHCI Host Controller
[    3.675814][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.682898][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    3.688537][   T23] hub 3-0:1.0: USB hub found
[    3.693025][   T23] hub 3-0:1.0: 1 port detected
[    3.697802][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.703849][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.712079][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.719189][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.728071][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.737079][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.745037][   T23] usb usb4: Product: xHCI Host Controller
[    3.750634][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.757717][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    3.763340][   T23] hub 4-0:1.0: USB hub found
[    3.767818][   T23] hub 4-0:1.0: 1 port detected
[    3.772952][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-23T23:51:57 UTC (1608767517)
[    3.783062][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    3.788529][    T1] v12.0-sata0: disabling
[    3.792953][    T1] Waiting 10 sec before mounting root device...
[    3.971019][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.978035][ T1440] ata1.00: ATA-9: ADATA SP600, 2.9, max UDMA/100
[    3.984253][ T1440] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    3.991591][ T1440] ata1.00: configured for UDMA/100
[    4.006848][   T20] scsi 0:0:0:0: Direct-Access     ATA      ADATA SP600      2.9  PQ: 0 ANSI: 5
[    4.016154][    T7] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    4.024650][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    4.030246][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.041048][ T1441] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    4.041635][    T7]  sda: sda1
[    4.052046][    T7] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.233324][ T1441] usb 1-1: New USB device found, idVendor=0930, idProduct=6544, bcdDevice= 1.00
[    4.242249][ T1441] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.250115][ T1441] usb 1-1: Product: USB Flash Memory
[    4.255282][ T1441] usb 1-1: Manufacturer:
[    4.260181][ T1441] usb 1-1: SerialNumber: 0022CFF653EAC3906312BD6B
[    4.266984][ T1441] usb-storage 1-1:1.0: USB Mass Storage device detected
[    4.273933][ T1441] scsi host2: usb-storage 1-1:1.0
[    5.428009][    T7] scsi 2:0:0:0: Direct-Access              USB Flash Memory 1.00 PQ: 0 ANSI: 4
[    5.437467][   T20] sd 2:0:0:0: [sdb] 30274560 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    5.445995][   T20] sd 2:0:0:0: [sdb] Write Protect is off
[    5.451719][   T20] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.469047][   T20]  sdb: sdb1
[    5.473229][   T20] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   13.951043][    T1] md: Waiting for all devices to be available before autodetect
[   13.958561][    T1] md: If you don't use raid, use raid=noautodetect
[   13.965382][    T1] md: Autodetecting RAID arrays.
[   13.970195][    T1] md: autorun ...
[   13.973711][    T1] md: ... autorun DONE.
[   13.978015][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   13.986295][    T1] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   13.993912][    T1] EXT4-fs (sda1): write access will be enabled during recovery
[   14.004745][    C0] random: fast init done
[   14.045265][    T1] EXT4-fs (sda1): recovery complete
[   14.055497][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   14.063926][    T1] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   14.072775][    T1] devtmpfs: mounted
[   14.077565][    T1] Freeing unused kernel memory: 1024K
[   14.091293][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.097676][    T1] Run /sbin/init as init process
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[warn] Files under mount point '/run' will be hidden. ... (warning).
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   14.945986][ T1682] systemd-udevd[1682]: Using default interface naming scheme 'v240'.
[   14.954574][ T1682] systemd-udevd[1682]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.970152][ T1682] systemd-udevd[1682]: Could not generate persistent MAC address for eth0: No such file or directory
[   15.006801][ T1684] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   15.021617][ T1688] usbcore: registered new interface driver uas
[   15.031376][ T1684] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   15.044933][ T1680] systemd-udevd[1680]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   15.052174][ T1686] systemd-udevd[1686]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   15.058059][ T1680] systemd-udevd[1680]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
[   15.080265][ T1685] systemd-udevd[1685]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   15.675742][ T1891] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24101/1954064 files, 341017/7810257 blocks
. ok
[   15.779836][ T1917] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   16.547478][ T2398] random: dd: uninitialized urandom read (512 bytes read)
done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info,[   16.698978][ T2448] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
 please visit ht[   16.709359][ T2448] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
tps://www.isc.org/software/dhcp/

Listening on LPF/eth0/0a:99:e8:4b:2c:0e
Sending on   LPF/eth0/0a:99:e8:4b:2c:0e
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.231 on eth0 to 255.255.255.255 port 67
DHCPREQUEST for 192.168.0.231 on eth0 to 255.255.255.255 port 67
[   21.951280][ T2449] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.960034][ T2449] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 192.168.0.172 from 192.168.0.1
DHCPREQUEST for 192.168.0.172 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.172 from 192.168.0.1
bound to 192.168.0.172 -- renewal in 19935 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2684 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2711 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting system message bus: dbus[   35.863455][ T2808] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   35.879770][ T2808] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   35.937897][ T2831] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd

Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 06:07PM
Changed fstab, with extra usb
Press Ctrl+C to abort autoboot in 3 second
Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; run load_image; bootm $load_image_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-12-23  21:46:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5075421 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Memory: 1023812K/1048576K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 24764K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008668][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020443][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027176][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034884][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046799][    T0] Console: colour dummy device 80x30
[    0.051929][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063185][    T0] pid_max: default: 32768 minimum: 301
[    0.068559][    T0] LSM: Security Framework initializing
[    0.073883][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081163][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.089164][    T0] *** VALIDATE proc ***
[    0.093234][    T0] *** VALIDATE cgroup1 ***
[    0.097490][    T0] *** VALIDATE cgroup2 ***
[    0.101762][    T0] CPU: Testing write buffer coherency: ok
[    0.107319][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113136][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177088][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189897][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207069][    T1] rcu: Hierarchical SRCU implementation.
[    0.247068][    T1] smp: Bringing up secondary CPUs ...
[    0.307122][    T1] Booting CPU 1
[    0.310555][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310558][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322659][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327445][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.334459][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340237][    T1] devtmpfs: initialized
[    0.345970][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.354525][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.365013][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.371896][    T1] xor: measuring software checksum speed
[    0.477064][    T1]    arm4regs  :  2938.000 MB/sec
[    0.577063][    T1]    8regs     :  2220.400 MB/sec
[    0.677064][    T1]    32regs    :  2348.000 MB/sec
[    0.681917][    T1] xor: using function: arm4regs (2938.000 MB/sec)
[    0.688160][    T1] prandom: seed boundary self test passed
[    0.694819][    T1] prandom: 100 self tests passed
[    0.699590][    T1] pinctrl core: initialized pinctrl subsystem
[    0.706130][    T1] NET: Registered protocol family 16
[    0.711731][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.719601][    T1] audit: initializing netlink subsys (disabled)
[    0.725736][   T33] audit: type=2000 audit(0.690:1): state=initialized audit_enabled=0 res=1
[    0.737101][    T1] cpuidle: using governor ladder
[    0.741884][    T1] cpuidle: using governor menu
[    0.746615][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.755324][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.761933][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.770695][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.967073][    T1] raid6: int32x8  gen()   311 MB/s
[    1.137122][    T1] raid6: int32x8  xor()   241 MB/s
[    1.307126][    T1] raid6: int32x4  gen()   303 MB/s
[    1.477120][    T1] raid6: int32x4  xor()   252 MB/s
[    1.647222][    T1] raid6: int32x2  gen()   333 MB/s
[    1.817105][    T1] raid6: int32x2  xor()   336 MB/s
[    1.987115][    T1] raid6: int32x1  gen()   286 MB/s
[    2.157069][    T1] raid6: int32x1  xor()   315 MB/s
[    2.162013][    T1] raid6: using algorithm int32x2 gen() 333 MB/s
[    2.168075][    T1] raid6: .... xor() 336 MB/s, rmw enabled
[    2.173621][    T1] raid6: using intx1 recovery algorithm
[    2.179775][    T1] vgaarb: loaded
[    2.183500][    T1] SCSI subsystem initialized
[    2.188327][    T1] usbcore: registered new interface driver usbfs
[    2.194544][    T1] usbcore: registered new interface driver hub
[    2.200587][    T1] usbcore: registered new device driver usb
[    2.206690][    T1] media: Linux media interface: v0.10
[    2.211942][    T1] videodev: Linux video capture interface: v2.00
[    2.218248][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.223889][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.233709][    T1] PTP clock support registered
[    2.251338][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.594137][    T1] VFS: Disk quotas dquot_6.6.0
[    2.598770][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.612223][    T1] NET: Registered protocol family 2
[    2.617580][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    2.625916][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    2.633670][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    2.640821][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.647890][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.654499][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.661622][    T1] NET: Registered protocol family 1
[    2.676923][    T1] RPC: Registered named UNIX socket transport module.
[    2.683537][    T1] RPC: Registered udp transport module.
[    2.688908][    T1] RPC: Registered tcp transport module.
[    2.694289][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.701399][    T1] PCI: CLS 0 bytes, default 64
[    2.706184][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.713515][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.723503][    T1] Initialise system trusted keyrings
[    2.728633][    T1] Key type blacklist registered
[    2.733389][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.740550][    T1] zbud: loaded
[    2.754242][    T1] NFS: Registering the id_resolver key type
[    2.759967][    T1] Key type id_resolver registered
[    2.764835][    T1] Key type id_legacy registered
[    2.769520][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.776891][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.784050][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.792018][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.799189][    T1] orangefs_init: module version upstream loaded
[    2.806145][    T1] async_tx: api initialized (async)
[    2.811173][    T1] Key type asymmetric registered
[    2.815952][    T1] Asymmetric key parser 'x509' registered
[    2.821526][    T1] bounce: pool size: 64 pages
[    2.826085][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    2.835461][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.844998][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.921650][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.930657][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.991648][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.034991][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.043199][    T1] printk: console [ttyS0] disabled
[    3.068214][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.077871][    T1] printk: console [ttyS0] enabled
[    3.077871][    T1] printk: console [ttyS0] enabled
[    3.087674][    T1] printk: bootconsole [earlycon0] disabled
[    3.087674][    T1] printk: bootconsole [earlycon0] disabled
[    3.119730][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.131830][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.137437][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.144097][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.149610][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.155816][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.163579][    T1] libphy: Fixed MDIO Bus: probed
[    3.169129][    T1] libphy: orion_mdio_bus: probed
[    3.174882][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.184672][    T1] mvneta f1070000.ethernet eth0: Using random mac address d6:43:79:f8:e8:4a
[    3.193552][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.200818][    T1] ehci-pci: EHCI PCI platform driver
[    3.206049][    T1] ehci-orion: EHCI orion driver
[    3.211354][    T1] usbcore: registered new interface driver usblp
[    3.217618][    T1] usbcore: registered new interface driver usb-storage
[    3.224593][    T1] mousedev: PS/2 mouse device common for all mice
[    3.231577][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.238104][    T1] i2c /dev entries driver
[    3.274273][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.281806][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    3.290808][    T1] watchdog: f1020300.watchdog: falling back to default timeout (171)
[    3.298969][    T1] orion_wdt: Initial timeout 171 sec
[    3.304436][    T1] device-mapper: uevent: version 1.0.3
[    3.309900][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    3.319200][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.326464][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.333811][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.341171][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.347998][    T1] device-mapper: raid: Loading target version 1.14.0
[    3.356461][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.364563][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    3.370935][    T1] usbcore: registered new interface driver usbhid
[    3.377242][    T1] usbhid: USB HID core driver
[    3.382073][    T1] drop_monitor: Initializing network drop monitor service
[    3.389293][    T1] NET: Registered protocol family 10
[    3.394927][    T1] Segment Routing with IPv6
[    3.399338][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.406737][    T1] NET: Registered protocol family 17
[    3.411981][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.416904][    T1] Key type dns_resolver registered
[    3.422007][    T1] ThumbEE CPU extension supported.
[    3.426997][    T1] Registering SWP/SWPB emulation handler
[    3.432882][    T1] registered taskstats version 1
[    3.437696][    T1] Loading compiled-in X.509 certificates
[    3.443251][    T1] zswap: loaded using pool lzo/zbud
[    3.449180][    T1] Key type big_key registered
[    3.454034][    T1] Key type encrypted registered
[    3.460379][   T23] v5.0-sata0: supplied by pwr_en_sata0
[    3.465929][   T23] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.472791][   T23] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.482585][   T23] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.492653][   T23] scsi host0: ahci-mvebu
[    3.507072][   T23] scsi host1: ahci-mvebu
[    3.511453][   T23] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    3.520106][   T23] ata2: DUMMY
[    3.523511][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.529560][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.537845][   T23] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.547835][   T23] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    3.554475][   T23] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.563488][   T23] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.571449][   T23] usb usb1: Product: xHCI Host Controller
[    3.577046][   T23] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.584130][   T23] usb usb1: SerialNumber: f10f0000.usb3
[    3.589796][   T23] hub 1-0:1.0: USB hub found
[    3.594289][   T23] hub 1-0:1.0: 1 port detected
[    3.599073][   T23] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.605122][   T23] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.613354][   T23] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.620466][   T23] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.629350][   T23] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.638361][   T23] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.646319][   T23] usb usb2: Product: xHCI Host Controller
[    3.651920][   T23] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.659000][   T23] usb usb2: SerialNumber: f10f0000.usb3
[    3.664626][   T23] hub 2-0:1.0: USB hub found
[    3.669103][   T23] hub 2-0:1.0: 1 port detected
[    3.674063][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.680109][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.688387][   T23] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.698373][   T23] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    3.704992][   T23] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    3.714003][   T23] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.721962][   T23] usb usb3: Product: xHCI Host Controller
[    3.727559][   T23] usb usb3: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.734643][   T23] usb usb3: SerialNumber: f10f8000.usb3
[    3.740279][   T23] hub 3-0:1.0: USB hub found
[    3.744767][   T23] hub 3-0:1.0: 1 port detected
[    3.749547][   T23] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.755595][   T23] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.763828][   T23] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.770937][   T23] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.779821][   T23] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    3.788830][   T23] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.796787][   T23] usb usb4: Product: xHCI Host Controller
[    3.802389][   T23] usb usb4: Manufacturer: Linux 5.2.9-mvebu-tld-1 xhci-hcd
[    3.809468][   T23] usb usb4: SerialNumber: f10f8000.usb3
[    3.815091][   T23] hub 4-0:1.0: USB hub found
[    3.819568][   T23] hub 4-0:1.0: 1 port detected
[    3.824703][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-24T00:05:11 UTC (1608768311)
[    3.834790][    T1] v12.0-sata0: supplied by pwr_en_sata0
[    3.840254][    T1] v12.0-sata0: disabling
[    3.844678][    T1] Waiting 10 sec before mounting root device...
[    4.021321][ T1440] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.028336][ T1440] ata1.00: ATA-9: ADATA SP600, 2.9, max UDMA/100
[    4.034555][ T1440] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    4.041898][ T1440] ata1.00: configured for UDMA/100
[    4.047099][   T20] scsi 0:0:0:0: Direct-Access     ATA      ADATA SP600      2.9  PQ: 0 ANSI: 5
[    4.056439][  T477] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    4.064777][  T477] sd 0:0:0:0: [sda] Write Protect is off
[    4.070322][  T477] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.081338][ T1441] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    4.081655][  T477]  sda: sda1
[    4.092303][  T477] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.273664][ T1441] usb 1-1: New USB device found, idVendor=0930, idProduct=6544, bcdDevice= 1.00
[    4.282590][ T1441] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.290456][ T1441] usb 1-1: Product: USB Flash Memory
[    4.295623][ T1441] usb 1-1: Manufacturer:
[    4.300522][ T1441] usb 1-1: SerialNumber: 0022CFF653EAC3906312BD6B
[    4.307325][ T1441] usb-storage 1-1:1.0: USB Mass Storage device detected
[    4.324296][ T1441] scsi host2: usb-storage 1-1:1.0
[    5.508402][  T477] scsi 2:0:0:0: Direct-Access              USB Flash Memory 1.00 PQ: 0 ANSI: 4
[    5.517844][ T1449] sd 2:0:0:0: [sdb] 30274560 512-byte logical blocks: (15.5 GB/14.4 GiB)
[    5.526386][ T1449] sd 2:0:0:0: [sdb] Write Protect is off
[    5.532107][ T1449] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.549395][ T1449]  sdb: sdb1
[    5.553536][ T1449] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   13.951344][    T1] md: Waiting for all devices to be available before autodetect
[   13.958862][    T1] md: If you don't use raid, use raid=noautodetect
[   13.965590][    T1] md: Autodetecting RAID arrays.
[   13.970403][    T1] md: autorun ...
[   13.973918][    T1] md: ... autorun DONE.
[   13.978219][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   13.986503][    T1] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   13.994119][    T1] EXT4-fs (sda1): write access will be enabled during recovery
[   14.004787][    C0] random: fast init done
[   14.039103][    T1] EXT4-fs (sda1): recovery complete
[   14.047812][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   14.056239][    T1] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   14.065089][    T1] devtmpfs: mounted
[   14.069878][    T1] Freeing unused kernel memory: 1024K
[   14.081594][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.087977][    T1] Run /sbin/init as init process
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
[warn] Files under mount point '/run' will be hidden. ... (warning).
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   14.894482][ T1678] systemd-udevd[1678]: Using default interface naming scheme 'v240'.
[   14.927261][ T1678] systemd-udevd[1678]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.936789][ T1683] usbcore: registered new interface driver uas
[   14.950970][ T1680] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   14.959582][ T1678] systemd-udevd[1678]: Could not generate persistent MAC address for eth0: No such file or directory
[   14.962464][ T1684] systemd-udevd[1684]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.972117][ T1680] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   14.982621][ T1687] systemd-udevd[1687]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   14.994737][ T1679] systemd-udevd[1679]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   15.000870][ T1687] systemd-udevd[1687]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   15.674299][ T1889] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24103/1954064 files, 341023/7810257 blocks
. ok
[   15.778588][ T1915] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
/dev/sda1 is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   16.543449][ T2394] random: dd: uninitialized urandom read (512 bytes read)
done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info,[   16.689728][ T2444] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
 please visit ht[   16.699904][ T2444] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
tps://www.isc.org/software/dhcp/

Listening on LPF/eth0/d6:43:79:f8:e8:4a
Sending on   LPF/eth0/d6:43:79:f8:e8:4a
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.159 on eth0 to 255.255.255.255 port 67
[   21.871583][ T2445] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.880337][ T2445] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST for 192.168.0.159 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.0.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER of 192.168.0.190 from 192.168.0.1
DHCPREQUEST for 192.168.0.190 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.190 from 192.168.0.1
bound to 192.168.0.190 -- renewal in 17696 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2689 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2716 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting system message bus: dbus[   30.678803][ T2813] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   30.695282][ T2813] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   30.753806][ T2836] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd[  306.489157][    C0] random: crng init done
[  306.493282][    C0] random: 1 urandom warning(s) missed due to ratelimiting
. ok
[....] Running local boot scripts (/etc/rc.local)Warning: Bad CRC, using default environment
Warning: Bad CRC, using default environment
[  308.131955][ T2923] Setting Persistent MAC address to 00:00:11:22:33:44
<13>Dec 23 16:10:15 root[2930]: Setting Persistent MAC address to 00:00:11:22:33:44
Killed old client process
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/d6:43:79:f8:e8:4a
Sending on   LPF/eth0/d6:43:79:f8:e8:4a
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.190 on eth0 to 192.168.0.1 port 67
[  309.297879][ T2445] mvneta f1070000.ethernet eth0: Link is Down
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights rese[  309.365728][ T2967] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
rved.
For info,[  309.375918][ T2967] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
 please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:11:22:33:44
Sending on   LPF/eth0/00:00:11:22:33:44
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[  314.573406][   T49] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[  314.582159][   T49] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER of 192.168.0.190 from 192.168.0.1
DHCPREQUEST for 192.168.0.190 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.190 from 192.168.0.1
bound to 192.168.0.190 -- renewal in 17867 seconds.
. ok

Debian GNU/Linux 10 debian ttyS0

debian login:
no sdb1 in fstab in this scenario?

It did take 5 minutes. Last time it didn't complete after around 10 minutes.



Edited 2 time(s). Last edit at 12/23/2020 06:19PM by bonk1990.
Re: Debian on Synology RS816 (Armada 385)
December 23, 2020 10:07PM
[   30.695282][ T2813] random: dbus-daemon: uninitialized urandom read (12 bytes read)

. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   30.753806][ T2836] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd[  306.489157][    C0] random: crng init done

[  306.493282][    C0] random: 1 urandom warning(s) missed due to ratelimiting
. ok


So my guess was correct. In the old kernel 5.2.9, when you boot with SDD, it will take a long time to get enough entropy for the OpenBSD SSH to finish initialization. If you booted with USB or HDD, then it would be much faster, ironically. This is because the USB or HDD drive have lots of moving parts, while the SSD has very little noise.

> It did take 5 minutes. Last time it didn't
> complete after around 10 minutes.

OK. So the solution is to upgrade the kernel to linux-5.9.3-mvebu-tld-1. After that the "crng init" will be finished much quicker even without the USB drive plugged in.

If it is still not fast enough then you can install haveged to help make the crng init run quicker (with pseudo random number generator).

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



Edited 1 time(s). Last edit at 12/23/2020 10:17PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
December 24, 2020 02:46AM
Thanks, good thinking!
I will update kernel. I hope that writing to raw sector now (not before rootfs creation) will not break everything.
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 03:46PM
So I tried to update kernel and save genereted files to raw sectors.
This is log:
root@debian:/boot# e2fsck /dev/sdb1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24113/1954064 files, 356717/7810257 blocks
root@debian:/boot# ls
.                                linux-headers-5.2.9-mvebu-tld-1_1.0_armhf.deb
..                               linux-headers-5.9.3-mvebu-tld-1_1.0_armhf.deb
System.map-5.2.9-mvebu-tld-1     linux-image-5.9.3-mvebu-tld-1_1.0_armhf.deb
System.map-5.9.3-mvebu-tld-1     uImage
config-5.2.9-mvebu-tld-1         uInitrd
config-5.9.3-mvebu-tld-1         vmlinuz-5.2.9-mvebu-tld-1
dts                              vmlinuz-5.9.3-mvebu-tld-1
initrd.img-5.2.9-mvebu-tld-1     zImage
initrd.img-5.9.3-mvebu-tld-1     zImage-5.2.9-mvebu-tld-1
linux-5.9.3-mvebu-tld-1.patch    zImage-5.9.3-mvebu-tld-1
linux-dtb-5.9.3-mvebu-tld-1.tar  zImage.fdt
root@debian:/boot# dd if=uImage of=/dev/sdb bs=1MiB seek=10
5+1 records in
5+1 records out
5471922 bytes (5.5 MB, 5.2 MiB) copied, 0.101684 s, 53.8 MB/s
[  702.552659][ T1712]  sdb: sdb1
root@debian:/boot# dd if=uInitrd of=/dev/sdb bs=1MiB seek=20
[  706.247973][ T1712]  sdb: sdb1
9+1 records in
9+1 records out
9520541 bytes (9.5 MB, 9.1 MiB) copied, 0.259773 s, 36.6 MB/s
root@debian:/boot# sync
root@debian:/boot# sync
root@debian:/boot# e2fsck /dev/sdb1
e2fsck 1.44.5 (15-Dec-2018)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
rootfs was not cleanly unmounted, check forced.
Resize inode not valid.  Recreate<y>? yes
I think that saving kernel files to raw sectors on HDD break partition table or something lik that.
Is that means that there is no way to update kernel using cofiguration with uImage and uInitrd installed to raw sectors on a HDD?

Happy New Year!



Edited 1 time(s). Last edit at 12/31/2020 03:46PM by bonk1990.
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 04:23PM
bonk1990,

Happy New Year!

> HDD break partition table or something lik that.
> Is that means that there is no way to update
> kernel using cofiguration with uImage and uInitrd
> installed to raw sectors on a HDD?

Try again, but this time flash only the uImage, don't flash uInitrd.

I think the process of flashing uInitrd has some problem but I have not examined it closely. So to get pass the doubt on the basic method of raw HDD sectors, we should prove that uImage works first.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 05:37PM
I'm sorry. I caused this problem when I was using fdisk.

Should be:
First sector (2048-62533262, default 2048): 102400

not:
First sector (2048-62533262, default 2048): 51200
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 05:42PM
I'm sorry again. There was one step that i should do by myself and i failed...

Now everythink works great:
Marvell>> mw.l f1018100 00008000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd_addr 0x3000000
Marvell>> setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00'
Marvell>> setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x4F00'
Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm                   $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Marvell>> boot
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
Found 1 device(s).
Booting Debian ...
loading uImage from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 20480, count 12032 ... 12032 blocks read: OK
loading uInitrd from raw HDD ...

SCSI device 0:
    Device 0: (0:0) Vendor: ATA Prod.: ADATA SP600 Rev: 2.9
            Type: Hard Disk
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

SCSI read: device 0 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.9.3-mvebu-tld-1
   Created:      2020-12-31  21:24:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5471858 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.9.3-mvebu-tld-1
   Created:      2020-12-31  21:24:53 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9520477 Bytes = 9.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.9.3-mvebu-tld-1 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubu                  ntu) 2.30) #1.0 SMP PREEMPT Tue Nov 3 15:58:15 PST 2020
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS116
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 20 pages/cpu s53068 r8192 d20660 u81920
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1013284K/1048576K available (10240K kernel code, 1047K rwdata, 3088K rodata, 1024K init, 341K bss, 35292K reserved, 0K cma-reserved, 262144K                   highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x304/0x75c with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006][    T0] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008668][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.020444][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027187][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034895][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046819][    T0] Console: colour dummy device 80x30
[    0.051948][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.063204][    T0] pid_max: default: 32768 minimum: 301
[    0.068602][    T0] LSM: Security Framework initializing
[    0.073926][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.081897][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.090759][    T0] CPU: Testing write buffer coherency: ok
[    0.096313][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.102136][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.108723][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.115634][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.121534][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.128449][    T1] rcu: Hierarchical SRCU implementation.
[    0.134294][    T1] smp: Bringing up secondary CPUs ...
[    0.139789][    T1] Booting CPU 1
[    0.143227][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.143230][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.155337][    T1] smp: Brought up 1 node, 2 CPUs
[    0.160122][    T1] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.167142][    T1] CPU: All CPU(s) started in SVC mode.
[    0.172722][    T1] devtmpfs: initialized
[    0.178688][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.187406][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.197911][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.205453][    T1] xor: measuring software checksum speed
[    0.307066][    T1]    arm4regs  :  2938.000 MB/sec
[    0.407066][    T1]    8regs     :  2220.400 MB/sec
[    0.507064][    T1]    32regs    :  2348.800 MB/sec
[    0.511916][    T1] xor: using function: arm4regs (2938.000 MB/sec)
[    0.518158][    T1] prandom: seed boundary self test passed
[    0.524816][    T1] prandom: 100 self tests passed
[    0.529586][    T1] pinctrl core: initialized pinctrl subsystem
[    0.536263][    T1] NET: Registered protocol family 16
[    0.541960][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.549865][    T1] audit: initializing netlink subsys (disabled)
[    0.556291][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.556624][   T35] audit: type=2000 audit(0.520:1): state=initialized audit_enabled=0 res=1
[    0.571752][    T1] cpuidle: using governor ladder
[    0.576536][    T1] cpuidle: using governor menu
[    0.581275][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.589941][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.596541][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.605306][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.807094][    T1] raid6: int32x8  gen()   342 MB/s
[    0.977084][    T1] raid6: int32x8  xor()   236 MB/s
[    1.147084][    T1] raid6: int32x4  gen()   393 MB/s
[    1.317112][    T1] raid6: int32x4  xor()   254 MB/s
[    1.487100][    T1] raid6: int32x2  gen()   630 MB/s
[    1.657077][    T1] raid6: int32x2  xor()   361 MB/s
[    1.827090][    T1] raid6: int32x1  gen()   720 MB/s
[    1.997074][    T1] raid6: int32x1  xor()   304 MB/s
[    2.002013][    T1] raid6: using algorithm int32x1 gen() 720 MB/s
[    2.008078][    T1] raid6: .... xor() 304 MB/s, rmw enabled
[    2.013624][    T1] raid6: using intx1 recovery algorithm
[    2.020224][    T1] vgaarb: loaded
[    2.024006][    T1] SCSI subsystem initialized
[    2.028906][    T1] usbcore: registered new interface driver usbfs
[    2.035126][    T1] usbcore: registered new interface driver hub
[    2.041167][    T1] usbcore: registered new device driver usb
[    2.047412][    T1] mc: Linux media interface: v0.10
[    2.052402][    T1] videodev: Linux video capture interface: v2.00
[    2.058773][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.064413][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.074236][    T1] PTP clock support registered
[    2.079902][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.744182][    T1] VFS: Disk quotas dquot_6.6.0
[    2.748829][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.763189][    T1] NET: Registered protocol family 2
[    2.768558][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.777596][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.786049][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.793914][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.801034][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    2.809111][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.816417][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.824231][    T1] NET: Registered protocol family 1
[    2.829560][    T1] RPC: Registered named UNIX socket transport module.
[    2.836172][    T1] RPC: Registered udp transport module.
[    2.841565][    T1] RPC: Registered tcp transport module.
[    2.846937][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.854057][    T1] PCI: CLS 0 bytes, default 64
[    2.858752][    T1] Trying to unpack rootfs image as initramfs...
[    3.137725][    T1] Freeing initrd memory: 9300K
[    3.142518][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    3.150181][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.160497][    T1] Initialise system trusted keyrings
[    3.165631][    T1] Key type blacklist registered
[    3.170413][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    3.177572][    T1] zbud: loaded
[    3.181476][    T1] NFS: Registering the id_resolver key type
[    3.187202][    T1] Key type id_resolver registered
[    3.192086][    T1] Key type id_legacy registered
[    3.196786][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.204161][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.211327][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.219474][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.226674][    T1] orangefs_init: module version upstream loaded
[    3.276761][    T1] async_tx: api initialized (async)
[    3.281814][    T1] Key type asymmetric registered
[    3.286581][    T1] Asymmetric key parser 'x509' registered
[    3.292214][    T1] bounce: pool size: 64 pages
[    3.296809][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    3.304927][    T1] io scheduler bfq registered
[    3.310945][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.320780][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.380338][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.389551][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.450330][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.499391][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.507898][    T1] printk: console [ttyS0] disabled
[    3.532941][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    3.542587][    T1] printk: console [ttyS0] enabled
[    3.542587][    T1] printk: console [ttyS0] enabled
[    3.552395][    T1] printk: bootconsole [earlycon0] disabled
[    3.552395][    T1] printk: bootconsole [earlycon0] disabled
[    3.584704][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    3.595570][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.604027][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.614098][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    3.619794][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    3.626468][    T1] Creating 2 MTD partitions on "spi0.0":
[    3.632014][    T1] 0x000000000000-0x000000400000 : "boot"
[    3.638326][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    3.645376][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.653963][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.665573][    T1] libphy: Fixed MDIO Bus: probed
[    3.671492][    T1] libphy: orion_mdio_bus: probed
[    3.683601][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    3.694577][    T1] mvneta f1070000.ethernet eth0: Using random mac address 06:4a:b5:f3:70:fe
[    3.703564][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.710850][    T1] ehci-pci: EHCI PCI platform driver
[    3.716081][    T1] ehci-orion: EHCI orion driver
[    3.721518][    T1] usbcore: registered new interface driver usblp
[    3.727785][    T1] usbcore: registered new interface driver usb-storage
[    3.734795][    T1] mousedev: PS/2 mouse device common for all mice
[    3.742202][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    3.748504][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2020-12-31T23:48:19 UTC (1609458499)
[    3.758777][    T1] i2c /dev entries driver
[    3.763553][    T1] at24 0-0057: supply vcc not found, using dummy regulator
[    3.801642][    T1] regulator-dummy: Underflow of regulator enable count
[    3.809503][    T1] gpio-fan soc:gpio-fan: GPIO fan initialized
[    3.817396][    T1] orion_wdt: Initial timeout 171 sec
[    3.822935][    T1] device-mapper: uevent: version 1.0.3
[    3.828412][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[    3.837734][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.845021][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.852372][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.859731][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.866582][    T1] device-mapper: raid: Loading target version 1.15.1
[    3.874554][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.882703][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.888856][    T1] usbcore: registered new interface driver usbhid
[    3.895161][    T1] usbhid: USB HID core driver
[    3.900022][    T1] drop_monitor: Initializing network drop monitor service
[    3.907242][    T1] NET: Registered protocol family 10
[    3.912923][    T1] Segment Routing with IPv6
[    3.917301][    T1] RPL Segment Routing with IPv6
[    3.922073][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.929552][    T1] NET: Registered protocol family 17
[    3.934841][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.939764][    T1] Key type dns_resolver registered
[    3.944881][    T1] ThumbEE CPU extension supported.
[    3.949871][    T1] Registering SWP/SWPB emulation handler
[    3.955555][    T1] registered taskstats version 1
[    3.960402][    T1] Loading compiled-in X.509 certificates
[    3.965957][    T1] zswap: loaded using pool lzo/zbud
[    3.971199][    T1] Key type ._fscrypt registered
[    3.975926][    T1] Key type .fscrypt registered
[    3.980588][    T1] Key type fscrypt-provisioning registered
[    3.987003][    T1] Key type big_key registered
[    4.001444][    T1] Key type encrypted registered
[    4.008357][   T25] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    4.016829][   T25] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    4.025123][   T25] v5.0-sata0: supplied by pwr_en_sata0
[    4.030652][   T25] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    4.037501][   T25] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    4.047304][   T25] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    4.057584][   T25] scsi host0: ahci-mvebu
[    4.062089][   T25] scsi host1: ahci-mvebu
[    4.066397][   T25] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    4.075079][   T25] ata2: DUMMY
[    4.078608][   T25] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.084668][   T25] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    4.092982][   T25] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.102994][   T25] xhci-hcd f10f0000.usb3: irq 43, io mem 0xf10f0000
[    4.109634][   T25] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[    4.118645][   T25] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.126617][   T25] usb usb1: Product: xHCI Host Controller
[    4.132221][   T25] usb usb1: Manufacturer: Linux 5.9.3-mvebu-tld-1 xhci-hcd
[    4.139300][   T25] usb usb1: SerialNumber: f10f0000.usb3
[    4.145032][   T25] hub 1-0:1.0: USB hub found
[    4.149515][   T25] hub 1-0:1.0: 1 port detected
[    4.154338][   T25] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.160399][   T25] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    4.168628][   T25] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    4.175753][   T25] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.184655][   T25] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.09
[    4.193663][   T25] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.201632][   T25] usb usb2: Product: xHCI Host Controller
[    4.207229][   T25] usb usb2: Manufacturer: Linux 5.9.3-mvebu-tld-1 xhci-hcd
[    4.214315][   T25] usb usb2: SerialNumber: f10f0000.usb3
[    4.220009][   T25] hub 2-0:1.0: USB hub found
[    4.224489][   T25] hub 2-0:1.0: 1 port detected
[    4.229500][   T25] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.235555][   T25] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    4.243854][   T25] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.253847][   T25] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    4.260503][   T25] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[    4.269504][   T25] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.277469][   T25] usb usb3: Product: xHCI Host Controller
[    4.283084][   T25] usb usb3: Manufacturer: Linux 5.9.3-mvebu-tld-1 xhci-hcd
[    4.290170][   T25] usb usb3: SerialNumber: f10f8000.usb3
[    4.295837][   T25] hub 3-0:1.0: USB hub found
[    4.300337][   T25] hub 3-0:1.0: 1 port detected
[    4.305134][   T25] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.311182][   T25] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.319411][   T25] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    4.326532][   T25] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.335426][   T25] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.09
[    4.344433][   T25] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.352390][   T25] usb usb4: Product: xHCI Host Controller
[    4.357988][   T25] usb usb4: Manufacturer: Linux 5.9.3-mvebu-tld-1 xhci-hcd
[    4.365072][   T25] usb usb4: SerialNumber: f10f8000.usb3
[    4.370737][   T25] hub 4-0:1.0: USB hub found
[    4.375216][   T25] hub 4-0:1.0: 1 port detected
[    4.569913][ T1464] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.576936][ T1464] ata1.00: ATA-9: ADATA SP600, 2.9, max UDMA/100
[    4.583155][ T1464] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    4.590500][ T1464] ata1.00: configured for UDMA/100
[    4.595699][   T37] scsi 0:0:0:0: Direct-Access     ATA      ADATA SP600      2.9  PQ: 0 ANSI: 5
[    4.605165][    T7] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[    4.613516][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    4.619065][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.632665][    T7]  sda: sda1
[    4.636437][    T7] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    4.644038][    T1] Freeing unused kernel memory: 1024K
[    4.700260][    T1] Checked W+X mappings: passed, no W+X pages found
[    4.706650][    T1] Run /init as init process
Loading, please wait...
Starting version 241
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.
[   16.342345][ T1550] process '/usr/bin/fstype' started with executable stack
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[   16.378840][    C0] random: fast init done
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 24101/1954064 files, 341023/7803857 blocks
done.
[   16.425243][ T1558] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   16.440413][ T1558] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   17.214217][ T1706] systemd-udevd[1706]: could not open moddep file '/lib/modules/5.9.3-mvebu-tld-1/modules.dep.bin'
[   17.236928][ T1706] systemd-udevd[1706]: could not open moddep file '/lib/modules/5.9.3-mvebu-tld-1/modules.dep.bin'
done.
[....] Waiting for /dev to be fully populated...[   17.312193][ T1707] systemd-udevd[1707]: Using default interface naming scheme 'v240'.
[   17.321253][ T1707] systemd-udevd[1707]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.326809][ T1701] systemd-udevd[1701]: could not open moddep file '/lib/modules/5.9.3-mvebu-tld-1/modules.dep.bin'
[   17.338897][ T1707] systemd-udevd[1707]: Could not generate persistent MAC address for eth0: No such file or directory
[   17.396097][ T1699] systemd-udevd[1699]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.396198][ T1703] systemd-udevd[1703]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.409677][ T1704] systemd-udevd[1704]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   17.465944][ T1699] systemd-udevd[1699]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   19.108819][ T1907] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   20.003842][ T2388] random: dd: uninitialized urandom read (512 bytes read)
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.or[   20.171113][ T2438] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
g/software/dhcp/[   20.183069][ T2438] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode


Listening on LPF/eth0/06:4a:b5:f3:70:fe
Sending on   LPF/eth0/06:4a:b5:f3:70:fe
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   24.340303][    T5] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.349059][    T5] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.0.189 from 192.168.0.1
DHCPREQUEST for 192.168.0.189 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.189 from 192.168.0.1
bound to 192.168.0.189 -- renewal in 17596 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2674 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2701 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting system message bus: dbus[   33.069519][ T2798] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   33.086257][ T2798] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   33.152693][ T2821] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd[   34.420503][    T5] v12.0-sata0: supplied by pwr_en_sata0
[   34.425973][    T5] v12.0-sata0: disabling
[   37.782183][    C0] random: crng init done
[   37.786303][    C0] random: 1 urandom warning(s) missed due to ratelimiting
. ok
[....] Running local boot scripts (/etc/rc.local)Warning: Bad CRC, using default environment
Warning: Bad CRC, using default environment
[   39.452187][ T2908] Setting Persistent MAC address to 00:00:11:22:33:44
<13>Dec 31 15:48:54 root[2915]: Setting Persistent MAC address to 00:00:11:22:33:44
Killed old client process
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/06:4a:b5:f3:70:fe
Sending on   LPF/eth0/06:4a:b5:f3:70:fe
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.189 on eth0 to 192.168.0.1 port 67
[   40.611639][    T5] mvneta f1070000.ethernet eth0: Link is Down
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info,[   40.688387][ T2952] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
 please visit ht[   40.699401][ T2952] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
tps://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:11:22:33:44
Sending on   LPF/eth0/00:00:11:22:33:44
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   44.906124][   T25] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   44.914878][   T25] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPOFFER of 192.168.0.189 from 192.168.0.1
DHCPREQUEST for 192.168.0.189 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.189 from 192.168.0.1
bound to 192.168.0.189 -- renewal in 19662 seconds.
. ok

Debian GNU/Linux 10 debian ttyS0

debian login:



Edited 3 time(s). Last edit at 12/31/2020 05:50PM by bonk1990.
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 05:56PM
Cool! good works bonk.

Now could you post the log of the Steps 2.b and 3.c where we prepare the HDD raw sectors.

Quote

2.b. Create a single partition that starts at 50MiB using fdisk.

(we want to show an example here for a typical HDD)

This partition will become /dev/sdb1.

Quote

3.c. Write uImage and uInitrd to raw sectors.
cd /media/sdb1/boot
dd if=uImage of=/dev/sdb bs=1MiB seek=10
dd if=uInitrd of=/dev/sdb bs=1MiB seek=20
sync

After that I'll modify the installation and we're done!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
December 31, 2020 05:58PM
And now we can go back to use root=LABEL=rootfs in bootargs


setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'

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

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: