root@vl:~# tail -f /var/log/messagesうんともすんとも。
root@vl:~# lsmod Module Size Used by root@vl:~#これはあかん。これやからモジュールは嫌い。
手動で組み込んでみる。
root@vl:~# /etc/init.d/usb start [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/core/usbcore.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/host/ehci-hcd.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/host/ohci-hcd.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/host/uhci-hcd.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/storage/usb-storage.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/drivers/usb/class/usblp.ko: unexpected operator [: 113: /lib/modules/2.6.31.8.orig/kernel/fs/fat/fat.ko: unexpected operator root@vl:~#?。謎。
root@vl:~# cat /etc/init.d/usb #!/bin/sh ### BEGIN INIT INFO # Provides: usb # Required-Start: # Required-Stop: # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Initialize USBs. # Description: This script initialize USB ports and load modules. ### END INIT INFO : : if [ -f /lib/modules/*/kernel/drivers/usb/core/usbcore.ko ] then insmod /lib/modules/*/kernel/drivers/usb/core/usbcore.ko fi if [ -f /lib/modules/*/kernel/drivers/usb/host/ehci-marvell-hcd.ko ] then insmod /lib/modules/*/kernel/drivers/usb/host/ehci-marvell-hcd.ko : : root@vl:~# ls /lib/modules/ 2.6.31.8 2.6.31.8.orig root@vl:~#なるほど、
もういらないだろうから、消す。
root@vl:~# rm -fr /lib/modules/2.6.31.8.orig root@vl:~# ls /lib/modules/ 2.6.31.8 root@vl:~#
root@vl:~# /etc/init.d/usb start root@vl:~# lsmod Module Size Used by fat 53540 0 usblp 12236 0 usb_storage 53644 0 uhci_hcd 21352 0 ohci_hcd 20748 0 ehci_hcd 36164 0 usbcore 139356 6 usblp,usb_storage,uhci_hcd,ohci_hcd,ehci_hcd root@vl:~#
root@vl:~# lsmod Module Size Used by fat 53540 0 usblp 12236 0 usb_storage 53644 0 uhci_hcd 21352 0 ohci_hcd 20748 0 ehci_hcd 36164 0 usbcore 139356 6 usblp,usb_storage,uhci_hcd,ohci_hcd,ehci_hcd root@vl:~#
root@vl:~# tail -f /var/log/messages : : Mar 10 22:55:13 vl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2 Mar 10 22:55:13 vl kernel: usb 1-1: configuration #1 chosen from 1 choice Mar 10 22:55:13 vl kernel: udlfb: module is from the staging directory, the quality is unknown, you have been warned. Mar 10 22:55:13 vl kernel: DisplayLink device attached Mar 10 22:55:13 vl kernel: ret control msg 0: 4 1500f1 Mar 10 22:55:13 vl kernel: EDID XRES 0 YRES 0 Mar 10 22:55:13 vl kernel: INIT VIDEO 0 800 480 Mar 10 22:55:13 vl kernel: INIT VIDEO 1 1024 768 Mar 10 22:55:13 vl kernel: INIT VIDEO 2 1280 1024 Mar 10 22:55:13 vl kernel: INIT VIDEO 3 1400 1050 Mar 10 22:55:13 vl kernel: INIT VIDEO 0 800 480 Mar 10 22:55:13 vl kernel: INIT VIDEO 1 1024 768 Mar 10 22:55:13 vl kernel: INIT VIDEO 2 1280 1024 Mar 10 22:55:13 vl kernel: ret control msg 1 (STD_CHANNEL): 16 Mar 10 22:55:13 vl kernel: ret bulk 2: 156 156 Mar 10 22:55:13 vl kernel: ret bulk 3: 0 Mar 10 22:55:13 vl kernel: found valid mode...0 Mar 10 22:55:13 vl kernel: screen base allocated !!! Mar 10 22:55:13 vl kernel: colormap allocated Mar 10 22:55:13 vl kernel: usbcore: registered new interface driver udlfb Mar 10 22:55:13 vl kernel: VMODES initializedきたー!。
root@vl:~# apt-get install fbset Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: fbset 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 123 kB of archives. After this operation, 352 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ squeeze/main fbset armel 2.1-24 [123 kB] Fetched 123 kB in 0s (194 kB/s) Selecting previously deselected package fbset. (Reading database ... 15474 files and directories currently installed.) Unpacking fbset (from .../fbset_2.1-24_armel.deb) ... Processing triggers for man-db ... Setting up fbset (2.1-24) ... !root@vl:~#
!root@vl:~# fbset -i mode "1280x1024" geometry 1280 1024 0 0 16 timings 0 0 0 0 0 0 0 rgba 5/11,6/5,5/0,0/0 endmode Frame buffer device information: Name : GX-DVI_U2B Address : 0xd0cca000 Size : 2621440 Type : PACKED PIXELS Visual : TRUECOLOR XPanStep : 0 YPanStep : 0 YWrapStep : 0 LineLength : 2560 Accelerator : Unknown (1921) root@vl:~#ちゃんと GX-DVI_U2B と認識されている!
|
← デスクトップとして使う(3)udlfb モジュールのコンパイル(2) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ デスクトップとして使う(5)X のインストール |