yasunari@qvl:~$ uname -a Linux qvl 2.6.31.8 #2 Tue Mar 13 13:10:42 JST 2012 armv5tel GNU/Linux yasunari@qvl:~$
挿してみる
yasunari@qvl:~$ tail -f /var/log/messages : : Jul 23 19:20:49 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 3 Jul 23 19:20:50 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 19:20:50 qvl kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 23 19:20:50 qvl kernel: usb 1-1.1: USB disconnect, address 3 Jul 23 19:20:50 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 4 Jul 23 19:20:50 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 19:20:50 qvl kernel: scsi5 : SCSI emulation for USB Mass Storage devices Jul 23 19:20:55 qvl kernel: scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Jul 23 19:20:55 qvl kernel: scsi 5:0:0:0: Attached scsi generic sg1 type 5USB Mass Storage devices としか認識していない。
カーネルの作り直しが必要。。。モジュールだけでいいかも。
yasunari@qvl:/usr/src$ tar jxvf linux-2.6.31.8.tar.bz2 linux-2.6.31.8/ linux-2.6.31.8/kernel/ linux-2.6.31.8/kernel/dma.c : : linux-2.6.31.8/drivers/idle/Makefile linux-2.6.31.8/.config.old linux-2.6.31.8/.config yasunari@qvl:/usr/src$
yasunari@qvl:/usr/src$ cd linux-2.6.31.8 yasunari@qvl:/usr/src/linux-2.6.31.8$ mv Makefile{,.orig} yasunari@qvl:/usr/src/linux-2.6.31.8$ cp Makefile.orig Makefile yasunari@qvl:/usr/src/linux-2.6.31.8$ vi Makefile : : yasunari@qvl:/usr/src/linux-2.6.31.8$ diff -u Makefile.orig Makefile --- Makefile.orig 2010-03-30 01:38:28.000000000 +0900 +++ Makefile 2012-07-23 21:30:08.051898895 +0900 @@ -181,7 +181,7 @@ # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile export KBUILD_BUILDHOST := $(SUBARCH) ARCH ?= arm -CROSS_COMPILE ?= arm-mv5sft-linux-gnueabi- +CROSS_COMPILE ?= # Architecture as present in compile.h UTS_MACHINE := $(ARCH) @@ -617,7 +617,7 @@ # makefile but the argument can be passed to make if needed. # -INSTALL_MOD_PATH=binaries +INSTALL_MOD_PATH= MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) export MODLIB yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ make oldconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -o arch/arm/Kconfig # # configuration written to .config # yasunari@qvl:/usr/src/linux-2.6.31.8$ make -j2 uImage scripts/kconfig/conf -s arch/arm/Kconfig CHK include/linux/version.h UPD include/linux/version.h : : Image Name: Linux-2.6.31.8 Created: Mon Jul 23 22:19:03 2012 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2734560 Bytes = 2670.47 kB = 2.61 MB Load Address: 0x00008000 Entry Point: 0x00008000 Image arch/arm/boot/uImage is ready yasunari@qvl:/usr/src/linux-2.6.31.8$続いて、モジュールのコンパイル
yasunari@qvl:/usr/src/linux-2.6.31.8$ make modules CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CALL scripts/checksyscalls.sh : : CC net/xfrm/xfrm_ipcomp.mod.o LD [M] net/xfrm/xfrm_ipcomp.ko CC net/xfrm/xfrm_user.mod.o LD [M] net/xfrm/xfrm_user.ko yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo rm -fr /lib/modules/2.6.31.8 [sudo] password for yasunari: yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo make modules_install INSTALL crypto/authenc.ko INSTALL crypto/ecb.ko INSTALL crypto/pcbc.ko : : INSTALL net/xfrm/xfrm_user.ko DEPMOD 2.6.31.8 yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo rm /boot/uImage.buffalo yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo cp arch/arm/boot/uImage /boot/uImage.buffalo yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo rebootしばらくして LS-QVL に telnet する。
Linux 2.6.31.8 (x60w.yamasita.jp) (pts/0) qvl login: yasunari Password: Last login: Mon Jul 23 22:27:30 JST 2012 from x60w.yamasita.jp on pts/2 Linux qvl 2.6.31.8 #1 Mon Jul 23 22:18:40 JST 2012 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@qvl:~$ uname -a Linux qvl 2.6.31.8 #1 Mon Jul 23 22:18:40 JST 2012 armv5tel GNU/Linux yasunari@qvl:~$とりあえず、デフォルトのカーネルの作成完了
Jul 23 22:37:55 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 3 Jul 23 22:37:55 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:37:55 qvl kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 23 22:37:55 qvl kernel: usb 1-1.1: USB disconnect, address 3 Jul 23 22:37:55 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 4 Jul 23 22:37:55 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:37:55 qvl kernel: scsi5 : SCSI emulation for USB Mass Storage devices Jul 23 22:38:00 qvl kernel: scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Jul 23 22:38:00 qvl kernel: scsi 5:0:0:0: Attached scsi generic sg1 type 5やっぱり USB Mass Storage devices としてしか認識していない。
yasunari@qvl:/usr/src/linux-2.6.31.8$ make menuconfig「Device Drivers」→「USB support」で、
yasunari@qvl:/usr/src/linux-2.6.31.8$ diff -u .config.old .config --- .config.old 2012-07-23 21:31:18.202983455 +0900 +++ .config 2012-07-23 22:46:23.779119189 +0900 @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.31.8 -# Mon Jul 23 21:31:18 2012 +# Mon Jul 23 22:46:23 2012 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -1219,7 +1219,53 @@ # # USB port drivers # -# CONFIG_USB_SERIAL is not set +CONFIG_USB_SERIAL=m +# CONFIG_USB_EZUSB is not set +# CONFIG_USB_SERIAL_GENERIC is not set +# CONFIG_USB_SERIAL_AIRCABLE is not set +# CONFIG_USB_SERIAL_ARK3116 is not set +# CONFIG_USB_SERIAL_BELKIN is not set +# CONFIG_USB_SERIAL_CH341 is not set +# CONFIG_USB_SERIAL_WHITEHEAT is not set +# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set +# CONFIG_USB_SERIAL_CP210X is not set +# CONFIG_USB_SERIAL_CYPRESS_M8 is not set +# CONFIG_USB_SERIAL_EMPEG is not set +# CONFIG_USB_SERIAL_FTDI_SIO is not set +# CONFIG_USB_SERIAL_FUNSOFT is not set +# CONFIG_USB_SERIAL_VISOR is not set +# CONFIG_USB_SERIAL_IPAQ is not set +# CONFIG_USB_SERIAL_IR is not set +# CONFIG_USB_SERIAL_EDGEPORT is not set +# CONFIG_USB_SERIAL_EDGEPORT_TI is not set +# CONFIG_USB_SERIAL_GARMIN is not set +# CONFIG_USB_SERIAL_IPW is not set +# CONFIG_USB_SERIAL_IUU is not set +# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set +# CONFIG_USB_SERIAL_KEYSPAN is not set +# CONFIG_USB_SERIAL_KLSI is not set +# CONFIG_USB_SERIAL_KOBIL_SCT is not set +# CONFIG_USB_SERIAL_MCT_U232 is not set +# CONFIG_USB_SERIAL_MOS7720 is not set +# CONFIG_USB_SERIAL_MOS7840 is not set +# CONFIG_USB_SERIAL_MOTOROLA is not set +# CONFIG_USB_SERIAL_NAVMAN is not set +# CONFIG_USB_SERIAL_PL2303 is not set +# CONFIG_USB_SERIAL_OTI6858 is not set +# CONFIG_USB_SERIAL_QUALCOMM is not set +# CONFIG_USB_SERIAL_SPCP8X5 is not set +# CONFIG_USB_SERIAL_HP4X is not set +# CONFIG_USB_SERIAL_SAFE is not set +# CONFIG_USB_SERIAL_SIEMENS_MPI is not set +# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set +# CONFIG_USB_SERIAL_SYMBOL is not set +# CONFIG_USB_SERIAL_TI is not set +# CONFIG_USB_SERIAL_CYBERJACK is not set +# CONFIG_USB_SERIAL_XIRCOM is not set +CONFIG_USB_SERIAL_OPTION=m +# CONFIG_USB_SERIAL_OMNINET is not set +# CONFIG_USB_SERIAL_OPTICON is not set +# CONFIG_USB_SERIAL_DEBUG is not set # # USB Miscellaneous drivers yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ make -j2 uImage scripts/kconfig/conf -s arch/arm/Kconfig : : Image Name: Linux-2.6.31.8 Created: Mon Jul 23 22:49:30 2012 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2734560 Bytes = 2670.47 kB = 2.61 MB Load Address: 0x00008000 Entry Point: 0x00008000 Image arch/arm/boot/uImage is ready yasunari@qvl:/usr/src/linux-2.6.31.8$続いて、モジュールのコンパイル
yasunari@qvl:/usr/src/linux-2.6.31.8$ make modules CHK include/linux/version.h : : CC drivers/usb/serial/usbserial.mod.o LD [M] drivers/usb/serial/usbserial.ko yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo make modules_install [sudo] password for yasunari: INSTALL crypto/authenc.ko INSTALL crypto/ecb.ko INSTALL crypto/pcbc.ko : : INSTALL net/xfrm/xfrm_ipcomp.ko INSTALL net/xfrm/xfrm_user.ko DEPMOD 2.6.31.8 yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo cp arch/arm/boot/uImage /boot/uImage.buffalo yasunari@qvl:/usr/src/linux-2.6.31.8$
yasunari@qvl:/usr/src/linux-2.6.31.8$ sudo rebootしばらくして、LS-QVL に telnet
Linux 2.6.31.8 (x60w.yamasita.jp) (pts/0) qvl login: yasunari Password: Last login: Mon Jul 23 22:41:13 JST 2012 from x60w.yamasita.jp on pts/2 Linux qvl 2.6.31.8 #2 Mon Jul 23 22:49:11 JST 2012 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@qvl:~$ uname -a Linux qvl 2.6.31.8 #2 Mon Jul 23 22:49:11 JST 2012 armv5tel GNU/Linux yasunari@qvl:~$ちゃんと、#2
yasunari@qvl:~$ tail -f /var/log/messages : : Jul 23 22:58:12 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 3 Jul 23 22:58:12 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:58:12 qvl kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 23 22:58:12 qvl kernel: usb 1-1.1: USB disconnect, address 3 Jul 23 22:58:12 qvl kernel: usb 1-1.1: new full speed USB device using ehci_marvell and address 4 Jul 23 22:58:13 qvl kernel: usb 1-1.1: configuration #1 chosen from 1 choice Jul 23 22:58:13 qvl kernel: scsi5 : SCSI emulation for USB Mass Storage devices Jul 23 22:58:13 qvl kernel: usbcore: registered new interface driver usbserial Jul 23 22:58:13 qvl kernel: usbserial: USB Serial Driver core Jul 23 22:58:13 qvl kernel: USB Serial support registered for GSM modem (1-port) Jul 23 22:58:13 qvl kernel: option 1-1.1:1.0: GSM modem (1-port) converter detected Jul 23 22:58:13 qvl kernel: usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0 Jul 23 22:58:13 qvl kernel: option 1-1.1:1.1: GSM modem (1-port) converter detected Jul 23 22:58:13 qvl kernel: usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1 Jul 23 22:58:13 qvl kernel: usbcore: registered new interface driver option Jul 23 22:58:13 qvl kernel: option: v0.7.2:USB Driver for GSM modems Jul 23 22:58:18 qvl kernel: scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Jul 23 22:58:18 qvl kernel: scsi 5:0:0:0: Attached scsi generic sg1 type 5GSM modem としても認識している。
Good Going!!
|
← sudo と 開発環境のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ダイアルアップサーバ(2)PPP で接続 |
Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市