Re: Debian on Synology RS816 (Armada 385) April 28, 2019 03:37AM |
Registered: 4 years ago Posts: 257 |
https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/22259branch/armada38x-source/
https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/22259branch/armada38x-source/u-boot-armada-2011.12.txz
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 12:48AM |
Admin Registered: 12 years ago Posts: 17,891 |
> https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/22259branch/armada38x-source/ >
> https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/22259branch/armada38x-source/u-boot-armada-2011.12.txz >
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 03:12AM |
Admin Registered: 12 years ago Posts: 17,891 |
dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
dd if=/dev/mtd0 of=synology-rs816-stock.dtb bs=1 count=65536 skip=917504
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 07:52AM |
Registered: 4 years ago Posts: 257 |
dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
65536+0 records in 65536+0 records out 65536 bytes (66 kB, 64 KiB) copied, 1.39867 s, 46.9 kB/s
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 08:14AM |
Registered: 4 years ago Posts: 257 |
> We might find the kernel source and how it activate the other 2 SATAs in the above.I have downloaded the kernel source and will take a look tomorrow.
> In stock u-boot, we might find other aspects like LEDs GPIOs. But as I recall from zifxify'post, > stock u-boot does not activate all SATA ports.I think you're correct I spent quite a bit of time looking at u-boot and there are a number of Synology LED customization's which might prove helpful later on but I couldn't find anything useful re: bringing up the extra sata ports.
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 05:26PM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 10:43PM |
Registered: 4 years ago Posts: 257 |
Linux debian 4.20.6-mvebu-tld-1 #2 SMP PREEMPT Tue Feb 5 16:14:01 PST 2019 armv7l GNU/Linux
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 1.8T 0 disk |-sda1 8:1 1 2.4G 0 part |-sda2 8:2 1 2G 0 part `-sda3 8:3 1 1.8T 0 part sdb 8:16 1 1.8T 0 disk |-sdb1 8:17 1 2.4G 0 part |-sdb2 8:18 1 2G 0 part `-sdb3 8:19 1 1.8T 0 part sdc 8:32 1 3.8G 0 disk `-sdc1 8:33 1 3.8G 0 part / mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 4M 0 disk
dtc -O dtb -o test.dtb armada-385-synology-ds816.dts
Re: Debian on Synology RS816 (Armada 385) April 29, 2019 11:38PM |
Admin Registered: 12 years ago Posts: 17,891 |
> Linux debian 4.20.6-mvebu-tld-1 #2 SMP PREEMPT Tue > Feb 5 16:14:01 PST 2019 armv7l GNU/Linux >
Re: Debian on Synology RS816 (Armada 385) April 30, 2019 11:39PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) April 30, 2019 11:56PM |
Admin Registered: 12 years ago Posts: 17,891 |
sata@a8000 { compatible = "marvell,ahci-sata"; reg = <0xa8000 0x2000>; interrupts = <0x0 0x1a 0x4>; clocks = <0x5 0xf>; status = "okay"; }; sata@e0000 { compatible = "marvell,ahci-sata"; reg = <0xe0000 0x2000>; interrupts = <0x0 0x1c 0x4>; clocks = <0x5 0x1e>; status = "disabled"; };
pcie@2,0 { device_type = "pci"; assigned-addresses = <0x82000800 0x0 0x40000 0x0 0x2000>; reg = <0x1000 0x0 0x0 0x0 0x0>; #address-cells = <0x3>; #size-cells = <0x2>; #interrupt-cells = <0x1>; ranges = <0x82000000 0x0 0x0 0x82000000 0x2 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x2 0x0 0x1 0x0>; interrupt-map-mask = <0x0 0x0 0x0 0x0>; interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x21 0x4>; marvell,pcie-port = <0x1>; marvell,pcie-lane = <0x0>; clocks = <0x5 0x5>; status = "okay"; };
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 01:51AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 03:32AM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 04:40AM |
Registered: 4 years ago Posts: 257 |
Quote
The DTB basically inlcudes in all the "parent" DTSI nodes
Quote
> but when I try the other way round I get errors am
> I doing something wrong ?
I am not sure why.
// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * Device Tree file for Synology RS816 NAS * * Copyright (C) 2019 <mibodhi@gmail.com> * * Based on Device Tree file for Synology DS116 NAS * Copyright (C) 2017 Willy Tarreau <w@1wt.eu> */ /dts-v1/; #include "armada-385.dtsi" #include <dt-bindings/gpio/gpio.h> / {
dtc -O dts -o armada-385-rs816.dts -I dtb armada-385-rs816.dtb
/dts-v1/; / {
\include\ "foo"
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 06:12AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 07:41PM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 08:01PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 01, 2019 08:43PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 12:38AM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 12:56AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 03:17AM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 03:25AM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 04:14AM |
Registered: 4 years ago Posts: 257 |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 1.8T 0 disk |-sda1 8:1 1 2.4G 0 part `-sda2 8:2 1 2G 0 part sdb 8:16 1 1.8T 0 disk |-sdb1 8:17 1 2.4G 0 part `-sdb2 8:18 1 2G 0 part sdc 8:32 1 3.8G 0 disk `-sdc1 8:33 1 3.8G 0 part / mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 4M 0 disk
. .. platform-f10a8000.sata-ata-1 platform-f10a8000.sata-ata-1-part1 platform-f10a8000.sata-ata-1-part2 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0-part1 platform-soc:pcie-pci-0000:01:00.0-ata-2 platform-soc:pcie-pci-0000:01:00.0-ata-2-part1 platform-soc:pcie-pci-0000:01:00.0-ata-2-part2
dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 04:42AM |
Registered: 4 years ago Posts: 257 |
platform-soc:pcie-pci-0000:02:00.0-ata-2New armada-385-synology-rs816.dtb
platform-soc:pcie-pci-0000:01:00.0-ata-2
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 05:15AM |
Admin Registered: 12 years ago Posts: 17,891 |
Re: Debian on Synology RS816 (Armada 385) May 02, 2019 05:28AM |
Admin Registered: 12 years ago Posts: 17,891 |
> platform-soc:pcie-pci-0000:02:00.0-ata-2 >> New armada-385-synology-rs816.dtb
> platform-soc:pcie-pci-0000:01:00.0-ata-2 >
Re: Debian on Synology RS816 (Armada 385) May 06, 2019 12:25AM |
Registered: 4 years ago Posts: 257 |
make mrproper make headers_checkso I just gathered up the headers from vanilla linux-headers-3.10.105 but afterwards make borked very early on with Synology custom mount modules missing dependencies, feels like maybe their GPL source tree is incomplete.
Re: Debian on Synology RS816 (Armada 385) May 06, 2019 03:12AM |
Admin Registered: 12 years ago Posts: 17,891 |
Quote
Having failed there I moved onto trying to compile the stock kernel actually on the nas itself. I set tmp and swap to one of the HDD's and also added a build directory. There were initially issues with some headers missing but I was unable to build the headers with.
Re: Debian on Synology RS816 (Armada 385) May 06, 2019 04:57AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 06, 2019 05:26AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 06, 2019 11:04PM |
Admin Registered: 12 years ago Posts: 17,891 |