TS-228: Firmware Image

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

TS-228: Firmware Image

Post by sleepwalk3r »

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)
 

Thanks!
Martin.
Last edited by sleepwalk3r on Fri Feb 26, 2021 6:20 am, edited 2 times in total.
TS-219P II | TS-228
sleepwalk3r
New here
Posts: 5
Joined: Sun Mar 18, 2012 2:12 am

Re: TS-228: Full Firmware Image

Post by sleepwalk3r »

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 
Thanks!
TS-219P II | TS-228
Suiluj_juliuS
New here
Posts: 3
Joined: Thu Mar 04, 2021 12:22 am

Re: TS-228: Firmware Image

Post by Suiluj_juliuS »

Hi sleepwalk3r,
I uploaded the image to file.io, the link is https://file.io/aky3nXgfgjBl. Let me know if this works for you.
Cheers, Julius
-QNAP TS228-
sleepwalk3r
New here
Posts: 5
Joined: Sun Mar 18, 2012 2:12 am

Re: TS-228: Firmware Image

Post by sleepwalk3r »

Thanks for the image.
Unfortunately - it turns out that the "mmcblk0boot0" (and mmcblk0boot1) are probably not used on TS-X28.
When viewed in a hex editor , it's jsut zeroes. So it seems my problem is somewhere else 😕

I probably need the full emmc dump to fix my problem.
TS-219P II | TS-228
tomlohave
First post
Posts: 1
Joined: Sun Apr 18, 2021 2:42 pm

Re: TS-228: Firmware Image

Post by tomlohave »

Here is a full image (2,4 GB) for a TS-228 (not A)
https://easyupload.io/m47313
md5sum : c75889a913eb82d5cbbf695ea92d7875 emmc.img.gz
Best
krassespferd
First post
Posts: 1
Joined: Tue Sep 21, 2021 3:31 am

Re: TS-228: Firmware Image

Post by krassespferd »

Hi,
Could anybody re-upload the file?

Many thanks!
Post Reply

Return to “Miscellaneous”