続いて、実際に赤外線でBSデジタルチューナを制御してみる。
yasunari@sil:~$ ls /usr/local/bin/rs_* /usr/local/bin/rs_rec /usr/local/bin/rs_send /usr/local/bin/rs_send.old yasunari@sil:~$ ls /usr/local/lib/kuro-rs/ CAUL_A DST_BX500 yasunari@sil:~$このあたり。
旧型 HS-DHGL でアーカイブを作る。
yasunari@sil:~$ cd / yasunari@sil:/$ tar zcvf /tmp/kuro-rs_command.tar.gz usr/local/bin/rs_* usr/loca l/lib/kuro-rs usr/local/bin/rs_rec usr/local/bin/rs_send usr/local/bin/rs_send.old usr/local/lib/kuro-rs/ usr/local/lib/kuro-rs/DST_BX500/ usr/local/lib/kuro-rs/DST_BX500/BUTTON_1 usr/local/lib/kuro-rs/DST_BX500/BUTTON_10 usr/local/lib/kuro-rs/DST_BX500/BUTTON_11 usr/local/lib/kuro-rs/DST_BX500/BUTTON_12 usr/local/lib/kuro-rs/DST_BX500/BUTTON_2 usr/local/lib/kuro-rs/DST_BX500/BUTTON_3 usr/local/lib/kuro-rs/DST_BX500/BUTTON_4 usr/local/lib/kuro-rs/DST_BX500/BUTTON_5 usr/local/lib/kuro-rs/DST_BX500/BUTTON_6 usr/local/lib/kuro-rs/DST_BX500/BUTTON_7 usr/local/lib/kuro-rs/DST_BX500/BUTTON_8 usr/local/lib/kuro-rs/DST_BX500/BUTTON_9 usr/local/lib/kuro-rs/DST_BX500/BUTTON_POWER usr/local/lib/kuro-rs/CAUL_A/ usr/local/lib/kuro-rs/CAUL_A/fwd usr/local/lib/kuro-rs/CAUL_A/bwd usr/local/lib/kuro-rs/CAUL_A/left usr/local/lib/kuro-rs/CAUL_A/right usr/local/lib/kuro-rs/CAUL_A/fwdleft usr/local/lib/kuro-rs/CAUL_A/fwdright usr/local/lib/kuro-rs/CAUL_A/bwdleft usr/local/lib/kuro-rs/CAUL_A/bwdright yasunari@sil:/$ftp で 新型 HS-DHGL にコピー
yasunari@slam:~$ cd /tmp yasunari@slam:/tmp$ ftp sil.yamasita.jp Connected to sil.yamasita.jp. 220 sil FTP server (GNU inetutils 1.5) ready. Name (sil.yamasita.jp:yasunari): 331 Password required for yasunari. Password: 230- Linux sil 2.6.16.16-arm1 #6 Fri Aug 31 13:07:15 JST 2007 armv5tejl 230- 230- The programs included with the Debian GNU/Linux system are free software; 230- the exact distribution terms for each program are described in the 230- individual files in /usr/share/doc/*/copyright. 230- 230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 230- permitted by applicable law. 230 User yasunari logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /tmp 250 CWD command successful. ftp> ls 200 PORT command sucessful. 150 Opening ASCII mode data connection for '/bin/ls'. total 40 drwxrwxrwt 2 root 6 Jun 21 04:47 .ICE-unix drwxrwxrwt 2 root 6 Jun 21 04:47 .X11-unix -rw-r--r-- 1 root 9198 Jun 21 15:15 fancontrol -rw-r--r-- 1 root 16378 Jun 21 06:22 hackdemaruroku.log -rw-r--r-- 1 yamasita 8823 Jun 21 15:17 kuro-rs_command.tar.gz 226 Transfer complete. ftp> bin 200 Type set to I. ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> get kuro-rs_command.tar.gz local: kuro-rs_command.tar.gz remote: kuro-rs_command.tar.gz 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'kuro-rs_command.tar.gz' (8823 bytes). ######## 226 Transfer complete. 8823 bytes received in 0.04 secs (240.2 kB/s) ftp> bye 221 Goodbye. yasunari@slam:/tmp$root になって展開する。
yasunari@slam:/tmp$ su - root Password: slam:~# cd / slam:/# ls /tmp kuro-rs_command.tar.gz slam:/# tar zxvf /tmp/kuro-rs_command.tar.gz usr/local/bin/rs_rec usr/local/bin/rs_send usr/local/bin/rs_send.old usr/local/lib/kuro-rs/ usr/local/lib/kuro-rs/DST_BX500/ usr/local/lib/kuro-rs/DST_BX500/BUTTON_1 usr/local/lib/kuro-rs/DST_BX500/BUTTON_10 usr/local/lib/kuro-rs/DST_BX500/BUTTON_11 usr/local/lib/kuro-rs/DST_BX500/BUTTON_12 usr/local/lib/kuro-rs/DST_BX500/BUTTON_2 usr/local/lib/kuro-rs/DST_BX500/BUTTON_3 usr/local/lib/kuro-rs/DST_BX500/BUTTON_4 usr/local/lib/kuro-rs/DST_BX500/BUTTON_5 usr/local/lib/kuro-rs/DST_BX500/BUTTON_6 usr/local/lib/kuro-rs/DST_BX500/BUTTON_7 usr/local/lib/kuro-rs/DST_BX500/BUTTON_8 usr/local/lib/kuro-rs/DST_BX500/BUTTON_9 usr/local/lib/kuro-rs/DST_BX500/BUTTON_POWER usr/local/lib/kuro-rs/CAUL_A/ usr/local/lib/kuro-rs/CAUL_A/fwd usr/local/lib/kuro-rs/CAUL_A/bwd usr/local/lib/kuro-rs/CAUL_A/left usr/local/lib/kuro-rs/CAUL_A/right usr/local/lib/kuro-rs/CAUL_A/fwdleft usr/local/lib/kuro-rs/CAUL_A/fwdright usr/local/lib/kuro-rs/CAUL_A/bwdleft usr/local/lib/kuro-rs/CAUL_A/bwdright slam:/#
slam:/# /usr/local/bin/rs_send /usr/local/lib/kuro-rs/DST_BX500/BUTTON_POWER 1 -su: /usr/local/bin/rs_send: No such file or directory slam:/# ls -l /usr/local/bin/rs_send -rwxr-xr-x 1 yasunari staff 10589 Sep 23 2007 /usr/local/bin/rs_send slam:/#がー。
どのライブラリが必要になのかは、ldd でみる。
slam:/# ldd -d /usr/local/bin/rs_send /usr/bin/ldd: line 116: /usr/local/bin/rs_send: No such file or directory slam:/#あかんやん。
yasunari@sil:/usr/local/bin$ ldd /usr/local/bin/rs_send libc.so.6 => /lib/libc.so.6 (0x4001e000) /lib/ld-linux.so.2 (0x40000000) yasunari@sil:/usr/local/bin$libc が無いはずないし、ld-linux か?
slam:/# ls -l /lib/libc* -rwxr-xr-x 1 root root 1168924 Jan 5 13:46 /lib/libc-2.7.so lrwxrwxrwx 1 root root 11 Feb 27 21:44 /lib/libc.so.6 -> libc-2.7.so : slam:/#libc はある。
slam:/# ls -l /lib/ld* -rwxr-xr-x 1 root root 121636 Jan 5 13:46 /lib/ld-2.7.so lrwxrwxrwx 1 root root 9 Feb 27 21:44 /lib/ld-linux.so.3 -> ld-2.7.so slam:/#rs_send が求めている ld-linux のバージョンが古いようだ。
ソースはあるし、下位互換な環境を作るより、リコンパイルだな。
|
|
← 第三世代 LinkStation ハックキットでリモコン制御 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 第三世代 LinkStation ハックキットに開発環境のインストール |