Debian GNU/Linux 5.0 vl login: yasunari Password: Last login: Sat Jan 1 09:24:39 JST 2000 from x31l.yamasita.jp on pts/2 Linux vl 2.6.31.8-svn22059 #67 Mon Sep 13 09:42:55 JST 2010 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. yasunari@vl:~$
yasunari@vl:~$ su - root Password: vl:~#
vl:~# tail -f /var/log/messages : :シーン
モジュールは?
vl:~# lsmod Module Size Used by vl:~#usb core さえロードされていない。
vl:~# ls /lib/modules/*/kernel/drivers/usb/core/usbcore.ko /lib/modules/2.6.22.7-88f5182/kernel/drivers/usb/core/usbcore.ko /lib/modules/2.6.31.8-svn22059/kernel/drivers/usb/core/usbcore.ko vl:~#あらら。2バージョンある。
vl:~# grep usbcore /etc/init.d/usb if [ -f /lib/modules/*/kernel/drivers/usb/core/usbcore.ko ] insmod /lib/modules/*/kernel/drivers/usb/core/usbcore.ko if [ -f /lib/modules/*/kernel/fs/vfat/usbcore.ko ] rmmod usbcore.ko vl:~# insmod /lib/modules/*/kernel/drivers/usb/core/usbcore.ko insmod: error inserting '/lib/modules/2.6.22.7-88f5182/kernel/drivers/usb/core/usbcore.ko': -1 Invalid module format vl:~#と、ロードされなかった模様。
vl:~# uname -r 2.6.31.8-svn22059 vl:~# ls /lib/modules/ 2.6.22.7-88f5182 2.6.31.8-svn22059 vl:~# rm -fr /lib/modules/2.6.22.7-88f5182 vl:~#
vl:~# /etc/init.d/usb start vl:~# lsmod Module Size Used by fat 52976 0 usblp 12256 0 usb_storage 53420 0 uhci_hcd 21508 0 ohci_hcd 20512 0 ehci_hcd 36596 0 usbcore 140360 6 usblp,usb_storage,uhci_hcd,ohci_hcd,ehci_hcd vl:~#ロードされた。
vl:~# tail -f /var/log/messages : : Dec 4 15:07:46 vl kernel: usbcore: registered new interface driver usbfs Dec 4 15:07:46 vl kernel: usbcore: registered new interface driver hub Dec 4 15:07:46 vl kernel: usbcore: registered new device driver usb Dec 4 15:07:46 vl kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver Dec 4 15:07:46 vl kernel: ehci_marvell ehci_marvell.70059: Marvell Orion EHCI Dec 4 15:07:46 vl kernel: ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 Dec 4 15:07:46 vl kernel: ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 Dec 4 15:07:46 vl kernel: ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00 Dec 4 15:07:46 vl kernel: usb usb1: configuration #1 chosen from 1 choice Dec 4 15:07:46 vl kernel: hub 1-0:1.0: USB hub found Dec 4 15:07:46 vl kernel: hub 1-0:1.0: 1 port detected Dec 4 15:07:46 vl kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver Dec 4 15:07:46 vl kernel: uhci_hcd: USB Universal Host Controller Interface driver Dec 4 15:07:46 vl kernel: Initializing USB Mass Storage driver... Dec 4 15:07:46 vl kernel: usbcore: registered new interface driver usb-storage Dec 4 15:07:46 vl kernel: USB Mass Storage support registered. Dec 4 15:07:46 vl kernel: usbcore: registered new interface driver usblp Dec 4 15:07:46 vl kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2 Dec 4 15:07:46 vl kernel: usb 1-1: configuration #1 chosen from 1 choice Dec 4 15:07:46 vl kernel: scsi2 : SCSI emulation for USB Mass Storage devices Dec 4 15:07:53 vl kernel: scsi 2:0:0:0: Direct-Access eUSB Memory Stick 5.06 PQ: 0 ANSI: 2 Dec 4 15:07:53 vl kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Dec 4 15:07:53 vl kernel: sd 2:0:0:0: [sdb] 126912 512-byte logical blocks: (64.9 MB/61.9 MiB) Dec 4 15:07:53 vl kernel: sd 2:0:0:0: [sdb] Write Protect is off Dec 4 15:07:53 vl kernel: sdb: sdb1 Dec 4 15:07:53 vl kernel: sd 2:0:0:0: [sdb] Attached SCSI removable diskマウントしてみた
vl:~# mkdir /tmp/sdb1 vl:~# mount /dev/sdb1 /tmp/sdb1/ vl:~# ls /tmp/sdb1 dcim memstick.ind mssony vl:~#OK
アンマウントしておく
vl:~# umount !$ umount /tmp/sdb1 vl:~#
Dec 4 15:13:36 vl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 4 Dec 4 15:13:36 vl kernel: usb 1-1: configuration #1 chosen from 1 choice Dec 4 15:13:36 vl kernel: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007OK
ハックキットのインストーラは、/lib/modules に2種類の
カーネルモジュールがあるのを想定していなかった。
まぁ、これまでそういうことがなかったのだが、
ファームが共通になって2種類おさめられているのだろう。。。
|
← 最初の設定~ftp サーバ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 初期化 |