That’s exactly the message I had. You can follow the steps in the guide I wrote and you should be able to restore. Don’t worry, it’s not lost. You will get it back.by bignellrp - uBoot
VectraT, Did you get any reply on the Synology forum? If you get a login you should just be able to use Linux commands to diagnose your network issues. Here are some Linux commands that work on syno cli. https://iced-burn.medium.com/cli-list-to-get-around-the-synology-box-ac32e34e00d9by bignellrp - uBoot
@bohdi is there a manual way of loading the stock firmware via usb similar to how I loaded your custom kernel? E.g some steps that Vectra T can follow? Or do we think he might be better discussing on the Synology forum? The Synology forum was good to me when I had an issue even though my box was out of support. Some of these might be helpful https://www.howtogeek.com/344497/how-to-by bignellrp - uBoot
You can try the steps in the guide for booting into a Linux kernel which would allow you to test the hardware works. You would need some help with the custom kernel though so you could boot it from USB. @bohdi is the DS416 supported?by bignellrp - uBoot
It says the link is up but no dhcp. If you plug a laptop in with the same cable does that get dhcp? Technically you should be able to login on the console and set a static IP. Although it looks like DSM will overwrite it when you reboot: https://community.synology.com/enu/forum/17/post/101398 If it’s factory reset the default username is admin and the password is blank. Or configby bignellrp - uBoot
Hi, It sounds like your boot partition is still ok. I had this issue once when the network cable wasn’t seated correctly. Try holding the cable in the port and confirm you get network lights either side of the port. You can use a tool like Fing to scan the network and confirm you see the MAC address of the device. Keep trying as it certainly doesn’t sound terminal. Rikby bignellrp - uBoot
Hi Joshua, You’re in the right place to get it working. Do you have any lights on it when you turn it on? I did this video for connecting a UART to my Synology from windows. Hopefully you’ll find it useful. https://youtu.be/zEcPw3UMAfc Good luck. Rikby bignellrp - uBoot
Hi Gilles, Sorry to hear your 414j cannot boot. Hopefully you can fix as i did. Im pretty sure you can use the same 414 image as you only need it to boot into to follow the commands to restore the stock uboot. Follow all the steps above and try the u-boot-spl-2019.10-tld-1.ds414.kwbby bignellrp - uBoot
Documented as more of a guide here: https://forum.doozan.com/read.php?3,100059by bignellrp - uBoot
---------------------------------------------------------------------- Synology Diskstation DS414 Unbricking ---------------------------------------------------------------------- This was many hours work so i thought it was a good idea to document properly rather than leave it online as 100 or so different forum posts (in multiple different languages) that i used to solve this tricky prby bignellrp - uBoot
Fixed!! I booted into DSM manually and did a manual update. It rewrote the image itself and now it’s booting again. Thank you again for all your help. I’ve actually found this fun especially during Corona lockdown. Waking up each morning with a new thing to try to fix my issue and learning lots in the process. I have started writing a guide showing all the steps I went through whichby bignellrp - uBoot
I've made some progress this evening. I backed up all the mtd parts using dd so thought i would try and reload the stock zImage back to mtd1 root@debian:~# flash_unlock /dev/mtd1 root@debian:~# flashcp -v zImage /dev/mtd1 Erasing blocks: 519/519 (100%) Writing data: 2074k/2074k (100%) Verifying data: 2050k/2074k (98%)File does not seem to match flash data. First mismatch at 0x001feby bignellrp - uBoot
Looks the same. Did i do something wrong? Synology DS414 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 Apr 15 05:22:02 PDT 2020 up 1 minute root@debian:~# echo "/dev/mtd4 0x00000 0x10000 0x10000" /dev/mtd4 0x00000 0x10000 0x10000 root@debian:~# catby bignellrp - uBoot
Yes, but why doesnt it say /dev/mtd4 when i "cat /etc/fw_env.config" root@debian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0000 0x80000 0x20000 4 Maybe i didnt understand your instruction here: QuoteBoot into Debian. And modify fw_enby bignellrp - uBoot
They certainly dont look right. Here is the output but it says its on mtd1?? root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 000d0000 00001000 "u-boot" mtd1: 002d0000 00001000 "zimage" mtd2: 00430000 00001000 "rd" mtd3: 00010000 00001000 "vendor" mtd4: 00010000 00001000 "u-boot-envs" mtd5: 00010000 00001000 "fby bignellrp - uBoot
Thanks. I'll try that in a bit. Would it help if i get the envs from a working DS214? There is an ebay listing live at the moment. I assume the 214 would be almost identical to the DS414 as they are the same model just 2 disk instead of 4. I contacted the guy and he is happy to run commands for us. What should i ask him to run? https://www.ebay.co.uk/itm/274335005779 PS I cantby bignellrp - uBoot
It seems nanddump is not supported but dd works. Im not sure it liked my custom mtdparts as none of my labels are shown [ 3.718159][ T1] m25p80 spi0.0: n25q064 (8192 Kbytes) [ 3.723530][ T1] mtd: partition has size 0 [ 3.727942][ T1] 6 fixed-partitions partitions found on MTD device spi0.0 [ 3.735025][ T1] Creating 6 MTD partitions on "spi0.0": [ 3.7by bignellrp - uBoot
bodhi Wrote: ------------------------------------------------------- > Restore stock u-boot. > > Prerequisite: > > Make sure the uboot_DS414r1.bin size is less than > or equal to 832K. If it is larger, then it will > not work. > > Flashing Steps: > > Repeat the kwboot booting. Interrupt serial > console and > > > setenv bootargsby bignellrp - uBoot
Do the settings live on another partition as its not changed. Still hangs at the same point with the stock uboot. E.g. do i need to erase mtd4? root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 000d0000 00001000 "RedBoot" mtd1: 002d0000 00001000 "zImage" mtd2: 00430000 00001000 "rd.gz" mtd3: 00010000 00001000 "vendor" mtd4: 0001by bignellrp - uBoot
Got it. You have to specify the exact amount in bytes without the B 90 % [......................................................................] 91 % [......................................................................] 92 % [......................................................................] 93 % [......................................................................] 95 %by bignellrp - uBoot
I guess not: [ 3.752183][ T1] m25p80 spi0.0: n25q064 (8192 Kbytes) [ 3.757552][ T1] mtd: bad character after partition (B) Maybe go as close as possible in multiples of 64 bytes but thats 13x64 = 832K which is what you had before.by bignellrp - uBoot
I think i see the problem now. Its complaining the value is not on the boundry as i didnt choose a value that was a multiple of 64 bytes [ 3.746980][ T1] Creating 2 MTD partitions on "spi0.0": [ 3.752500][ T1] 0x000000000000-0x0000000ca800 : "u-boot" [ 3.758176][ T1] mtd: partition "u-boot" doesn't end on an erase/write block -- force rby bignellrp - uBoot
Ok. I made some progress. I noticed the uboot bin was only 809k so i changed the mtdparts to 810k and i can boot. But i get permission denied on the flash unlock root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 000ca800 00001000 "u-boot" mtd1: 00735800 00001000 "data" root@debian:~# flash_unlock /dev/mtd0 flash_unlock: error!: could not open: /dev/by bignellrp - uBoot
I tried setting the fstab to /dev/sda1 and disabling the disk check but it still hangs here: INIT: version 2.93 booting Using makefile-style concurrent boot in runlevel S. ERROR: could not open /proc/stat: No such file or directory Files under mount point '/run' will be hidden. ... (warning). [ ok ] Starting hotplug events dispatcher: systemd-udevd. [ ok ] Synthesizing the iby bignellrp - uBoot
I cant get it to boot with those mtdparts vars.... 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 91 % [......................................................................] 92 % [..............by bignellrp - uBoot
Attempt 2 with initrd loaded 93 % [......................................................................] 95 % [......................................................................] 96 % [......................................................................] 97 % [......................................................................] 99 % [......................................by bignellrp - uBoot
First attempt to boot back into debian with the new bootargs failed. Something about the label again: I'll try again 92 % [......................................................................] 93 % [......................................................................] 95 % [......................................................................] 96 % [...................by bignellrp - uBoot
I’ve been read another one of your posts on restoring a Synology to stock and it suggested you might need the following printouts: https://forum.doozan.com/read.php?2,76314,page=18 root@debian:~# fw_printenv Warning: Bad CRC, using default environment bootcmd=run distro_bootcmd bootdelay=2 baudrate=115200 stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vby bignellrp - uBoot
GOT IT!!! I 100% owe you a beer. I will certainly be donating to the charity from your link. (https://www.doctorswithoutborders.org/) Can you help me from here to restore the stock uboot bin to the flash? debian login: root Password: Last login: Thu Sep 5 01:58:44 PDT 2019 from 192.168.0.100 on pts/0 Linux debian 5.2.9-mvebu-tld-1 #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 armv7by bignellrp - uBoot
YAY! It booted. I set the root to root=/dev/sda1 Whats the default username/pass? 95 % [......................................................................] 96 % [......................................................................] 97 % [......................................................................] 99 % [.....................................................]by bignellrp - uBoot