Welcome! Log In Create A New Profile

Advanced

Debian on Synology RS816 (Armada 385)

Posted by zifxify 
Re: Debian on Synology RS816 (Armada 385)
January 24, 2022 08:26PM
rreignier Wrote:
-------------------------------------------------------
> Hi bodhi
>
> It took me a while but I have finally finished
> reading this whole thread.
>
> From what I have read, I did not see anyone
> booting with a kernel image stored on USB. It was
> only from tftp (as I did already), from flash
> (which failed from me) or from raw HDD sectors
> (did not try yet).
>
> Do you remember another thread in which it was
> done?

Can't recall anybody done this.

Ok so connect serial console and plug in Ext3 formatted USB. And

usb reset

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 12:28PM
Hi bodhi

Quote
bodhi
Ok so connect serial console and plug in Ext3
formatted USB. And

usb reset

usb reset:
Marvell>> usb reet
USB is stopped. Please issue 'usb start' first.

So usb start:
Marvell>> usb start
(Re)start USB...
USB:   Active port:     1
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found

Nice!

Then ext2ls:
Marvell>> ext2ls usb 0:1
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 etc
<DIR>       4096 mnt
<DIR>       4096 sbin
<DIR>       4096 root
<DIR>       4096 dev
<DIR>       4096 usr
<DIR>       4096 srv
<DIR>       4096 boot
<DIR>       4096 media
<DIR>       4096 proc
<DIR>       4096 var
<DIR>       4096 run
<DIR>       4096 bin
<DIR>       4096 opt
<DIR>       4096 tmp
<DIR>       4096 lib
<DIR>       4096 home
<DIR>       4096 sys
      1073741824 swapfile1
<DIR>       4096 @tmp
<DIR>       4096 @eaDir

Great!

No I have to check how to boot from here.
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 01:41PM
Actually, only one of the two USB ports works in uboot.
The USB stick is only detected on the port the closer to the Ethernet socket.

By slightly modifying the tftp boot variables, I have managed to boot from the USB drive.

setenv ipaddr 192.168.1.19
setenv serverip 192.168.1.42
setenv load_initrd_addr 0x3000000
setenv load_image_addr 0x02000000
setenv usb_setup 'usb start'
setenv load_image 'echo loading uImage from usb ...; ext2load usb 0:1 $load_image_addr boot/uImage'
setenv load_initrd 'echo loading uInitrd from usb ...; ext2load usb 0:1 $load_initrd_addr boot/uInitrd'
setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup;  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'
setenv bootcmd 'run bootcmd_exec; run bootspi'
boot

Note that the bootspi is not working because not present in this version of uboot.

Is it safe to just do a saveenv now or do I have to make some changes before?
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 03:15PM
After some time, I have the following kernel error in the console:

[ 1573.614898][    C0] irq 51: nobody cared (try booting with the "irqpoll" option)
[ 1573.622370][    C0] CPU: 0 PID: 5066 Comm: localedef Not tainted 5.15.5-mvebu-tld-1 #1.0
[ 1573.630513][    C0] Hardware name: Marvell Armada 370/XP (Device Tree)
[ 1573.637084][    C0] [<c01157a8>] (unwind_backtrace) from [<c01103fc>] (show_stack+0x10/0x14)
[ 1573.645598][    C0] [<c01103fc>] (show_stack) from [<c0aaa574>] (dump_stack_lvl+0x40/0x4c)
[ 1573.653929][    C0] [<c0aaa574>] (dump_stack_lvl) from [<c0184dec>] (__report_bad_irq+0x28/0xc0)
[ 1573.662782][    C0] [<c0184dec>] (__report_bad_irq) from [<c01851e8>] (note_interrupt+0x1b8/0x260)
[ 1573.671800][    C0] [<c01851e8>] (note_interrupt) from [<c0181da4>] (handle_irq_event_percpu+0x4c/0x70)
[ 1573.681256][    C0] [<c0181da4>] (handle_irq_event_percpu) from [<c0181e00>] (handle_irq_event+0x38/0x5c)
[ 1573.690884][    C0] [<c0181e00>] (handle_irq_event) from [<c0186810>] (handle_edge_irq+0xdc/0xfc)
[ 1573.699815][    C0] [<c0186810>] (handle_edge_irq) from [<c0180e7c>] (handle_irq_desc+0x24/0x34)
[ 1573.708656][    C0] [<c0180e7c>] (handle_irq_desc) from [<c05faa44>] (mvebu_gpio_irq_handler+0x164/0x178)
[ 1573.718288][    C0] [<c05faa44>] (mvebu_gpio_irq_handler) from [<c0180e7c>] (handle_irq_desc+0x24/0x34)
[ 1573.727740][    C0] [<c0180e7c>] (handle_irq_desc) from [<c0181568>] (handle_domain_irq+0x3c/0x54)
[ 1573.736757][    C0] [<c0181568>] (handle_domain_irq) from [<c05e5bd8>] (armada_370_xp_handle_irq+0x48/0xd0)
[ 1573.746561][    C0] [<c05e5bd8>] (armada_370_xp_handle_irq) from [<c01015d0>] (__irq_usr+0x50/0x80)
[ 1573.755664][    C0] Exception stack(0xc419dfb0 to 0xc419dff8)
[ 1573.761447][    C0] dfa0:                                     00000000 02e9d9c0 0261cfdc 0261cfd8
[ 1573.770369][    C0] dfc0: 008809e8 02e9d958 00000004 bea3c8a8 0261d06c 018a7488 02e9d9c0 0261d028
[ 1573.779290][    C0] dfe0: 0261cfd8 bea3c858 004e906b b6ead2d4 200e0030 ffffffff
[ 1573.786638][    C0] handlers:
[ 1573.789622][    C0] [<568635c5>] fan_alarm_irq_handler
[ 1573.794809][    C0] Disabling IRQ #51

Do you know if this is an issue?
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 04:40PM
> Actually, only one of the two USB ports works in
> uboot.
> The USB stick is only detected in the port the
> closer to the Ethernet socket.

That's very good to know and noted loudly in the installation instruction!

I think it best that you go through the Steps in the USB installation instruction:

https://forum.doozan.com/read.php?2,76314,91094#msg-91094

You might find something we did not before. And we can improve the instruction.

The IRQ problem above seems to be specific to the fan alarm so it does not hurt anything. However, I think I should look at the DTS again to see if we need to add or remove something.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 04:59PM
Quote
boudhi
I think it best that you go through the Steps in the USB installation instruction:

https://forum.doozan.com/read.php?2,76314,91094#msg-91094

Theses instructions only use USB for rootfs and flash kernel to flash, isn't it?

Now that I can boot directly from USB, even the kernel, I think I only have to change the uboot env, right?
Re: Debian on Synology RS816 (Armada 385)
January 25, 2022 05:29PM
rreignier,

> Theses instructions only use USB for rootfs and
> flash kernel to flash, isn't it?
>
> Now that I can boot directly from USB, even the
> kernel, I think I only have to change the uboot
> env, right?

Yes. If you can go through similar steps. Then we have a new instruction to boot directly from USB :)

So could you copy the Steps and revise them with what you just did (in a new post here in this thread)? Of course, it's your instruction so please write your own explanation if you'd like in each step. It's basically the outline that should be similar.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 27, 2022 09:04AM
Ok, I see.

I have installed openmediavault on the NAS and let it run for almost two days, no issue detected, Ethernet and the two sata ports are working.

Only the two disk leds are declared in the DTS so the STATUS, LAN and POWER leds are missing but they may be accessible from the external microcontroller and trigger by the serial port. I did not try yet and did not tried other GPIO.

But I have noticed that if I reboot the system, interrupt u-boot and paste the "setenv" commands, it does not work, I have:

Marvell>> setenv serverip 192.168.1.42
Unknown command 'setenv' - try 'help'

If I enter the commands manually, it seems to work but I cannot find them all with "printenv".

Have you already this strange behavior on reboot? Maybe once I will save the env, the issue won't be there anymore.

For now, I have to pull the power cord to reboot the box.
Re: Debian on Synology RS816 (Armada 385)
January 27, 2022 04:15PM
rreignier,

> Have you already this strange behavior on reboot?
> Maybe once I will save the env, the issue won't be
> there anymore.

I don't have this box. So all tests were done by users on this thread.

Yes. Once you save envs then you will know that the box can boot automatically without manual interruption. But please do read again the Installation Instruction steps to see if the issue you are seeing was discussed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
February 17, 2022 05:29PM
Hi,

I was able to activate both sata in u-boot fo Synology DS218j using

mw.l f1018100 000ff000;

scsi init -- found both HDDs.

But after booting in Linux I could not find sdb.
Re: Debian on Synology RS816 (Armada 385)
June 13, 2022 09:51PM
I'm revisiting this topic and don't recall we have the serial pinouts post for RS816, DS116, or DS118. If you own one of these boxes, please post the serial pinouts.

Thanks!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
June 15, 2022 11:29PM
See Recovering a Failed Synology Diskstation with a Serial Console for details regarding pin out for most Marvell based Synology NAS.

Ray
Re: Debian on Synology RS816 (Armada 385)
June 16, 2022 04:23PM
> See
> Recovering
> a Failed Synology Diskstation with a Serial
> Console
for details regarding pin out for
> most Marvell based Synology NAS.

Thanks, I found that too. But that was DS212+, i.e. not one of these 3 boxes. So the questions to users in this thread is "do they all have same pinouts like below?"

1 3.3V
2 GND
4 TX
6 RX

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
June 19, 2022 01:33AM
I used this pinout successfully with these boxes in the past: DS214 (trying to unbrick now), DS413J, DS413 and DS118. I would bet that if you see a connector with 6 pins that it will be the serial port and that is uses this layout.

I do use only 2, 4 and 6. A common plug that is used for connecting servos in RC model flight fits perfectly.

Jan
Re: Debian on Synology RS816 (Armada 385)
June 19, 2022 03:59AM
Thanks Jan! that's answered my question.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
June 24, 2022 06:16PM
Hi Jan,

> I do use only 2, 4 and 6. A common plug that is
> used for connecting servos in RC model flight fits
> perfectly.
>

On your boxes, is this orientation of the pins correct? pin 1 is marked with a triangle

Quote

2 3 4
1 6 5

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
June 24, 2022 07:16PM
Re: Debian on Synology RS816 (Armada 385)
June 24, 2022 07:35PM
I've just watched Richard Bignell's video in the 414 unbricking tutorial.

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

Quote

Linux from Raspberry Pi: https://youtu.be/2WtcMX_d6Vk

Looks like:

2 4 6
1 3 5

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



Edited 1 time(s). Last edit at 06/24/2022 07:36PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
June 25, 2022 09:33PM
So I've confirmed the pins layout.

2 4 6
1 3 5

Does not matter which orientation, Pin 1 is identified by a marking (either white mark or arrow). From there, the pins layout above is correct.

What Jan said above is good info:

Quote

I do use only 2, 4 and 6. A common plug that is used for connecting servos in RC model flight fits perfectly.

In addition to that, a CD-ROM-SounDBlaster-Audio-Cable with the small white header also fits perfectly to pins 2 4 6. This might be the best, because the cable is shielded.

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



Edited 1 time(s). Last edit at 06/25/2022 10:23PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
July 18, 2022 08:23PM
Does anybody know how to request for GPL source (u-boot) from Synology? what email address I can send the request to (without having to create an account at Synology)?

I'm playing with the DS116 box and something is driving me crazy :)

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



Edited 1 time(s). Last edit at 07/18/2022 08:24PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
July 20, 2022 05:22PM
III. Installation with USB rootfs -- Kernel on raw sectors

Place holder for instruction to boot kernel files on USB raw sectors.

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



Edited 1 time(s). Last edit at 07/20/2022 07:27PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
August 04, 2022 10:02PM
I will release new uboot for DS116/RS816.

So all old installation methods from raw sectors will be obsolete.

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



Edited 1 time(s). Last edit at 08/04/2022 10:05PM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
February 07, 2023 09:22PM
Re: Debian on Synology RS816 (Armada 385)
February 22, 2023 03:04AM
Hello everyone,
I have a DS218j with 2 HDD, and the following boot commands recognize only one HDD slot :
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.: ST8000DM004-XXXX Rev: 0001
            Type: Hard Disk
            Capacity: 7630885.3 MB = 7452.0 GB (15628053168 x 512)
Found 1 device(s).

However, one can see the following kernel message during the boot of the stock OS :
[    0.000000] Kernel command line: console=ttyS0,115200 ip=off initrd=0x3000000 root=/dev/md0 rw syno_hw_version=DS218j syno_hdd_powerup_seq=2 ihd_num=2 netif_num=1 syno_hdd_enable=15,16 flash_size=8
[    0.000000] Synology Hardware Version: DS218j-j
[    0.000000] Power on seq num: 2
[    0.000000] Internal HD num: 2
[    0.000000] Internal netif num: 1
[    0.000000] SYNO GPIO hdd enable pin: 15 16
...

The last message hint us that pin 15 and 16 are linked to HDD. Thus I change "mw.l f1018100 00008000" to "mw.l f1018100 00018000" as follow :
setenv bootcmd 'mw.l f1018100 00018000; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'

The last command allow to recognize both HDD into u-boot :
Marvell>> mw.l f1018100 00018000
Marvell>> scsi init
AHCI init for unit0
Target spinup took 0 ms.
Target spinup took 0 ms.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST8000DM004-XXXX Rev: 0001
            Type: Hard Disk
            Capacity: 7630885.3 MB = 7452.0 GB (15628053168 x 512)
  Device 1: (1:0) Vendor: ATA Prod.: ST8000DM004-XXXX Rev: 0001
            Type: Hard Disk
            Capacity: 7630885.3 MB = 7452.0 GB (15628053168 x 512)
Found 2 device(s).

The loading of kernel and init ramdisk works well with u-boot. However after the boot command, only one HDD is available with the last provided kernel of "Linux Kernel 6.1.8 MVEBU package and Debian armhf rootfs" topic https://forum.doozan.com/read.php?2,32146 :
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1.0 SMP PREEMPT Tue Jan 24 17:11:45 PST 2023
...
[    4.105037] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    4.120056] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    4.125681] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.134301] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    4.150712] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    4.151278] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    4.167428] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    4.180998] mdio_bus f1072004.mdio-mii: MDIO device at address 0 is missing.
[    4.191626] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    4.192479] scsi host0: ahci-mvebu
[    4.205017] scsi host1: ahci-mvebu
[    3.109113][   T10] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 54
[    3.117793][   T10] ata2: DUMMY

One can see the "DUMMY" term for ata2 :S.
Morever with the kernel stock OS one can see :
[    2.142479] Loading iSCSI transport class v2.0-870.
[    2.150181] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.159012] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.169839] scsi0 : ahci_mv_platform
[    2.174038] scsi1 : ahci_mv_platform
[    2.178100] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    2.186077] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58

Maybe this is something wrong into the device tree blob ?



Edited 2 time(s). Last edit at 02/22/2023 03:21AM by emvivre.
Re: Debian on Synology RS816 (Armada 385)
February 22, 2023 03:47PM
emvivre,

> The last message hint us that pin 15 and 16 are
> linked to HDD. Thus I change "mw.l f1018100
> 00008000" to "mw.l f1018100 00018000" as follow :
>
> setenv bootcmd 'mw.l f1018100 00018000; scsi init;
> run bootcmd_exec; echo Booting Stock OS ...; run
> bootspi'
>
> The last command allow to recognize both HDD into
> u-boot :
>
> Marvell>> mw.l f1018100 00018000
> Marvell>> scsi init
> AHCI init for unit0
> Target spinup took 0 ms.
> Target spinup took 0 ms.
> 
> Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not
> found
> scanning bus for devices...
>   Device 0: (0:0) Vendor: ATA Prod.:
> ST8000DM004-XXXX Rev: 0001
>             Type: Hard Disk
>             Capacity: 7630885.3 MB = 7452.0 GB
> (15628053168 x 512)
>   Device 1: (1:0) Vendor: ATA Prod.:
> ST8000DM004-XXXX Rev: 0001
>             Type: Hard Disk
>             Capacity: 7630885.3 MB = 7452.0 GB
> (15628053168 x 512)
> Found 2 device(s).
>

Nice!

>
> The loading of kernel and init ramdisk works well
> with u-boot. However after the boot command, only
> one HDD is available with the last provided kernel
> of "Linux Kernel 6.1.8 MVEBU package and Debian
> armhf rootfs" topic
> https://forum.doozan.com/read.php?2,32146
> :

> [ 0.000000] Booting Linux on physical CPU 0x0
> [ 0.000000] Linux version 6.1.8-mvebu-tld-1
> (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1
> 20210110, GNU ld (GNU Binutils for Debian) 2.35.2)
> #1.0 SMP PREEMPT Tue Jan 24 17:11:45 PST 2023
> ...

> Maybe this is something wrong into the device tree
> blob ?

Nothing wrong there. The DS218j is not supported so you are booting with either ds116 or rs816 DTB, right?

By the way, please post the entire dmesg log. Don't excerpt only parts that you have question, we need to see all boot activities.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
February 22, 2023 04:58PM
For the previous post I have booted with the rs816 DTB.

I though the .dtb could be problematic, so I have dump the .dtb of the DS218j as follow :
$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000f0000 00010000 "RedBoot"
mtd1: 002d0000 00010000 "zImage"
mtd2: 00410000 00010000 "rd.gz"
mtd3: 00010000 00010000 "vendor"
mtd4: 00010000 00010000 "RedBoot Config"
mtd5: 00010000 00010000 "FIS directory"

$ dd if=/dev/mtd0 of=/tmp/mtd0.dat bs=1 count=983040

$ binwalk mtd0.dat
DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
130933        0x1FF75         Certificate in DER format (x509 v3), header length: 4, sequence length: 832
453252        0x6EA84         device tree image (dtb)
454560        0x6EFA0         device tree image (dtb)
538172        0x8363C         CRC32 polynomial table, little endian
917504        0xE0000         device tree image (dtb)

$ dd if=mtd0.dat of=out.dtb bs=1 skip=917504
$ file out.dtb
out.dtb: Device Tree Blob version 17, size=15008, boot CPU=0, string block size=1296, DT structure block size=13656

Unfortunately it does not change anything :S
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.1.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1.0 SMP PREEMPT Tue Jan 24 17:11:45 PST 2023
[    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 RS816
[    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-0x000000001fffffff]
[    0.000000][    T0]   HighMem  empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] percpu: Embedded 17 pages/cpu s39700 r8192 d21740 u69632
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    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: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 489352K/524288K available (10240K kernel code, 1529K rwdata, 3444K rodata, 1024K init, 475K bss, 34936K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000001][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008683][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020391][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027214][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034932][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046839][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.056789][    T0] Console: colour dummy device 80x30
[    0.061939][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.073212][    T0] pid_max: default: 32768 minimum: 301
[    0.078775][    T0] LSM: Security Framework initializing
[    0.084208][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.092196][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.101478][    T0] CPU: Testing write buffer coherency: ok
[    0.107064][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113007][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.120048][    T1] cblist_init_generic: Setting adjustable number of callback queues.
[    0.127963][    T1] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.134810][    T1] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.141675][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.148655][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.154586][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.161584][    T1] rcu: Hierarchical SRCU implementation.
[    0.167067][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.173653][    T1] smp: Bringing up secondary CPUs ...
[    0.179425][    T1] Booting CPU 1
[    0.182894][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.182905][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.195056][    T1] smp: Brought up 1 node, 2 CPUs
[    0.199859][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.206884][    T1] CPU: All CPU(s) started in SVC mode.
[    0.212605][    T1] devtmpfs: initialized
[    0.220553][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.229199][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.239721][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.247375][    T1] prandom: seed boundary self test passed
[    0.254519][    T1] prandom: 100 self tests passed
[    0.259302][    T1] pinctrl core: initialized pinctrl subsystem
[    0.266190][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.273607][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.281885][    T1] audit: initializing netlink subsys (disabled)
[    0.288151][   T24] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.288555][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.296722][    T1] cpuidle: using governor ladder
[    0.308212][    T1] cpuidle: using governor menu
[    0.312977][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.321658][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.328326][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.337109][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.547151][    T1] raid6: int32x8  gen()   245 MB/s
[    0.717104][    T1] raid6: int32x4  gen()   262 MB/s
[    0.887082][    T1] raid6: int32x2  gen()   458 MB/s
[    1.057062][    T1] raid6: int32x1  gen()   529 MB/s
[    1.062010][    T1] raid6: using algorithm int32x1 gen() 529 MB/s
[    1.237092][    T1] raid6: .... xor() 211 MB/s, rmw enabled
[    1.242650][    T1] raid6: using intx1 recovery algorithm
[    1.248919][    T1] SCSI subsystem initialized
[    1.253655][    T1] usbcore: registered new interface driver usbfs
[    1.259900][    T1] usbcore: registered new interface driver hub
[    1.265922][    T1] usbcore: registered new device driver usb
[    1.271909][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.277558][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.287416][    T1] PTP clock support registered
[    1.293068][    T1] vgaarb: loaded
[    1.296890][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.304201][    T1] VFS: Disk quotas dquot_6.6.0
[    1.308929][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.324275][    T1] NET: Registered PF_INET protocol family
[    1.330119][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.339249][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.348504][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.356952][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.365408][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.373294][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.380577][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.388534][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.395745][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.403557][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.410444][    T1] RPC: Registered named UNIX socket transport module.
[    1.417061][    T1] RPC: Registered udp transport module.
[    1.422440][    T1] RPC: Registered tcp transport module.
[    1.427826][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.434937][    T1] PCI: CLS 0 bytes, default 64
[    1.439681][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.439744][   T10] Trying to unpack rootfs image as initramfs...
[    1.453024][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.463243][    T1] Initialise system trusted keyrings
[    1.468575][    T1] Key type blacklist registered
[    1.473509][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.480837][    T1] zbud: loaded
[    1.485574][    T1] NFS: Registering the id_resolver key type
[    1.491491][    T1] Key type id_resolver registered
[    1.496359][    T1] Key type id_legacy registered
[    1.501193][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.508642][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.573333][    T1] xor: measuring software checksum speed
[    1.583365][    T1]    arm4regs        :  2172 MB/sec
[    1.594363][    T1]    8regs           :  1668 MB/sec
[    1.605140][    T1]    32regs          :  1733 MB/sec
[    1.610201][    T1] xor: using function: arm4regs (2172 MB/sec)
[    1.616114][    T1] async_tx: api initialized (async)
[    1.621173][    T1] Key type asymmetric registered
[    1.625953][    T1] Asymmetric key parser 'x509' registered
[    1.873012][   T10] Freeing initrd memory: 10260K
[    1.894783][    T1] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    1.901449][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.909658][    T1] io scheduler bfq registered
[    1.917838][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.926976][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    1.936395][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    1.946083][    T1] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    1.952658][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    1.961100][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    1.969523][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    1.977952][    T1] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    1.986373][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.995326][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    2.004273][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.013219][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    2.022163][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.031111][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    2.040057][    T1] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.049020][    T1] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    2.058597][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    2.065195][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.071376][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    2.082218][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    2.093056][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    2.103893][    T1] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    2.114735][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    2.122328][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    2.129420][    T1] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    2.136460][    T1] pci 0000:00:03.0: [11ab:6820] type 01 class 0x060400
[    2.143480][    T1] pci 0000:00:04.0: [11ab:6820] type 01 class 0x060400
[    2.151406][    T1] PCI: bus0: Fast back to back transfers disabled
[    2.157695][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.166376][    T1] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.175073][    T1] pci 0000:00:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.184046][    T1] PCI: bus1: Fast back to back transfers enabled
[    2.190229][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.197752][    T1] PCI: bus2: Fast back to back transfers enabled
[    2.203918][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.211449][    T1] PCI: bus3: Fast back to back transfers enabled
[    2.217627][    T1] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    2.224929][    T1] pci 0000:00:02.0: PCI bridge to [bus 01]
[    2.230588][    T1] pci 0000:00:03.0: PCI bridge to [bus 02]
[    2.236234][    T1] pci 0000:00:04.0: PCI bridge to [bus 03]
[    2.242933][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.307709][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.318062][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.377657][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.456338][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.466148][    T1] printk: console [ttyS0] disabled
[    2.491252][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 42, base_baud = 12500000) is a 16550A
[    2.500943][    T1] printk: console [ttyS0] enabled
[    2.500943][    T1] printk: console [ttyS0] enabled
[    2.510768][    T1] printk: bootconsole [earlycon0] disabled
[    2.510768][    T1] printk: bootconsole [earlycon0] disabled
[    2.543765][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 43, base_baud = 12500000) is a 16550A
[    2.555504][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    2.564051][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    2.575530][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    2.581331][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    2.588020][    T1] Creating 2 MTD partitions on "spi0.0":
[    2.593554][    T1] 0x000000000000-0x000000400000 : "boot"
[    2.600579][    T1] 0x000000400000-0x000000800000 : "spi-rootfs"
[    2.608428][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.617040][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.640587][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.648232][    T1] mdio_bus f1072004.mdio-mii: MDIO device at address 0 is missing.
[    2.656786][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    2.670207][    T1] mvneta f1070000.ethernet eth0: Using random mac address 92:45:45:56:0d:fb
[    2.679230][    T1] mvneta_bm f10c8000.bm: long pool cannot be shared by the ports
[    2.686852][    T1] mvneta f1034000.ethernet (unnamed net_device) (uninitialized): fail to obtain long pool for port
[    2.697468][    T1] mvneta f1034000.ethernet: use SW buffer management
[    2.706215][    T1] mvneta f1034000.ethernet eth1: Using random mac address 7e:cd:07:1b:f3:cc
[    2.716855][    T1] usbcore: registered new interface driver usblp
[    2.723222][    T1] usbcore: registered new interface driver usb-storage
[    2.730557][    T1] mousedev: PS/2 mouse device common for all mice
[    2.738635][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    2.744950][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2023-02-22T22:44:28 UTC (1677105868)
[    2.755585][    T1] i2c_dev: i2c /dev entries driver
[    2.761637][    T1] at24 0-0057: supply vcc not found, using dummy regulator
[    2.801532][    T1] gpio-fan gpio-fan: GPIO fan initialized
[    2.809917][    T1] orion_wdt: Initial timeout 171 sec
[    2.815632][    T1] device-mapper: uevent: version 1.0.3
[    2.821235][    T1] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    2.830704][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.838059][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.845413][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.852818][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.859655][    T1] device-mapper: raid: Loading target version 1.15.1
[    2.868232][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.876557][    T1] hid: raw HID events driver (C) Jiri Kosina
[    2.882966][    T1] usbcore: registered new interface driver usbhid
[    2.889291][    T1] usbhid: USB HID core driver
[    2.894309][    T1] drop_monitor: Initializing network drop monitor service
[    2.901880][    T1] NET: Registered PF_INET6 protocol family
[    2.908724][    T1] Segment Routing with IPv6
[    2.913112][    T1] RPL Segment Routing with IPv6
[    2.917894][    T1] In-situ OAM (IOAM) with IPv6
[    2.922609][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.930839][    T1] NET: Registered PF_PACKET protocol family
[    2.936763][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.941734][    T1] Key type dns_resolver registered
[    2.946854][    T1] ThumbEE CPU extension supported.
[    2.951936][    T1] Registering SWP/SWPB emulation handler
[    2.958030][    T1] registered taskstats version 1
[    2.962880][    T1] Loading compiled-in X.509 certificates
[    2.968866][    T1] zswap: loaded using pool lzo/zbud
[    2.974340][    T1] Key type .fscrypt registered
[    2.979012][    T1] Key type fscrypt-provisioning registered
[    2.984761][    T1] Key type big_key registered
[    3.004492][    T1] Key type encrypted registered
[    3.017959][   T10] debugfs: Directory 'v12.0-sata0' with parent 'regulator' already present!
[    3.026831][   T10] usb_phy_generic usb3_0_phy: dummy supplies not allowed for exclusive requests
[    3.036030][   T10] usb_phy_generic usb3_1_phy: dummy supplies not allowed for exclusive requests
[    3.045210][   T10] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    3.053661][   T10] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    3.062275][   T10] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    3.069165][   T10] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    3.079069][   T10] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    3.089900][   T10] scsi host0: ahci-mvebu
[    3.094693][   T10] scsi host1: ahci-mvebu
[    3.099063][   T10] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 54
[    3.107748][   T10] ata2: DUMMY
[    3.111624][   T10] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.117730][   T10] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    3.126069][   T10] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.136098][   T10] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    3.142755][   T10] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.148816][   T10] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.157070][   T10] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    3.164293][   T10] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.173343][   T10] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.181327][   T10] usb usb1: Product: xHCI Host Controller
[    3.186940][   T10] usb usb1: Manufacturer: Linux 6.1.8-mvebu-tld-1 xhci-hcd
[    3.194028][   T10] usb usb1: SerialNumber: f10f0000.usb3
[    3.200144][   T10] hub 1-0:1.0: USB hub found
[    3.204647][   T10] hub 1-0:1.0: 1 port detected
[    3.209801][   T10] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.218748][   T10] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    3.227779][   T10] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.235744][   T10] usb usb2: Product: xHCI Host Controller
[    3.241437][   T10] usb usb2: Manufacturer: Linux 6.1.8-mvebu-tld-1 xhci-hcd
[    3.248541][   T10] usb usb2: SerialNumber: f10f0000.usb3
[    3.254542][   T10] hub 2-0:1.0: USB hub found
[    3.259045][   T10] hub 2-0:1.0: 1 port detected
[    3.264465][   T10] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.270637][   T10] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    3.279030][   T10] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.289062][   T10] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    3.295710][   T10] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.301854][   T10] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.310114][   T10] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    3.317338][   T10] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.326352][   T10] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.334394][   T10] usb usb3: Product: xHCI Host Controller
[    3.340032][   T10] usb usb3: Manufacturer: Linux 6.1.8-mvebu-tld-1 xhci-hcd
[    3.347145][   T10] usb usb3: SerialNumber: f10f8000.usb3
[    3.353176][   T10] hub 3-0:1.0: USB hub found
[    3.357769][   T10] hub 3-0:1.0: 1 port detected
[    3.362888][   T10] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.371919][   T10] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    3.380947][   T10] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.389183][   T10] usb usb4: Product: xHCI Host Controller
[    3.394791][   T10] usb usb4: Manufacturer: Linux 6.1.8-mvebu-tld-1 xhci-hcd
[    3.401913][   T10] usb usb4: SerialNumber: f10f8000.usb3
[    3.407908][   T10] hub 4-0:1.0: USB hub found
[    3.412409][   T10] hub 4-0:1.0: 1 port detected
[    3.616909][  T962] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.653271][  T962] ata1.00: ATA-10: ST8000DM004-2CX188, 0001, max UDMA/133
[    3.660294][  T962] ata1.00: 15628053168 sectors, multi 16: LBA48 NCQ (depth 32)
[    3.719640][  T962] ata1.00: configured for UDMA/133
[    3.735003][   T50] scsi 0:0:0:0: Direct-Access     ATA      ST8000DM004-2CX1 0001 PQ: 0 ANSI: 5
[    3.744917][   T10] sd 0:0:0:0: [sda] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[    3.753620][   T10] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.759640][   T10] sd 0:0:0:0: [sda] Write Protect is off
[    3.765224][   T10] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.775128][   T10] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    3.826028][   T10]  sda: sda1
[    3.829563][   T10] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.837387][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.867505][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.873909][    T1] Run /init as init process
Attachments:
open | download - synology_armada38x_ds218j.dtb (64 KB)
Re: Debian on Synology RS816 (Armada 385)
February 22, 2023 07:15PM
Here is the thing to do. You found the GPIOs to bring up both SATA ports in u-boot. So that can be retrofitted to the RS816 or DS116.

Quote

The last message hint us that pin 15 and 16 are linked to HDD. Thus I change "mw.l f1018100 00008000" to "mw.l f1018100 00018000" as follow :
setenv bootcmd 'mw.l f1018100 00018000; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'

The RS816 DTS has SATA 0 and SATA1, but SATA1 does not match the ds218j pin 16. So I (or you) must create a new DTS, and compile it.

Should I go ahead and create the ds218j DTS for you, or you want to do it yourself?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
February 23, 2023 02:25PM
emvivre,

Also see this thread:

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
February 23, 2023 03:27PM
I look inside the both DTS but I do not find something interesting, it contain declaration of devices.

Thank to the link of the post. Unfortunately it does not show both HDD : there is one USB and HDD that are recognized.

I try with 5.19.2-mvebu-tld-1 kernel with armada-385-synology-rs816.dtb and I found the same problem :
[    3.081054][   T34] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 54
[    3.089739][   T34] ata2: DUMMY



Edited 3 time(s). Last edit at 02/23/2023 04:03PM by emvivre.
Re: Debian on Synology RS816 (Armada 385)
February 23, 2023 04:25PM
That's why I asked above.

Quote

The RS816 DTS has SATA 0 and SATA1, but SATA1 does not match the ds218j pin 16. So I (or you) must create a new DTS, and compile it.

Should I go ahead and create the ds218j DTS for you

And upload a DTB for you to try? is that a plan, or you want to do it on your own?

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

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: