TS-228: Firmware Image

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
New here
Posts: 4
Joined: Sun Mar 18, 2012 2:12 am

TS-228: Firmware Image

Post by sleepwalk3r » Wed Feb 24, 2021 2:40 am

I have an older TS-228 that got bricked during a bad firmware flash.
It seems to be dead and the usb firmware restore does not work.

I have a USB TTL device so I was able to get onto the device. It still kinda boots but it looks like the /dev/mmcblk0p5 is corrupted and most of the OS files are gone/unreadable.
many libraries are not working so i am not able to i.e. start the /sbin/bcclient to be able to update/fix the firmware via Qfinder:

Code: Select all

[~] # /sbin/bcclient
/sbin/bcclient: error while loading shared libraries: libuLinux_Util.so.0: cannot open shared object file: No such file or directory
[~] # ldd /sbin/bcclient
        libuLinux_Util.so.0 => not found
        libuLinux_config.so.0 => not found
        libuLinux_PDC.so.0 => not found
        libuLinux_NAS.so.0 => not found
        libuLinux_quota.so.0 => not found
        libuLinux_Storage.so => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6f78000)
        libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0xb6f1e000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb6ee7000)
        libcrypto.so.1.0.0 => not found
        libuLinux_cgi.so.0 => not found
        libuLinux_ini.so => /lib/libuLinux_ini.so (0xb6ed9000)
        libuLinux_hal.so => /lib/libuLinux_hal.so (0xb6e5a000)
        libuLinux_naslog.so.2 => not found
        libsqlite3.so.0 => not found
        libc.so.6 => /lib/libc.so.6 (0xb6d75000)
        /lib/ld-linux-armhf.so.3 (0xb6f9a000)
        libcrypto.so.1.0.0 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb6d69000)
        librt.so.1 => /lib/librt.so.1 (0xb6d5b000)

Last edited by sleepwalk3r on Fri Feb 26, 2021 6:20 am, edited 2 times in total.

New here
Posts: 4
Joined: Sun Mar 18, 2012 2:12 am

Re: TS-228: Full Firmware Image

Post by sleepwalk3r » Fri Feb 26, 2021 6:18 am

Hello again;

So I managed to bring the system back to life - sort of.

I've first identified that the problematic part was the rootfs2.tgz file (tested with 'gunzip -t'). This file is located on /dev/mmcblk0p3.
So i've downloaded the official firmware, decrypted (with PC1 tool ), extracted the image (it's a regular zip); located the rootfs2.tgz and copied it over.
This resolved most of the library issues i was having - but it was still impossible to restore the firmware (via Qfinder).

Next I've located the recovery files from the extracted firmware. Placed those three files on a FAT32 usb key. I've also copied over the full firmware image and renamed it to install.img (althoug this is probably not needed).

Code: Select all

$ ll /Volumes/USB/
total 431224
-rwxrwxrwx  1 sleepwalk3r  staff    5843456 Feb 25 18:08 emmc.uImage
-rwxrwxrwx  1 sleepwalk3r  staff  202333231 Mar 28  2019 install.img
-rwxrwxrwx  1 sleepwalk3r  staff      23833 Feb 25 18:07 rescue.emmc.dtb
-rwxrwxrwx  1 sleepwalk3r  staff   12582912 Feb 25 18:07 rescue.root.emmc.cpio.gz_pad.img
Booted the NAS and in the u-boot cli executed 'go ru' (rescue linux from usb)
It loaded the kernel + dtb from usb and managed to start up so that the Qfinder now sees the NAS and is also able to restore the firmware.

Now the only - last - issue I seem to have is, that the uboot on /dev/mmcblk0boot0 and /dev/mmcblk0boot1 is still corrupted (even after mutliple firmware reinstalls).
I have to manually issue a 'bootr' every time I start the box.

Please - anyone that has this system - can you please do a dump from your uboot image and share it with me? It's a small 4MB file.

Code: Select all

dd if=/dev/mmcblk0boot0  of=/share/Public/uboot.img 

Post Reply

Return to “Miscellaneous”