for those wanting to extract these themselves;
- image your DOM as per this post.
- copy the image to another box.
- mount one of the two boot partitions as per this, I used the second partition, YMMV.
- copy boot/initrd.boot to some place ([user@PC]# cp boot/initrd.boot /tmp/initrd.boot.gz)
- copy boot/rootfs2.bz to some place ([user@PC]# cp boot/rootfs2.bz /tmp/)
- extract the initrd ([user@PC]# cd /tmp && gunzip initrd.boot.gz)
- loop mount the initrd ([user@PC]# mkdir /tmp/initrd ; sudo mount -o loop,ro initrd.boot /tmp/initrd)
- copy out files (see below)
- unmount the initrd ([user@PC]# sudo unmount -d /tmp/initrd)
- extract the rootfs ([user@PC]# mkdir /tmp/rootfs ; cd /tmp/rootfs && tar xvjf ../rootfs2.bz)
from sbin of the initrd, copy these to /sbin/ on the target
- lcd_hwtest (I'm not yet sure if this is useful when not using the QNAP distribution)
- lcdmond (I'm not yet sure if this is useful when not using the QNAP distribution)
- lcd_tool (used to write to the LCD)
- get_time (used by lcd_tool)
from lib (ldd tells us, oh and ignore linux-gate.so.1), tar up these (including symlinks) and extract to /usr/lib/qnap/ on the target
- libuLinux_config.so*
- libuLinux_naslog.so*
- libuLinux_NAS.so*
- libuLinux_PDC.so*
- libuLinux_quota.so*
- libuLinux_Storage.so*
- libuLinux_Util.so*
- Code: Select all
[user@PC]# cd /tmp/rootfs/usr/lib/
[user@PC]# tar cvjf /tmp/libs.tar.bz2 libuLinux_config.so* libuLinux_naslog.so* libuLinux_NAS.so* libuLinux_PDC.so* libuLinux_quota.so* libuLinux_Storage.so* libuLinux_Util.so*
[user@PC]# scp /tmp/libs.tar.bz2 root@qnap:/tmp/
[root@qnap]# mkdir /usr/lib/qnap
[root@qnap]# cd /usr/lib/qnap
[root@qnap]# tar xfjv /tmp/usr_lib.tar.bz2
create /etc/ld.so.conf.d/qnap-lcd.conf (on Red Hat distributions, yours may have a different path name) containing
- Code: Select all
/usr/lib/qnap
remember to run
- Code: Select all
ldconfig
after configuring it to also look in /usr/lib/qnap
- Code: Select all
[root@qnap]# lcd_tool -h
is self-explanatory.
If someone has input on the other two binaries, please share.