Alternative Firmware (Debian Jessie, Synology DSM6)


#358

So was trying to cause an error and played with iSCSI and tried to find why it’s not working…

Found a pointer to /config which does not exist
cloudservice_dstoken_get_token.cpp:24 Failed to get serial number from flash. [0x0900 file_get_key_value.c:29]
2017-05-08T11:20:41+02:00 synomorph synoscgi_SYNO.Storage.CGI.Storage_1_load_info[13356]: StorageManager.cpp:236 SYNOCloudServiceDstokenGetToken failed: [0x0900 file_get_key_value.c:29]
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Core.Storage.iSCSITargets_1_enable[13418]: iscsi_lio_target_load.cpp:284 mkdir("/config/target/iscsi/iqn.2000-01.com.synology:synomorph.Target-1.", S_IRWXU) failed, err=No such file or directory
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Core.Storage.iSCSITargets_1_enable[13418]: iscsi_lio_target_enable.c:42 SYNOiSCSILIOTargetEnable(): SYNOiSCSILIOTargetLoad(0xbe86b6b0) failed, err=Failed to cerate directory
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Core.Storage.iSCSITargets_1_enable[13418]: iscsi_target_enable.c:42 SYNOiSCSITargetEnable(): SYNOiSCSILIOTargetEnable(0xbe86b6b0, 0xbe86b650) failed, err=Failed to cerate directory
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Core.Storage.iSCSITargets_1_enable[13418]: iscsi_util.cpp:979 EnableTarget(): SYNOiSCSITargetEnable(0xbe86b6b0) failed, err=Failed to enable target
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Core.Storage.iSCSITargets_1_enable[13418]: iscsi_util.cpp:989 std::exception caught: iscsi_util.cpp:980: Failed to enable target
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Storage.CGI.Storage_1_load_info[13407]: cloudservice_dstoken_get_token.cpp:24 Failed to get serial number from flash. [0x0900 file_get_key_value.c:29]
2017-05-08T11:20:49+02:00 synomorph synoscgi_SYNO.Storage.CGI.Storage_1_load_info[13407]: StorageManager.cpp:236 SYNOCloudServiceDstokenGetToken failed: [0x0900 file_get_key_value.c:29]

Also found a bunch of errors/references to cloudstation … which is not even installed


#359

Do this for disable these errors:


#360

Now I’ve done it. I’ve gone and tried some Hibernation settings and I think I’ve bricked it. I’ve tried some sorta destructive fixes, and well, I think I need a fresh install.

I removed my drives and it automatically booted to the installer WebGui. It says there aren’t any attached drives, so I dropped my two drives back in and it said something along the lines of Welcome Back. I reinstalled the image and it said it would reboot with a 10 minute timer.

I waited a few minutes, but when I cycled the power, I don’t get any WebGui and no SSH connection. That was sorta similar to what I had previously with my bricked drive.

One thought, is that I have an older an older wd2dsm.bin installed. The one that is on your website was updated on Feb 25th along with the .pat file. Unfortunately I kept the old versions on the unit itself :frowning:.

Any further recovery steps you can suggest? I do have UART access.

Many thanks!


#361

Delete all partitions, except data part.
Or manualy reupload rootfs.
Also - while device in “Web Installer” mode - its accessable via Telnet (user/pass: admin/mycloud or admin/[empty])


#362

I found that even in web recovery I did not have telnet access. I instead went in with serial and deleted partions 1 and 2 of both disks with fdisk. When i ran the web installer it warned me that I would lose all data. I agreed and it proceeded. However, I’m no better off than before. I still cant connect SSH or Telnet nor WebGui in this mode. Also, I still observe SMI busy timeout.


#363

I’m under the impression that the ethernet changes you made on Feb25 are not backwards compatible. The wd-to-dsm.bin was updated as well as DSM-wdmc-mirror-gen2-8451.pat. I’m trying to load the newer DSM-wdmc-mirror-gen2-8451.pat while I’m still essentially running my older wd-to-dsm.bin. I suppose if I could revert all the way to WD firmware I could install the newer wd-to-dsm.bin, or, maybe someone has the older 8451.pat file they could give me as a shot. Anyone got that? Has the exact same filename.

Edit: This does seem to be the case here. I tried a few things with uboot that eventually corrupted seemingly part of the nand. It was corrupted enough to cause flashing red light boots if I let uboot operate normally. Then i miraculously loaded WD firmware by bootm 0x500000 0xa00000 which I pieced together from the output of the mtd command. This resulted in SafeMode (western digital) where I could then upload your feb 25 .bin file. From there I could also upload the .pat file and voila! I’m back in business.

I’ll have to restore my datas from cold backups, but at least I’m up and running again!


#364

Glad to hear you got it fixed:)


#365

Mannnn unlucky! I had the newest version working and happy. Noticed on the WebGUI that the Resource Manager status wasn’t populated. SSH’ed in to find those large, 6-letter files in /tmp filling everything up. I deleted them and rebooted, but now samba is down, the website is down, and SSH/Telnet is down. I popped the drives out to go to recovery, and the website is there, but no Telnet/SSH access. I speculate that those libraries are corrupt, but seems I’ll need to UART into it to replace them.

I bricked it the last time (on older firmware) after enabling disk hibernation. I left disk hibernation on for this install, and it seems it’s been bricked again. Does anyone have any corroborating evidence that might link these failures to that feature?

Edit: Here’s the log of the failure to boot. This is UART output with both drives seated:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.35 (root@build64) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #4 SMP Sun Feb 26 22:09:56 +05 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: WD MyCloud Mirror gen2 (Armada 385)
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0d7c000 s8320 r8192 d16256 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/md0 syno_hw_version=DS216 ihd_num=2 netif_num=1
[    0.000000] Synology Hardware Version: DS216-j
[    0.000000] Internal HD num: 2
[    0.000000] Internal netif num: 1
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 506180k/506180k available, 18108k 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 : 0xe0800000 - 0xfff00000   ( 503 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06558bc   (6455 kB)
[    0.000000]       .init : 0xc0656000 - 0xc0690080   ( 233 kB)
[    0.000000]       .data : 0xc0692000 - 0xc06d9a40   ( 287 kB)
[    0.000000]        .bss : 0xc06d9a40 - 0xc074e224   ( 466 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000]
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p4
[    0.000000]
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000456] Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232)
[    0.060028] pid_max: default: 32768 minimum: 301
[    0.060080] Security Framework initialized
[    0.060090] AppArmor: AppArmor initialized
[    0.060109] Mount-cache hash table entries: 512
[    0.061617] Initializing cgroup subsys memory
[    0.061635] Disabling memory control group subsystem
[    0.061639] Initializing cgroup subsys devices
[    0.061643] Initializing cgroup subsys freezer
[    0.061646] Initializing cgroup subsys blkio
[    0.061672] CPU: Testing write buffer coherency: ok
[    0.061782] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.061815] Setting up static identity map for 0xc04c3fb0 - 0xc04c4008
[    0.061950] mvebu-pmsu: Initializing Power Management Service Unit
[    0.061984] Initializing CPU Reset module
[    0.061993] Synology DS216 GPIO Init
[    0.062683] CPU1: Booted secondary processor
[    0.121753] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.121813] Brought up 2 CPUs
[    0.121823] SMP: Total of 2 processors activated (5311.69 BogoMIPS).
[    0.121825] CPU: All CPU(s) started in SVC mode.
[    0.122125] devtmpfs: initialized
[    0.124361] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.124525] xor: measuring software checksum speed
[    0.221634]    arm4regs  :  2365.600 MB/sec
[    0.321535]    8regs     :  1630.400 MB/sec
[    0.421434]    32regs    :  1658.800 MB/sec
[    0.421438] xor: using function: arm4regs (2365.600 MB/sec)
[    0.421444] pinctrl core: initialized pinctrl subsystem
[    0.421726] regulator-dummy: no parameters
[    0.421882] NET: Registered protocol family 16
[    0.422440] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.424487] irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
[    0.424849] irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
[    0.427622] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.427627] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.435203] bio: create slab <bio-0> at 0
[    0.601284] raid6: int32x1    199 MB/s
[    0.771296] raid6: int32x2    274 MB/s
[    0.941001] raid6: int32x4    274 MB/s
[    1.110818] raid6: int32x8    303 MB/s
[    1.110822] raid6: using algorithm int32x8 (303 MB/s)
[    1.110826] raid6: using intx1 recovery algorithm
[    1.111071] mvebu-pcie pcie-controller.6: PCI host bridge to bus 0000:00
[    1.111082] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.111088] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.111094] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.111111] PCI: bus0: Fast back to back transfers enabled
[    1.111241] reg-fixed-voltage vbus-gpio.5: could not find pctldev for node /soc/internal-regs/pinctrl/vbus-gpio-pin, deferring probe
[    1.111252] platform vbus-gpio.5: Driver reg-fixed-voltage requests probe deferral
[    1.111710] SCSI subsystem initialized
[    1.112094] platform usb3_phy.4: Driver nop_usb_xceiv requests probe deferral
[    1.112336] pps_core: LinuxPPS API ver. 1 registered
[    1.112340] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.112387] PTP clock support registered
[    1.112914] Switching to clocksource armada_370_xp_clocksource
[    1.113094] AppArmor: AppArmor Filesystem Enabled
[    1.114136] NET: Registered protocol family 2
[    1.114388] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.114430] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.114468] TCP: Hash tables configured (established 4096 bind 4096)
[    1.114490] TCP: reno registered
[    1.114497] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.114509] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.114609] NET: Registered protocol family 1
[    1.114743] RPC: Registered named UNIX socket transport module.
[    1.114748] RPC: Registered udp transport module.
[    1.114751] RPC: Registered tcp transport module.
[    1.114754] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.114845] Trying to unpack rootfs image as initramfs...
[    2.895436] Freeing initrd memory: 4952K (c0f01000 - c13d7000)
[    2.895619] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    2.897081] audit: initializing netlink socket (disabled)
[    2.897103] type=2000 audit(2.890:1): initialized
[    2.898388] VFS: Disk quotas dquot_6.5.2
[    2.898447] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.898778] NFS: Registering the id_resolver key type
[    2.898799] Key type id_resolver registered
[    2.898803] Key type id_legacy registered
[    2.898825] msgmni has been set to 998
[    2.899388] async_tx: api initialized (async)
[    2.899581] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.899587] io scheduler noop registered
[    2.899604] io scheduler cfq registered (default)
[    2.900480] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.900993] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.933366] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.963279] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.963290] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.964403] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.003289] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    3.033302] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    3.033312] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    3.034895] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.057089] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    3.819040] console [ttyS0] enabled
[    3.843044] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
[    3.853274] brd: module loaded
[    3.856342] Loading iSCSI transport class v2.0-870.
[    3.863834] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.872665] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.883114] scsi0 : ahci_mv_platform
[    3.887232] scsi1 : ahci_mv_platform
[    3.891304] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.899277] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.910029] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.924435] NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
[    3.936553] Bad block table found at page 131008, version 0x01
[    3.942761] Bad block table found at page 130944, version 0x01
[    3.948938] 8 ofpart partitions found on MTD device armada-nand
[    3.954920] Creating 8 MTD partitions on "armada-nand":
[    3.960168] 0x000000000000-0x000000500000 : "U-Boot"
[    3.966283] 0x000000500000-0x000000a00000 : "uImage"
[    3.972518] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    3.978861] 0x000000f00000-0x00000c800000 : "image.cfs"
[    3.985226] 0x00000c800000-0x00000d700000 : "rescue fw"
[    3.991714] 0x00000d700000-0x00000eb00000 : "config"
[    3.997850] 0x00000eb00000-0x00000f500000 : "reserve1"
[    4.004082] 0x00000f500000-0x00000ff00000 : "reserve2"
[    4.013907] SoC: model = 0x6820, revision = 0x4
[    4.018524] mvPncVirtBase = 0xe1c00000, pncTcamSize = 1024
[    4.024053]   o 3 Giga ports supported
[    4.027817]   o SKB recycle supported for SWF (Disabled)
[    4.033159]   o NETA acceleration mode 4
[    4.037096]   o BM supported for CPU: 4 BM pools
[    4.041730]   o PnC supported (Enabled)
[    4.045595]   o RX Queue support: 8 Queues * 256 Descriptors
[    4.051278]   o TX Queue support: 8 Queues * 532 Descriptors
[    4.056967]   o GSO supported
[    4.059943]   o GRO supported
[    4.062919]   o Receive checksum offload supported
[    4.067735]   o Transmit checksum offload supported
[    4.072629]   o Driver ERROR statistics enabled
[    4.077179]   o Driver INFO statistics enabled
[    4.081638]   o Driver DEBUG statistics enabled
[    4.086187]
[    4.088728] port #2: is_sgmii=1, is_rgmii=0, phy_addr=0
[    4.094016]   o Loading network interface(s) for port #2: cpu_mask=0x3, tx_csum_limit=2048
[    4.102328]
[    4.103828]   o Port 2 is connected to Linux netdevice
[    4.113402]     o eth0, ifindex = 2, GbE port = 2
[    4.118141]     o eth0, phy chipid = 1410dd0, Support WOL = 32
[    4.127424]  giga p=2: mtu=1500, mac=00:50:43:02:02:03 (platform)
[    4.133561]
[    4.135782] libphy: orion_mdio_bus: probed
[    4.140049] mdio_bus f1072004.mdio-mi: cannot get PHY at address 1
[    4.146428] mdio_bus f1072004.mdio-mi: cannot get PHY at address 4
[    4.155794] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    4.223120] i2c /dev entries driver
[    4.238817] thermal thermal_zone0: Temperature sensor reading not valid
[    4.245477] thermal thermal_zone0: failed to read out thermal zone 0
[    4.252139] md: linear personality registered for level -1
[    4.257663] md: raid0 personality registered for level 0
[    4.263015] md: raid1 personality registered for level 1
[    4.268348] md: raid10 personality registered for level 10
[    4.273859] md: raid6 personality registered for level 6
[    4.279190] md: raid5 personality registered for level 5
[    4.284526] md: raid4 personality registered for level 4
[    4.290094] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    4.298582] cpuidle: using governor ladder
[    4.303131] ledtrig-cpu: registered to indicate activity on CPUs
[    4.309567] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    4.318931] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
[    4.328027] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff
[    4.337752] mvCesaInit: channels=2, session=640, queue=256
[    4.354267] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    4.363683] cesadev_init(c0675348)
[    4.367799] TCP: cubic registered
[    4.371130] NET: Registered protocol family 17
[    4.375664] Key type dns_resolver registered
[    4.379989] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    4.390532] registered taskstats version 1
[    4.394906] regulator-dummy: disabling
[    4.401675] vbus-gpio: 5000 mV
[    4.416262] input: gpio_keys.3 as /devices/soc.0/internal-regs.1/gpio_keys.3/input/input0
[    4.434994] mvebu-rtc f10a3800.rtc: setting system clock to 2017-05-15 01:57:02 UTC (1494813422)
[    4.462958] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.469182] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.475485] ata2.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    4.482220] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.489191] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    4.495939] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.502841] ata2.00: configured for UDMA/133
[    4.507224] ata1.00: configured for UDMA/133
[    4.512077] scsi 0:0:0:0: Direct-Access     WDC      WD20EFRX-68EUZN0         82.0 PQ: 0 ANSI: 5
[    4.523348] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    4.531134] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.539995] sd 0:0:0:0: [sda] Write Protect is off
[    4.542091] scsi 1:0:0:0: Direct-Access     WDC      WD20EFRX-68EUZN0         82.0 PQ: 0 ANSI: 5
[    4.553403] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    4.553406] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    4.553499] sd 1:0:0:0: [sdb] Write Protect is off
[    4.553544] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.581863] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.603886]  sdb: sdb1 sdb2 sdb3
[    4.612467]  sda: sda1 sda2 sda3
[    4.617736] sd 1:0:0:0: [sdb] Attached SCSI disk
[    4.640899] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.645718] Freeing unused kernel memory: 232K (c0656000 - c0690000)
START /linuxrc.syno
Insert basic USB modules...
:: Loading module usb-common ... [  OK  ]
:: Loading module usbcore[    4.847724] usbcore: registered new interface driver usbfs
[    4.854129] usbcore: registered new interface driver hub
[    4.865046] usbcore: registered new device driver usb
 ... [  OK  ]
:: Loading module ehci-hcd[    4.891405] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 ... [  OK  ]
:: Loading module xhci-hcd[    4.929348] xhci-hcd f10f8000.usb3: failed to get Vbus gpio
[    4.934985] xhci-hcd f10f8000.usb3: USB2 Vbus gpio -1
[    4.940064] xhci-hcd f10f8000.usb3: power control disabled
[    4.945601] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.950948] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 1
[    4.958629] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    4.965092] hub 1-0:1.0: USB hub found
[    4.968874] hub 1-0:1.0: 1 port detected
[    4.972975] xhci-hcd f10f8000.usb3: USB3 Vbus gpio -1
[    4.978056] xhci-hcd f10f8000.usb3: power control disabled
[    4.983589] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.988937] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    4.999226] hub 2-0:1.0: USB hub found
[    5.003041] hub 2-0:1.0: 1 port detected
 ... [  OK  ]
:: Loading module ehci-orion[    5.054677] ehci-orion: EHCI orion driver
 ... [  OK  ]
Insert net driver(Mindspeed only[    5.075550] synobios: load, major number 201
)...
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
[    5.093942] synobios: unload
[    5.115293] md: Autodetecting RAID arrays.
[    5.155614] md: invalid raid superblock magic on sda3
[    5.160691] md: sda3 does not have a valid v0.90 superblock, not importing!
[    5.217863] md: invalid raid superblock magic on sdb3
[    5.222950] md: sdb3 does not have a valid v0.90 superblock, not importing!
[    5.229948] md: Scanned 6 and added 4 devices.
[    5.234415] md: autorun ...
[    5.237219] md: considering sda1 ...
[    5.240815] md:  adding sda1 ...
[    5.244068] md: sda2 has different UUID to sda1
[    5.248622] md:  adding sdb1 ...
[    5.251864] md: sdb2 has different UUID to sda1
[    5.256428] md: created md0
[    5.259232] md: bind<sdb1>
[    5.261975] md: bind<sda1>
[    5.264712] md: running: <sda1><sdb1>
[    5.268699] md/raid1:md0: active with 2 out of 2 mirrors
[    5.274081] md0: detected capacity change from 0 to 2549940224
[    5.280118] md: considering sda2 ...
[    5.283743] md:  adding sda2 ...
[    5.287001] md:  adding sdb2 ...
[    5.292391] md: created md1
[    5.295232] md: bind<sdb2>
[    5.297984] md: bind<sda2>
[    5.300730] md: running: <sda2><sdb2>
[    5.306460] md/raid1:md1: not clean -- starting background reconstruction
[    5.313295] md/raid1:md1: active with 2 out of 2 mirrors
[    5.318702] md1: detected capacity change from 0 to 2147418112
[    5.324833] md: ... autorun DONE.
[    5.326789] md: md1: current auto_remap = 0
[    5.326793] md: resync of RAID array md1
[    5.326794] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
[    5.326796] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[    5.326800] md: using 128k window, over a total of 2097088k.
Partition Version=8
 /sbin/e2fsck exists, checking /dev/md0...
[    5.896348]  md0: unknown partition table
1.42.6-8438: recovering journal

       26190 inodes used (16.83%, out of 155648)
          80 non-contiguous files (0.3%)
          11 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 24246/13
      224199 blocks used (36.01%, out of 622544)
           0 bad blocks
           1 large file

       21356 regular files
        2612 directories
           2 character device files
           0 block device files
           0 fifos
        1315 links
        2211 symbolic links (1921 fast symbolic links)
           0 sockets
------------
       27496 files
/sbin/e2fsck returns 1
Mounting /dev/md0 /tmpRoot
[    7.468942] EXT4-fs (md0): barriers disabled
[    7.483211] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts:
------------upgrade
Begin upgrade procedure
No upgrade file exists
End upgrade procedure
============upgrade
Wait 2 seconds for synology manufactory device
>>: fa 03 01 00 00 00 fb
<<: fa 30 00 00 00 00 fb
>>: fa 02 00 80 00 00 fb
<<: fa 30 00 00 00 00 fb
Mon May 15 01:57:07 UTC 2017
/dev/md0 /tmpRoot ext4 rw,relatime,journal_checksum,data=ordered 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,relatime,size=253088k,nr_inodes=63272,mode=755 0 0
proc /proc proc rw,relatime 0 0
linuxrc.syno executed successfully.
Post init
[   10.028543] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: barrier=1
[   10.856704] EXT4-fs (md0): re-mounted. Opts: (null)
[   13.335009] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   13.340456] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   13.598067]  md1: unknown partition table
[   14.022938] md: md_do_sync() got signal ... exiting
[   14.028098] md: checkpointing resync of md1.
[   14.032390] md: md1: current auto_remap = 0
[   14.060092] md1: detected capacity change from 2147418112 to 0
[   14.065973] md: md1: set sda2 to auto_remap [0]
[   14.070521] md: md1: set sdb2 to auto_remap [0]
[   14.075078] md: md1 stopped.
[   14.077975] md: unbind<sda2>
[   14.112943] md: export_rdev(sda2)
[   14.116283] md: unbind<sdb2>
[   14.152941] md: export_rdev(sdb2)
[   14.771294] md: bind<sda2>
[   14.774186] md: bind<sdb2>
[   14.790051] md/raid1:md1: not clean -- starting background reconstruction
[   14.796894] md/raid1:md1: active with 2 out of 2 mirrors
[   14.802267] md1: detected capacity change from 0 to 2147418112
[   14.808301] md: md1: current auto_remap = 0
[   14.812509] md: resync of RAID array md1
[   14.816468] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
[   14.819558]  md1: unknown partition table
[   14.826368] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[   14.835817] md: using 128k window, over a total of 2097088k.
[   15.191044] Adding 2097084k swap on /dev/md1.  Priority:-1 extents:1 across:2097084k
==================== start udevd ====================
[   16.360633] NET: Registered protocol family 10
[   16.425913] sit: IPv6 over IPv4 tunneling driver
[   16.739834] init: syno-auth-check main process (1657) killed by TERM signal
[   17.713463] cryptodev: module license 'BSD' taints kernel.
[   17.718976] Disabling lock debugging due to kernel taint
[   17.899518] encryptfs using the OCF package.
[   18.022000] fuse init (API version 7.22)
[   18.105192] Loading modules backported from Linux version v3.18.1-0-g39ca484
[   18.112316] Backport generated by backports.git v3.18.1-1-0-g5e9ec4c
[   18.285649] zlib_deflate: exports duplicate symbol zlib_deflate (owned by kernel)
[   18.380436] systemd-udevd[2043]: starting version 204
===== trigger device plug event =====
[   18.498490] synobios: load, major number 201
[   20.570950] pool #2: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
[   20.578506] eth0: started
[   20.581377] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.442165] init: dhcp-client (eth0) main process (3064) killed by TERM signal
[   24.403706] ata1.00: configured for UDMA/133
[   24.408035] ata1: EH complete
[   24.412913] ata2.00: configured for UDMA/133
[   24.417268] ata2: EH complete
[   24.498581] synobios_ioctl: un-defined ioctl number c0044b25
[   24.631688] init: synotifyd main process ended, respawning
[   24.688423] ehci-pci: EHCI PCI platform driver
[   24.785215] init: synotifyd main process ended, respawning
[   24.844462] init: synotifyd main process ended, respawning
[   24.905818] usbcore: registered new interface driver usb-storage
[   24.955096] usbcore: registered new interface driver usblp
[   25.048019] usbcore: registered new interface driver usbhid
[   25.053679] usbhid: USB HID core driver
[   25.174622] init: synotifyd main process ended, respawning
[   25.220577] init: synotifyd main process ended, respawning
[   25.318872] init: synotifyd respawning too fast, stopped

toasteroven login: [   27.368439] ata1.00: configured for UDMA/133
[   27.372741] ata1: EH complete
[   27.450504] ata2.00: configured for UDMA/133
[   27.454846] ata2: EH complete
[   45.155124] md: md1: resync done.
[   45.164403] md: md1: current auto_remap = 0
[   75.713610] init: ssh-shell pre-start process (4744) terminated with status 127
[   76.155059] init: ssh-shell post-stop process (4849) terminated with status 127                                                                                                                 
[   77.475442] target_core_mod_4_0: version magic '3.10.77 SMP mod_unload ARMv7 p2v8 ' should be '3.10.35 SMP mod_unload ARMv7 p2v8 '
[   77.553967] init: s2s_daemon main process (5165) terminated with status 127
[   77.561083] init: s2s_daemon faild on spawn stage, stopped
[   77.628838] init: sshd main process (4922) terminated with status 255
[   77.663175] init: sshd faild on spawn stage, stopped
[   79.194123] loop: module loaded
[   83.120592] init: nmbd main process (5227) killed by TERM signal
[   85.023614] synobios_ioctl: un-defined ioctl number c0044b24
[   85.038213] synobios_ioctl: un-defined ioctl number c0044b26
[   85.044432] synobios_ioctl: un-defined ioctl number c0044b25

#366

I’m back up and running again. Replaced some libraries and such. I appreciate the active debug and information sharing going on with this project :slight_smile:

Fox, on May 2nd you mentioned the corrupted files are the following:

/usr/lib/libfileindex.so
/usr/lib/libsynopkg.so
/usr/lib/libsynoshare.so
/usr/lib/libsynostoragemgmt.so

And you provided a link which contains http://anionix.ddns.net/WDMyCloud/WDMyCloud-Mirror-Gen2/DSM/original_libs/:

0d277fbe68caee19da319619266e4898 libfileindex.so.6.0
912617dcdb7339cc021a94d720ec7c9f libsynopkg.so.1
e93361bfaafba00f076ac557070c068d libsynoshare.so.6
2f6406ab3f41d8b4410ff81013d7641d libsynostorage.so.6

Did you mean to upload libsynostoragemgmt.so instead of libsynostorage.so.6?


#367

I’d think so, libsynostoragemgmt.so is on the list of files getting corrupted, makes little sense if not. Or libsynostorage would corrupt too, but never had to replace on my end.

Edit: Wow, caused corruption today by logging into the gui and browsing packages :anguished:


#368

Well, I see in good activity in this thread. Well, i start to porting latest DSM to our devices.
Synology was uploaded latest kernel sources. Good start point. Maybe (i hope) our problem will fixed in this kernel/firmware…


#369

Hi folks,

I would like very much to port my wd my cloud to dsm but i’m a bit afraid of data getting corrupted.
Also I don’t like to install custom firmware without understanding what’s going on.

Can you be so kind to explain every step required to accomplish the migration? Ex, where to get the kernel sources, which modifications/patch to apply, how to extract the root of dsm and how to adapt to our deviced etc…
I would really love to learn and maybe add my contributions.

Thank you very much!


#370

Hi,
I have WD My cloud DL4100, any one can help with installing DSM on it ?
Thanks


#371

Hi,
the migration steps have been explained quite often, last time just about 10 post above yours;)
The actual details are much more nittty gritty I am afraid.


#372

I don’t talk of the migration details, that are quite simple and well explained.
I talk about any step required to build by my own the DSM firmware for WD :slight_smile:

Also, any information about the stability? The library corruption bug how bad is it?


#373

I managed to run lsof now with full temp. but little to no info:

The actual files have no access (any more) by the time I run the script (a sec or two after creation):
/root/get_lsof.sh
Starting check at 20170516104936
/tmp/1n7csI:
/tmp/1zQPg6:
/tmp/8Jfqyb:
/tmp/Beltn4:
/tmp/F8n9al:
/tmp/H1TCvY:
/tmp/HplVjw:
/tmp/L6H8g9:
/tmp/NAZTJp:
/tmp/NCLnev:
/tmp/PbOnZC:
/tmp/TB3VJp:
/tmp/XfcsmI:
/tmp/dSmDe6:
/tmp/dwPh0P:
/tmp/jT6rAw:
/tmp/pUYGtl:
/tmp/zfqyvj:
done

On folder:
bash-4.3# lsof /tmp
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
synologac 1522 root 5u FIFO 0,14 0t0 751 /tmp/syslog_recv.fifo (deleted)
synologac 1522 root 6u FIFO 0,14 0t0 483 /tmp/syslog_local.fifo (deleted)
synonetd 1700 root 3r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
iscsi_sna 5170 root 4u FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 5w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 6w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 9w FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
iscsi_sna 5180 root 4w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5180 root 5u FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
iscsi_sna 5180 root 6w FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
smbd 6929 root 35r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
pulseaudi 10459 root 20r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
syno_mail 10595 root 3uW REG 0,14 12288 24700 /tmp/mailserver_notifier.db (deleted)
avahi-dae 11094 root 10r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
bash-4.3# lsof /tmp
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
synologac 1522 root 5u FIFO 0,14 0t0 751 /tmp/syslog_recv.fifo (deleted)
synologac 1522 root 6u FIFO 0,14 0t0 483 /tmp/syslog_local.fifo (deleted)
synonetd 1700 root 3r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
iscsi_sna 5170 root 4u FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 5w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 6w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5170 root 9w FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
iscsi_sna 5180 root 4w FIFO 0,14 0t0 10832 /tmp/synocomm_pipe_svr_msg_req (deleted)
iscsi_sna 5180 root 5u FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
iscsi_sna 5180 root 6w FIFO 0,14 0t0 10050 /tmp/synocomm_pipe_rep_5180 (deleted)
smbd 6929 root 35r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
pulseaudi 10459 root 20r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)
syno_mail 10595 root 3uW REG 0,14 12288 24700 /tmp/mailserver_notifier.db (deleted)
avahi-dae 11094 root 10r REG 0,14 73 2977 /tmp/.syno_dbus_session_address (deleted)

There are some defunct processes
ps -aux |grep defunct
root 2335 0.6 0.0 0 0 ? Zs 10:52 0:00 [SYNO.Core.FileI]
system 2340 2.0 0.0 0 0 ? Zs 10:52 0:00 [SYNO.Core.Polli]

But nothing else I knew to check :frowning:


#374

No idea re building your own dsm, sorry

Corruption is not really bad since its easily found and fixed. Its only libraries not data


#375

I’d like to build by myself the firmware because I have the impression it isn’t based on the ds216j that looks to me the more similar to our my cloud mirror gen 2. I’m only speculating because I don’t know how our DSM is built, and which codebase is used.


#376

@rdelpopolo, Kernel - From official SVN + two modifications for internal NAND flash chip support (For rollback/update kernel).
Firmware file - Replaced Updater tool (Simple SH script). Firmware packer and other instructions - from XPenology project).
Removed some syscalls to UART1 (MCU), replaced others. GPIO fixed (HDD Led’s pins, USB power etc).

Synobios - Found in one of old XPenology builds for VMWare, modified by me for support latest kernel (More Syno SysCalls).

DTS file - from WD sources + cleanup and update to more newer kernel.

Main rootfs image - Replaced kernel modules. All other - original.
Initrd - almost too (Removed some bugged code, unsupported functions).

Need more? Download original source code and use any Diff tool (WinMerge for exammple) and see all my changes.


#377

Wooo excited to test out the latest kernel sources! Thanks Fox!

In the meantime, could you or Rand share with me an uncorrupted libsynostoragemgmt.so? Mines certainly messed and preventing me from managing my disks from the gui. Either that, or is it acceptable to pop the drives out and perform a “reinstall”? Should keep my files intact?