Welcome! Log In Create A New Profile

Advanced

Debian on Synology RS816 (Armada 385)

Posted by zifxify 
Re: Debian on Synology RS816 (Armada 385)
February 24, 2023 02:25PM
Good news, I found the problem, I fix it, and it works :)

[    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.
...
[    3.077808][   T10] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 54
[    3.086477][   T10] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 54


The problem was indeed in the .dts but not link to the GPIO, there were several mistakes on the definition of the regulator of the 2nd sata port :
  • The regulartor v5-sata1 had not phandle, so there were no way to reference it
  • There was no definition of the 2nd sata port, so I define it and I use the v5-sata1 regulartor
  • At last, there was a typo which looks like came from a copy-past : the regulator name of the device v12-sata1 was the same of v12-sata0

Please find enclose the patch for armada-385-synology-rs816.dts, the original dts used and the armada-385-synology-rs816.patched.dts
Attachments:
open | download - armada-385-synology-rs816.original.dts (25.8 KB)
open | download - armada-385-synology-rs816.patch (360 bytes)
open | download - armada-385-synology-rs816.patched.dts (26.1 KB)
Re: Debian on Synology RS816 (Armada 385)
February 24, 2023 03:03PM
Cool!

But I guess you decompiled the DTB and played with it? The phandle is not mising it was compiled to 26.

So for the 2nd SATA port it should be

sata-port@1 {
   reg = < 0x01 >;
   target-supply = <&reg_5v_sata1>;
};

And yes, the regulator name for SATA1 was copy/paste error!

Good works :)

I recompiled and attached the new DTS and DTB to this post. Please try it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-synology-rs816.dts (7.8 KB)
open | download - armada-385-synology-rs816.dtb (19.5 KB)
Re: Debian on Synology RS816 (Armada 385)
February 24, 2023 03:06PM
By the way the DTS source is in the patch linux-6.1.8-mvebu-tld-1.patch in the released tarball.

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
February 24, 2023 04:00PM
I test the file "armada-385-synology-rs816.dtb (19.5 KB)" attached to your previous previous post, and it works like a charm : both HDD ports are recognized :

[    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
...
[    3.616911][  T965] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.623855][  T970] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
...
[    3.875316][   T10]  sda: sda1
[    3.878810][   T10] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.880797][    T8]  sdb: sdb1 sdb2 sdb3
[    3.889866][    T8] sd 1:0:0:0: [sdb] Attached SCSI removable disk

Nice



Edited 1 time(s). Last edit at 02/24/2023 04:01PM by emvivre.
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: