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 25, 2019 10:38PM
Duh :) I did not remove all traces of the SoC SATA. So the regulator is stil there as 10... pointed out.

@zifxify,

> still one drive accessible

Do you mean onlly the HDD in slot 0 is enable?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 26, 2019 05:38AM
Quote

Do you mean only the HDD in slot 0 is enable?

using your lastest dtb without soc sata, and without setting GPIO pin 37 as high, there's only drive (drive 2) available. Enabling soc sata also enables drive 1 (slot 0)
Re: Debian on Synology RS816 (Armada 385)
January 26, 2019 09:05AM
zifxify Wrote:
-------------------------------------------------------
>
Quote

> Do you mean only the HDD in slot 0 is enable?
>
>
> using your lastest dtb without soc sata, and
> without setting GPIO pin 37 as high, there's only
> drive (drive 2) available. Enabling soc sata also
> enables drive 1 (slot 0)

In serial console, try to initialize the drives. Can uboot see all drives and can you list each partition’s content?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 26, 2019 12:54PM
Quote

In serial console, try to initialize the drives. Can uboot see all drives and can you list each partition’s content?

Only two drives or I am doing something wrong

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

SATA link 0 timeout.
Target spinup took 0 ms.
SATA link 2 timeout.
SATA link 3 timeout.
AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: GB0250C8045 Rev: HPGA
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
  Device 1: (3:0) Vendor: ATA Prod.: GB0250C8045 Rev: HPGA
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 2 device(s).

Marvell>> scsi part 0

Partition Map for SCSI device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            488394752       cfe594b0-01     fd Boot
Marvell>> scsi part 1

Partition Map for SCSI device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            488394752       b0c54c6a-01     fd Boot



Edited 1 time(s). Last edit at 01/26/2019 01:00PM by zifxify.
Re: Debian on Synology RS816 (Armada 385)
January 27, 2019 01:31AM
Those must be 2 SoC SATA ports.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
January 27, 2019 01:56AM
It should be in GPL source where we can find out how stock OS bring up the other 2 HDD slots.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 22, 2019 06:59PM
Hi
I have two RS816 rack servers which I would love to convert to a native Debian install. Reading this thread it looks like you guys got very close and I was just wondering if you ran out of time / enthusiasm or if the answer to the how the other 2 HDD slots were brought up just wasn't apparent in the GPL source ?

I'm interested enough to take a look at the GPL but thought I'd check if I'm wasting my time first.
Re: Debian on Synology RS816 (Armada 385)
April 22, 2019 10:57PM
Richard Jackson,

What I would be interested in seeing is you could run my released rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2:

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

Note that the kernel inside this rootf is linux-4.12.4-mvebu-tld-1.

With the u-boot envs set up:

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

And using the DTB I've uploaded in this thread before..

If you'd like to do that, then give it a try. I'll help to get that working.

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



Edited 1 time(s). Last edit at 04/22/2019 11:18PM by bodhi.
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 24, 2019 02:55AM
I will give that a try.

First I need to replicate the data from one of the RS816 to a backup server then I can dedicate it to trying to get this to work.

I'm based in Australia and its a public holiday here tomorrow so it might be early next week before I can provide feedback on testing.

In the meantime thanks for offering to help

Richard
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 25, 2019 03:36PM
Had a quick go and ended up with a kernel division by zero so I have got something wrong, I'm away till Sunday when I will have more time but if anything shouts out let me know.

All commands below as root

For the rootfs
parted /dev/sda
mkpart primary 0% 100%
q
mkfs.ext3 -L rootfs /dev/sda1
mount /dev/sda1 /mnt
tar -C /mnt -jxvf Downloads/Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2
cd /mnt/boot
cp -a zImage-4.12.4-mvebu-tld-1 zImage

For the uImage I wasn't sure what address I was meant to use so tried 0x00008000 and 0x1000000 with the same end result.

cd /mnt/boot
cp -a zImage-4.12.4-mvebu-tld-1  zImage.fdt
cat dts/armada-385-synology-rs816.dtb  >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x1000000 -e 0x1000000 -n Linux-4.12.4-mvebu-tld-1 -d zImage.fdt  uImage
sync

And the console output
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      |
 |   2    |  5   |  PCIe1      |
 |   3    |  0   |  SGMII2     |
 |   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-g74a026b-dirty (Dec 30 2015 - 14:40:58) Marvell version: 2015_T1.0p16

Board: SYNO-RS816
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 N25Q64 with page size 64 KiB, total 8 MiB
PCI-e 1 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
USB3.0 0: Host Mode
USB3.0 1: Host Mode

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

Board configuration detected:

Synology Model: RS816

Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
| egiga2 |   SGMII   |     0x00     |
egiga0 [PRIME], egiga2
Press Ctrl+C to abort autoboot in 3 second
Marvell>> setenv ipaddr 192.168.1.250
Marvell>> setenv serverip 192.168.1.2
Marvell>> setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x3000000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_image 'echo loading zImage from tftpserver ...; tftpboot $load_image_addr zImage'
Marvell>> setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd'
Marvell>> setenv load_dtb 'echo loading DTB from flash ...; sf probe 0 50000000; sf read $load_dtb_addr $spi_pt_addr_dt $spi_pt_size_dt'
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 usb_setup;  run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; run load_dtb; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
Marvell>> setenv bootcmd 'mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootcmd_exec; run bootspi'
Marvell>> boot
(Re)start USB controller...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
USB1:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
Booting Debian . . .
(Re)start USB...
USB0:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
         5.9 MiB/s
done
Bytes transferred = 4021296 (3d5c30 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'uInitrd'.
Load address: 0x3000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################
         6.1 MiB/s
done
Bytes transferred = 7070236 (6be21c hex)
loading DTB from flash ...
SF: Detected N25Q64 with page size 64 KiB, total 8 MiB
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fffa9b ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Synology RS816
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c9000 s40460 r8192 d20980 u69632
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019072K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29504K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x46070001
[    0.000000] Selected CPU frequency (16) unsupported
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.12.4-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c0116150>] (unwind_backtrace) from [<c0110bcc>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bcc>] (show_stack) from [<c04df674>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04df674>] (dump_stack) from [<c04de174>] (Ldiv0+0x8/0x10)
[    0.000000] [<c04de174>] (Ldiv0) from [<c0548ac4>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000] [<c0548ac4>] (clk_cpu_recalc_rate) from [<c0545720>] (clk_register+0x38c/0x590)
[    0.000000] [<c0545720>] (clk_register) from [<c0c32b54>] (of_cpu_clk_setup+0x1bc/0x27c)
[    0.000000] [<c0c32b54>] (of_cpu_clk_setup) from [<c0c323c4>] (of_clk_init+0x174/0x214)
[    0.000000] [<c0c323c4>] (of_clk_init) from [<c0c03930>] (time_init+0x20/0x2c)
[    0.000000] [<c0c03930>] (time_init) from [<c0c00af8>] (start_kernel+0x210/0x394)
[    0.000000] [<c0c00af8>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.12.4-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c0116150>] (unwind_backtrace) from [<c0110bcc>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bcc>] (show_stack) from [<c04df674>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04df674>] (dump_stack) from [<c04de174>] (Ldiv0+0x8/0x10)
[    0.000000] [<c04de174>] (Ldiv0) from [<c0548ac4>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000] [<c0548ac4>] (clk_cpu_recalc_rate) from [<c0545720>] (clk_register+0x38c/0x590)
[    0.000000] [<c0545720>] (clk_register) from [<c0c32b54>] (of_cpu_clk_setup+0x1bc/0x27c)
[    0.000000] [<c0c32b54>] (of_cpu_clk_setup) from [<c0c323c4>] (of_clk_init+0x174/0x214)
[    0.000000] [<c0c323c4>] (of_clk_init) from [<c0c03930>] (time_init+0x20/0x2c)
[    0.000000] [<c0c03930>] (time_init) from [<c0c00af8>] (start_kernel+0x210/0x394)
[    0.000000] [<c0c00af8>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30

Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 25, 2019 06:18PM
Realized I should be loading the dtb from tftp not embedding it but I'm not sure how to change my env's to pull in the rs816.tdb and still do the spi stuff. Sorry if this is a bit of noob question but this is my first time working with tftp and u-boot.

setenv ipaddr 192.168.1.250
setenv serverip 192.168.1.2
setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;'                
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x3000000
setenv load_image_addr 0x02000000
setenv load_image 'echo loading zImage from tftpserver ...; tftpboot $load_image_addr zImage'
setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd'
setenv load_dtb 'echo loading uInitrd from tftpserver ...; tftpboot $load_dtb_addr armada-385-synology-rs816.dtb'
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; run load_dtb; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
setenv bootcmd 'mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootcmd_exec; run bootspi'

Which boots to
random: fast init done

If I include the following line it just loads the default dtb and crashes out early.
setenv load_dtb 'echo loading DTB from flash ...; sf probe 0 50000000; sf read $load_dtb_addr $spi_pt_addr_dt $spi_pt_size_dt'
Re: Debian on Synology RS816 (Armada 385)
April 25, 2019 08:28PM
Richard Jackson Wrote:
-------------------------------------------------------
> Realized I should be loading the dtb from tftp not
> embedding it but I'm not sure how to change my
> env's to pull in the rs816.tdb and still do the
> spi stuff. Sorry if this is a bit of noob question
> but this is my first time working with tftp and
> u-boot.
>
>
> setenv ipaddr 192.168.1.250
> setenv serverip 192.168.1.2
> setenv usb_setup 'setenv usbActive 1; setenv
> usbType 3; usb start;'                
> setenv load_dtb_addr 0x1000000
> setenv load_initrd_addr 0x3000000
> setenv load_image_addr 0x02000000
> setenv load_image 'echo loading zImage from
> tftpserver ...; tftpboot $load_image_addr zImage'
> setenv load_initrd 'echo loading uInitrd from
> tftpserver ...; tftpboot $load_initrd_addr
> uInitrd'
> setenv load_dtb 'echo loading uInitrd from
> tftpserver ...; tftpboot $load_dtb_addr
> armada-385-synology-rs816.dtb'
> 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; run
> load_dtb; bootz $load_image_addr $load_initrd_addr
> $load_dtb_addr'
> setenv bootcmd 'mw 0xf10a2620 0x251;mw 0xf10a2e20
> 0x251;usb xhciinit; run bootcmd_exec; run
> bootspi'
>
>
> Which boots to
>
> random: fast init done
>
>
> If I include the following line it just loads the
> default dtb and crashes out early.
>
> setenv load_dtb 'echo loading DTB from flash ...;
> sf probe 0 50000000; sf read $load_dtb_addr
> $spi_pt_addr_dt $spi_pt_size_dt'
>

I don’t think you should load the DTB from flash. I’ve uploaded a DTB in this thread before.

So the envs should change to reflect that.

I will take a look and post later today.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 01:16AM
Richard,

The DTB was from this post:

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

Please do what zifxify did in this post (right after):

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


I think going back a few post from there, you'll see how the envs were setup to load the kernel files from tftp.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 02:34PM
@bohdi
I think I may have explained myself badly.

I am already loading the dtb you provided via tftp by replacing the original env variable as follows:

Original
setenv load_dtb 'echo loading DTB from flash ...; sf probe 0 50000000; sf read $load_dtb_addr $spi_pt_addr_dt $spi_pt_size_dt'

New
setenv load_dtb 'echo loading DTB from tftpserver ...; tftpboot $load_dtb_addr armada-385-synology-rs816.dtb'

This boots all the way to
random: fast init done

Which is the same as zifxify found before he then moved on to the ds116 dtb which allowed him to boot to Debian login

My question was how do I add the missing $spi* variables to my replacement line in the event they may be important ?

Unfortunately zifxify posts tend to quote from >>boot onwards and hence I can't see any additional env's he might be adding.
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 08:55PM
Richard,

Quote

Which is the same as zifxify found before he then moved on to the ds116 dtb which allowed him to boot to Debian login

Ah. Thanks for refreshing my memory. We should use the ds116 dtb. Later, when things worked OK, I'll make a new DTS cloned from that for the RS816.


Quote

$spi_pt_addr_dt $spi_pt_size_dt

> My question was how do I add the missing $spi*
> variables to my replacement line in the event they
> may be important ?

These are predefined in stock u-boot envs. You should see them in serial console. In the event you want them harded code then just replace each with the real hex number

printenv


Quote

>
> Unfortunately zifxify posts tend to quote from
> >>boot onwards and hence I can't see any
> additional env's he might be adding.

zifxify saved the envs in previous posts before that, so you need to go back a few post right before it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 08:57PM
Here they are

spi_pt_addr_dt=0x0E0000
spi_pt_addr_env=0x7e0000
spi_pt_addr_kernel=0x0F0000
spi_pt_addr_rootfs=0x3C0000
spi_pt_size_dt=0x010000
spi_pt_size_env=0x010000
spi_pt_size_kernel=0x2D0000
spi_pt_size_rootfs=0x410000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 10:51PM
@bodhi
Ah, I feel a bit dumb now! I had seen those spi envs posted by zifxify but hadn't thought of them in the correct context.

Just to confirm I have now tried with those envs set using the armada-385-synology-rs816.dtb and boot still gets stuck at the same point.

random: fast init done

Once you have a new dtb based on ds116 I will give it a try.

Thanks once again for putting your time into getting this to work
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 11:02PM
The actual boot from above which although gets stuck does show all four sata ports unlike with the ds116 boot.

Marvell>> boot
(Re)start USB controller...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
USB1:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
Booting Debian . . .
(Re)start USB...
USB0:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
         4 MiB/s
done
Bytes transferred = 4021296 (3d5c30 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'uInitrd'.
Load address: 0x3000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################
         4.1 MiB/s
done
Bytes transferred = 7070236 (6be21c hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: ##
         1.1 MiB/s
done
Bytes transferred = 16847 (41cf hex)
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff1ce ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Synology RS816
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c8000 s40460 r8192 d20980 u69632
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019064K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29512K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Selected CPU frequency (16) unsupported
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007880] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019027] Console: colour dummy device 80x30
[    0.023538] Calibrating local timer... 933.17MHz.
[    0.083564] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.093952] pid_max: default: 32768 minimum: 301
[    0.098690] Security Framework initialized
[    0.102880] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.109551] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.116955] CPU: Testing write buffer coherency: ok
[    0.122000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.163576] Setting up static identity map for 0x100000 - 0x100060
[    0.169870] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.175146] mvebu-pmsu: Initializing Power Management Service Unit
[    0.233546] smp: Bringing up secondary CPUs ...
[    0.293579] Booting CPU 1
[    0.296401] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.296440] smp: Brought up 1 node, 2 CPUs
[    0.306319] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.312638] CPU: All CPU(s) started in SVC mode.
[    0.317735] devtmpfs: initialized
[    0.322587] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.330472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.340356] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.346615] prandom: seed boundary self test passed
[    0.352990] prandom: 100 self tests passed
[    0.357168] pinctrl core: initialized pinctrl subsystem
[    0.362949] NET: Registered protocol family 16
[    0.367912] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.375689] cpuidle: using governor ladder
[    0.379858] cpuidle: using governor menu
[    0.383942] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.391999] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.397984] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.406137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.463758] reg-fixed-voltage usb3-vbus0: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci0_vbus_pins, deferring probe
[    0.476407] reg-fixed-voltage usb3-vbus1: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci1_vbus_pins, deferring probe
[    0.489434] vgaarb: loaded
[    0.492385] SCSI subsystem initialized
[    0.503826] usbcore: registered new interface driver usbfs
[    0.509431] usbcore: registered new interface driver hub
[    0.514858] usbcore: registered new device driver usb
[    0.520262] media: Linux media interface: v0.10
[    0.524938] Linux video capture interface: v2.00
[    0.533637] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.569929] VFS: Disk quotas dquot_6.6.0
[    0.573987] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.585812] NET: Registered protocol family 2
[    0.590608] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.597785] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.604338] TCP: Hash tables configured (established 8192 bind 8192)
[    0.610792] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.616799] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.623324] NET: Registered protocol family 1
[    0.637952] RPC: Registered named UNIX socket transport module.
[    0.643940] RPC: Registered udp transport module.
[    0.648704] RPC: Registered tcp transport module.
[    0.653467] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.660057] Unpacking initramfs...
[    0.860982] Freeing initrd memory: 6908K
[    0.865137] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.871868] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.880646] audit: initializing netlink subsys (disabled)
[    0.886278] audit: type=2000 audit(0.862:1): state=initialized audit_enabled=0 res=1
[    0.886390] Initialise system trusted keyrings
[    0.886409] Key type blacklist registered
[    0.886463] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.894091] zbud: loaded
[    0.914589] NFS: Registering the id_resolver key type
[    0.919704] Key type id_resolver registered
[    0.923967] Key type id_legacy registered
[    0.928045] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.934810] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.941307] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.948630] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.955220] orangefs_init: module version upstream loaded
[    0.962521] Key type asymmetric registered
[    0.966695] Asymmetric key parser 'x509' registered
[    0.971653] bounce: pool size: 64 pages
[    0.975580] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.983024] io scheduler noop registered
[    0.987022] io scheduler deadline registered
[    0.991377] io scheduler cfq registered (default)
[    0.996754] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004836] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.010814] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017183] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024119] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030097] PCI: bus0: Fast back to back transfers disabled
[    1.035743] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.043815] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.051868] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.059932] pci 0000:00:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.068047] PCI: bus1: Fast back to back transfers enabled
[    1.103656] PCI: bus2: Fast back to back transfers disabled
[    1.109348] PCI: bus3: Fast back to back transfers enabled
[    1.114965] PCI: bus4: Fast back to back transfers enabled
[    1.120600] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.127536] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.133972] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.139004] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.146284] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]
[    1.153124] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]
[    1.159454] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]
[    1.165782] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]
[    1.172104] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]
[    1.178433] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]
[    1.184761] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.189785] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]
[    1.196112] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.202952] pci 0000:00:03.0: PCI bridge to [bus 03]
[    1.207985] pci 0000:00:04.0: PCI bridge to [bus 04]
[    1.213078] pcieport 0000:00:02.0: enabling device (0140 -> 0143)
[    1.219535] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.283973] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.291771] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.353968] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.385706] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.403264] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[    1.411464] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.420563] scsi host0: ahci
[    1.434607] scsi host1: ahci
[    1.437813] scsi host2: ahci
[    1.440971] scsi host3: ahci
[    1.444128] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 47
[    1.451573] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 47
[    1.459036] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 47
[    1.466491] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 47
[    1.474992] m25p80 spi0.0: found n25q064, expected mx25l6405d
[    1.480810] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    1.485515] 2 cmdlinepart partitions found on MTD device spi0.0
[    1.491489] Creating 2 MTD partitions on "spi0.0":
[    1.496361] 0x000000000000-0x000000400000 : "boot"
[    1.511734] 0x000000400000-0x000000800000 : "spi-rootfs"
[    1.518010] libphy: Fixed MDIO Bus: probed
[    1.522492] libphy: orion_mdio_bus: probed
[    1.529523] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.538143] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:1c:24:27
[    1.546381] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.552969] ehci-pci: EHCI PCI platform driver
[    1.557529] ehci-orion: EHCI orion driver
[    1.561998] usbcore: registered new interface driver usblp
[    1.567581] usbcore: registered new interface driver usb-storage
[    1.573809] mousedev: PS/2 mouse device common for all mice
[    1.580028] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.587708] i2c /dev entries driver
[    1.614580] gpio-fan soc:gpio-fan: GPIO fan initialized
[    1.630017] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.642267] thermal thermal_zone0: Temperature sensor reading not valid
[    1.648940] thermal thermal_zone0: failed to read out thermal zone (-5)
[    1.655860] orion_wdt: Initial timeout 171 sec
[    1.661411] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.668694] hidraw: raw HID events driver (C) Jiri Kosina
[    1.674296] usbcore: registered new interface driver usbhid
[    1.679924] usbhid: USB HID core driver
[    1.683964] drop_monitor: Initializing network drop monitor service
[    1.690311] Netfilter messages via NETLINK v0.30.
[    1.695109] ip_set: protocol 6
[    1.698380] NET: Registered protocol family 10
[    1.703300] Segment Routing with IPv6
[    1.707109] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.713627] NET: Registered protocol family 17
[    1.718178] 8021q: 802.1Q VLAN Support v1.8
[    1.722441] Key type dns_resolver registered
[    1.726870] ThumbEE CPU extension supported.
[    1.731205] Registering SWP/SWPB emulation handler
[    1.736331] registered taskstats version 1
[    1.740491] Loading compiled-in X.509 certificates
[    1.745395] zswap: loaded using pool lzo/zbud
[    1.788663] Key type big_key registered
[    1.795245] Key type encrypted registered
[    1.800608] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.804114] ata1: SATA link down (SStatus 0 SControl 300)
[    1.804925] ata3: SATA link down (SStatus 0 SControl 300)
[    1.814912] ata4: SATA link down (SStatus 0 SControl 300)
[    1.822394] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.829996] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.838600] xhci-hcd f10f0000.usb3: irq 41, io mem 0xf10f0000
[    1.844486] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.851325] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.858602] usb usb1: Product: xHCI Host Controller
[    1.863539] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.870038] usb usb1: SerialNumber: f10f0000.usb3
[    1.875116] hub 1-0:1.0: USB hub found
[    1.878966] hub 1-0:1.0: 1 port detected
[    1.883081] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.888483] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.896056] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.904248] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.911088] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.918364] usb usb2: Product: xHCI Host Controller
[    1.923301] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.929800] usb usb2: SerialNumber: f10f0000.usb3
[    1.934838] hub 2-0:1.0: USB hub found
[    1.938665] hub 2-0:1.0: 1 port detected
[    1.942901] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.948291] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.955884] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.964475] xhci-hcd f10f8000.usb3: irq 42, io mem 0xf10f8000
[    1.970340] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.973658] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.983432] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.990715] usb usb3: Product: xHCI Host Controller
[    1.995663] usb usb3: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.995665] ata2.00: NCQ Send/Recv Log not supported
[    1.995669] ata2.00: ATA-9: ST2000VN004-2E4164, SC60, max UDMA/133
[    1.995671] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    2.020619] usb usb3: SerialNumber: f10f8000.usb3
[    2.025580] ata2.00: NCQ Send/Recv Log not supported
[    2.025705] hub 3-0:1.0: USB hub found
[    2.025722] hub 3-0:1.0: 1 port detected
[    2.025843] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.025850] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.025888] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.025936] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    2.025940] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.025942] usb usb4: Product: xHCI Host Controller
[    2.025944] usb usb4: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    2.025946] usb usb4: SerialNumber: f10f8000.usb3
[    2.030766] hub 4-0:1.0: USB hub found
[    2.030799] hub 4-0:1.0: 1 port detected
[    2.034739] armada38x-rtc f10a3800.rtc: setting system clock to 2019-04-27 03:42:42 UTC (1556336562)
[    2.034879] v5.0-sata0: supplied by pwr_en_sata0
[    2.034905] v12.0-sata0: supplied by pwr_en_sata0
[    2.034927] v5.0-sata0: disabling
[    2.034930] v12.0-sata0: disabling
[    2.123602] Warning: unable to open an initial console.
[    2.128907] ata2.00: configured for UDMA/133
[    2.143549] scsi 1:0:0:0: Direct-Access     ATA      ST2000VN004-2E41 SC60 PQ: 0 ANSI: 5
[    2.152097] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    2.160033] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    2.165355] sd 1:0:0:0: [sda] Write Protect is off
[    2.170243] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.193092]  sda: sda1 sda2 sda3
[    2.196966] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    2.203049] Freeing unused kernel memory: 1024K
[    2.241541] systemd-udevd[1339]: starting version 232
[    2.247932] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.255839] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.262986] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.263573] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.263617] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.263939] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.264126] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.264299] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.264477] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.264642] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.393699] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    2.565597] usb 3-1: New USB device found, idVendor=090c, idProduct=1000
[    2.572354] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.579567] usb 3-1: Product: Silicon-Power
[    2.585057] usb 3-1: Manufacturer: UFD 2.0
[    2.589219] usb 3-1: SerialNumber: 01901162253000000227
[    2.594927] usb-storage 3-1:1.0: USB Mass Storage device detected
[    2.611251] scsi host4: usb-storage 3-1:1.0
[    2.700309] usbcore: registered new interface driver uas
[    3.918876] scsi 4:0:0:0: Direct-Access     UFD 2.0  Silicon-Power4G  1100 PQ: 0 ANSI: 4
[    3.929517] sd 4:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    3.937723] sd 4:0:0:0: [sdb] Write Protect is off
[    3.943242] sd 4:0:0:0: [sdb] No Caching mode page found
[    3.948628] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[    3.958085]  sdb: sdb1
[    3.963148] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[    3.986865] random: fast init done

Re: Debian on Synology RS816 (Armada 385)
April 26, 2019 11:31PM
> The actual boot from above which although gets
> stuck does show all four sata ports unlike with
> the ds116 boot.

That's interesting! I don't recall much about the zifxify's ds116 boot attempt and why we did not see 4 SATA ports.

But based on your testing observation, the armada-385-synology-rs816.dtb is correct regarding 4 SATA ports. And the DS116 dtb is correct in all other DTS hardware nodes (it booted all the way into Debian).

So I think a merge of both would hopefully be better. I'll take a stab at merging them.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 01:41AM
Some kind of hybrid dtb is probably the answer, although I say that with no real knowledge of how they work, but just as a reminder you have already done some hybrid rs816 ds116 which show 4 ports on the console and boot to Debian but fail to bring them up due to soc vs pci or something like that.

Anyway I'm very keen to try anything you would like me to. My retired from production RS816 is available for testing for as long as it takes.
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 09:17PM
Hi Richard,

Here is the merged version armada-385-synology-rs816.dtb and armada-385-synology-rs816.dts.

Please try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-synology-rs816.dtb (16.8 KB)
open | download - armada-385-synology-rs816.dts (6.7 KB)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 09:59PM
Same outcome i.e. stuck at
random: fast init done

Just checking I am doing this correctly I'm only loading the .dtb from tftp am I supposed to do something with the .dts as well ? hope I'm not messing this up.

Output from this trial

Marvell>> boot
(Re)start USB controller...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
USB1:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
Booting Debian . . .
(Re)start USB...
USB0:   Port (usbActive) : 1    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
         6 MiB/s
done
Bytes transferred = 4021296 (3d5c30 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'uInitrd'.
Load address: 0x3000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################
         6.2 MiB/s
done
Bytes transferred = 7070236 (6be21c hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.250
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: ##
         5.5 MiB/s
done
Bytes transferred = 17163 (430b hex)
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff30a ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Synology RS116
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c7000 s40460 r8192 d20980 u69632
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:4m(boot),-(spi-rootfs) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019060K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29516K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Selected CPU frequency (16) unsupported
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007880] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019028] Console: colour dummy device 80x30
[    0.023540] Calibrating local timer... 933.10MHz.
[    0.083561] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.093948] pid_max: default: 32768 minimum: 301
[    0.098688] Security Framework initialized
[    0.102876] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.109547] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.116947] CPU: Testing write buffer coherency: ok
[    0.121990] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.163567] Setting up static identity map for 0x100000 - 0x100060
[    0.169860] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.175136] mvebu-pmsu: Initializing Power Management Service Unit
[    0.233532] smp: Bringing up secondary CPUs ...
[    0.293561] Booting CPU 1
[    0.296383] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.296423] smp: Brought up 1 node, 2 CPUs
[    0.306301] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.312620] CPU: All CPU(s) started in SVC mode.
[    0.317714] devtmpfs: initialized
[    0.322597] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.330480] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.340363] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.346620] prandom: seed boundary self test passed
[    0.352994] prandom: 100 self tests passed
[    0.357172] pinctrl core: initialized pinctrl subsystem
[    0.362955] NET: Registered protocol family 16
[    0.367909] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.375687] cpuidle: using governor ladder
[    0.379857] cpuidle: using governor menu
[    0.383940] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.391997] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.397982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.406135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.427078] reg-fixed-voltage usb3-vbus0: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci0_vbus_pins, deferring probe
[    0.439674] reg-fixed-voltage usb3-vbus1: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci1_vbus_pins, deferring probe
[    0.452720] vgaarb: loaded
[    0.455708] SCSI subsystem initialized
[    0.459914] usbcore: registered new interface driver usbfs
[    0.465517] usbcore: registered new interface driver hub
[    0.470943] usbcore: registered new device driver usb
[    0.476344] media: Linux media interface: v0.10
[    0.480972] Linux video capture interface: v2.00
[    0.486363] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.522606] VFS: Disk quotas dquot_6.6.0
[    0.526659] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.538856] NET: Registered protocol family 2
[    0.543634] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.550831] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.557392] TCP: Hash tables configured (established 8192 bind 8192)
[    0.563849] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.569855] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.576404] NET: Registered protocol family 1
[    0.581005] RPC: Registered named UNIX socket transport module.
[    0.587011] RPC: Registered udp transport module.
[    0.591775] RPC: Registered tcp transport module.
[    0.596554] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.603138] Unpacking initramfs...
[    0.804808] Freeing initrd memory: 6908K
[    0.808949] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.815701] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.824507] audit: initializing netlink subsys (disabled)
[    0.830139] audit: type=2000 audit(0.803:1): state=initialized audit_enabled=0 res=1
[    0.830250] Initialise system trusted keyrings
[    0.830267] Key type blacklist registered
[    0.830320] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.837952] zbud: loaded
[    0.858463] NFS: Registering the id_resolver key type
[    0.863579] Key type id_resolver registered
[    0.867843] Key type id_legacy registered
[    0.871921] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.878691] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.885189] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.892514] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.899114] orangefs_init: module version upstream loaded
[    0.906428] Key type asymmetric registered
[    0.910589] Asymmetric key parser 'x509' registered
[    0.915547] bounce: pool size: 64 pages
[    0.919486] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.926940] io scheduler noop registered
[    0.930926] io scheduler deadline registered
[    0.935282] io scheduler cfq registered (default)
[    0.940659] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.948739] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.954718] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.961116] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.968052] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.974020] PCI: bus0: Fast back to back transfers disabled
[    0.979674] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.987751] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.995804] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.003874] pci 0000:00:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.011997] PCI: bus1: Fast back to back transfers enabled
[    1.046379] PCI: bus2: Fast back to back transfers disabled
[    1.052076] PCI: bus3: Fast back to back transfers enabled
[    1.057705] PCI: bus4: Fast back to back transfers enabled
[    1.063339] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.070276] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.076701] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.081732] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.089011] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]
[    1.095852] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]
[    1.102189] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]
[    1.108518] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]
[    1.114840] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]
[    1.121175] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]
[    1.127504] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.132528] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]
[    1.138862] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.145702] pci 0000:00:03.0: PCI bridge to [bus 03]
[    1.150755] pci 0000:00:04.0: PCI bridge to [bus 04]
[    1.155847] pcieport 0000:00:02.0: enabling device (0140 -> 0143)
[    1.162309] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.226696] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.234495] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.296686] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.328490] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.346054] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[    1.354203] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.364144] scsi host0: ahci
[    1.367298] scsi host1: ahci
[    1.370441] scsi host2: ahci
[    1.373559] scsi host3: ahci
[    1.376643] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 47
[    1.384087] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 47
[    1.391546] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 47
[    1.399085] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 47
[    1.407557] m25p80 spi0.0: found n25q064, expected mx25l6405d
[    1.413380] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    1.418073] 2 cmdlinepart partitions found on MTD device spi0.0
[    1.424047] Creating 2 MTD partitions on "spi0.0":
[    1.428909] 0x000000000000-0x000000400000 : "boot"
[    1.434252] 0x000000400000-0x000000800000 : "spi-rootfs"
[    1.440523] libphy: Fixed MDIO Bus: probed
[    1.445008] libphy: orion_mdio_bus: probed
[    1.452134] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.460738] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:1c:24:27
[    1.468966] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.475554] ehci-pci: EHCI PCI platform driver
[    1.480115] ehci-orion: EHCI orion driver
[    1.484583] usbcore: registered new interface driver usblp
[    1.490164] usbcore: registered new interface driver usb-storage
[    1.496433] mousedev: PS/2 mouse device common for all mice
[    1.502653] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.510329] i2c /dev entries driver
[    1.537204] gpio-fan soc:gpio-fan: GPIO fan initialized
[    1.552635] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.564876] thermal thermal_zone0: Temperature sensor reading not valid
[    1.571549] thermal thermal_zone0: failed to read out thermal zone (-5)
[    1.578457] orion_wdt: Initial timeout 171 sec
[    1.584012] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.591298] hidraw: raw HID events driver (C) Jiri Kosina
[    1.596898] usbcore: registered new interface driver usbhid
[    1.602526] usbhid: USB HID core driver
[    1.606551] drop_monitor: Initializing network drop monitor service
[    1.612898] Netfilter messages via NETLINK v0.30.
[    1.617692] ip_set: protocol 6
[    1.620962] NET: Registered protocol family 10
[    1.625874] Segment Routing with IPv6
[    1.629687] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.636201] NET: Registered protocol family 17
[    1.640751] 8021q: 802.1Q VLAN Support v1.8
[    1.645017] Key type dns_resolver registered
[    1.649441] ThumbEE CPU extension supported.
[    1.653776] Registering SWP/SWPB emulation handler
[    1.658896] registered taskstats version 1
[    1.663056] Loading compiled-in X.509 certificates
[    1.667954] zswap: loaded using pool lzo/zbud
[    1.709065] Key type big_key registered
[    1.715607] Key type encrypted registered
[    1.720979] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.726378] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.733974] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.736945] ata3: SATA link down (SStatus 0 SControl 300)
[    1.737655] ata1: SATA link down (SStatus 0 SControl 300)
[    1.747614] ata4: SATA link down (SStatus 0 SControl 300)
[    1.758953] xhci-hcd f10f0000.usb3: irq 41, io mem 0xf10f0000
[    1.764831] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.771678] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.778955] usb usb1: Product: xHCI Host Controller
[    1.783892] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.790391] usb usb1: SerialNumber: f10f0000.usb3
[    1.795443] hub 1-0:1.0: USB hub found
[    1.799284] hub 1-0:1.0: 1 port detected
[    1.803397] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.808794] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.816368] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.824551] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.831397] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.838674] usb usb2: Product: xHCI Host Controller
[    1.843611] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.850108] usb usb2: SerialNumber: f10f0000.usb3
[    1.855102] hub 2-0:1.0: USB hub found
[    1.858937] hub 2-0:1.0: 1 port detected
[    1.863169] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.868556] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.876143] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.884734] xhci-hcd f10f8000.usb3: irq 42, io mem 0xf10f8000
[    1.890605] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.897451] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.904721] usb usb3: Product: xHCI Host Controller
[    1.906371] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.915940] usb usb3: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.922454] usb usb3: SerialNumber: f10f8000.usb3
[    1.927234] ata2.00: NCQ Send/Recv Log not supported
[    1.927237] ata2.00: ATA-9: ST2000VN004-2E4164, SC60, max UDMA/133
[    1.927240] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    1.945988] hub 3-0:1.0: USB hub found
[    1.949843] hub 3-0:1.0: 1 port detected
[    1.953838] ata2.00: NCQ Send/Recv Log not supported
[    1.953845] ata2.00: configured for UDMA/133
[    1.963352] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.964104] scsi 1:0:0:0: Direct-Access     ATA      ST2000VN004-2E41 SC60 PQ: 0 ANSI: 5
[    1.976882] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.977364] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    1.977367] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    1.977391] sd 1:0:0:0: [sda] Write Protect is off
[    1.977432] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.002386]  sda: sda1 sda2 sda3
[    2.003077] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    2.020326] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.028520] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    2.035360] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.042639] usb usb4: Product: xHCI Host Controller
[    2.047583] usb usb4: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    2.054075] usb usb4: SerialNumber: f10f8000.usb3
[    2.059074] hub 4-0:1.0: USB hub found
[    2.062901] hub 4-0:1.0: 1 port detected
[    2.067299] armada38x-rtc f10a3800.rtc: setting system clock to 2019-04-28 02:50:36 UTC (1556419836)
[    2.076676] v5.0-sata0: supplied by pwr_en_sata0
[    2.081380] v12.0-sata0: supplied by pwr_en_sata0
[    2.086165] v5.0-sata0: disabling
[    2.089561] v12.0-sata0: disabling
[    2.093046] Warning: unable to open an initial console.
[    2.098866] Freeing unused kernel memory: 1024K
[    2.137568] systemd-udevd[1339]: starting version 232
[    2.144192] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.150460] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151000] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151044] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151329] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151517] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151690] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.151877] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.152038] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.152206] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.316404] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    2.488308] usb 3-1: New USB device found, idVendor=090c, idProduct=1000
[    2.495070] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.504851] usb 3-1: Product: Silicon-Power
[    2.509741] usb 3-1: Manufacturer: UFD 2.0
[    2.514564] usb 3-1: SerialNumber: 01901162253000000227
[    2.524722] usb-storage 3-1:1.0: USB Mass Storage device detected
[    2.542128] scsi host4: usb-storage 3-1:1.0
[    2.593310] usbcore: registered new interface driver uas
[    3.851593] scsi 4:0:0:0: Direct-Access     UFD 2.0  Silicon-Power4G  1100 PQ: 0 ANSI: 4
[    3.862238] sd 4:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    3.870365] sd 4:0:0:0: [sdb] Write Protect is off
[    3.875760] sd 4:0:0:0: [sdb] No Caching mode page found
[    3.881141] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[    3.891057]  sdb: sdb1
[    3.895250] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[    3.916380] random: fast init done

Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 10:25PM
Richard,

> Just checking I am doing this correctly I'm only
> loading the .dtb from tftp am I supposed to do
> something with the .dts as well ? hope I'm not
> messing this up.

No, only the DTB is loaded from tftp. DTS is the source code that I attached for info.

The fact that it got stuck again told me that the first 2 SATA ports are from the SoC, not PCI! This is something that can be seen in GPL source if we take a close read.

The issue right now is if we use SoC SATA then it will boot OK (therefore the first 2 ports must have been connected to the SoC pins. Note that this is how all other Armada 38x SoC set up in their boxes.).

Now, but we don't know how to define the PCI nodes to get the other 2 SATA ports activated. But that probably just a specific configuration for this box that we hopefully can find out.

=====

I'm going back to the DS166 SoC SATA definition so we can boot. Stay tuned for an updated DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 10:34PM
OK here this version we are going back to SoC SATA ports for the first 2. Please try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-synology-rs816.dtb (16.9 KB)
open | download - armada-385-synology-rs816.dts (6.7 KB)
Richard Jackson
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 10:49PM
Hi
Same outcome I double checked I was using latest dtb and re-ran just in case.

Probably save time if I setup a profile, I will do that now
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 10:54PM
@bodi

This is my new profile name.

Richard
Re: Debian on Synology RS816 (Armada 385)
April 27, 2019 11:30PM
Just done a run with the ds116.dtb from the dts folder in your rootfs and confirm this boots to debian

root@debian:~# lsblk
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  3.8G  0 disk
`-sdb1      8:17   1  3.8G  0 part /
mtdblock0  31:0    0    4M  0 disk
mtdblock1  31:1    0    4M  0 disk

Let me know if you want a particular output.



Edited 1 time(s). Last edit at 04/27/2019 11:34PM by richjn.
Re: Debian on Synology RS816 (Armada 385)
April 28, 2019 02:01AM
Richard,

So that was a failed attemp to guess what the PCI nodes should be (apparently they are not similar to other Armada boxes).

We need stock boot log, and then if no info can be extracted from there, we need to see the GPL source code.

Update:
zifxify has posted stock boot log in the first post.

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



Edited 1 time(s). Last edit at 04/28/2019 02:03AM by bodhi.
Re: Debian on Synology RS816 (Armada 385)
April 28, 2019 02:17AM
By the way, this definition make u-boot envs available in Debian.

cat /etc/fw_env.config

# MTD device name       Device offset   Env. size       Flash sector size        Number of sectors
/dev/mtd1   0x3E0000   0x10000   0x1000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology RS816 (Armada 385)
April 28, 2019 02:32AM
Also zifxify has identified these GPIO.

Quote

with the rackstation in front of you, from left to right drives numbered 1 to 4.

GPIO pin 15 (drive {2})
GPIO pin 37 (drive {3,4})

So I think the correct approach is to incorporate those GPIOs into the current ds116 DTB.

----

I don't recall zifxify post the link to any GPL source? I would much prefer GPL source to get info from, brute-force hacking is not a really good way if GPL info is available.

-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: