Re: Synology DS416 unbricking July 04, 2022 09:20AM |
Registered: 1 year ago Posts: 17 |
09:12:25 msnyder ~ ds416 cp -a zImage-5.18.6-armv7-tld-3 zImage.fdt 09:12:34 msnyder ~ ds416 cat /srv/tftp/alpine-db.dtb >> zImage.fdt 09:12:46 msnyder ~ ds416 mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.18.6-armv7-tld-3 -d zImage.fdt uImage Image Name: Linux-5.18.6-armv7-tld-3 Created: Mon Jul 4 09:12:54 2022 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5198491 Bytes = 5076.65 KiB = 4.96 MiB Load Address: 00008000 Entry Point: 00008000 09:12:55 msnyder ~ ds416 mv uImage /srv/tftp
Press Ctrl+C to abort autoboot in 3 second ALPINE_DB> dhcp al_eth0 Waiting for PHY auto negotiation to complete...... done BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 *** Unhandled DHCP Option in OFFER/ACK: 119 *** Unhandled DHCP Option in OFFER/ACK: 119 DHCP client bound to address 10.0.0.236 ALPINE_DB> setenv bootargs console=ttyS0,115200 earlyprintk=serial ALPINE_DB> tftpboot 0x2000000 uImage Using al_eth0 device TFTP from server 10.0.0.17; our IP address is 10.0.0.236 Filename 'uImage'. Load address: 0x2000000 Loading: T ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################## 789.1 KiB/s done Bytes transferred = 5198555 (4f52db hex) ALPINE_DB> bootm 0x2000000 ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-5.18.6-armv7-tld-3 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5198491 Bytes = 5 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ...
Re: Synology DS416 unbricking July 04, 2022 03:12PM |
Admin Registered: 12 years ago Posts: 17,890 |
Re: Synology DS416 unbricking July 04, 2022 03:27PM |
Admin Registered: 12 years ago Posts: 17,890 |
file zImage.5 mkimage -l zImage.5
Re: Synology DS416 unbricking July 04, 2022 03:33PM |
Registered: 1 year ago Posts: 17 |
$ file zImage.5 zImage.5: u-boot legacy uImage, Linux-3.2.40, Linux/ARM, OS Kernel Image (Not compressed), 2307304 bytes, Thu Nov 12 09:17:41 2015, Load Address: 0x00008000, Entry Point: 0x00008000, Header CRC: 0xBADB1C4A, Data CRC: 0xA418269E $ mkimage -l zImage.5 Image Name: Linux-3.2.40 Created: Thu Nov 12 03:17:41 2015 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2307304 Bytes = 2253.23 KiB = 2.20 MiB Load Address: 00008000 Entry Point: 00008000
Re: Synology DS416 unbricking July 04, 2022 03:57PM |
Admin Registered: 12 years ago Posts: 17,890 |
ALPINE_DB> fdt print uart0 { compatible = "ns16550a"; reg = <0x00000000 0xfd883000 0x00000000 0x00001000>; clock-frequency = <0x00000000>; interrupts = <0x00000000 0x00000011 0x00000004>; reg-shift = <0x00000002>; reg-io-width = <0x00000004>;
Re: Synology DS416 unbricking July 04, 2022 09:40PM |
Admin Registered: 12 years ago Posts: 17,890 |
zImage-5.18.6-armv7-tld-4 alpine-db.dtb
cp -a zImage-5.18.6-armv7-tld-4 zImage.fdt cat alpine-db.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.18.6-armv7-tld-4 -d zImage.fdt uImage
setenv bootargs console=ttyS0,115200 earlyprintk=serial tftpboot 0x2000000 uImage bootm 0x2000000
Re: Synology DS416 unbricking July 04, 2022 10:19PM |
Registered: 1 year ago Posts: 17 |
Press Ctrl+C to abort autoboot in 3 second ALPINE_DB> dhcp al_eth0 Waiting for PHY auto negotiation to complete....... done BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 *** Unhandled DHCP Option in OFFER/ACK: 119 *** Unhandled DHCP Option in OFFER/ACK: 119 DHCP client bound to address 10.0.0.236 ALPINE_DB> setenv bootargs console=ttyS0,115200 earlyprintk=serial ALPINE_DB> tftpboot 0x2000000 uImage Using al_eth0 device TFTP from server 10.0.0.17; our IP address is 10.0.0.236 Filename 'uImage'. Load address: 0x2000000 Loading: T ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################### 770.5 KiB/s done Bytes transferred = 5038563 (4ce1e3 hex) ALPINE_DB> bootm 0x2000000 ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-5.18.6-armv7-tld-4 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5038499 Bytes = 4.8 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ...
Re: Synology DS416 unbricking July 05, 2022 04:41PM |
Admin Registered: 12 years ago Posts: 17,890 |
Quote
zImage.5 and rd.bin.5 both came from the Synology website, I extracted them from DSM version 5 image, DSM_DS416_5644.pat, then extracted them with 7za. I then renamed them with the .5 suffix to differentiate between the different versions I had downloaded. I tried these files from DSM6 and DSM7 as well, but didn't get as far, those were giving me the 'invalid instruction' messages.
setenv bootargs console=ttyS0,115200 earlyprintk=serial setenv fdtaddr tftpboot 0x08000000 zImage.5 bootm 0x08000000.
Re: Synology DS416 unbricking July 05, 2022 09:12PM |
Registered: 1 year ago Posts: 17 |
Re: Synology DS416 unbricking July 05, 2022 09:43PM |
Admin Registered: 12 years ago Posts: 17,890 |