Debian on Synology DS115j
April 17, 2021 06:52PM
I'm coming from https://forum.doozan.com/read.php?2,32146 here.

I have a DS115j which I'd like to install debian on, all I'm missing is the dtb for it.
It's using the Armada 370, so the dtb for the DS213j should be very similar.
I'd like to try creating a dtb myself, but I can't find any dts source files which I could get clues from, nor do I reall know if and how I could get a dtb from original firmware (probably not).
Decompiling the DS213j gave me a very complicated looking dts, which I don't know if I can really work with, I'm a newbie :/

Any help in getting / making a dtb for the DS115j would be very appreciated.

Thank you!
Re: Debian on Synology DS115j
April 17, 2021 10:48PM
deelan,

> I have a DS115j which I'd like to install debian
> on, all I'm missing is the dtb for it.
> It's using the Armada 370, so the dtb for the
> DS213j should be very similar.

What you should do is:

- Connect serial console
- Power up, Interrupt serial console and

printenv
help


- And then boot all the way into stock OS

boot


- Copy the entire serial bootlog after you have booted into stock OS. And post here.

The ds213j and dds115j use the same SoC. But the details (GPIOs, other HW like sensor, fan..) might be different.

I could create an intial DTS so you can use to boot the box, but the rest of the works depends on how much HW information you can gather (either by googling or getting the GPL source code from Synology).

As always, I might not have time to do a whole lot after the initial DTS. So it will be a long process. The more information you have and the more you can actively collaborate with me, the faster it will go. But since I'm helping multiple boards in the forum, I'll go back and forth between different topics.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology DS115j
April 18, 2021 04:51AM
*Power ON*
BootROM 1.08

Booting from SPI flash

High speed PHY - Version: 2.1.2 (COM-PHY-V20) 

Update PEX Device ID 0x67100

High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver 4.5.0 

DDR3 Training Sequence - Ended Successfully 

Status = MV_OK

BootROM: Image checksum verification PASSED


 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2011.12-SYNO-59c5a76-2014-03-31 (Apr 01 2014 - 09:30:30) Marvell version: v2011.12 2013_Q1.2

Board: SYNO-DS115j
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 800 [MHz]
       L2     @ 533 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 533 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  256 MiB

Map:   Code:		0x0ff09000:0x0ffa16e4
       BSS:		0x0ffef4a0
       Stack:		0x0f9f8ef8
       Heap:		0x0f9f9000:0x0ff09000

MMC:   MRVL_MMC: 0
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
*** Warning - bad CRC, using default environment

PEX 0.0(0): Detected No Link.
PEX 0.1(1): Detected No Link.
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)

Synology Model: DS115j
Fan Status: Good

Net:   egiga0 [PRIME]
Press Ctrl+C to abort autoboot in 3 second
Marvell>>
help
Marvell>> help
?       - alias for 'help'
SatR    - Sample At Reset sub-system

WOLTest - WOLTest	- Wake On Lan u-boot testing

base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
bubt    - bubt	- Burn an image on the Boot SPI Flash.

chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
date    - get/set/reset date & time
ddrPhyRead- ddrPhyRead - Read DDR PHY register

ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- diskboot- boot from IDE device

dma     - dma	- Perform DMA using the XOR engine

echo    - echo args to console
editenv - edit environment variable
eeprom  - EEPROM sub-system
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
ide     - ide     - IDE sub-system

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ir      - ir	- reading and changing MV internal register values.

itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - map	- Diasplay address decode windows

md      - memory display
me      - me	- PCI master enable

mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mp      - mp	- map PCI BAR

mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
pciePhyRead- phyRead	- Read PCI-E Phy register

pciePhyWrite- pciePhyWrite	- Write PCI-E Phy register

phyRead - phyRead	- Read Phy register

phyWrite- phyWrite	- Write Phy register

ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
rcvr    - rcvr	- Satrt recovery process (Distress Beacon with TFTP server)

reset   - Perform RESET of the CPU
resetenv- resetenv	- earse environment sector to reset all variables to default.

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
se      - se	- PCI Slave enable

setenv  - set environment variables
sf      - SPI flash sub-system
sg      - sg	- scanning the PHYs status

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sp      - sp	- Scan PCI Interface [bus].

sspi    - SPI utility command
syno_pwoff- syno_pwoff    - bring the system down

temp    - temp	- Display the device temprature.

tempCmd0- tempCmd - This command allocated for monitor extintion

tempCmd1- tempCmd - This command allocated for monitor extintion

tempCmd2- tempCmd - This command allocated for monitor extintion

tempCmd3- tempCmd - This command allocated for monitor extintion

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
training- training	- prints the results of the DDR3 Training.

true    - do nothing, successfully
ts_report- ts_report	- report touch screen cooridate

ts_test - ts_test	- test touch screen

ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
whoAmI  - - reading CPU ID

Marvell>>
printenv
Marvell>> printenv
CASset=min
MALLOC_len=5
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 ip=off initrd=0x8000040,8M root=/dev/sda1 rw syno_hw_version=DS115j ihd_num=0 netif_num=1 flash_size=8
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=sf probe 0 50000000;bootm 0xf40c0000 0xf4390000
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=no
enaWrAllo=no
eth1addr=00:50:43:20:04:90
eth1mtu=1500
ethact=egiga0
ethaddr=00:50:43:10:20:04
ethmtu=1500
ethprime=egiga0
image_name=uImage
initrd_name=uInitrd
ipaddr=10.4.50.136
loadaddr=0x02000000
loads_echo=0
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=00:50:43:90:04:10
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=10.4.50.68
setL2CacheWT=no
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 1464/65532 bytes
Marvell>>
boot
Marvell>> boot
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
## Booting kernel from Legacy Image at f40c0000 ...
   Image Name:   Linux-3.2.40
   Created:      2021-03-04   9:57:08 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2159848 Bytes = 2.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at f4390000 ...
   Image Name:   synology_armada370_ds115j 25556
   Created:      2021-03-04  11:38:37 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3538520 Bytes = 3.4 MiB
   Load Address: 08000000
   Entry Point:  08000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.40 (root@build3) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25556 Thu Mar 4 17:56:47 CST 2021
[    0.000000] CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=18c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: Marvell Armada-370
[    0.000000] Using UBoot passing parameters structure
[    0.000000] >>>>>>>Tag MAC 04:20:10:43:50:00
[    0.000000] >>>>>>>Tag MAC 00:00:00:00:00:00
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 ip=off initrd=0x8000040,8M root=/dev/sda1 rw syno_hw_version=DS115j ihd_num=0 netif_num=1 flash_size=8
[    0.000000] Synology Hardware Version: DS115j-j
[    0.000000] Internal HD num: 0
[    0.000000] Internal netif num: 1
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 239496k/239496k available, 22648k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xfa800000   ( 672 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0532000   (5288 kB)
[    0.000000]       .init : 0xc0532000 - 0xc055b000   ( 164 kB)
[    0.000000]       .data : 0xc055c000 - 0xc05837e0   ( 158 kB)
[    0.000000]        .bss : 0xc0583804 - 0xc05e0bd0   ( 373 kB)
[    0.000000] NR_IRQS:256
[    0.000000] a370_time_init
[    0.000000] sched_clock: 32 bits at 533MHz, resolution 1ns, wraps every 8058ms
[    6.177431] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    6.217402] pid_max: default: 32768 minimum: 301
[    6.217527] Security Framework initialized
[    6.217568] AppArmor: AppArmor initialized
[    6.217625] Mount-cache hash table entries: 512
[    6.217964] CPU: Testing write buffer coherency: ok
[    6.218645] devtmpfs: initialized
[    6.222661] xor: measuring software checksum speed
[    6.267371]    arm4regs  :   817.200 MB/sec
[    6.317371]    8regs     :   661.600 MB/sec
[    6.367366]    32regs    :   699.600 MB/sec
[    6.367378] xor: using function: arm4regs (817.200 MB/sec)
[    6.367530] NET: Registered protocol family 16
[    6.369718] L0 cache Enabled
[    6.369732] Speculative Prefetch Disabled
[    6.369760] Aurora L2 Cache Enabled
[    6.369794] Support IO coherency.
[    6.369810] Enable DLB and DRAM write coalescing
[    6.381480] 
[    6.381488] CPU Interface
[    6.381494] -------------
[    6.381501] SDRAM_CS0 ....base 00000000, size 256MB 
[    6.381518] SDRAM_CS1 ....disable
[    6.381527] SDRAM_CS2 ....disable
[    6.381536] SDRAM_CS3 ....disable
[    6.381544] DEVICE_CS0 ....base f2000000, size  32MB 
[    6.381562] DEVICE_CS1 ....no such
[    6.381584] DEVICE_CS2 ....no such
[    6.381605] DEVICE_CS3 ....no such
[    6.381627] PEX0_MEM ....base e0000000, size  32MB 
[    6.381642] PEX0_IO ....base f1100000, size   1MB 
[    6.381657] PEX1_MEM ....base e2000000, size  32MB 
[    6.381672] PEX1_IO ....base f1200000, size   1MB 
[    6.381688] INTER_REGS ....base f1000000, size   1MB 
[    6.381702] DMA_UART ....no such
[    6.381724] SPI_CS0 ....base f0000000, size  16MB 
[    6.381740] SPI_CS1 ....no such
[    6.381761] SPI_CS2 ....no such
[    6.381782] SPI_CS3 ....no such
[    6.381803] SPI_CS4 ....no such
[    6.381825] SPI_CS5 ....no such
[    6.381846] SPI_CS6 ....no such
[    6.381867] SPI_CS7 ....no such
[    6.381888] BOOT_ROM_CS ....no such
[    6.381909] DEV_BOOTCS ....base f5000000, size  16MB 
[    6.381927] PMU_SCRATCHPAD ....no such
[    6.381948] CRYPT0_ENG ....base c8010000, size  64KB 
[    6.381966] 
[    6.381970]   Marvell Armada370 Board-- SYNO-DS115j  Soc: MV6710 A1 LE
[    6.381988]   LSP version: linux-3.2.y-2013_Q1.2p2
[    6.381996] 
[    6.381999] 
[    6.382010]  Detected Tclk 200000000, SysClk 533000000, FabricClk 533000000
[    6.384276] Synology Armada370 DS115j GPIO Init
[    6.385897] Marvell USB EHCI Host controller #0: c4047000
[    6.386306] Marvell USB EHCI Host controller #1: c405ce00
[    6.386835] PCI: bus0: Fast back to back transfers enabled
[    6.386859] mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
[    6.386869] mvPexLocalDevNumSet: ERR. Invalid PEX interface 1
[    6.397570] bio: create slab <bio-0> at 0
[    6.567649] raid6: int32x1    108 MB/s
[    6.737630] raid6: int32x2    158 MB/s
[    6.907629] raid6: int32x4    179 MB/s
[    7.077616] raid6: int32x8    179 MB/s
[    7.077626] raid6: using algorithm int32x4 (179 MB/s)
[    7.078425] SCSI subsystem initialized
[    7.080210] Switching to clocksource armada370_clocksource
[    7.080417] AppArmor: AppArmor Filesystem Enabled
[    7.082815] NET: Registered protocol family 2
[    7.082939] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    7.083190] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    7.083314] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    7.083412] TCP: Hash tables configured (established 8192 bind 8192)
[    7.083423] TCP reno registered
[    7.083436] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.083456] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.083632] NET: Registered protocol family 1
[    7.083869] RPC: Registered named UNIX socket transport module.
[    7.083882] RPC: Registered udp transport module.
[    7.083892] RPC: Registered tcp transport module.
[    7.083901] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.084135] Trying to unpack rootfs image as initramfs...
[   10.198079] rootfs image is not initramfs (no cpio magic); looks like an initrd
[   10.235338] Freeing initrd memory: 8192K
[   10.235724] XOR registered 4 channels
[   10.235736] cesadev_init(c053a444)
[   10.236682] Armada XP hwmon thermal sensor initialized.
[   10.236811] Initializing Armada-XP CPU power management  (WFI)
[   10.237568] audit: initializing netlink socket (disabled)
[   10.237609] type=2000 audit(4.050:1): initialized
[   10.237922] VFS: Disk quotas dquot_6.5.2
[   10.237966] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.238672] msgmni has been set to 483
[   10.239939] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[   10.239956] io scheduler noop registered
[   10.240008] io scheduler cfq registered (default)
[   10.240396] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[   10.241739] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 41) is a 16550A
[   10.866400] console [ttyS0] enabled
[   10.870434] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 42) is a 16550A
[   10.885528] brd: module loaded
[   10.888610] Loading iSCSI transport class v2.0-870.
[   10.894974] sata_mv sata_mv.0: slots 32 ports 2
[   10.901573] scsi0 : sata_mv
[   10.904932] scsi1 : sata_mv
[   10.908146] ata1: SATA max UDMA/133 irq 55
[   10.912300] ata2: SATA max UDMA/133 irq 55
[   13.904668] physmap platform flash device: 00800000 at f0000000
[   13.913348] SPI Serial flash detected @ 0xf0000000, 8192KB (128sec x 64KB)
[   13.920301] Searching for RedBoot partition table in SYNOMTD-0 at offset 0x7f0000
[   13.967720] 6 RedBoot partitions found on MTD device SYNOMTD-0
[   13.973600] SYNOMTD flash bank 0: Using RedBoot partition definition
[   13.979992] Creating 6 MTD partitions on "SYNOMTD-0":
[   13.985087] 0x000000000000-0x0000000c0000 : "RedBoot"
[   13.991361] 0x0000000c0000-0x000000390000 : "zImage"
[   13.997401] 0x000000390000-0x0000007d0000 : "rd.gz"
[   14.003411] 0x0000007d0000-0x0000007e0000 : "vendor"
[   14.008502] vender Mac0 address : 00:11:32:<REDACTED>
[   14.013438] vender Mac1 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
[   14.019307] vender Mac2 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
[   14.025186] vender Mac3 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
[   14.031068] serial number='<REDACTED>'
[   14.036021] 0x0000007e0000-0x0000007f0000 : "RedBoot Config"
[   14.043015] 0x0000007f0000-0x000000800000 : "FIS directory"
[   14.049880] mv_eth_probe: port_mask=0x3, cpu_mask=0x1 
[   14.055200]   o 2 Giga ports supported
[   14.058973]   o SKB recycle supported (Enabled)
[   14.063539]   o NETA acceleration mode 1
[   14.067486]   o RX Queue support: 8 Queues * 128 Descriptors
[   14.073188]   o TX Queue support: 8 Queues * 532 Descriptors
[   14.078880]   o GSO supported
[   14.081872]   o GRO supported
[   14.084856]   o Receive checksum offload supported
[   14.089674]   o Transmit checksum offload supported
[   14.094587]   o Driver ERROR statistics enabled
[   14.099142] 
[   14.100812]   o Loading network interface(s)
[   14.105116] 
[   14.106616]   o Port 0 is connected to Linux netdevice
[   14.112308] 	giga p=0: mtu=1500, mac=c4027e44
[   14.120706]     o eth0, ifindex = 2, GbE port = 0
[   14.125270]     o eth0, phy chipid = 1410e90, Support WOL = 0
[   14.131256] 
[   14.132763] 
[   14.132766]   o Warning: GbE port 1 is not connected to PHY/RGMII/Switch, skip initialization
[   14.132777] 
[   14.144342] 
[   14.146402] i2c /dev entries driver
[   14.150835] md: linear personality registered for level -1
[   14.156356] md: raid0 personality registered for level 0
[   14.161720] md: raid1 personality registered for level 1
[   14.167064] md: raid10 personality registered for level 10
[   14.172591] md: raid6 personality registered for level 6
[   14.177934] md: raid5 personality registered for level 5
[   14.183287] md: raid4 personality registered for level 4
[   14.189052] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[   14.197704] cpuidle: using governor ladder
[   14.202078] cpuidle: using governor menu
[   14.206178] cancel mvsdio probe
[   14.209648] TCP cubic registered
[   14.212923] NET: Registered protocol family 17
[   14.217432] Registering the dns_resolver key type
[   14.222308] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[   14.230719] registered taskstats version 1
[   14.360270] ata1: SATA link down (SStatus 0 SControl F300)
[   14.710253] ata2: SATA link down (SStatus 0 SControl F300)
[   14.715848] md: Waiting for all devices to be available before autodetect
[   14.722693] md: If you don't use raid, use raid=noautodetect
[   14.729142] md: Autodetecting RAID arrays.
[   14.733295] md: Scanned 0 and added 0 devices.
[   14.737765] md: autorun ...
[   14.740583] md: ... autorun DONE.
[   14.744044] RAMDISK: lzma image found at block 0
[   18.071158] VFS: Mounted root (ext2 filesystem) on device 1:0.
START /linuxrc.syno
Insert basic USB modules...
:: Loading module usb-common ... [  OK  ]
:: Loading module usbcore[   18.475107] usbcore: registered new interface driver usbfs
[   18.503268] usbcore: registered new interface driver hub
[   18.537845] usbcore: registered new interface driver ethub
[   18.575622] usbcore: registered new device driver usb
 ... [  OK  ]
:: Loading module ehci-hcd[   18.695841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   18.702520] ehci_marvell ehci_marvell.0: Marvell Orion EHCI
[   18.708194] ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1
[   18.740311] ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
[   18.760255] ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
[   18.771409] hub 1-0:1.0: USB hub found
[   18.775217] hub 1-0:1.0: 1 port detected
[   18.794178] ehci_marvell ehci_marvell.1: Marvell Orion EHCI
[   18.799838] ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2
[   18.847044] ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
[   18.881026] ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
[   18.914503] hub 2-0:1.0: USB hub found
[   18.918309] hub 2-0:1.0: 1 port detected
 ... [  OK  ]
Insert net driver(Mindspeed only)...
[   19.253718] ds115j_synobios: module license 'Synology Inc.' taints kernel.
[   19.260692] Disabling lock debugging due to kernel taint
[   19.312989] 2021-4-18 9:33:19 UTC
[   19.316337] synobios: load, major number 201
[   19.320667] Brand: Synology
[   19.323500] Model: DS-115j
[   19.326238] This is default settings: set group disks wakeup number to 1, spinup time deno 1
[   19.334757] synobios cpu_arch proc entry initialized
[   19.339753] synobios crypto_hw proc entry initialized
[   19.344849] synobios syno_platform proc entry initialized
[   19.350429] synobios open /dev/ttyS1 success
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
[   19.388619] synobios: unload
Exit on error [1] DISK NOT INSTALLED...
Sun Apr 18 09:33:19 UTC 2021
sys /sys sysfs rw,relatime 0 0
/dev/root.old / ext2 rw,relatime,errors=continue,user_xattr 0 0
none /dev devtmpfs rw,relatime,size=119748k,nr_inodes=29937,mode=755 0 0
proc /proc proc rw,relatime 0 0

linuxrc.syno failed on 1

starting pid 642, tty '': '/etc/rc'
:: Starting /etc/rc
:: Mounting procfs ... [  OK  ]
:: Mounting tmpfs ... [  OK  ]
:: Mounting devtmpfs ... [  OK  ]
:: Mounting devpts ... [  OK  ]
:: Mounting sysfs ... [  OK  ]
swapon: can't stat '/dev/sda2': No such file or directory
:: Loading module fat ... [  OK  ]
:: Loading module vfat ... [  OK  ]
[   20.703051] 2021-4-18 9:33:20 UTC
[   20.706399] synobios: load, major number 201
[   20.710734] Brand: Synology
[   20.713567] Model: DS-115j
[   20.716303] This is default settings: set group disks wakeup number to 1, spinup time deno 1
[   20.724827] synobios cpu_arch proc entry initialized
[   20.729823] synobios crypto_hw proc entry initialized
[   20.734918] synobios syno_platform proc entry initialized
[   20.740488] synobios open /dev/ttyS1 success
mknod: /dev/synobios: File exists
Starting SW init...
/etc/rc: line 215: /usr/syno/bin/syno_led_mask_on: not found
[   20.786439] synobios: unload
:: Mounting usbfs ... [  OK  ]
:: Loading module synobios[   21.030563] 2021-4-18 9:33:20 UTC
[   21.033911] synobios: load, major number 201
[   21.038213] Brand: Synology
[   21.041068] Model: DS-115j
[   21.043804] This is default settings: set group disks wakeup number to 1, spinup time deno 1
[   21.052321] synobios cpu_arch proc entry initialized
[   21.057317] synobios crypto_hw proc entry initialized
[   21.062411] synobios syno_platform proc entry initialized
[   21.067970] synobios open /dev/ttyS1 success
 ... [  OK  ]
cat: can't open '/proc/sys/kernel/syno_skip_vender_mac_interfaces': No such file or directory
[   21.469645] eth0: mac address changed
[   21.632290] pool #0: pkt_size=1536, buf_size=1632 - 2048 of 2048 buffers added
[   21.640157] eth0: started
udhcpc (v1.16.1) started
eth0      Link encap:Ethernet  HWaddr 00:11:32:<REDACTED>
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:8 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

:: Starting syslogd ... [  OK  ]
/etc/rc: line 305: /usr/syno/bin/syno_pstore_collect: not found
:: Starting scemd
:: Starting services in background
Starting findhostd in flash_rd...
Starting services in flash_rd...
Running /usr/syno/etc/rc.d/J01httpd.sh...
Starting httpd:80 in flash_rd...
Starting httpd:5000 in flash_rd...
Running /usr/syno/etc/rc.d/J03ssdpd.sh...
/usr/bin/minissdpd -i eth0
eth0 not RUNNING
Running /usr/syno/etc/rc.d/J04synoagentregisterd.sh...
Starting synoagentregisterd...
Running /usr/syno/etc/rc.d/J30DisableNCQ.sh...
cat: can't open '/sys/block/sd*/device//model': No such file or directory
Running /usr/syno/etc/rc.d/J80ADTFanControl.sh...
Running /usr/syno/etc/rc.d/J98nbnsd.sh...
Starting nbnsd...
Running /usr/syno/etc/rc.d/J99avahi.sh...
Starting Avahi mDNS/DNS-SD Daemon
cname_load_conf failed:/var/tmp/nginx/avahi-aliases.conf
:: Loading module usb-storage[   30.025611] Initializing USB Mass Storage driver...
[   30.038237] usbcore: registered new interface driver usb-storage
[   30.044340] USB Mass Storage support registered.
 ... [  OK  ]
mknod: /dev/ubi_ctrl: File exists
============ Date ============
Sun Apr 18 09:33:29 UTC 2021
==============================

starting pid 1591, tty '': '/sb
Sun Apr 18 09:33:30 2021


DiskStation login:

I do not have a drive or network attached.



Edited 1 time(s). Last edit at 04/18/2021 09:18AM by deelan.
Re: Debian on Synology DS115j
April 18, 2021 03:12PM
At the u-boot prompt,

bdinfo
map
mtdparts

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Synology DS115j
April 20, 2021 11:40AM
bdinfo
arch_number = 0x00000BDE
boot_params = 0x00000100
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x10000000
DRAM bank   = 0x00000001
-> start    = 0x00000000
-> size     = 0x00000000
DRAM bank   = 0x00000002
-> start    = 0x00000000
-> size     = 0x00000000
DRAM bank   = 0x00000003
-> start    = 0x00000000
-> size     = 0x00000000
ethaddr     = 00:50:43:2e:25:b2
ip_addr     = 10.4.50.136
baudrate    = 115200 bps
TLB addr    = 0x0FFF0000
relocaddr   = 0x0FF09000
reloc off   = 0x0FF09000
irq_sp      = 0x0F9F8F08
sp start    = 0x0F9F8EF8
FB base     = 0x00000000

map

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....no such
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base b0000000, size  32MB
PEX0_IO ....no such
PEX1_MEM ....base b2000000, size  32MB
PEX1_IO ....no such
INTER_REGS ....base f1000000, size   1MB
DMA_UART ....no such
SPI_CS0 ....base f4000000, size  16MB
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....base f8000000, size   1MB
DEV_BOOTCS ....base fd000000, size  16MB
PMU_SCRATCHPAD ....no such
CRYPT0_ENG ....base c8010000, size  64KB

AHB To MBUS Bridge:
-------------------
win0 - PEX0_MEM base b0000000, ....size  32MB
win1 - PEX1_MEM base b2000000, ....size  32MB
win2 - disable
win3 - disable
win4 - disable
win5 - disable
win6 - disable
win7 - disable
win8 - SPI_CS0 base f4000000, ....size  16MB
win9 - DEV_BOOTCS base fd000000, ....size  16MB
win10 - CRYPT0_ENG base c8010000, ....size  64KB
win11 - disable
win12 - disable
win13 - BOOT_ROM_CS base f8000000, ....size   1MB
win14 - disable
win15 - disable
win16 - disable
win17 - disable
win18 - disable
win19 - disable
win20 - INTER_REGS base f1000000, ....size   1MB

PEX0:
-----

Pex Bars

Internal Regs Bar0.... base f1000000, size   1MB
DRAM Bar1............. base 00000000, size 256MB
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - disable
win2 - disable
win3 - disable
win4 - disable
win5 - disable
default win - SDRAM_CS0
Expansion ROM - SDRAM_CS0

PEX1:
-----

Pex Bars

Internal Regs Bar0.... base f1000000, size   1MB
DRAM Bar1............. base 00000000, size 256MB
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - disable
win2 - disable
win3 - disable
win4 - disable
win5 - disable
default win - SDRAM_CS0
Expansion ROM - SDRAM_CS0

USB 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - disable
win3 - disable
mvUsbWinRead (dev=0): ERR. Invalid winNum 4
mvUsbWinRead (dev=0): ERR. Invalid winNum 5
mvUsbWinRead (dev=0): ERR. Invalid winNum 6
mvUsbWinRead (dev=0): ERR. Invalid winNum 7
mvUsbWinRead (dev=0): ERR. Invalid winNum 8
mvUsbWinRead (dev=0): ERR. Invalid winNum 9
mvUsbWinRead (dev=0): ERR. Invalid winNum 10
mvUsbWinRead (dev=0): ERR. Invalid winNum 11
mvUsbWinRead (dev=0): ERR. Invalid winNum 12
mvUsbWinRead (dev=0): ERR. Invalid winNum 13
mvUsbWinRead (dev=0): ERR. Invalid winNum 14
mvUsbWinRead (dev=0): ERR. Invalid winNum 15

USB 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - disable
win3 - disable
mvUsbWinRead (dev=1): ERR. Invalid winNum 4
mvUsbWinRead (dev=1): ERR. Invalid winNum 5
mvUsbWinRead (dev=1): ERR. Invalid winNum 6
mvUsbWinRead (dev=1): ERR. Invalid winNum 7
mvUsbWinRead (dev=1): ERR. Invalid winNum 8
mvUsbWinRead (dev=1): ERR. Invalid winNum 9
mvUsbWinRead (dev=1): ERR. Invalid winNum 10
mvUsbWinRead (dev=1): ERR. Invalid winNum 11
mvUsbWinRead (dev=1): ERR. Invalid winNum 12
mvUsbWinRead (dev=1): ERR. Invalid winNum 13
mvUsbWinRead (dev=1): ERR. Invalid winNum 14
mvUsbWinRead (dev=1): ERR. Invalid winNum 15

ETH 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - disable
win2 - disable
win3 - disable
win4 - disable
win5 - disable
mvNetaWinGet: ERR. Invalid winNum 6
mvNetaWinGet: ERR. Invalid winNum 7
mvNetaWinGet: ERR. Invalid winNum 8
mvNetaWinGet: ERR. Invalid winNum 9
mvNetaWinGet: ERR. Invalid winNum 10
mvNetaWinGet: ERR. Invalid winNum 11
mvNetaWinGet: ERR. Invalid winNum 12
mvNetaWinGet: ERR. Invalid winNum 13
mvNetaWinGet: ERR. Invalid winNum 14
mvNetaWinGet: ERR. Invalid winNum 15

XOR 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - PEX1_MEM base b2000000, ....size  32MB
win3 - disable
win4 - disable
win5 - disable
win6 - disable
win7 - disable

XOR 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - PEX1_MEM base b2000000, ....size  32MB
win3 - disable
win4 - disable
win5 - disable
win6 - disable
win7 - disable

Sata 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - SDRAM_CS1 base 10000000, ....size 256MB
win2 - SDRAM_CS2 base 20000000, ....size 256MB
win3 - SDRAM_CS3 base 30000000, ....size 256MB
mvSataWinRead (dev=0): ERR. Invalid winNum 4
mvSataWinRead (dev=0): ERR. Invalid winNum 5
mvSataWinRead (dev=0): ERR. Invalid winNum 6
mvSataWinRead (dev=0): ERR. Invalid winNum 7
mvSataWinRead (dev=0): ERR. Invalid winNum 8
mvSataWinRead (dev=0): ERR. Invalid winNum 9
mvSataWinRead (dev=0): ERR. Invalid winNum 10
mvSataWinRead (dev=0): ERR. Invalid winNum 11
mvSataWinRead (dev=0): ERR. Invalid winNum 12
mvSataWinRead (dev=0): ERR. Invalid winNum 13
mvSataWinRead (dev=0): ERR. Invalid winNum 14
mvSataWinRead (dev=0): ERR. Invalid winNum 15

Sata 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB
win1 - SDRAM_CS1 base 10000000, ....size 256MB
win2 - SDRAM_CS2 base 20000000, ....size 256MB
win3 - SDRAM_CS3 base 30000000, ....size 256MB
mvSataWinRead (dev=1): ERR. Invalid winNum 4
mvSataWinRead (dev=1): ERR. Invalid winNum 5
mvSataWinRead (dev=1): ERR. Invalid winNum 6
mvSataWinRead (dev=1): ERR. Invalid winNum 7
mvSataWinRead (dev=1): ERR. Invalid winNum 8
mvSataWinRead (dev=1): ERR. Invalid winNum 9
mvSataWinRead (dev=1): ERR. Invalid winNum 10
mvSataWinRead (dev=1): ERR. Invalid winNum 11
mvSataWinRead (dev=1): ERR. Invalid winNum 12
mvSataWinRead (dev=1): ERR. Invalid winNum 13
mvSataWinRead (dev=1): ERR. Invalid winNum 14
mvSataWinRead (dev=1): ERR. Invalid winNum 15

mtdparts

mtdids not defined, no default present
Re: Debian on Synology DS115j
April 20, 2021 12:13PM
I have meanwhile had luck booting debian.

I found the DS213j dts, and made a rudimentary port to DS115j:

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Device Tree file for Synology DS115j by deelan
 * based on Device Tree file for Synology DS213j 
 * Copyright (C) 2014, Arnaud EBALARD <arno@natisbad.org>
 * 
 * 
 * Note: this Device Tree assumes that the bootloader has remapped the
 * internal registers to 0xf1000000 (instead of the old 0xd0000000).
 * The 0xf1000000 is the default used by the recent, DT-capable, U-Boot
 * bootloaders provided by Marvell. It is used in recent versions of
 * DSM software provided by Synology. Nonetheless, some earlier boards
 * were delivered with an older version of u-boot that left internal
 * registers mapped at 0xd0000000. If you have such a device you will
 * not be able to directly boot a kernel based on this Device Tree. In
 * that case, the preferred solution is to update your bootloader (e.g.
 * by upgrading to latest version of DSM, or building a new one and
 * installing it from u-boot prompt) or adjust the Devive Tree
 * (s/0xf1000000/0xd0000000/ in 'ranges' below).
 */

/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "armada-370.dtsi"

/ {
	model = "Synology DS115j";
	compatible = "synology,ds115j", "marvell,armada370",
		     "marvell,armada-370-xp";

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@0 {
		device_type = "memory";
		reg = <0x00000000 0x10000000>; /* 256 MB */
	};

	soc {
		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
			  MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
			  MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;

		internal-regs {

			/* RTC provided by Seiko S-35390A I2C RTC chip below */
			rtc@10300 {
				status = "disabled";
			};

			i2c@11000 {
				compatible = "marvell,mv64xxx-i2c";
				pinctrl-0 = <&i2c0_pins>;
				pinctrl-names = "default";
				clock-frequency = <400000>;
				status = "okay";

				/* Main device RTC chip */
				s35390a: s35390a@30 {
					 compatible = "sii,s35390a";
					 reg = <0x30>;
				};
			};

			/* Connected to a header on device's PCB */
			serial@12000 {
				status = "okay";
			};

			/* Connected to a Microchip PIC16LF1828 for power control */
			serial@12100 {
				status = "okay";
			};

			poweroff@12100 {
				compatible = "synology,power-off";
				reg = <0x12100 0x100>;
				clocks = <&coreclk 0>;
			};

			/* rear USB port, near reset button */
			usb@50000 {
				status = "okay";
			};

			/* rear USB port, near RJ45 port */
			usb@51000 {
				status = "okay";
			};

			ethernet@70000 {
			       status = "okay";
			       phy = <&phy1>;
			       phy-mode = "sgmii";
			};

			sata@a0000 {
				nr-ports = <1>;
				status = "okay";
			};
		};
	};

	gpio-fan-32-38 {
		status = "okay";
		compatible = "gpio-fan";
		pinctrl-0 = <&fan_ctrl_low_pin &fan_ctrl_mid_pin
			     &fan_ctrl_high_pin &fan_alarm_pin>;
		pinctrl-names = "default";
		gpios = <&gpio1 31 GPIO_ACTIVE_HIGH
			 &gpio2  0 GPIO_ACTIVE_HIGH
			 &gpio2  1 GPIO_ACTIVE_HIGH>;
		alarm-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
		gpio-fan,speed-map = <    0 0
				       1000 1
				       1150 2
				       1350 4
				       1500 3
				       1650 5
				       1750 6
				       1900 7 >;
	};

	gpio-leds {
		compatible = "gpio-leds";
		pinctrl-0 = <&disk_led_pin>;
		pinctrl-names = "default";

		disk-led-amber {
			label = "synology:amber:disk";
			gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
			default-state = "keep";
		};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;
		pinctrl-0 = <&sata_pwr_pin &usb_pwr_pin>;
		pinctrl-names = "default";

		sata_regulator: sata-regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "SATA Power";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			startup-delay-us = <2000000>;
			enable-active-high;
			regulator-always-on;
			regulator-boot-on;
			gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
		};

		usb_regulator: usb-regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "USB Power";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			startup-delay-us = <4000000>;
			enable-active-low;
			regulator-always-on;
			regulator-boot-on;
			gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
		};
	};
};

&mdio {
	phy1: ethernet-phy@1 { /* Marvell 88E1512 */
		reg = <1>;
	};
};

&pinctrl {
	disk_led_pin: disk-led-pin {
		marvell,pins = "mpp31";
		marvell,function = "gpio";
	};
	
	sata_pwr_pin: sata-pwr-pin {
		marvell,pins = "mpp37";
		marvell,function = "gpio";
	};
	
	sata_pres_pin: sata-pres-pin {
		marvell,pins = "mpp60";
		marvell,function = "gpio";
	};
	
	syno_id_bit0_pin: syno-id-bit0-pin {
		marvell,pins = "mpp55";
		marvell,function = "gpio";
	};

	syno_id_bit1_pin: syno-id-bit1-pin {
		marvell,pins = "mpp56";
		marvell,function = "gpio";
	};

	syno_id_bit2_pin: syno-id-bit2-pin {
		marvell,pins = "mpp57";
		marvell,function = "gpio";
	};

	syno_id_bit3_pin: syno-id-bit3-pin {
		marvell,pins = "mpp58";
		marvell,function = "gpio";
	};

	fan_ctrl_low_pin: fan-ctrl-low-pin {
		marvell,pins = "mpp65";
		marvell,function = "gpio";
	};

	fan_ctrl_mid_pin: fan-ctrl-mid-pin {
		marvell,pins = "mpp64";
		marvell,function = "gpio";
	};

	fan_ctrl_high_pin: fan-ctrl-high-pin {
		marvell,pins = "mpp63";
		marvell,function = "gpio";
	};

	fan_alarm_pin: fan-alarm-pin {
		marvell,pins = "mpp38";
		marvell,function = "gpio";
	};
	
	usb_pwr_pin: usb-pwr-pin {
		marvell,pins = "mpp44";
		marvell,function = "gpio";
	};
};

&spi0 {
	status = "okay";

	spi-flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "micron,n25q064", "jedec,spi-nor";
		reg = <0>; /* Chip select 0 */
		spi-max-frequency = <20000000>;

		/*
		 * Warning!
		 *
		 * Synology u-boot uses its compiled-in environment
		 * and it seems Synology did not care to change u-boot
		 * default configuration in order to allow saving a
		 * modified environment at a sensible location. So,
		 * if you do a 'saveenv' under u-boot, your modified
		 * environment will be saved at 1MB after the start
		 * of the flash, i.e. in the middle of the uImage.
		 * For that reason, it is strongly advised not to
		 * change the default environment, unless you know
		 * what you are doing.
		 */
		partition@0 { /* u-boot */
			label = "RedBoot";
			reg = <0x00000000 0x000c0000>; /* 768KB */
		};

		partition@c0000 { /* uImage */
			label = "zImage";
			reg = <0x000c0000 0x002d0000>; /* 2880KB */
		};

		partition@390000 { /* uInitramfs */
			label = "rd.gz";
			reg = <0x00390000 0x00440000>; /* 4250KB */
		};

		partition@7d0000 { /* MAC address and serial number */
			label = "vendor";
			reg = <0x007d0000 0x00010000>; /* 64KB */
		};

		partition@7e0000 {
			label = "RedBoot config";
			reg = <0x007e0000 0x00010000>; /* 64KB */
		};

		partition@7f0000 {
			label = "FIS directory";
			reg = <0x007f0000 0x00010000>; /* 64KB */
		};
	};
};

The Synology source code had good clues for this.

I've followed the guide to a HDD rootfs for the DS116: https://forum.doozan.com/read.php?2,76314,113639#msg-113639
The only modifications I had to make were to the boot commands, the DS115j u-boot doesn't contain the scsi command, so I had to replace 'scsi' with 'ide' and 'scsi init' with 'ide reset' which successfully spun up the drive and loaded the uImage from it.
There's also no 'bootspi' command defined but I've got yet to figure that out since I'm not really planning to boot into the stock OS from flash (and the dts specifically warning you from making changes to the default u-boot environment, as they get written directly into a uImage in flash).

running
setenv load_image_addr 0x02000000
setenv load_initrd_addr 0x3000000
setenv load_image 'echo loading uImage from raw HDD ...; ide device 0; ide read $load_image_addr 0x5000 0x2F00'
setenv load_initrd 'echo loading uInitrd from raw HDD ...; ide device 0; ide read $load_initrd_addr 0xA000 0x4F00'
setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd 'ide reset; run bootcmd_exec;'
boot
made me boot into debian successfully:
Marvell>> boot

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: HGST HTS725032A7E630                     Firm: GHBOA560 Ser#:       <REDACTED>
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Booting Debian ...
loading uImage from raw HDD ...

IDE device 0: Model: HGST HTS725032A7E630                     Firm: GHBOA560 Ser#:       <REDACTED>
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
... is now current device

IDE read: device 0 block # %qd, count 20480 ... 12032 blocks read: OK
loading uInitrd from raw HDD ...

IDE device 0: Model: HGST HTS725032A7E630                     Firm: GHBOA560 Ser#:       <REDACTED>
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
... is now current device

IDE read: device 0 block # %qd, count 40960 ... 20224 blocks read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2021-04-18  19:46:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5072274 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=18c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS115j
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s55244 r8192 d22580 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Memory: 234916K/262144K available (10240K kernel code, 833K rwdata, 2724K rodata, 1024K init, 343K bss, 27228K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x30c/0x830 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000][    T0] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000][    T0] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000][    T0] Switching to timer-based delay loop, resolution 60ns
[    0.000009][    T0] sched_clock: 32 bits at 16MHz, resolution 60ns, wraps every 128849023969ns
[    0.008593][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114675631333 ns
[    0.021224][    T0] Console: colour dummy device 80x30
[    0.026370][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 33.33 BogoMIPS (lpj=166666)
[    0.037416][    T0] pid_max: default: 32768 minimum: 301
[    0.042958][    T0] LSM: Security Framework initializing
[    0.048370][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.055675][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064182][    T0] *** VALIDATE proc ***
[    0.068419][    T0] *** VALIDATE cgroup1 ***
[    0.072707][    T0] *** VALIDATE cgroup2 ***
[    0.077042][    T0] CPU: Testing write buffer coherency: ok
[    0.082961][    T1] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.140337][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.147646][    T1] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.153692][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.180267][    T1] rcu: Hierarchical SRCU implementation.
[    0.220270][    T1] smp: Bringing up secondary CPUs ...
[    0.225487][    T1] smp: Brought up 1 node, 1 CPU
[    0.230174][    T1] SMP: Total of 1 processors activated (33.33 BogoMIPS).
[    0.237061][    T1] CPU: All CPU(s) started in SVC mode.
[    0.243296][    T1] devtmpfs: initialized
[    0.260523][    T1] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.269497][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.280392][    T1] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.287382][    T1] xor: measuring software checksum speed
[    0.390321][    T1]    arm4regs  :   737.600 MB/sec
[    0.490310][    T1]    8regs     :   448.000 MB/sec
[    0.590266][    T1]    32regs    :   713.600 MB/sec
[    0.595127][    T1] xor: using function: arm4regs (737.600 MB/sec)
[    0.601343][    T1] prandom: seed boundary self test passed
[    0.610890][    T1] prandom: 100 self tests passed
[    0.615665][    T1] pinctrl core: initialized pinctrl subsystem
[    0.623672][    T1] NET: Registered protocol family 16
[    0.629398][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.638634][    T1] audit: initializing netlink subsys (disabled)
[    0.646870][    T1] cpuidle: using governor ladder
[    0.651780][   T28] audit: type=2000 audit(0.620:1): state=initialized audit_enabled=0 res=1
[    0.661741][    T1] cpuidle: using governor menu
[    0.666612][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.980744][    T1] raid6: int32x8  gen()   143 MB/s
[    1.150476][    T1] raid6: int32x8  xor()    82 MB/s
[    1.320598][    T1] raid6: int32x4  gen()   144 MB/s
[    1.490309][    T1] raid6: int32x4  xor()   104 MB/s
[    1.660359][    T1] raid6: int32x2  gen()   166 MB/s
[    1.830293][    T1] raid6: int32x2  xor()   137 MB/s
[    2.000689][    T1] raid6: int32x1  gen()   125 MB/s
[    2.170378][    T1] raid6: int32x1  xor()   119 MB/s
[    2.175326][    T1] raid6: using algorithm int32x2 gen() 166 MB/s
[    2.181415][    T1] raid6: .... xor() 137 MB/s, rmw enabled
[    2.186966][    T1] raid6: using intx1 recovery algorithm
[    2.193987][    T1] vgaarb: loaded
[    2.199094][    T1] SCSI subsystem initialized
[    2.210977][    T1] usbcore: registered new interface driver usbfs
[    2.217196][    T1] usbcore: registered new interface driver hub
[    2.224866][    T1] usbcore: registered new device driver usb
[    2.231828][    T1] media: Linux media interface: v0.10
[    2.237870][    T1] videodev: Linux video capture interface: v2.00
[    2.244865][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.251140][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.261138][    T1] PTP clock support registered
[    2.273155][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    3.181083][    T1] VFS: Disk quotas dquot_6.6.0
[    3.185827][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.222331][    T1] NET: Registered protocol family 2
[    3.229530][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    3.238329][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    3.246184][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    3.253382][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    3.260512][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.267157][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.274431][    T1] NET: Registered protocol family 1
[    3.310388][    T1] RPC: Registered named UNIX socket transport module.
[    3.317083][    T1] RPC: Registered udp transport module.
[    3.322462][    T1] RPC: Registered tcp transport module.
[    3.327866][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.335000][    T1] PCI: CLS 0 bytes, default 64
[    3.339858][    T1] Trying to unpack rootfs image as initramfs...
[    3.996234][    T1] Freeing initrd memory: 9268K
[    4.001081][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    4.008671][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    4.021176][    T1] Initialise system trusted keyrings
[    4.028094][    T1] Key type blacklist registered
[    4.033024][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    4.040376][    T1] zbud: loaded
[    4.055079][    T1] NFS: Registering the id_resolver key type
[    4.060834][    T1] Key type id_resolver registered
[    4.065799][    T1] Key type id_legacy registered
[    4.070502][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.077964][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    4.085316][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.093862][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.101197][    T1] orangefs_init: module version upstream loaded
[    4.123581][    T1] async_tx: api initialized (async)
[    4.128630][    T1] Key type asymmetric registered
[    4.133527][    T1] Asymmetric key parser 'x509' registered
[    4.139285][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    4.150969][    T1] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    4.168814][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.234534][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.245840][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.314508][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.514864][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.526209][    T1] printk: console [ttyS0] disabled
[    4.552506][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 19, base_baud = 12500000) is a 16550A
[    4.562429][    T1] printk: console [ttyS0] enabled
[    4.562429][    T1] printk: console [ttyS0] enabled
[    4.572301][    T1] printk: bootconsole [earlycon0] disabled
[    4.572301][    T1] printk: bootconsole [earlycon0] disabled
[    4.605890][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 20, base_baud = 12500000) is a 16550A
[    4.618613][    T1] sata_mv f10a0000.sata: slots 32 ports 1
[    4.637378][    T1] scsi host0: sata_mv
[    4.642055][    T1] ata1: SATA max UDMA/133 irq 29
[    4.651924][    T1] m25p80 spi0.0: found mx25l6405d, expected n25q064
[    4.658749][    T1] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    4.664677][    T1] 6 fixed-partitions partitions found on MTD device spi0.0
[    4.671769][    T1] Creating 6 MTD partitions on "spi0.0":
[    4.677421][    T1] 0x000000000000-0x0000000c0000 : "RedBoot"
[    4.685494][    T1] 0x0000000c0000-0x000000390000 : "zImage"
[    4.694045][    T1] 0x000000390000-0x0000007d0000 : "rd.gz"
[    4.702371][    T1] 0x0000007d0000-0x0000007e0000 : "vendor"
[    4.710910][    T1] 0x0000007e0000-0x0000007f0000 : "RedBoot config"
[    4.720284][    T1] 0x0000007f0000-0x000000800000 : "FIS directory"
[    4.735624][    T1] libphy: Fixed MDIO Bus: probed
[    4.744034][    T1] libphy: orion_mdio_bus: probed
[    4.767691][    T1] mvneta f1070000.ethernet eth0: Using random mac address ce:61:da:f4:cf:c1
[    4.780765][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.788691][    T1] ehci-pci: EHCI PCI platform driver
[    4.794465][    T1] ehci-orion: EHCI orion driver
[    4.799421][    T1] orion-ehci f1050000.usb: EHCI Host Controller
[    4.805946][    T1] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    4.814520][    T1] orion-ehci f1050000.usb: irq 26, io mem 0xf1050000
[    4.843201][    T1] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    4.850198][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    4.859282][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.867311][    T1] usb usb1: Product: EHCI Host Controller
[    4.872954][    T1] usb usb1: Manufacturer: Linux 5.2.9-mvebu-tld-1 ehci_hcd
[    4.880097][    T1] usb usb1: SerialNumber: f1050000.usb
[    4.886449][    T1] hub 1-0:1.0: USB hub found
[    4.891275][    T1] hub 1-0:1.0: 1 port detected
[    4.897060][    T1] orion-ehci f1051000.usb: EHCI Host Controller
[    4.903742][    T1] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    4.912272][    T1] orion-ehci f1051000.usb: irq 27, io mem 0xf1051000
[    4.943199][    T1] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    4.950224][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    4.959331][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.967349][    T1] usb usb2: Product: EHCI Host Controller
[    4.972991][    T1] usb usb2: Manufacturer: Linux 5.2.9-mvebu-tld-1 ehci_hcd
[    4.980187][    T1] usb usb2: SerialNumber: f1051000.usb
[    4.986503][    T1] hub 2-0:1.0: USB hub found
[    4.991282][    T1] hub 2-0:1.0: 1 port detected
[    4.997973][    T1] usbcore: registered new interface driver usblp
[    5.006349][    T1] usbcore: registered new interface driver usb-storage
[    5.014164][    T1] mousedev: PS/2 mouse device common for all mice
[    5.022418][    T1] i2c /dev entries driver
[    5.032336][    T1] rtc-s35390a 0-0030: error resetting chip
[    5.041238][    T1] rtc-s35390a: probe of 0-0030 failed with error -5
[    5.052217][    T1] gpio-fan gpio-fan-32-38: GPIO fan initialized
[    5.083904][    T1] watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
[    5.092920][    T1] watchdog: f1020300.watchdog: falling back to default timeout (257)
[    5.102518][    T1] orion_wdt: Initial timeout 257 sec
[    5.119397][    T1] device-mapper: uevent: version 1.0.3
[    5.125630][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    5.143250][ T1198] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.155602][ T1198] ata1.00: ATA-8: HGST HTS725032A7E630, GHBOA560, max UDMA/133
[    5.163497][ T1198] ata1.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    5.178086][ T1198] ata1.00: configured for UDMA/133
[    5.183290][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.190554][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.198545][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.206229][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.213743][   T15] scsi 0:0:0:0: Direct-Access     ATA      HGST HTS725032A7 A560 PQ: 0 ANSI: 5
[    5.223051][    T1] device-mapper: raid: Loading target version 1.14.0
[    5.231427][    T7] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[    5.244038][    T7] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.260000][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    5.270713][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.338356][    T7] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    5.358597][    T7] GPT:2097151 != 625142447
[    5.362903][    T7] GPT:Alternate GPT header not at the end of the disk.
[    5.378210][    T7] GPT:2097151 != 625142447
[    5.392000][    T7] GPT: Use GNU Parted to correct GPT errors.
[    5.398363][    T7]  sda: sda1
[    5.409174][    T7] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.486637][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    5.495639][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    5.503506][    T1] usbcore: registered new interface driver usbhid
[    5.509815][    T1] usbhid: USB HID core driver
[    5.515982][    T1] drop_monitor: Initializing network drop monitor service
[    5.524215][    T1] NET: Registered protocol family 10
[    5.540910][    T1] Segment Routing with IPv6
[    5.545698][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.555055][    T1] NET: Registered protocol family 17
[    5.571715][    T1] 8021q: 802.1Q VLAN Support v1.8
[    5.576947][    T1] Key type dns_resolver registered
[    5.582542][    T1] ThumbEE CPU extension supported.
[    5.588132][    T1] Registering SWP/SWPB emulation handler
[    5.596191][    T1] registered taskstats version 1
[    5.602452][    T1] Loading compiled-in X.509 certificates
[    5.608318][    T1] zswap: loaded using pool lzo/zbud
[    5.734425][    T1] Key type big_key registered
[    5.798719][    T1] Key type encrypted registered
[    7.692515][    C0] random: fast init done
[    7.864014][ T1407] usb-regulator@2 GPIO handle specifies active low - ignored
[   11.944991][    T1] hctosys: unable to open rtc device (rtc0)
[   11.956602][    T1] Freeing unused kernel memory: 1024K
[   11.986052][    T1] Checked W+X mappings: passed, no W+X pages found
[   11.992461][    T1] Run /init as init process
Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... 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.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   33.563081][ T2183] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   33.574322][ T2183] EXT4-fs (sda1): write access will be enabled during recovery
[   34.007418][ T2183] EXT4-fs (sda1): recovery complete
[   34.073497][ T2183] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   41.000926][ T2382] systemd-udevd[2382]: Using default interface naming scheme 'v240'.
[   41.060577][ T2382] systemd-udevd[2382]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   41.125557][ T2382] systemd-udevd[2382]: Could not generate persistent MAC address for eth0: No such file or directory
[   41.286701][ T2370] systemd-udevd[2370]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   41.312826][ T2381] systemd-udevd[2381]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   41.338834][ T2345] systemd-udevd[2345]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   41.369905][ T2367] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   41.512949][ T2345] systemd-udevd[2345]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
[   41.645678][    C0] random: crng init done
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   50.511613][ T2576] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 24103/62336 files, 181560/249339 blocks
. ok
[   51.193630][ T2602] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   58.670204][ T3133] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1318S]
[   58.685110][ T3133] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
Listening on LPF/eth0/ce:61:da:f4:cf:c1
Sending on   LPF/eth0/ce:61:da:f4:cf:c1
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.18 on eth0 to 255.255.255.255 port 67
[   62.823792][ T3134] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   62.832610][ T3134] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST for 192.168.0.18 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
No DHCPOFFERS received.
Trying recorded lease 192.168.0.18
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
3357 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
3384 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Running local boot scripts (/etc/rc.local)Warning: Bad CRC, using default environment
Warning: Bad CRC, using default environment
[  163.661253][ T3591] Setting Persistent MAC address to 00:00:11:22:33:44
<13>Dec 31 16:02:43 root[3598]: Setting Persistent MAC address to 00:00:11:22:33:44
Killed old client process
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/ce:61:da:f4:cf:c1
Sending on   LPF/eth0/ce:61:da:f4:cf:c1
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.18 on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2878: Failed to send 300 byte long packet over fallback interface.
[  167.415238][   T18] mvneta f1070000.ethernet eth0: TIMEOUT for TX stopped status=0x0000ff72
[  167.440468][   T18] mvneta f1070000.ethernet eth0: Link is Down
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[  168.412566][ T3635] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1318S]
[  168.439446][ T3635] mvneta f1070000.ethernet eth0: configuring for phy/sgmii link mode
Listening on LPF/eth0/00:00:11:22:33:44
Sending on   LPF/eth0/00:00:11:22:33:44
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[  172.592415][   T18] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[  172.601236][   T18] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
. ok

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Wed Dec 31 16:04:35 PST 1969 on ttyS0
Linux debian 5.2.9-mvebu-tld-1 #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Synology DS115j
Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019
Debian 10.0
Wed Dec 31 16:04:08 PST 1969 up 4 minutes
root@debian:~#

- what works:

  • Fan control
  • LED and beeper control trough ttyS1, just like stock firmware
  • synology:disk:amber LED as defined in dts
  • USB

- what doesn't work / is untested / isn't implemented yet

  • Network (interface comes up but DHCP fails, haven't tested static IPs yet)
  • Buttons (will have to figure out GPIO)
  • RTC module (untested)
  • Network activity LED (will blink as usual in u-boot but stays static once in debian)
  • Everything I haven't tested yet should be considered untested



Edited 1 time(s). Last edit at 04/24/2021 03:20AM by deelan.
Re: Debian on Synology DS115j
April 20, 2021 04:38PM
deelan,

Cool! That's quite complete. The rest are easy.

- Network (interface comes up but DHCP fails, haven't tested static IPs yet)

Try setting the system clock to a sane value and DHCP again.

- RTC module (untested)

[    5.032336][    T1] rtc-s35390a 0-0030: error resetting chip
[    5.041238][    T1] rtc-s35390a: probe of 0-0030 failed with error -5

See if a different RTC chip is used.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: