Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Debian on Synology DS210j (1 reply)

$
0
0
Hello Bodhi,

I got Synology DS210j. Let's make it work with Debian.

Hooked up the serial console, and it's different than DS211.
Pins are upfront of the device and are horizontal with markings JMP2, and you need to use to lower three pins:
From the front side perspective lower row: RX(?), TX, GND
From the front side perspective upper row: ???, ???, VCC (3.3V)
I have determined GND and VCC (3.3V) using multimeter.

I can't get it to receive input from the serial console, I tried all pin combinations but to no luck. Any ideas what can be tried?

Interestingly it boots to a linux kernel, although there are no drives hooked up, and it reports only "Flash: 4 MB" (how is it possible to fit?):

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: Synology Disk Station LE 

U-Boot 1.1.4 (Sep 24 2009 - 10:47:44) Marvell version: 3.4.4

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 0068B43C

Soc: 88F6281 A1 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
[4096kB@f8000000] Flash:  4 MB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Using default environment


CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled

Module 1 is AUDIO

USB 0: host mode
PEX 0: interface detected no Link.

Synology Model: DS210jr1
Fan Status: Good

Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
## Booting image at f8080000 ...
   Image Name:   Linux-2.6.32.12
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1550948 Bytes =  1.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at f8280000 ...
   Image Name:   synology_88f6281_210j 5967
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    993873 Bytes = 970.6 kB
   Load Address: 00800000
   Entry Point:  00800000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.32.12 (root@build4) (gcc version 4.6.4 (Marvell GCC release 20150204-c4
af733b 64K MAXPAGESIZE ALIGN CVE-2015-0235) ) #5967 Fri Nov 3 17:20:31 CST 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Sys Clk = 200000000, Tclk = 166666667
[    0.000000] Synology Board ID: 21
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 ip=off initrd=0x00800040,4M root=/dev/md0 rw sy
no_hw_version=DS210jv20 ihd_num=2 netif_num=1
[    0.000000] Synology Hardware Version: DS210jv20-j
[    0.000000] Internal HD num: 2
[    0.000000] Internal netif num: 1
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 114104KB available (3648K code, 519K data, 124K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:128
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop... 794.62 BogoMIPS (lpj=3973120)
[    0.230000] Mount-cache hash table entries: 512
[    0.230000] CPU: Testing write buffer coherency: ok
[    0.230000] devtmpfs: initialized
[    0.230000] xor: measuring software checksum speed
[    0.280000]    arm4regs  :   723.600 MB/sec
[    0.330000]    8regs     :   434.400 MB/sec
[    0.380000]    32regs    :   560.800 MB/sec
[    0.380000] xor: using function: arm4regs (723.600 MB/sec)
[    0.380000] NET: Registered protocol family 16
[    0.380000] Feroceon L2: Enabling L2
[    0.380000] Feroceon L2: Cache support initialised, in WT override mode.
[    0.390000] 
[    0.390000] CPU Interface
[    0.390000] -------------
[    0.390000] SDRAM_CS0 ....base 00000000, size 128MB 
[    0.390000] SDRAM_CS1 ....disable
[    0.390000] SDRAM_CS2 ....disable
[    0.390000] SDRAM_CS3 ....disable
[    0.390000] PEX0_MEM ....base e0000000, size 128MB 
[    0.390000] PEX0_IO ....base f2000000, size   1MB 
[    0.390000] PEX1_MEM ....no such
[    0.390000] PEX1_IO ....no such
[    0.390000] INTER_REGS ....base f1000000, size   1MB 
[    0.390000] NFLASH_CS ....base fa000000, size   2MB 
[    0.390000] SPI_CS ....base f4000000, size  16MB 
[    0.390000] BOOT_ROM_CS ....no such
[    0.390000] DEV_BOOTCS ....no such
[    0.390000] CRYPT_ENG ....base f0000000, size   2MB 
[    0.390000]  Detected Tclk 200000000 and SysClk 400000000 
[    0.400000] Synology 6281 1, 2 bay GPIO Init
[    0.890000] PEX0 interface detected no Link.
[    0.890000] PCI: bus0: Fast back to back transfers enabled
[    0.890000] mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
[    0.900000] bio: create slab <bio-0> at 0
[    0.900000] vgaarb: loaded
[    0.900000] SCSI subsystem initialized
[    1.080000] raid6: int32x1     71 MB/s
[    1.250000] raid6: int32x2     98 MB/s
[    1.420000] raid6: int32x4     92 MB/s
[    1.590000] raid6: int32x8     99 MB/s
[    1.590000] raid6: using algorithm int32x8 (99 MB/s)
[    1.590000] Switching to clocksource kw_clocksource
[    1.590000] NET: Registered protocol family 2
[    1.590000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.590000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.590000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.590000] TCP: Hash tables configured (established 4096 bind 4096)
[    1.590000] TCP reno registered
[    1.590000] NET: Registered protocol family 1
[    1.590000] RPC: Registered udp transport module.
[    1.590000] RPC: Registered tcp transport module.
[    1.590000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.590000] Trying to unpack rootfs image as initramfs...
[    3.520000] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    3.540000] Freeing initrd memory: 4096K
[    3.540000] XOR registered 4 channels
[    3.540000] XOR 2nd invalidate WA enabled
[    3.540000] VFS: Disk quotas dquot_6.5.2
[    3.540000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.540000] msgmni has been set to 231
[    3.540000] alg: No test for md5 (md5-generic)
[    3.540000] alg: No test for des (des-generic)
[    3.540000] alg: No test for des3_ede (des3_ede-generic)
[    3.540000] alg: No test for stdrng (krng)
[    3.540000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    3.540000] io scheduler noop registered
[    3.540000] io scheduler anticipatory registered (default)
[    3.550000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.560000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    3.570000] console [ttyS0] enabled
[    3.570000] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    3.580000] brd: module loaded
[    3.590000] sata_mv sata_mv.0: version 1.28
[    3.590000] sata_mv sata_mv.0: slots 32 ports 2
[    3.600000] scsi0 : sata_mv
[    3.600000] scsi1 : sata_mv
[    3.600000] ata1: SATA max UDMA/133 irq 21
[    3.610000] ata2: SATA max UDMA/133 irq 21
[    3.960000] ata1: SATA link down (SStatus 0 SControl F300)
[    6.960000] Delay 5 seconds to wait for disk 2 ready.
[   12.310000] ata2: SATA link down (SStatus 0 SControl F300)
[   12.310000] physmap platform flash device: 00400000 at f8000000
[   12.320000] SPI Serial flash detected @ 0xf8000000, 4096KB (64sec x 64KB)
[   12.330000] Searching for RedBoot partition table in SYNOMTD-0 at offset 0x3f0000
[   12.340000] 6 RedBoot partitions found on MTD device SYNOMTD-0
[   12.340000] SYNOMTD flash bank 0: Using RedBoot partition definition
[   12.350000] Creating 6 MTD partitions on "SYNOMTD-0":
[   12.360000] 0x000000000000-0x000000080000 : "RedBoot"
[   12.360000] 0x000000080000-0x000000280000 : "zImage"
[   12.370000] 0x000000280000-0x0000003c0000 : "rd.gz"
[   12.370000] 0x0000003c0000-0x0000003d0000 : "vendor"
[   12.380000] vender Mac1 checksum error ucSum:0x00 Buf:0x00 Sum:0.
[   12.390000] vender Mac2 checksum error ucSum:0x00 Buf:0x00 Sum:0.
[   12.390000] vender Mac3 checksum error ucSum:0x00 Buf:0x00 Sum:0.
[   12.400000] serial number='A4G6N00185'
[   12.400000] 0x0000003d0000-0x0000003f0000 : "RedBoot Config"
[   12.410000] 0x0000003f0000-0x000000400000 : "FIS directory"
[   12.420000] mvCpuIfTargetWinBaseLowGet:ERR. Getting target 11 failed.
[   12.420000] mvCpuIfTargetWinSizeGet:ERR. Getting target 11 failed.
[   12.430000] 
[   12.430000] ERROR: flashInfoFill - Failed to get Device Base address and Size (spi_flash 0)Loading Ma
rvell Ethernet Driver:
[   12.440000]   o Cached descriptors in DRAM
[   12.440000]   o DRAM SW cache-coherency
[   12.450000]   o 2 Giga ports supported
[   12.450000]   o Single RX Queue support - ETH_DEF_RXQ=0
[   12.460000]   o Single TX Queue support - ETH_DEF_TXQ=0
[   12.460000]   o TCP segmentation offload (TSO) supported
[   12.470000]   o Receive checksum offload supported
[   12.470000]   o Transmit checksum offload supported
[   12.480000]   o SKB Recycle supported - (Enabled)
[   12.480000]   o Rx descripors: q0=128
[   12.490000]   o Tx descripors: q0=532
[   12.490000]   o Loading network interface(s):
[   12.500000]     o  register under mv88fx_eth platform
[   12.500000]     o eth0, ifindex = 2, GbE port = 0
[   12.510000]     o eth0, phy chipid = 1410e40, Support WOL = 0
[   12.510000] 
[   12.510000] md: linear personality registered for level -1
[   12.520000] md: raid0 personality registered for level 0
[   12.530000] md: raid1 personality registered for level 1
[   12.530000] md: raid10 personality registered for level 10
[   12.540000] md: raid6 personality registered for level 6
[   12.540000] md: raid5 personality registered for level 5
[   12.550000] md: raid4 personality registered for level 4
[   12.550000] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[   12.560000] cpuidle: using governor ladder
[   12.570000] TCP cubic registered
[   12.570000] NET: Registered protocol family 17
[   12.570000] NET: Registered protocol family 15
[   12.580000] registered taskstats version 1
[   12.580000] md: Waiting for all devices to be available before autodetect
[   12.590000] md: If you don't use raid, use raid=noautodetect
[   12.600000] md: Autodetecting RAID arrays.
[   12.600000] md: Scanned 0 and added 0 devices.
[   12.600000] md: autorun ...
[   12.610000] md: ... autorun DONE.
[   12.610000] RAMDISK: lzma image found at block 0
[   14.640000] VFS: Mounted root (ext2 filesystem) on device 1:0.
START /linuxrc.syno
Insert basic USB modules...
:: Loading module usbcore[   15.040000] usbcore: registered new interface driver usbfs
[   15.060000] usbcore: registered new interface driver hub
[   15.060000] usbcore: registered new interface driver ethub
[   15.100000] usbcore: registered new device driver usb
 ... [  OK  ]
:: Loading module ehci-hcd[   15.190000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.200000] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   15.200000] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   15.240000] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   15.260000] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   15.260000] usb usb1: configuration #1 chosen from 1 choice
[   15.290000] hub 1-0:1.0: USB hub found
[   15.290000] hub 1-0:1.0: 1 port detected
 ... [  OK  ]
:: Loading module xhci-hcd ... [  OK  ]
[   15.560000] ds210j_synobios: module license 'Synology Inc.' taints kernel.
[   15.560000] Disabling lock debugging due to kernel taint
[   15.600000] correction with 0x03
[   15.690000] 2025-4-24 12:8:47 UTC
[   15.690000] synobios: load, major number 201
[   15.700000] Brand: Synology
[   15.700000] Model: DS-210j
[   15.700000] This is default settings: set group disks wakeup number to 1, spinup time deno 1
[   15.710000] synobios cpu_arch proc entry initialized
[   15.720000] synobios crypto_hw proc entry initialized
[   15.720000] synobios syno_platform proc entry initialized
[   15.730000] usb 1-1: new high speed USB device using orion-ehci and address 2
mknod: /dev/synobios: File exists
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
[   15.780000] synobios: unload
Exit on error [1] DISK NOT INSTALLED...
Thr Apr 24 12:08:47 UTC 2025
sys /sys sysfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
linuxrc.syno failed on 1
starting pid 514, tty '': '/etc/rc'
[   15.880000] Got empty serial number. Generate serial number from product.
[   15.880000] usb 1-1: configuration #1 chosen from 1 choice
[   15.910000] hub 1-1:1.0: USB hub found
[   15.910000] hub 1-1:1.0: 4 ports detected
:: Starting /etc/rc
:: Mounting procfs ... [  OK  ]
:: Mounting tmpfs ... [  OK  ]
:: Mounting devpts ... [  OK  ]
:: Mounting sysfs ... [  OK  ]
:: Checking new disks ...
No new disk. Do nothing.
[   16.290000] md: md1 stopped.
mdadm: stopped /dev/md1
rc: Use all internal disk as swap.
rc: No internal disk installed.
[   16.550000] Unable to find swap-space signature
swapon: /dev/md1: Invalid argument
:: Loading module fat ... [  OK  ]
:: Loading module vfat ... [  OK  ]
:: Mounting usbfs ... [  OK  ]
:: Loading module sky2[   17.450000] sky2 driver version 1.25
 ... [  OK  ]
:: Loading module synobios[   17.560000] correction with 0x03
[   17.650000] 2025-4-24 12:8:49 UTC
[   17.660000] synobios: load, major number 201
[   17.660000] Brand: Synology
[   17.660000] Model: DS-210j
[   17.670000] This is default settings: set group disks wakeup number to 1, spinup time deno 1
[   17.680000] synobios cpu_arch proc entry initialized
[   17.680000] synobios crypto_hw proc entry initialized
[   17.690000] synobios syno_platform proc entry initialized
 ... [  OK  ]
cat: can't open '/proc/sys/kernel/syno_skip_vender_mac_interfaces': No such file or directory
[   18.030000] eth0: mac address changed
[   20.090000] eth0: started
udhcpc (v1.16.1) started
eth0      Link encap:Ethernet  HWaddr 00:11:32:06:B0:VCCF9  
          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:11 

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  ]
:: Starting scemd
:: Starting services in background
Starting findhostd in flash_rd...
Starting services in flash_rd...
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...
:: Loading module usb-storage[   28.080000] Initializing USB Mass Storage driver...
[   28.080000] usbcore: registered new interface driver usb-storage
[   28.090000] USB Mass Storage support registered.
 ... [  OK  ]
============ Date ============
Thr Apr 24 12:08:59 UTC 2025
==============================
starting pid 13Thu Apr 24 12:09:00 2025

DiskStation login: 

Viewing all articles
Browse latest Browse all 3247

Trending Articles