まずは、旧型 HS-DHGL でアーカイブを作る。
旧型 HS-DHGL では、カーネルモジュールはジェイルの中にある。
yasunari@sil:~$ cd /usr/local/buffalo yasunari@sil:/usr/local/buffalo$ ls -l lib/modules/2.6.16.16-arm1/kernel/drivers /usb/serial/ total 72 -rw-r--r-- 1 root root 40876 Sep 22 2007 ftdi_sio.ko -rw-r--r-- 1 root root 29561 Sep 22 2007 usbserial.ko yasunari@sil:/usr/local/buffalo$ tar zcvf /tmp/kuro-rs_module.tar.gz !$ tar zcvf /tmp/kuro-rs_module.tar.gz lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ftdi_sio.ko lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/usbserial.ko yasunari@sil:/usr/local/buffalo$ tar ztvf /tmp/kuro-rs_module.tar.gz drwxr-xr-x root/root 0 2007-09-22 15:53 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ -rw-r--r-- root/root 40876 2007-09-22 16:34 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ftdi_sio.ko -rw-r--r-- root/root 29561 2007-09-22 16:34 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/usbserial.ko yasunari@sil:/usr/local/buffalo$ftp で 新型 HS-DHGL にコピー
yasunari@slam:~$ cd /tmp yasunari@slam:/tmp$ ftp sil ftp: sil: Unknown host ftp> 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 60 drwxrwxrwt 2 root 6 Jun 20 04:47 .ICE-unix drwxrwxrwt 2 root 6 Jun 20 04:47 .X11-unix -rw-r--r-- 1 root 6862 Jun 20 12:35 fancontrol -rw-r--r-- 1 root 21489 Jun 20 06:14 hackdemaruroku.log -rw-r--r-- 1 yamasita 24772 Jun 20 12:36 kuro-rs_module.tar.gz 226 Transfer complete. ftp> bin 200 Type set to I. ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> mget kuro* mget kuro-rs_module.tar.gz? y 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'kuro-rs_module.tar.gz' (24772 bytes). ######################## 226 Transfer complete. 24772 bytes received in 0.02 secs (1572.8 kB/s) ftp> bye 221 Goodbye. yasunari@slam:/tmp$root になって展開する。
yasunari@slam:/tmp$ su - root Password: slam:~# cd / slam:/# tar ztvf /tmp/kuro-rs_module.tar.gz drwxr-xr-x root/root 0 2007-09-22 15:53 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ -rw-r--r-- root/root 40876 2007-09-22 16:34 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ftdi_sio.ko -rw-r--r-- root/root 29561 2007-09-22 16:34 lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/usbserial.ko slam:/# ^ztvf^zxvf^ tar zxvf /tmp/kuro-rs_module.tar.gz lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ftdi_sio.ko lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/usbserial.ko slam:/#
slam:/# insmod lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/usbserial.ko slam:/# insmod lib/modules/2.6.16.16-arm1/kernel/drivers/usb/serial/ftdi_sio.ko slam:/# lsmod Module Size Used by ftdi_sio 28520 0 usbserial 24232 1 ftdi_sio mv7dxu2_3 40804 0 mv7dxu2_2 40804 0 mv7dxu2_1 40804 0 mv7dxu2_0 40772 0 mv7dxu2_d 3560 4 mv7dxu2_3,mv7dxu2_2,mv7dxu2_1,mv7dxu2_0 vfat 10720 0 fat 47484 1 vfat usblp 12160 0 slam:/#いけてそう。
slam:/# tail -f /var/log/messages Jun 20 12:42:33 slam kernel: usbcore: registered new driver usbserial Jun 20 12:42:33 slam kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core Jun 20 12:42:40 slam kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device Jun 20 12:42:40 slam kernel: usbcore: registered new driver ftdi_sio Jun 20 12:42:40 slam kernel: drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver Jun 20 12:46:17 slam kernel: usb 2-1: new full speed USB device using ehci_platform and address 2 Jun 20 12:46:18 slam kernel: usb 2-1: configuration #1 chosen from 1 choice Jun 20 12:46:18 slam kernel: ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected Jun 20 12:46:18 slam kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232BM Jun 20 12:46:18 slam kernel: usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0認識された。
|
|
← LS-SL 続き |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 第三世代 LinkStation ハックキットでリモコン制御(2) |