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 21, 2019 01:12AM
Quote

This actually makes sense. As I said, I need to creat a new DTS. The reason for the SATA ports behavior is the RS816 has 4 SATA ports, but the DS116 has only 2 SATA ports. This behavior has nothing to do with Power Off.

Ok, but the fact that the SATA ports are still powered after a shutdown. Is this normal behavior ?

Quote

Now try to set some test env.

fw_setenv test1 yes
fw_printenv test1


Reboot, interrupt serial console and

printenv

Will test later as I do not have a SSH connection working to the laptop (serial) connected to this box.
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 02:46AM
>
Quote

> This actually makes sense. As I said, I need to
> creat a new DTS. The reason for the SATA ports
> behavior is the RS816 has 4 SATA ports, but the
> DS116 has only 2 SATA ports. This behavior has
> nothing to do with Power Off.
>
>
> Ok, but the fact that the SATA ports are still
> powered after a shutdown. Is this normal behavior
> ?

No, it is not normal. All 4 ports should shutdown properly (i.e. triggered by the Poweroff). But it is a distinct process after the SATA driver got triggered and starts doing its own thing. If you have 4 SATA drives, then 2 of them should be down when the Poweroff process starts, because the current DTS only specifies 2 SATA ports.

>
>
Quote

> Now try to set some test env.
>
> fw_setenv test1 yes
> fw_printenv test1
>
>
> Reboot, interrupt serial console and
>
> printenv
>
>
> Will test later as I do not have a SSH connection
> working to the laptop (serial) connected to this
> box.

All steps can be done using serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 02:52AM
zifxify Wrote:
-------------------------------------------------------
> Found this:
> https://www.synology-wiki.de/index.php/LEDs_und_Buttons
> and this just works.

When you said it just works, did you test these codes on /dev/tty1?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 03:45AM
Quote

All steps can be done using serial console.

I was connected remotely to a laptop with a serial port (using SSH), and used a screen session to /dev/ttyS0.

Quote

When you said it just works, did you test these codes on /dev/tty1?

Yes, in Debian and DSM as root

echo X > /dev/ttyS1
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 07:43AM
Quote

Now try to set some test env.

fw_setenv test1 yes
fw_printenv test1


Reboot, interrupt serial console and

printenv

OK, back to testing and saving envs seems to work :)

root@debian:~# fw_setenv test1 yes
root@debian:~# fw_printenv test1
test1=yes

Marvell>> printenv test1
test1=yes
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 10:47AM
zifxify Wrote:
-------------------------------------------------------
>
Quote

> Now try to set some test env.
>
> fw_setenv test1 yes
> fw_printenv test1
>
>
> Reboot, interrupt serial console and
>
> printenv
>
>
> OK, back to testing and saving envs seems to work
> :)
>
>
> root@debian:~# fw_setenv test1 yes
> root@debian:~# fw_printenv test1
> test1=yes
> 
> Marvell>> printenv test1
> test1=yes
>

OK! so SPI is done, successfully :)

We can move on to 4 SATA which is the next important issue. Are they all active in Debian? i.e. the disks can be mounted and accessed?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 11:09AM
Quote

We can move on to 4 SATA which is the next important issue. Are they all active in Debian? i.e. the disks can be mounted and accessed?

The first two SATA ports are supplied with power but only the first one is working correctly. When inserting a drive in the second SATA port, nothing happens. Only harddrive 1 is active in Debian and can be mounted.
SATA port {3,4} are not powered at all.
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 12:23PM
I had a virtually identical experience with the Linkstation 441de, Though it's a different SoC the same situation seems to apply. If I'm reading the right specs the armada-385 has 2x sata ports built in just like the armada-370, for the 4+ bay model buffalo uses a seperate sata chip connected via pcie, I'm guessing it's the same for this synology device. If so enabling pcie in the device-tree should allow debian to find all 4 drives. There may also be gpio power pins that need to be enabled for them to show up, usually the boot loader will turn those on if the device is present at boot but if you add those to the device tree it will also ensure the drives come up.

It seems they connect the first two bays on these devices to both the sata chip and the soc sata ports, I've always assumed that is so that the boot loader can access they via SoC for the boot process and then the OS can access them over the PCIe sata chip but I've never confirmed that. Once you get the drives working you'll want to disable the SoC so it doesn't supersede the PCIe sata.

I'm guessing @bohdi knows all that already but I figured I'd share since it tripped me up for a while when I first encountered it.
Re: Debian on Synology RS816 (Armada 385)
January 21, 2019 11:01PM
@1000001101000,

Thanks for sharing your experience on the a370! it's confirmed my understanding, too.

@zifxify,

I've reread the DTS and the SATA behavior you've observed is what it should be. There is only one active port in the DTS. And it's GPO 15. And there is no PCIe definition in there.


- I need to upload a new DTS/DTB based on the DS116.

- We need to find the GPL u-boot and kernel source where SATA ports are enabled. At the minimum, a GPIO is needed for sata1 (we have sata0 already).

- We need to understand the memory writes commands in u-boot envs

bootcmd=mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootspi
Usually, these mw commands are a quick and dirty way for u-boot to activate SATAs and/or USBs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 01:30AM
zifxify,

Please try this new armada-385-synology-rs816.dtb.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - armada-385-synology-rs816.dtb (16.6 KB)
open | download - armada-385-synology-rs816.dts (5.9 KB)
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 11:58AM
Quote

zifxify,

Please try this new armada-385-synology-rs816.dtb.

stops at random: fast init done
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'zImage'.
Load address: 0x2000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ##############
	 5.1 MiB/s
done
Bytes transferred = 4021296 (3d5c30 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'uInitrd'.
Load address: 0x3000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###########################
	 5 MiB/s
done
Bytes transferred = 7070236 (6be21c hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: *##
	 1.4 MiB/s
done
Bytes transferred = 17017 (4279 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 00fff278 ... 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 init=/bin/systemd

[    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.019026] Console: colour dummy device 80x30

[    0.023538] Calibrating local timer... 933.11MHz.

[    0.083562] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)

[    0.093949] 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.116948] CPU: Testing write buffer coherency: ok

[    0.121992] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

[    0.163569] Setting up static identity map for 0x100000 - 0x100060

[    0.169862] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4

[    0.175140] mvebu-pmsu: Initializing Power Management Service Unit

[    0.233536] smp: Bringing up secondary CPUs ...

[    0.293564] Booting CPU 1

[    0.296386] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

[    0.296426] smp: Brought up 1 node, 2 CPUs

[    0.306304] SMP: Total of 2 processors activated (100.00 BogoMIPS).

[    0.312623] CPU: All CPU(s) started in SVC mode.

[    0.317717] devtmpfs: initialized

[    0.322605] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

[    0.330490] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.340374] futex hash table entries: 512 (order: 3, 32768 bytes)

[    0.346631] prandom: seed boundary self test passed

[    0.353006] prandom: 100 self tests passed

[    0.357183] pinctrl core: initialized pinctrl subsystem

[    0.362964] NET: Registered protocol family 16

[    0.367936] DMA: preallocated 256 KiB pool for atomic coherent allocations

[    0.375712] cpuidle: using governor ladder

[    0.379882] cpuidle: using governor menu

[    0.383973] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

[    0.392030] hw-breakpoint: maximum watchpoint size is 4 bytes.

[    0.398016] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling

[    0.406169] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling

[    0.463745] reg-fixed-voltage usb3-vbus0: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci0_vbus_pins, deferring probe

[    0.476393] reg-fixed-voltage usb3-vbus1: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci1_vbus_pins, deferring probe

[    0.489423] vgaarb: loaded

[    0.492379] SCSI subsystem initialized

[    0.503800] usbcore: registered new interface driver usbfs

[    0.509397] usbcore: registered new interface driver hub

[    0.514854] usbcore: registered new device driver usb

[    0.520237] media: Linux media interface: v0.10

[    0.524887] Linux video capture interface: v2.00

[    0.530252] clocksource: Switched to clocksource armada_370_xp_clocksource

[    0.566531] VFS: Disk quotas dquot_6.6.0

[    0.570619] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.582764] NET: Registered protocol family 2

[    0.587541] TCP established hash table entries: 8192 (order: 3, 32768 bytes)

[    0.594758] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

[    0.601311] TCP: Hash tables configured (established 8192 bind 8192)

[    0.607767] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    0.613784] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    0.620339] NET: Registered protocol family 1

[    0.624943] RPC: Registered named UNIX socket transport module.

[    0.630942] RPC: Registered udp transport module.

[    0.635706] RPC: Registered tcp transport module.

[    0.640485] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.647067] Unpacking initramfs...

[    0.848622] Freeing initrd memory: 6908K

[    0.852781] NetWinder Floating Point Emulator V0.97 (double precision)

[    0.859524] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available

[    0.868337] audit: initializing netlink subsys (disabled)

[    0.873897] audit: type=2000 audit(0.843:1): state=initialized audit_enabled=0 res=1

[    0.874091] Initialise system trusted keyrings

[    0.874106] Key type blacklist registered

[    0.874161] workingset: timestamp_bits=30 max_order=18 bucket_order=0

[    0.881707] zbud: loaded

[    0.902214] NFS: Registering the id_resolver key type

[    0.907331] Key type id_resolver registered

[    0.911602] Key type id_legacy registered

[    0.915680] nfs4filelayout_init: NFSv4 File Layout Driver Registering...

[    0.922466] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    0.928964] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

[    0.936286] orangefs_debugfs_init: called with debug mask: :none: :0:

[    0.942870] orangefs_init: module version upstream loaded

[    0.950180] Key type asymmetric registered

[    0.954363] Asymmetric key parser 'x509' registered

[    0.959321] bounce: pool size: 64 pages

[    0.963248] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)

[    0.970711] io scheduler noop registered

[    0.974697] io scheduler deadline registered

[    0.979053] io scheduler cfq registered (default)

[    0.984482] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver

[    0.992492] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00

[    0.998469] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]

[    1.004859] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]

[    1.011806] pci_bus 0000:00: root bus resource [bus 00-ff]

[    1.017594] PCI: bus0: Fast back to back transfers disabled

[    1.023249] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring

[    1.031323] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring

[    1.039433] PCI: bus1: Fast back to back transfers enabled

[    1.070273] PCI: bus2: Fast back to back transfers disabled

[    1.075980] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]

[    1.082917] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]

[    1.089325] pci 0000:00:01.0: PCI bridge to [bus 01]

[    1.094373] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]

[    1.101653] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]

[    1.108493] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]

[    1.114830] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]

[    1.121160] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]

[    1.127482] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]

[    1.133817] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]

[    1.140140] pci 0000:00:02.0: PCI bridge to [bus 02]

[    1.145189] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]

[    1.151517] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]

[    1.158422] pcieport 0000:00:02.0: enabling device (0140 -> 0143)

[    1.164823] mv_xor f1060800.xor: Marvell shared XOR driver

[    1.230592] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )

[    1.238396] mv_xor f1060900.xor: Marvell shared XOR driver

[    1.300577] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )

[    1.332488] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled

[    1.350061] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode

[    1.358210] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 

[    1.368133] scsi host0: ahci

[    1.371285] scsi host1: ahci

[    1.374427] scsi host2: ahci

[    1.377549] scsi host3: ahci

[    1.380631] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 48

[    1.388076] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 48

[    1.395534] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 48

[    1.403074] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 48

[    1.411789] m25p80 spi0.0: found n25q064, expected mx25l6405d

[    1.417595] m25p80 spi0.0: n25q064 (8192 Kbytes)

[    1.422289] 2 cmdlinepart partitions found on MTD device spi0.0

[    1.428263] Creating 2 MTD partitions on "spi0.0":

[    1.433129] 0x000000000000-0x000000400000 : "boot"

[    1.438479] 0x000000400000-0x000000800000 : "spi-rootfs"

[    1.444743] libphy: Fixed MDIO Bus: probed

[    1.449221] libphy: orion_mdio_bus: probed

[    1.456421] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled

[    1.465018] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:27:27:4d

[    1.473247] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    1.479835] ehci-pci: EHCI PCI platform driver

[    1.484395] ehci-orion: EHCI orion driver

[    1.488871] usbcore: registered new interface driver usblp

[    1.494452] usbcore: registered new interface driver usb-storage

[    1.500667] mousedev: PS/2 mouse device common for all mice

[    1.506883] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0

[    1.514568] i2c /dev entries driver

[    1.541451] gpio-fan soc:gpio-fan: GPIO fan initialized

[    1.556902] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().

[    1.569143] thermal thermal_zone0: Temperature sensor reading not valid

[    1.575816] thermal thermal_zone0: failed to read out thermal zone (-5)

[    1.582732] orion_wdt: Initial timeout 171 sec

[    1.588291] marvell-cesa f1090000.crypto: CESA device successfully registered

[    1.595582] hidraw: raw HID events driver (C) Jiri Kosina

[    1.601170] usbcore: registered new interface driver usbhid

[    1.606798] usbhid: USB HID core driver

[    1.610828] drop_monitor: Initializing network drop monitor service

[    1.617175] Netfilter messages via NETLINK v0.30.

[    1.621957] ip_set: protocol 6

[    1.625225] NET: Registered protocol family 10

[    1.630141] Segment Routing with IPv6

[    1.633967] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver

[    1.640491] NET: Registered protocol family 17

[    1.645033] 8021q: 802.1Q VLAN Support v1.8

[    1.649296] Key type dns_resolver registered

[    1.653729] ThumbEE CPU extension supported.

[    1.658064] Registering SWP/SWPB emulation handler

[    1.663188] registered taskstats version 1

[    1.667348] Loading compiled-in X.509 certificates

[    1.672248] zswap: loaded using pool lzo/zbud

[    1.712846] Key type big_key registered

[    1.719415] Key type encrypted registered

[    1.724759] v5.0-sata0: supplied by pwr_en_sata0

[    1.729503] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1

[    1.735687] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode

[    1.740842] ata3: SATA link down (SStatus 0 SControl 300)

[    1.741545] ata1: SATA link down (SStatus 0 SControl 300)

[    1.741575] ata2: SATA link down (SStatus 0 SControl 300)

[    1.751510] ata4: SATA link down (SStatus 0 SControl 300)

[    1.766620] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 

[    1.775840] scsi host4: ahci-mvebu

[    1.779476] scsi host5: ahci-mvebu

[    1.783062] ata5: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41

[    1.791031] ata6: DUMMY

[    1.793723] xhci-hcd f10f0000.usb3: xHCI Host Controller

[    1.799104] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1

[    1.806712] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010

[    1.815302] xhci-hcd f10f0000.usb3: irq 42, io mem 0xf10f0000

[    1.821187] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[    1.828026] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.835303] usb usb1: Product: xHCI Host Controller

[    1.840242] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd

[    1.846743] usb usb1: SerialNumber: f10f0000.usb3

[    1.851816] hub 1-0:1.0: USB hub found

[    1.855645] hub 1-0:1.0: 1 port detected

[    1.859761] xhci-hcd f10f0000.usb3: xHCI Host Controller

[    1.865147] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2

[    1.872721] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.

[    1.880908] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003

[    1.887748] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.895024] usb usb2: Product: xHCI Host Controller

[    1.899960] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd

[    1.906458] usb usb2: SerialNumber: f10f0000.usb3

[    1.911457] hub 2-0:1.0: USB hub found

[    1.915282] hub 2-0:1.0: 1 port detected

[    1.919516] xhci-hcd f10f8000.usb3: xHCI Host Controller

[    1.924906] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3

[    1.932499] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010

[    1.941089] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000

[    1.946957] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002

[    1.953803] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.961080] usb usb3: Product: xHCI Host Controller

[    1.966017] usb usb3: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd

[    1.972516] usb usb3: SerialNumber: f10f8000.usb3

[    1.977524] hub 3-0:1.0: USB hub found

[    1.981359] hub 3-0:1.0: 1 port detected

[    1.985472] xhci-hcd f10f8000.usb3: xHCI Host Controller

[    1.990854] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4

[    1.998416] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.

[    2.006604] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003

[    2.013449] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    2.020726] usb usb4: Product: xHCI Host Controller

[    2.025664] usb usb4: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd

[    2.032161] usb usb4: SerialNumber: f10f8000.usb3

[    2.037131] hub 4-0:1.0: USB hub found

[    2.040967] hub 4-0:1.0: 1 port detected

[    2.045367] armada38x-rtc f10a3800.rtc: setting system clock to 2019-01-22 18:51:42 UTC (1548183102)

[    2.054743] v12.0-sata0: supplied by pwr_en_sata0

[    2.059529] v12.0-sata0: disabling

[    2.063071] Warning: unable to open an initial console.

[    2.123960] ata5: SATA link down (SStatus 0 SControl 300)

[    2.140008] Freeing unused kernel memory: 1024K

[    2.178967] systemd-udevd[1340]: starting version 232

[    2.185459] random: systemd-udevd: uninitialized urandom read (16 bytes read)

[    2.192941] random: systemd-udevd: uninitialized urandom read (16 bytes read)

[    2.198361] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.198898] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.198941] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.199223] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.199399] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.199577] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.199754] random: udevadm: uninitialized urandom read (16 bytes read)

[    2.199915] random: udevadm: uninitialized urandom read (16 bytes read)

[    3.570261] usb 1-1: new high-speed USB device number 2 using xhci-hcd

[    3.740530] usb 1-1: New USB device found, idVendor=7614, idProduct=2419

[    3.747284] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[    3.754477] usb 1-1: Product: JMicron JMF60X SSD

[    3.759155] usb 1-1: Manufacturer: JMicron

[    3.763321] usb 1-1: SerialNumber: 0000000000033

[    3.768450] usb-storage 1-1:1.0: USB Mass Storage device detected

[    3.774754] scsi host6: usb-storage 1-1:1.0

[    3.782044] usbcore: registered new interface driver uas

[    4.830686] scsi 6:0:0:0: Direct-Access                                Dev PQ: 0 ANSI: 0 CCS

[    4.840784] sd 6:0:0:0: [sda] 63062016 512-byte logical blocks: (32.3 GB/30.1 GiB)

[    4.848579] sd 6:0:0:0: [sda] Write Protect is off

[    4.853674] sd 6:0:0:0: [sda] Asking for cache data failed

[    4.859220] sd 6:0:0:0: [sda] Assuming drive cache: write through

[    4.866576]  sda: sda1

[    4.869908] sd 6:0:0:0: [sda] Attached SCSI disk

[    4.916319] random: fast init done
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 12:11PM
Quote

I'm guessing it's the same for this synology device. If so enabling pcie in the device-tree should allow debian to find all 4 drives.

something like this in the orginal dts ?

pcie-controller {
			compatible = "marvell,armada-38x-pcie";
			status = "okay";
			device_type = "pci";
			#address-cells = <0x3>;
			#size-cells = <0x2>;
			msi-parent = <0x6>;
			bus-range = <0x0 0xff>;
			ranges = <0x82000000 0x0 0x80000 0xf0010000 0x80000 0x0 0x2000 0x82000000 0x0 0x40000 0xf0010000 0x40000 0x0 0x2000 0x82000000 0x0 0x44000 0xf0010000 0x44000 0x0 0x2000 0x82000000 0x0 0x48000 0xf0010000 0x48000 0x0 0x2000 0x82000000 0x1 0x0 0x8e80000 0x0 0x1 0x0 0x81000000 0x1 0x0 0x8e00000 0x0 0x1 0x0 0x82000000 0x2 0x0 0x4e80000 0x0 0x1 0x0 0x81000000 0x2 0x0 0x4e00000 0x0 0x1 0x0 0x82000000 0x3 0x0 0x4d80000 0x0 0x1 0x0 0x81000000 0x3 0x0 0x4d00000 0x0 0x1 0x0 0x82000000 0x4 0x0 0x4b80000 0x0 0x1 0x0 0x81000000 0x4 0x0 0x4b00000 0x0 0x1 0x0>;

			pcie@1,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x80000 0x0 0x2000>;
				reg = <0x800 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x1 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x1 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x1d 0x4>;
				marvell,pcie-port = <0x0>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x8>;
				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";
			};

			pcie@3,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x44000 0x0 0x2000>;
				reg = <0x1800 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x3 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x3 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x46 0x4>;
				marvell,pcie-port = <0x2>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x6>;
				status = "disabled";
			};

			pcie@4,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x48000 0x0 0x2000>;
				reg = <0x2000 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x4 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x4 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x47 0x4>;
				marvell,pcie-port = <0x3>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x7>;
				status = "disabled";
			};
		};
Attachments:
open | download - armada-385-synology-rs816-orig.dts (18 KB)
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 12:27PM
more or less.

most of that is covered in armada-385.dtsi which you are including at the top of your dts file, most likely all you need to do is override the status from "disabled" to "okay". It's probably something like:

&pciec {
	pcie@2,0 {
		status = "okay";
	};
};



Edited 1 time(s). Last edit at 01/22/2019 12:28PM by 1000001101000.
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 12:46PM
That's also probably why using the stock dtb is failing, the new kernel doesn't like that older style binding for pcie (and possibly others).

looking again at @bohdi 's dts it looks like that's already covered, the pcie errors are probably from the extra entry he has in there, maybe.

I'd guess the drives aren't showing up because they aren't being powered up by uboot and you're dtb isn't set up to do it either (it sure looks like it is detecting that the there are 4 sata ports detected). I think @bohdi said he has a way to do that in uboot which he prefers. Usually I go through and enable the relevant gpio pins in the dtb (largely because I keep the stock uboot on the devices I work with).

looks like you're getting pretty close.

pcie {
                        
			status = "okay";
			/*
			 * The two PCIe units are accessible through
			 * standard PCIe slots on the board.
			*/
			pcie@1,0 {
				/* Port 0, Lane 0 */
				status = "okay";
			};
			pcie@2,0 {
				/* Port 1, Lane 0 */
				status = "okay";
			};
		};



Edited 1 time(s). Last edit at 01/22/2019 12:48PM by 1000001101000.
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 10:41PM
zifxify,

> something like this in the orginal dts ?

The original DTS has old binding.
pcie-controller {


The new binding is
pciec: pcie {

------

Try booting with the armada-385-synology-ds116.dtb again. Log in to Debian and install new kernel linux-4.19.1-mvebu-tld-1 from the release thread.

And then boot with armada-385-synology-rs816.dtb.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 22, 2019 11:15PM
1000001101000,

> looking again at @bohdi 's dts it looks like
> that's already covered, the pcie errors are
> probably from the extra entry he has in there,
> maybe.

You might be right! the Armada 385 has a couple options regarding ports/lanes for PCIe. So it might be X4 for the RS816.

Quote

* x1 port only available when pcie@1,0 is
* configured as a x1 port


But let's see how the new kernel version linux-4.19.1-mvebu-tld-1 behaves with the armada-385-synology-rs816.dtb, before we change the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 23, 2019 08:36AM
Quote

But let's see how the new kernel version linux-4.19.1-mvebu-tld-1 behaves with the armada-385-synology-rs816.dtb, before we change the DTS.

:) first two drives are accessible, mountable in Debian
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'zImage'.
Load address: 0x2000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################################
	 5.1 MiB/s
done
Bytes transferred = 4502408 (44b388 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'uInitrd'.
Load address: 0x3000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################
	 4.9 MiB/s
done
Bytes transferred = 7971185 (79a171 hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: *##
	 1 MiB/s
done
Bytes transferred = 17017 (4279 hex)
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.19.1-mvebu-tld-1
   Created:      2019-01-23  15:11:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7971121 Bytes = 7.6 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 00fff278 ... 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.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    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] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, 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 init=/bin/systemd
[    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: 1017124K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31452K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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.000005] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007976] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.019061] Switching to timer-based delay loop, resolution 1ns
[    0.025085] Ignoring duplicate/late registration of read_current_timer delay
[    0.032102] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043259] Console: colour dummy device 80x30
[    0.047699] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.058264] pid_max: default: 32768 minimum: 301
[    0.062945] Security Framework initialized
[    0.067064] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.073647] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081017] CPU: Testing write buffer coherency: ok
[    0.085886] CPU0: Spectre v2: using BPIALL workaround
[    0.091021] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.155012] Setting up static identity map for 0x100000 - 0x100060
[    0.161223] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.166420] mvebu-pmsu: Initializing Power Management Service Unit
[    0.184994] rcu: Hierarchical SRCU implementation.
[    0.224993] smp: Bringing up secondary CPUs ...
[    0.285043] Booting CPU 1
[    0.287787] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.287790] CPU1: Spectre v2: using BPIALL workaround
[    0.298501] smp: Brought up 1 node, 2 CPUs
[    0.302577] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.308916] CPU: All CPU(s) started in SVC mode.
[    0.313990] devtmpfs: initialized
[    0.318960] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.326840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.336647] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.342838] prandom: seed boundary self test passed
[    0.349122] prandom: 100 self tests passed
[    0.353197] pinctrl core: initialized pinctrl subsystem
[    0.359036] NET: Registered protocol family 16
[    0.363909] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.371062] audit: initializing netlink subsys (disabled)
[    0.377007] audit: type=2000 audit(0.350:1): state=initialized audit_enabled=0 res=1
[    0.384738] cpuidle: using governor ladder
[    0.388855] cpuidle: using governor menu
[    0.392869] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.400843] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.406748] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.414802] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.435789] vgaarb: loaded
[    0.438619] SCSI subsystem initialized
[    0.445383] usbcore: registered new interface driver usbfs
[    0.450902] usbcore: registered new interface driver hub
[    0.456260] usbcore: registered new device driver usb
[    0.461687] media: Linux media interface: v0.10
[    0.466252] videodev: Linux video capture interface: v2.00
[    0.471896] pps_core: LinuxPPS API ver. 1 registered
[    0.477376] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.486528] PTP clock support registered
[    0.491170] clocksource: Switched to clocksource arm_global_timer
[    0.530330] VFS: Disk quotas dquot_6.6.0
[    0.534287] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.547304] NET: Registered protocol family 2
[    0.551961] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.559590] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.566647] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.573112] TCP: Hash tables configured (established 8192 bind 8192)
[    0.579486] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.585412] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.591873] NET: Registered protocol family 1
[    0.596472] RPC: Registered named UNIX socket transport module.
[    0.602376] RPC: Registered udp transport module.
[    0.607055] RPC: Registered tcp transport module.
[    0.611740] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.618243] Unpacking initramfs...
[    0.845272] Freeing initrd memory: 7788K
[    0.849428] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.856190] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.865550] Initialise system trusted keyrings
[    0.869988] Key type blacklist registered
[    0.874063] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.880530] zbud: loaded
[    0.883584] NFS: Registering the id_resolver key type
[    0.888616] Key type id_resolver registered
[    0.892791] Key type id_legacy registered
[    0.896784] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.903460] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.909903] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.917191] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.923683] orangefs_init: module version upstream loaded
[    0.930940] Key type asymmetric registered
[    0.935030] Asymmetric key parser 'x509' registered
[    0.939906] bounce: pool size: 64 pages
[    0.943787] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.951153] io scheduler noop registered
[    0.955063] io scheduler deadline registered
[    0.959327] io scheduler cfq registered (default)
[    0.965316] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.973987] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.979882] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.985355] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.992206] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.999384] PCI: bus0: Fast back to back transfers disabled
[    1.004946] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.012925] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.021595] PCI: bus1: Fast back to back transfers enabled
[    1.027305] pci 0000:02:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0000:00:02.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.041020] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.071807] PCI: bus2: Fast back to back transfers disabled
[    1.077384] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.084239] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.090563] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.095516] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.102711] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]
[    1.109468] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]
[    1.115712] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]
[    1.121956] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]
[    1.128193] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]
[    1.134437] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]
[    1.140674] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.145621] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]
[    1.151883] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.158765] pcieport 0000:00:02.0: enabling device (0140 -> 0143)
[    1.165267] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.231537] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.239097] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.301523] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.345522] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.353013] console [ttyS0] disabled
[    1.376642] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.385612] console [ttyS0] enabled
[    1.385612] console [ttyS0] enabled
[    1.392631] bootconsole [earlycon0] disabled
[    1.392631] bootconsole [earlycon0] disabled
[    1.421845] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    1.441833] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[    1.449964] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.459276] scsi host0: ahci
[    1.462423] scsi host1: ahci
[    1.465516] scsi host2: ahci
[    1.468626] scsi host3: ahci
[    1.471677] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 48
[    1.479108] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 48
[    1.486548] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 48
[    1.493985] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 48
[    1.502682] m25p80 spi0.0: found n25q064, expected mx25l6405d
[    1.508571] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    1.513229] 2 cmdlinepart partitions found on MTD device spi0.0
[    1.519174] Creating 2 MTD partitions on "spi0.0":
[    1.524064] 0x000000000000-0x000000400000 : "boot"
[    1.529370] 0x000000400000-0x000000800000 : "spi-rootfs"
[    1.535619] libphy: Fixed MDIO Bus: probed
[    1.540096] libphy: orion_mdio_bus: probed
[    1.547320] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.555934] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:27:27:4d
[    1.564182] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.570751] ehci-pci: EHCI PCI platform driver
[    1.575269] ehci-orion: EHCI orion driver
[    1.579711] usbcore: registered new interface driver usblp
[    1.585259] usbcore: registered new interface driver usb-storage
[    1.591469] mousedev: PS/2 mouse device common for all mice
[    1.597669] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.605348] i2c /dev entries driver
[    1.632289] gpio-fan soc:gpio-fan: GPIO fan initialized
[    1.638803] armada_thermal f10e4078.thermal: Temperature sensor reading not valid
[    1.646335] thermal thermal_zone0: failed to read out thermal zone (-5)
[    1.653267] orion_wdt: Initial timeout 171 sec
[    1.658917] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.666216] hidraw: raw HID events driver (C) Jiri Kosina
[    1.671796] usbcore: registered new interface driver usbhid
[    1.677393] usbhid: USB HID core driver
[    1.681432] drop_monitor: Initializing network drop monitor service
[    1.687940] NET: Registered protocol family 10
[    1.702904] Segment Routing with IPv6
[    1.706616] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.713128] NET: Registered protocol family 17
[    1.717615] 8021q: 802.1Q VLAN Support v1.8
[    1.721872] Key type dns_resolver registered
[    1.726247] ThumbEE CPU extension supported.
[    1.730536] Registering SWP/SWPB emulation handler
[    1.735635] registered taskstats version 1
[    1.739750] Loading compiled-in X.509 certificates
[    1.744608] zswap: loaded using pool lzo/zbud
[    1.755455] Key type big_key registered
[    1.762198] Key type encrypted registered
[    1.767678] usb_phy_generic usb3_0_phy: Linked as a consumer to regulator.3
[    1.774772] usb_phy_generic usb3_1_phy: Linked as a consumer to regulator.4
[    1.781927] v5.0-sata0: supplied by pwr_en_sata0
[    1.786614] platform f10a8000.sata:sata-port@0: Linked as a consumer to regulator.1
[    1.794351] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    1.800496] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    1.809594] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.828842] scsi host4: ahci-mvebu
[    1.832536] ata2: SATA link down (SStatus 0 SControl 300)
[    1.838006] ata1: SATA link down (SStatus 0 SControl 300)
[    1.842467] scsi host5: ahci-mvebu
[    1.843489] ata3: SATA link down (SStatus 0 SControl 300)
[    1.846926] ata5: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.852385] ata4: SATA link down (SStatus 0 SControl 300)
[    1.860291] ata6: DUMMY
[    1.868340] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.873697] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.881293] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.890574] xhci-hcd f10f0000.usb3: irq 42, io mem 0xf10f0000
[    1.896519] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    1.904835] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.912096] usb usb1: Product: xHCI Host Controller
[    1.916996] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.923471] usb usb1: SerialNumber: f10f0000.usb3
[    1.928435] hub 1-0:1.0: USB hub found
[    1.932228] hub 1-0:1.0: 1 port detected
[    1.936309] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.941662] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.949188] xhci-hcd f10f0000.usb3: Host supports USB 3.0  SuperSpeed
[    1.955694] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.963882] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    1.972191] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.979445] usb usb2: Product: xHCI Host Controller
[    1.984351] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.990819] usb usb2: SerialNumber: f10f0000.usb3
[    1.995748] hub 2-0:1.0: USB hub found
[    1.999528] hub 2-0:1.0: 1 port detected
[    2.003771] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.009116] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.016692] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.025985] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    2.031907] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.040209] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.047474] usb usb3: Product: xHCI Host Controller
[    2.052380] usb usb3: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    2.058849] usb usb3: SerialNumber: f10f8000.usb3
[    2.063787] hub 3-0:1.0: USB hub found
[    2.067566] hub 3-0:1.0: 1 port detected
[    2.071652] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.076992] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.084531] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.091031] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.099216] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    2.107526] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.114789] usb usb4: Product: xHCI Host Controller
[    2.119687] usb usb4: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    2.126163] usb usb4: SerialNumber: f10f8000.usb3
[    2.131103] hub 4-0:1.0: USB hub found
[    2.134892] hub 4-0:1.0: 1 port detected
[    2.139327] armada38x-rtc f10a3800.rtc: setting system clock to 2019-01-23 15:23:14 UTC (1548256994)
[    2.148687] v12.0-sata0: supplied by pwr_en_sata0
[    2.153454] v12.0-sata0: disabling
[    2.192280] ata5: SATA link down (SStatus 0 SControl 300)
[    2.198216] Freeing unused kernel memory: 1024K
[    2.203075] Checked W+X mappings: passed, no W+X pages found
[    2.208760] Run /init as init process
Loading, please wait...
starting version 232
[    2.248809] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.251968] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.256641] random: systemd-udevd: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
[    3.691184] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    3.871458] usb 1-1: New USB device found, idVendor=7614, idProduct=2419, bcdDevice= 1.00
[    3.879674] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.886852] usb 1-1: Product: JMicron JMF60X SSD
[    3.891497] usb 1-1: Manufacturer: JMicron
[    3.895610] usb 1-1: SerialNumber: 0000000000033
[    3.902150] usb-storage 1-1:1.0: USB Mass Storage device detected
[    3.908443] scsi host6: usb-storage 1-1:1.0
[    3.914739] usbcore: registered new interface driver uas
[    4.991613] scsi 6:0:0:0: Direct-Access                                Dev PQ: 0 ANSI: 0 CCS
[    5.001775] sd 6:0:0:0: [sda] 63062016 512-byte logical blocks: (32.3 GB/30.1 GiB)
[    5.010279] sd 6:0:0:0: [sda] Write Protect is off
[    5.015612] sd 6:0:0:0: [sda] Asking for cache data failed
[    5.021125] sd 6:0:0:0: [sda] Assuming drive cache: write through
[    5.029503]  sda: sda1
[    5.032750] sd 6:0:0:0: [sda] Attached SCSI disk
[    5.070890] random: fast init done
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 47541/1974272 files, 493514/7882496 blocks
done.
[   12.817470] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.840733] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   13.161697] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   13.180026] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   13.211635] systemd[1]: Set hostname to <debian>.
[   13.627394] systemd[1]: lvm2-monitor.service: Cannot add dependency job, ignoring: Unit lvm2-monitor.service is masked.
[   13.638355] systemd[1]: quota.service: Cannot add dependency job, ignoring: Unit quota.service is masked.
[   13.648061] systemd[1]: lvm2-lvmetad.socket: Cannot add dependency job, ignoring: Unit lvm2-lvmetad.socket is masked.
[   13.658752] systemd[1]: lvm2-lvmpolld.socket: Cannot add dependency job, ignoring: Unit lvm2-lvmpolld.socket is masked.
[   13.669803] systemd[1]: phpsessionclean.timer: Cannot add dependency job, ignoring: Unit phpsessionclean.timer is masked.
[   13.680853] systemd[1]: acpid.path: Cannot add dependency job, ignoring: Unit acpid.path is masked.
[   13.689978] systemd[1]: acpid.socket: Cannot add dependency job, ignoring: Unit acpid.socket is masked.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Reached target Swap.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Created slice System Slice.
         Mounting POSIX Message Queue File System...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
[  OK  ] Created slice system-getty.slice.
         Mounting RPC Pipe File System...
         Mounting Debug File System...
         Mounting NFSD configuration filesystem...
         Starting Journal Service...
         Starting Create list of required st…ce nodes for the current kernel...
         Starting Nameserver information manager...
         Starting Remount Root and Kernel File Systems...
[   14.554773] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Nameserver information manager.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Starting Flush Journal to Persistent Storage...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started pNFS block layout mapping daemon.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[   15.161315] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
         Mounting /tmp...
[  OK  ] Mounted /tmp.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started udev Kernel Device Manager.
[   15.478351] systemd-journald[1518]: Received request to flush runtime journal from PID 1
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
         Starting Raise network interfaces...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Found device /dev/ttyS0.
         Starting NFSv4 ID-name mapping service...
[   15.747881] sd 6:0:0:0: Attached scsi generic sg0 type 0
[  OK  ] Reached target NFS client services.
         Starting Create Volatile Files and Directories...
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Create Volatile Files and Directories.
         Starting RPC bind portmap service...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[   16.481881] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   16.490749] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Login Service...
         Starting Initialize hardware monitoring sensors...
         Starting System Logging Service...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting LSB: MD monitoring daemon...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Trigger anacron every hour.
[  OK  ] Started Run anacron jobs.
[  OK  ] Reached target Timers.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: MD monitoring daemon.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[   21.791559] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[*     ] A start job is running for Raise network interfaces (8s / 5min 2s)
[**    ] A start job is running for Raise network interfaces (9s / 5min 2s)
[***   ] A start job is running for Raise network interfaces (9s / 5min 2s)
[ ***  ] A start job is running for Raise network interfaces (10s / 5min 2s)
[  *** ] A start job is running for Raise network interfaces (11s / 5min 2s)
[   ***] A start job is running for Raise network interfaces (11s / 5min 2s)
[    **] A start job is running for Raise network interfaces (12s / 5min 2s)[   26.023849] random: crng init done
[   26.027270] random: 7 urandom warning(s) missed due to ratelimiting

[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting A high performance web server and a reverse proxy server...
         Starting NFS Mount Daemon...
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[   26.572113] NFSD: starting 45-second grace period (net f0000039)
[  OK  ] Started NFS server and services.
[  OK  ] Started A high performance web server and a reverse proxy server.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: Starts ProFTPD daemon...
         Starting LSB: Starts syslogd...
         Starting LSB: service and resource monitoring daemon...
         Starting Permit User Sessions...
         Starting LSB: start or stop rrdcached...
         Starting LSB: Start NTP daemon...
         Starting LSB: SMART monitoring daemon...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Started LSB: Starts ProFTPD daemon.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: SMART monitoring daemon.
[  OK  ] Started LSB: service and resource monitoring daemon.
[FAILED] Failed to start LSB: start or stop rrdcached.
See 'systemctl status rrdcached.service' for details.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting LSB: Starts klogd...
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: Starts klogd.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[   32.232090] fbcon: Taking over console


Debian GNU/Linux 9 debian ttyS0

debian login:

root@debian:~# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda         8:0    0 30.1G  0 disk 
`-sda1      8:1    0 30.1G  0 part /
sdb         8:16   1  2.7T  0 disk 
|-sdb1      8:17   1  2.4G  0 part 
|-sdb2      8:18   1    2G  0 part 
`-sdb3      8:19   1  2.7T  0 part 
sdc         8:32   1  2.7T  0 disk 
|-sdc1      8:33   1  2.4G  0 part 
|-sdc2      8:34   1    2G  0 part 
`-sdc3      8:35   1  2.7T  0 part 
mtdblock0  31:0    0    4M  0 disk 
mtdblock1  31:1    0    4M  0 disk
Re: Debian on Synology RS816 (Armada 385)
January 23, 2019 08:52AM
While you're working though this, keep an eye on /dev/disk/by-path. That'll let you see whether it's accessing the drive via the soc or the pcie controller.

I think your/bohdi's next steps will be to try disabling the soc sata and confirm you're accessing those disks via sata then work on enabling the other disks, though you can do it the other way around.

sorry to interrupt again, I got stuck for over a week on this exact situation and want to save others that frustration.
Re: Debian on Synology RS816 (Armada 385)
January 23, 2019 11:19AM
zifxify,

> :) first two drives are accessible, mountable in
> Debian

Cool :)

1. Before we continue, I'd like you to remove systemd from bootargs and boot with sysvinit.

init=/bin/systemd
That way we have the same reference point for other users in the forum, and make it easier for late coming RS816 users to install the rootfs and kernel on this box. After it's all working, you would then add it back in as your own preference.

2. Do you have 4 HDDs that are attached to all 4 ports right now?

Please repost the serial console log with sysvinit, and 4 HDDs attached.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 23, 2019 03:42PM
Quote

I think your/bohdi's next steps will be to try disabling the soc sata and confirm you're accessing those disks via sata then work on enabling the other disks, though you can do it the other way around.

so this means one drive accessible through pcie and another accessible via soc sata I guess ?

root@debian:~# ls -al /dev/disk/by-path
total 0
drwxr-xr-x 2 root root 160 Jan 23 14:14 .
drwxr-xr-x 7 root root 140 Jan 23 14:14 ..
lrwxrwxrwx 1 root root   9 Jan 23 14:15 platform-f10a8000.sata-ata-1 -> ../../sdb
lrwxrwxrwx 1 root root  10 Jan 23 14:15 platform-f10a8000.sata-ata-1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   9 Jan 23 14:15 platform-f10f0000.usb3-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root  10 Jan 23 14:15 platform-f10f0000.usb3-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root   9 Jan 23 14:15 platform-soc:pcie-pci-0000:02:00.0-ata-2 -> ../../sda
lrwxrwxrwx 1 root root  10 Jan 23 14:15 platform-soc:pcie-pci-0000:02:00.0-ata-2-part1 -> ../../sda1

Quote

sorry to interrupt again, I got stuck for over a week on this exact situation and want to save others that frustration.

no interruption at all,I'm glad to have your advice :)

<------>

Quote

2. Do you have 4 HDDs that are attached to all 4 ports right now?

Yes (another set of test drives. (atm)). Now all drives are already inserted at 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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'zImage'.
Load address: 0x2000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################################
	 5 MiB/s
done
Bytes transferred = 4502408 (44b388 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'uInitrd'.
Load address: 0x3000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################
	 4.9 MiB/s
done
Bytes transferred = 7971185 (79a171 hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: *##
	 1 MiB/s
done
Bytes transferred = 17017 (4279 hex)
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.19.1-mvebu-tld-1
   Created:      2019-01-23  15:11:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7971121 Bytes = 7.6 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 00fff278 ... 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.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    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] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, 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] 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: 1017124K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31452K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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.000006] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007976] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.019060] Switching to timer-based delay loop, resolution 1ns
[    0.025086] Ignoring duplicate/late registration of read_current_timer delay
[    0.032103] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043259] Console: colour dummy device 80x30
[    0.047699] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.058265] pid_max: default: 32768 minimum: 301
[    0.062945] Security Framework initialized
[    0.067064] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.073647] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081020] CPU: Testing write buffer coherency: ok
[    0.085888] CPU0: Spectre v2: using BPIALL workaround
[    0.091022] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.155012] Setting up static identity map for 0x100000 - 0x100060
[    0.161223] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.166421] mvebu-pmsu: Initializing Power Management Service Unit
[    0.184993] rcu: Hierarchical SRCU implementation.
[    0.224993] smp: Bringing up secondary CPUs ...
[    0.285042] Booting CPU 1
[    0.287784] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.287787] CPU1: Spectre v2: using BPIALL workaround
[    0.298499] smp: Brought up 1 node, 2 CPUs
[    0.302574] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.308914] CPU: All CPU(s) started in SVC mode.
[    0.313988] devtmpfs: initialized
[    0.318939] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.326808] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.336615] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.342806] prandom: seed boundary self test passed
[    0.349091] prandom: 100 self tests passed
[    0.353166] pinctrl core: initialized pinctrl subsystem
[    0.359006] NET: Registered protocol family 16
[    0.363870] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.371021] audit: initializing netlink subsys (disabled)
[    0.376951] audit: type=2000 audit(0.350:1): state=initialized audit_enabled=0 res=1
[    0.384683] cpuidle: using governor ladder
[    0.388802] cpuidle: using governor menu
[    0.392808] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.400782] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.406689] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.414743] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.435787] vgaarb: loaded
[    0.438619] SCSI subsystem initialized
[    0.445386] usbcore: registered new interface driver usbfs
[    0.450905] usbcore: registered new interface driver hub
[    0.456264] usbcore: registered new device driver usb
[    0.461688] media: Linux media interface: v0.10
[    0.466255] videodev: Linux video capture interface: v2.00
[    0.471898] pps_core: LinuxPPS API ver. 1 registered
[    0.477376] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.486527] PTP clock support registered
[    0.491157] clocksource: Switched to clocksource arm_global_timer
[    0.530368] VFS: Disk quotas dquot_6.6.0
[    0.534324] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.547348] NET: Registered protocol family 2
[    0.552005] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.559634] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.566690] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.573154] TCP: Hash tables configured (established 8192 bind 8192)
[    0.579527] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.585449] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.591911] NET: Registered protocol family 1
[    0.596510] RPC: Registered named UNIX socket transport module.
[    0.602415] RPC: Registered udp transport module.
[    0.607094] RPC: Registered tcp transport module.
[    0.611780] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.618285] Unpacking initramfs...
[    0.845161] Freeing initrd memory: 7788K
[    0.849304] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.856060] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.865430] Initialise system trusted keyrings
[    0.869869] Key type blacklist registered
[    0.873945] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.880412] zbud: loaded
[    0.883459] NFS: Registering the id_resolver key type
[    0.888491] Key type id_resolver registered
[    0.892668] Key type id_legacy registered
[    0.896662] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.903338] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.909780] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.917066] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.923560] orangefs_init: module version upstream loaded
[    0.930815] Key type asymmetric registered
[    0.934906] Asymmetric key parser 'x509' registered
[    0.939783] bounce: pool size: 64 pages
[    0.943668] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.951034] io scheduler noop registered
[    0.954945] io scheduler deadline registered
[    0.959208] io scheduler cfq registered (default)
[    0.965198] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.973871] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.979766] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.985238] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.992088] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.999258] PCI: bus0: Fast back to back transfers disabled
[    1.004820] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.012799] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.021464] PCI: bus1: Fast back to back transfers enabled
[    1.027174] pci 0000:02:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0000:00:02.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.040890] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.071784] PCI: bus2: Fast back to back transfers disabled
[    1.077360] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.084214] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.090537] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.095491] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.102686] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]
[    1.109443] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]
[    1.115687] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]
[    1.121932] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]
[    1.128170] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]
[    1.134413] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]
[    1.140651] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.145597] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]
[    1.151860] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.158741] pcieport 0000:00:02.0: enabling device (0140 -> 0143)
[    1.165241] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.231523] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.239084] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.301508] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.345648] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.353159] console [ttyS0] disabled
[    1.376794] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.385752] console [ttyS0] enabled
[    1.385752] console [ttyS0] enabled
[    1.392768] bootconsole [earlycon0] disabled
[    1.392768] bootconsole [earlycon0] disabled
[    1.422003] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    1.441999] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[    1.450130] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.459461] scsi host0: ahci
[    1.462615] scsi host1: ahci
[    1.465707] scsi host2: ahci
[    1.478826] scsi host3: ahci
[    1.481873] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 48
[    1.489304] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 48
[    1.496743] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 48
[    1.504180] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 48
[    1.512875] m25p80 spi0.0: found n25q064, expected mx25l6405d
[    1.518763] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    1.523445] 2 cmdlinepart partitions found on MTD device spi0.0
[    1.529403] Creating 2 MTD partitions on "spi0.0":
[    1.534231] 0x000000000000-0x000000400000 : "boot"
[    1.539545] 0x000000400000-0x000000800000 : "spi-rootfs"
[    1.545798] libphy: Fixed MDIO Bus: probed
[    1.550274] libphy: orion_mdio_bus: probed
[    1.557516] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.566129] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:27:27:4d
[    1.574377] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.580947] ehci-pci: EHCI PCI platform driver
[    1.585464] ehci-orion: EHCI orion driver
[    1.589910] usbcore: registered new interface driver usblp
[    1.595457] usbcore: registered new interface driver usb-storage
[    1.601668] mousedev: PS/2 mouse device common for all mice
[    1.607870] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.615550] i2c /dev entries driver
[    1.642487] gpio-fan soc:gpio-fan: GPIO fan initialized
[    1.649002] armada_thermal f10e4078.thermal: Temperature sensor reading not valid
[    1.656534] thermal thermal_zone0: failed to read out thermal zone (-5)
[    1.663466] orion_wdt: Initial timeout 171 sec
[    1.669110] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.676412] hidraw: raw HID events driver (C) Jiri Kosina
[    1.681992] usbcore: registered new interface driver usbhid
[    1.687590] usbhid: USB HID core driver
[    1.691626] drop_monitor: Initializing network drop monitor service
[    1.698138] NET: Registered protocol family 10
[    1.713100] Segment Routing with IPv6
[    1.716812] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.723326] NET: Registered protocol family 17
[    1.727814] 8021q: 802.1Q VLAN Support v1.8
[    1.732068] Key type dns_resolver registered
[    1.736436] ThumbEE CPU extension supported.
[    1.740726] Registering SWP/SWPB emulation handler
[    1.745852] registered taskstats version 1
[    1.749967] Loading compiled-in X.509 certificates
[    1.754835] zswap: loaded using pool lzo/zbud
[    1.765516] Key type big_key registered
[    1.772298] Key type encrypted registered
[    1.777779] usb_phy_generic usb3_0_phy: Linked as a consumer to regulator.3
[    1.784883] usb_phy_generic usb3_1_phy: Linked as a consumer to regulator.4
[    1.792053] v5.0-sata0: supplied by pwr_en_sata0
[    1.796736] platform f10a8000.sata:sata-port@0: Linked as a consumer to regulator.1
[    1.804479] ahci-mvebu f10a8000.sata: masking port_map 0x3 -> 0x1
[    1.810635] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x1 impl platform mode
[    1.819742] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.838990] scsi host4: ahci-mvebu
[    1.842586] ata1: SATA link down (SStatus 0 SControl 300)
[    1.848080] ata3: SATA link down (SStatus 0 SControl 300)
[    1.853552] ata4: SATA link down (SStatus 0 SControl 300)
[    1.858990] scsi host5: ahci-mvebu
[    1.862585] ata5: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.870538] ata6: DUMMY
[    1.873220] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878583] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.886176] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.895469] xhci-hcd f10f0000.usb3: irq 42, io mem 0xf10f0000
[    1.901413] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    1.909717] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.916981] usb usb1: Product: xHCI Host Controller
[    1.921886] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.928355] usb usb1: SerialNumber: f10f0000.usb3
[    1.933327] hub 1-0:1.0: USB hub found
[    1.937108] hub 1-0:1.0: 1 port detected
[    1.941205] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.946548] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.954081] xhci-hcd f10f0000.usb3: Host supports USB 3.0  SuperSpeed
[    1.960581] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.968769] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    1.977078] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.984339] usb usb2: Product: xHCI Host Controller
[    1.989237] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.995711] usb usb2: SerialNumber: f10f0000.usb3
[    2.000635] hub 2-0:1.0: USB hub found
[    2.004426] hub 2-0:1.0: 1 port detected
[    2.008658] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.014012] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.021588] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.030868] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    2.036669] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.043031] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.051342] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.058608] usb usb3: Product: xHCI Host Controller
[    2.058623] ata2.00: ATA-7: GB0250C8045, HPGA, max UDMA/133
[    2.063515] usb usb3: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    2.063518] usb usb3: SerialNumber: f10f8000.usb3
[    2.075748] hub 3-0:1.0: USB hub found
[    2.080369] ata2.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.084145] hub 3-0:1.0: 1 port detected
[    2.094665] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.100025] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.100029] ata2.00: configured for UDMA/133
[    2.107571] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.118597] scsi 1:0:0:0: Direct-Access     ATA      GB0250C8045      HPGA PQ: 0 ANSI: 5
[    2.126780] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.131603] sd 1:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.135030] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    2.142642] sd 1:0:0:0: [sda] Write Protect is off
[    2.150790] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.162861] usb usb4: Product: xHCI Host Controller
[    2.162933] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.167761] usb usb4: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    2.183441] usb usb4: SerialNumber: f10f8000.usb3
[    2.188383] hub 4-0:1.0: USB hub found
[    2.192173] hub 4-0:1.0: 1 port detected
[    2.196602] armada38x-rtc f10a3800.rtc: setting system clock to 2019-01-23 22:14:50 UTC (1548281690)
[    2.206041] v12.0-sata0: supplied by pwr_en_sata0
[    2.210807] v12.0-sata0: disabling
[    2.217513]  sda: sda1
[    2.220435] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    2.381171] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.388352] ata5.00: ATA-7: GB0250C8045, HPGA, max UDMA/133
[    2.393961] ata5.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.401795] ata5.00: configured for UDMA/133
[    2.406313] scsi 4:0:0:0: Direct-Access     ATA      GB0250C8045      HPGA PQ: 0 ANSI: 5
[    2.414927] sd 4:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.422478] sd 4:0:0:0: [sdb] Write Protect is off
[    2.427330] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.463838]  sdb: sdb1
[    2.466690] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[    2.472701] Freeing unused kernel memory: 1024K
[    2.477542] Checked W+X mappings: passed, no W+X pages found
[    2.483241] Run /init as init process
Loading, please wait...
starting version 232
[    2.523312] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.526379] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.531016] random: systemd-udevd: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
[    3.681169] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    3.861441] usb 1-1: New USB device found, idVendor=7614, idProduct=2419, bcdDevice= 1.00
[    3.869658] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.876835] usb 1-1: Product: JMicron JMF60X SSD
[    3.881480] usb 1-1: Manufacturer: JMicron
[    3.885593] usb 1-1: SerialNumber: 0000000000033
[    3.892093] usb-storage 1-1:1.0: USB Mass Storage device detected
[    3.898379] scsi host6: usb-storage 1-1:1.0
[    3.904670] usbcore: registered new interface driver uas
[    4.911603] scsi 6:0:0:0: Direct-Access                                Dev PQ: 0 ANSI: 0 CCS
[    4.921924] sd 6:0:0:0: [sdc] 63062016 512-byte logical blocks: (32.3 GB/30.1 GiB)
[    4.929710] sd 6:0:0:0: [sdc] Write Protect is off
[    4.936130] sd 6:0:0:0: [sdc] Asking for cache data failed
[    4.942016] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[    4.949335]  sdc: sdc1
[    4.952627] sd 6:0:0:0: [sdc] Attached SCSI disk
[    4.964016] random: fast init done
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 
rootfs: clean, 47541/1974272 files, 493555/7882496 blocks
done.
[   13.388993] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   13.402246] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   13.725078] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   13.743399] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   13.781614] systemd[1]: Set hostname to <debian>.
[   14.210732] systemd[1]: quota.service: Cannot add dependency job, ignoring: Unit quota.service is masked.
[   14.220429] systemd[1]: lvm2-lvmetad.socket: Cannot add dependency job, ignoring: Unit lvm2-lvmetad.socket is masked.
[   14.231246] systemd[1]: lvm2-lvmpolld.socket: Cannot add dependency job, ignoring: Unit lvm2-lvmpolld.socket is masked.
[   14.242171] systemd[1]: lvm2-monitor.service: Cannot add dependency job, ignoring: Unit lvm2-monitor.service is masked.
[   14.253127] systemd[1]: acpid.socket: Cannot add dependency job, ignoring: Unit acpid.socket is masked.
[   14.262606] systemd[1]: dm-event.socket: Cannot add dependency job, ignoring: Unit dm-event.socket is masked.
[   14.272590] systemd[1]: acpid.path: Cannot add dependency job, ignoring: Unit acpid.path is masked.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Created slice System Slice.
         Mounting NFSD configuration filesystem...
         Starting Nameserver information manager...
         Starting Load Kernel Modules...
[  OK  ] Reached target Slices.
         Mounting Debug File System...
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Listening on Syslog Socket.
         Mounting POSIX Message Queue File System...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on fsck to fsckd communication Socket.
         Starting Remount Root and Kernel File Systems...
[   14.824317] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Journal Audit Socket.
         Starting Journal Service...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Swap.
         Mounting RPC Pipe File System...
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Nameserver information manager.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Starting Flush Journal to Persistent Storage...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started pNFS block layout mapping daemon.
[   15.754349] systemd-journald[1544]: Received request to flush runtime journal from PID 1
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /tmp.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
         Starting Preprocess NFS configuration...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Found device /dev/ttyS0.
[   16.347191] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   16.355093] sd 4:0:0:0: Attached scsi generic sg1 type 0
[  OK  [0[   16.362894] sd 6:0:0:0: Attached scsi generic sg2 type 0
m] Started Create Volatile Files and Directories.
         Starting RPC bind portmap service...
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
         Starting NFSv4 ID-name mapping service...
[   16.515566] random: crng init done
[   16.518989] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Reached target NFS client services.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Trigger anacron every hour.
[   17.141871] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   17.150740] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting System Logging Service...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Login Service...
[  OK  ] Started Run anacron jobs.
         Starting Initialize hardware monitoring sensors...
         Starting LSB: MD monitoring daemon...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: MD monitoring daemon.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started Run anacron jobs.
[   22.431546] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[*     ] A start job is running for Raise network interfaces (8s / 5min 2s)
[**    ] A start job is running for Raise network interfaces (9s / 5min 2s)
[***   ] A start job is running for Raise network interfaces (9s / 5min 2s)
[ ***  ] A start job is running for Raise network interfaces (10s / 5min 2s)
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting A high performance web server and a reverse proxy server...
         Starting NFS Mount Daemon...
         Starting OpenBSD Secure Shell server...
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[  OK  ] Started /etc/rc.local Compatibility.
[   25.150984] NFSD: starting 45-second grace period (net f0000039)
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started NFS server and services.
[  OK  ] Started A high performance web server and a reverse proxy server.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: Starts ProFTPD daemon...
         Starting LSB: start or stop rrdcached...
         Starting LSB: SMART monitoring daemon...
         Starting LSB: Starts syslogd...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting Permit User Sessions...
         Starting LSB: Start NTP daemon...
         Starting LSB: service and resource monitoring daemon...
[  OK  ] Started LSB: Starts ProFTPD daemon.
[  OK  ] Started LSB: SMART monitoring daemon.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting LSB: Starts klogd...
[FAILED] Failed to start LSB: start or stop rrdcached.
See 'systemctl status rrdcached.service' for details.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started LSB: Starts klogd.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[   30.770284] fbcon: Taking over console


Debian GNU/Linux 9 debian ttyS0
Re: Debian on Synology RS816 (Armada 385)
January 23, 2019 04:24PM
Quote

so this means one drive accessible through pcie and another accessible via soc sata I guess ?
look like it. That matches what I've seen before, the soc sata taking priority over the pcie when both are enabled (only the one drive since the device-tree only enables one sata via soc). You should be able to remove the soc sata entry from the dtb so that pcie takes over for that one too:




I'm guessing those two drives are enabled either because they both use the power regulator defined below, or more likely just one of them does and uboot happens to power up both SoC connected ports and leaves them that way as part of the boot process
reg_sata0: pwr-sata0 {
		compatible = "regulator-fixed";
		regulator-name = "pwr_en_sata0";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		enable-active-high;
		regulator-boot-on;
		gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
	};

I usually handle this by manually enabling gpio pins and watching for drives powering up until i can map out what gpio pins power which drives and then add corresponding dtb entries. It sounded like @bohdi might have had a better way.
Re: Debian on Synology RS816 (Armada 385)
January 24, 2019 01:51AM
zifxify,

You ar still running systemd. To go back to sysvinit

apt-get install sysvinit-core sysvinit sysvinit-utils
and reboot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology RS816 (Armada 385)
January 24, 2019 04:32AM
Looking at the boot log, and what 10... said above. I think it is most likely that this box PCIe ports are configured as X1.

Of course, the GPL and the board schematic would be better source to determine how Synololy configured this board. But perhaps we don't need to dig in those yet.

So assuming the PICe ports are X1 for now. If it does not work, we'll modify the DTS to try X4.

@zifxify,

Please try this new DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - armada-385-synology-rs816.dtb (16.5 KB)
open | download - armada-385-synology-rs816.dts (5.9 KB)
Re: Debian on Synology RS816 (Armada 385)
January 24, 2019 11:10AM
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading zImage from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'zImage'.
Load address: 0x2000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################################
	 5.1 MiB/s
done
Bytes transferred = 4502408 (44b388 hex)
loading uInitrd from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'uInitrd'.
Load address: 0x3000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################
	 5 MiB/s
done
Bytes transferred = 7971185 (79a171 hex)
loading DTB from tftpserver ...
Using egiga0 device
TFTP from server 172.16.10.18; our IP address is 172.16.10.150
Filename 'armada-385-synology-rs816.dtb'.
Load address: 0x1000000
Loading: *##
	 967.8 KiB/s
done
Bytes transferred = 16851 (41d3 hex)
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.19.1-mvebu-tld-1
   Created:      2019-01-23  15:11:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7971121 Bytes = 7.6 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 00fff1d2 ... 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.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    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] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, 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] 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: 1017124K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31452K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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.000006] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007976] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.019060] Switching to timer-based delay loop, resolution 1ns
[    0.025084] Ignoring duplicate/late registration of read_current_timer delay
[    0.032101] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043255] Console: colour dummy device 80x30
[    0.047694] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.058259] pid_max: default: 32768 minimum: 301
[    0.062941] Security Framework initialized
[    0.067060] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.073643] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081015] CPU: Testing write buffer coherency: ok
[    0.085883] CPU0: Spectre v2: using BPIALL workaround
[    0.091016] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.155012] Setting up static identity map for 0x100000 - 0x100060
[    0.161222] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.166422] mvebu-pmsu: Initializing Power Management Service Unit
[    0.184993] rcu: Hierarchical SRCU implementation.
[    0.224992] smp: Bringing up secondary CPUs ...
[    0.285041] Booting CPU 1
[    0.287784] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.287787] CPU1: Spectre v2: using BPIALL workaround
[    0.298498] smp: Brought up 1 node, 2 CPUs
[    0.302574] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.308914] CPU: All CPU(s) started in SVC mode.
[    0.313988] devtmpfs: initialized
[    0.318930] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.326805] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.336612] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.342800] prandom: seed boundary self test passed
[    0.349088] prandom: 100 self tests passed
[    0.353162] pinctrl core: initialized pinctrl subsystem
[    0.359007] NET: Registered protocol family 16
[    0.363868] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.371019] audit: initializing netlink subsys (disabled)
[    0.376961] audit: type=2000 audit(0.350:1): state=initialized audit_enabled=0 res=1
[    0.384695] cpuidle: using governor ladder
[    0.388800] cpuidle: using governor menu
[    0.392808] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.400783] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.406689] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.414743] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.435782] vgaarb: loaded
[    0.438611] SCSI subsystem initialized
[    0.442905] usbcore: registered new interface driver usbfs
[    0.448443] usbcore: registered new interface driver hub
[    0.453784] usbcore: registered new device driver usb
[    0.459233] media: Linux media interface: v0.10
[    0.463784] videodev: Linux video capture interface: v2.00
[    0.469419] pps_core: LinuxPPS API ver. 1 registered
[    0.474359] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.484038] PTP clock support registered
[    0.488685] clocksource: Switched to clocksource arm_global_timer
[    0.527769] VFS: Disk quotas dquot_6.6.0
[    0.531734] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.544738] NET: Registered protocol family 2
[    0.549397] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.557026] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.564081] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.570545] TCP: Hash tables configured (established 8192 bind 8192)
[    0.576918] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.582839] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.589299] NET: Registered protocol family 1
[    0.593898] RPC: Registered named UNIX socket transport module.
[    0.599803] RPC: Registered udp transport module.
[    0.604482] RPC: Registered tcp transport module.
[    0.609167] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.615671] Unpacking initramfs...
[    0.842534] Freeing initrd memory: 7788K
[    0.846671] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.853420] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.862796] Initialise system trusted keyrings
[    0.867235] Key type blacklist registered
[    0.871307] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.877773] zbud: loaded
[    0.880816] NFS: Registering the id_resolver key type
[    0.885848] Key type id_resolver registered
[    0.890024] Key type id_legacy registered
[    0.894017] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.900696] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.907137] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.914427] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.920917] orangefs_init: module version upstream loaded
[    0.928164] Key type asymmetric registered
[    0.932253] Asymmetric key parser 'x509' registered
[    0.937129] bounce: pool size: 64 pages
[    0.941011] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.948376] io scheduler noop registered
[    0.952288] io scheduler deadline registered
[    0.956551] io scheduler cfq registered (default)
[    0.962521] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.971221] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.977116] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.982589] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.989440] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.996747] PCI: bus0: Fast back to back transfers disabled
[    1.002309] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.010289] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.018259] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.026915] PCI: bus1: Fast back to back transfers enabled
[    1.032634] pci 0000:02:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0000:00:02.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.046347] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.079312] PCI: bus2: Fast back to back transfers disabled
[    1.085549] PCI: bus3: Fast back to back transfers enabled
[    1.091053] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.097895] pci 0000:00:02.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.104227] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.109181] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.116369] pci 0000:02:00.0: BAR 5: assigned [mem 0xe0010000-0xe00107ff]
[    1.123132] pci 0000:02:00.0: BAR 4: assigned [io  0x10000-0x1001f]
[    1.129377] pci 0000:02:00.0: BAR 0: assigned [io  0x10020-0x10027]
[    1.135615] pci 0000:02:00.0: BAR 2: assigned [io  0x10028-0x1002f]
[    1.141858] pci 0000:02:00.0: BAR 1: assigned [io  0x10030-0x10033]
[    1.148095] pci 0000:02:00.0: BAR 3: assigned [io  0x10034-0x10037]
[    1.154359] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.159306] pci 0000:00:02.0:   bridge window [io  0x10000-0x10fff]
[    1.165543] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.172306] pci 0000:00:03.0: PCI bridge to [bus 03]
[    1.177371] pcieport 0000:00:02.0: enabling device (0140 -> 0143)
[    1.183944] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.249040] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.256583] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.319036] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.363027] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.370552] console [ttyS0] disabled
[    1.394184] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.403141] console [ttyS0] enabled
[    1.403141] console [ttyS0] enabled
[    1.410156] bootconsole [earlycon0] disabled
[    1.410156] bootconsole [earlycon0] disabled
[    1.439381] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 12500000) is a 16550A
[    1.459391] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[    1.467522] ahci 0000:02:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.476838] scsi host0: ahci
[    1.479998] scsi host1: ahci
[    1.483087] scsi host2: ahci
[    1.486176] scsi host3: ahci
[    1.489220] ata1: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010100 irq 47
[    1.496652] ata2: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010180 irq 47
[    1.504093] ata3: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010200 irq 47
[    1.511530] ata4: SATA max UDMA/133 abar m2048@0xe0010000 port 0xe0010280 irq 47
[    1.520012] m25p80 spi0.0: found n25q064, expected mx25l6405d
[    1.525900] m25p80 spi0.0: n25q064 (8192 Kbytes)
[    1.530556] 2 cmdlinepart partitions found on MTD device spi0.0
[    1.536501] Creating 2 MTD partitions on "spi0.0":
[    1.541393] 0x000000000000-0x000000400000 : "boot"
[    1.546687] 0x000000400000-0x000000800000 : "spi-rootfs"
[    1.552935] libphy: Fixed MDIO Bus: probed
[    1.557415] libphy: orion_mdio_bus: probed
[    1.564507] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.573122] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:27:27:4d
[    1.581364] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.587933] ehci-pci: EHCI PCI platform driver
[    1.592460] ehci-orion: EHCI orion driver
[    1.596898] usbcore: registered new interface driver usblp
[    1.602443] usbcore: registered new interface driver usb-storage
[    1.608644] mousedev: PS/2 mouse device common for all mice
[    1.614845] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.622520] i2c /dev entries driver
[    1.649115] gpio-fan soc:gpio-fan: GPIO fan initialized
[    1.655624] armada_thermal f10e4078.thermal: Temperature sensor reading not valid
[    1.663153] thermal thermal_zone0: failed to read out thermal zone (-5)
[    1.670071] orion_wdt: Initial timeout 171 sec
[    1.675739] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.683068] hidraw: raw HID events driver (C) Jiri Kosina
[    1.688637] usbcore: registered new interface driver usbhid
[    1.694246] usbhid: USB HID core driver
[    1.698270] drop_monitor: Initializing network drop monitor service
[    1.704787] NET: Registered protocol family 10
[    1.709727] Segment Routing with IPv6
[    1.713442] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.719942] NET: Registered protocol family 17
[    1.724430] 8021q: 802.1Q VLAN Support v1.8
[    1.728649] Key type dns_resolver registered
[    1.733031] ThumbEE CPU extension supported.
[    1.737322] Registering SWP/SWPB emulation handler
[    1.742449] registered taskstats version 1
[    1.746563] Loading compiled-in X.509 certificates
[    1.751421] zswap: loaded using pool lzo/zbud
[    1.762267] Key type big_key registered
[    1.769060] Key type encrypted registered
[    1.774532] usb_phy_generic usb3_0_phy: Linked as a consumer to regulator.3
[    1.781849] usb_phy_generic usb3_1_phy: Linked as a consumer to regulator.4
[    1.789093] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.794457] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.802119] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.811431] xhci-hcd f10f0000.usb3: irq 41, io mem 0xf10f0000
[    1.817371] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    1.825693] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.832965] usb usb1: Product: xHCI Host Controller
[    1.837864] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.844362] usb usb1: SerialNumber: f10f0000.usb3
[    1.849401] hub 1-0:1.0: USB hub found
[    1.852478] ata1: SATA link down (SStatus 0 SControl 300)
[    1.853196] hub 1-0:1.0: 1 port detected
[    1.858642] ata3: SATA link down (SStatus 0 SControl 300)
[    1.868012] ata4: SATA link down (SStatus 0 SControl 300)
[    1.868188] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878810] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886345] xhci-hcd f10f0000.usb3: Host supports USB 3.0  SuperSpeed
[    1.892854] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.901045] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    1.909355] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.916610] usb usb2: Product: xHCI Host Controller
[    1.921517] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.927986] usb usb2: SerialNumber: f10f0000.usb3
[    1.932923] hub 2-0:1.0: USB hub found
[    1.936702] hub 2-0:1.0: 1 port detected
[    1.940951] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.946295] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.953881] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.963175] xhci-hcd f10f8000.usb3: irq 42, io mem 0xf10f8000
[    1.969105] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    1.977407] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.984673] usb usb3: Product: xHCI Host Controller
[    1.989579] usb usb3: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    1.996047] usb usb3: SerialNumber: f10f8000.usb3
[    2.000988] hub 3-0:1.0: USB hub found
[    2.004768] hub 3-0:1.0: 1 port detected
[    2.008855] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.014196] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.021733] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.028231] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.036417] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    2.044729] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.048705] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.051991] usb usb4: Product: xHCI Host Controller
[    2.059179] ata2.00: ATA-7: GB0250C8045, HPGA, max UDMA/133
[    2.063093] usb usb4: Manufacturer: Linux 4.19.1-mvebu-tld-1 xhci-hcd
[    2.068699] ata2.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.075151] usb usb4: SerialNumber: f10f8000.usb3
[    2.083000] ata2.00: configured for UDMA/133
[    2.086548] hub 4-0:1.0: USB hub found
[    2.094428] hub 4-0:1.0: 1 port detected
[    2.098929] armada38x-rtc f10a3800.rtc: setting system clock to 2019-01-24 17:50:32 UTC (1548352232)
[    2.108376] scsi 1:0:0:0: Direct-Access     ATA      GB0250C8045      HPGA PQ: 0 ANSI: 5
[    2.116922] v5.0-sata0: supplied by pwr_en_sata0
[    2.116924] sd 1:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.116952] sd 1:0:0:0: [sda] Write Protect is off
[    2.121706] v12.0-sata0: supplied by pwr_en_sata0
[    2.134078] v5.0-sata0: disabling
[    2.138795] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.142039] v12.0-sata0: disabling
[    2.188417]  sda: sda1
[    2.191273] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    2.197275] Freeing unused kernel memory: 1024K
[    2.202220] Checked W+X mappings: passed, no W+X pages found
[    2.207906] Run /init as init process
Loading, please wait...
starting version 232
[    2.248452] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.251587] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.256222] random: systemd-udevd: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
[    3.708696] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    3.888969] usb 3-1: New USB device found, idVendor=7614, idProduct=2419, bcdDevice= 1.00
[    3.897185] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.904363] usb 3-1: Product: JMicron JMF60X SSD
[    3.909007] usb 3-1: Manufacturer: JMicron
[    3.913120] usb 3-1: SerialNumber: 0000000000033
[    3.919551] usb-storage 3-1:1.0: USB Mass Storage device detected
[    3.925830] scsi host4: usb-storage 3-1:1.0
[    3.932158] usbcore: registered new interface driver uas
[    4.989125] scsi 4:0:0:0: Direct-Access                                Dev PQ: 0 ANSI: 0 CCS
[    4.998215] sd 4:0:0:0: [sdb] 63062016 512-byte logical blocks: (32.3 GB/30.1 GiB)
[    5.006079] sd 4:0:0:0: [sdb] Write Protect is off
[    5.011085] sd 4:0:0:0: [sdb] Asking for cache data failed
[    5.016596] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[    5.023909]  sdb: sdb1
[    5.027174] sd 4:0:0:0: [sdb] Attached SCSI disk
[    5.044073] random: fast init done
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1 
rootfs: recovering journal
rootfs: Clearing orphaned inode 771100 (uid=0, gid=0, mode=0100644, size=100748)
rootfs: clean, 21904/1974272 files, 343764/7882496 blocks
done.
[   26.776194] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   26.789451] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.
[....] Setting hostname to 'debian'...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[ ok 8[?25h[?0c[   27.758881] random: crng init done
[   27.762307] random: 7 urandom warning(s) missed due to ratelimiting
.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[   28.107069] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   28.139442] sd 4:0:0:0: Attached scsi generic sg1 type 0
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[ ok 8[?25h[?0c.
[   28.856300] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
 /tmp[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[ ok 8[?25h[?0cdone.
[   29.889379] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   29.898246] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
[   29.905668] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:27:27:4d
Sending on   LPF/eth0/00:50:43:27:27:4d
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
[   35.229072] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   35.236952] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPREQUEST of 172.16.10.39 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 172.16.10.39 from 172.16.10.1
DHCPACK of 172.16.10.39 from 172.16.10.1
bound to 172.16.10.39 -- renewal in 2767 seconds.
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2662 (syslogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[warn8[?25h[?0c (warning).
[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2661 (klogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[ ok 8[?25h[?0c.


Debian GNU/Linux 9 debian ttyS0

debian login: 
Re: Debian on Synology RS816 (Armada 385)
January 24, 2019 11:25AM
looks like progress, the drive is still accessible with SoC sata disabled.

is this a typo?

pcie@3,0 {
				/* Port 2, Lane 0 */
				status = "okay";
};
pcie@3,0 {
				/* Port 3, Lane 0 */
				status = "okay";
};
Re: Debian on Synology RS816 (Armada 385)
January 25, 2019 01:41AM
Yes, that was a copy/paste typo!

@zifxify,

Please try the new DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - armada-385-synology-rs816.dtb (16.5 KB)
open | download - armada-385-synology-rs816.dts (5.9 KB)
Re: Debian on Synology RS816 (Armada 385)
January 25, 2019 10:41AM
still one drive accessible

root@debian:~# ls -al /dev/disk/by-path
total 0
drwxr-xr-x 2 root root 120 Jan 25 09:37 .
drwxr-xr-x 7 root root 140 Jan 25 09:37 ..
lrwxrwxrwx 1 root root   9 Jan 25 09:38 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  10 Jan 25 09:38 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   9 Jan 25 09:38 platform-soc:pcie-pci-0000:02:00.0-ata-2 -> ../../sda
lrwxrwxrwx 1 root root  10 Jan 25 09:38 platform-soc:pcie-pci-0000:02:00.0-ata-2-part1 -> ../../sda1
Re: Debian on Synology RS816 (Armada 385)
January 25, 2019 10:53AM
Typically what I do at this point is pull up the gpio binding documentation for the SoC and determine what range of GPIO pins are likely to be the power pins for the drives (ie not reserved for the ethernet controller/uart/etc) and loop through them with a script enabling each while watching dmesg for the drive being detected. Once I've identified all the pins I create the appropriate device-tree entries for them.

These would be similar to what you have already for drive 1:

reg_sata0: pwr-sata0 {
		compatible = "regulator-fixed";
		regulator-name = "pwr_en_sata0";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		enable-active-high;
		regulator-boot-on;
		gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
	};

I use a similar approach for identifying leds and buttons.

As usual there are often better ways to accomplish this but it doesn't require being able to modify the bootloader or relying on the the stock firmware/source code.
Re: Debian on Synology RS816 (Armada 385)
January 25, 2019 01:44PM
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})

GPIO pin 6 turns on the led controller.
For Ethernet and drive leds, I assume this works different than for example status led and power-on led controlled by UART1.
Ethernet 1 led works correctly. When unplugging Ethernet 1 cable, led goes out. Ethernet 2 (not defined yet?)

Drive led 1 is out
Drive led {2,3,4} stays orange even when GPIO 37 is high

I do not find the right GPIO to turn on sata drive 1 or the way how to change the color of the drive leds

ls -al /dev/disk/by-path
total 0
drwxr-xr-x 2 root root 200 Jan 25 12:19 .
drwxr-xr-x 7 root root 140 Jan 25 11:55 ..
lrwxrwxrwx 1 root root   9 Jan 25 11:55 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  10 Jan 25 11:55 platform-f10f8000.usb3-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   9 Jan 25 12:18 platform-soc:pcie-pci-0000:02:00.0-ata-2 -> ../../sda
lrwxrwxrwx 1 root root  10 Jan 25 12:18 platform-soc:pcie-pci-0000:02:00.0-ata-2-part1 -> ../../sda1
lrwxrwxrwx 1 root root   9 Jan 25 12:19 platform-soc:pcie-pci-0000:02:00.0-ata-3 -> ../../sdc
lrwxrwxrwx 1 root root  10 Jan 25 12:19 platform-soc:pcie-pci-0000:02:00.0-ata-3-part1 -> ../../sdc1
lrwxrwxrwx 1 root root   9 Jan 25 12:19 platform-soc:pcie-pci-0000:02:00.0-ata-4 -> ../../sdd
lrwxrwxrwx 1 root root  10 Jan 25 12:19 platform-soc:pcie-pci-0000:02:00.0-ata-4-part1 -> ../../sdd1
Re: Debian on Synology RS816 (Armada 385)
January 25, 2019 02:31PM
sounds like a good start.

sometimes if you have hardware defined in the dtb that doesn't actually exist it will reserve the pins that you need which will keep you from changing them. I just had that with a device where the drive power pin was one of the i2c pins, the device I copied the original dts from was using i2c for the rtc but the device I was working with didn't use i2c at all and had re-used the pin.

often times the Ethernet led's are controlled directly by the Ethernet chip, likewise with drive leds and the sata chip. There may or may not be a specific gpio pin that drives them.
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: