root@debian:~# cat /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #insmod /boot/fat.ko #insmod /boot/vfat.ko mkdir -p /var/cache/apt/archives/partial #/root/discoverd cd / #./demo.sh #date 012618002009 /usr/sbin/ntpdate 192.168.1.3 hwclock -w /sbin/modprobe ftdi_sio vendor=0x0411 product=0x00b3 exit 0 root@debian:~#再起動して、KURO-RS を刺すだけで認識することを確認する。
Dec 24 22:54:14 debian kernel: usb 1-1: new full speed USB device using orion-ehci and address 2 Dec 24 22:54:14 debian kernel: usb 1-1: configuration #1 chosen from 1 choice Dec 24 22:54:14 debian kernel: ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected Dec 24 22:54:14 debian kernel: usb 1-1: Detected FT232BM Dec 24 22:54:14 debian kernel: usb 1-1: Number of endpoints 2 Dec 24 22:54:14 debian kernel: usb 1-1: Endpoint 1 MaxPacketSize 64 Dec 24 22:54:14 debian kernel: usb 1-1: Endpoint 2 MaxPacketSize 64 Dec 24 22:54:14 debian kernel: usb 1-1: Setting MaxPacketSize 64 Dec 24 22:54:14 debian kernel: usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0次は、リモコンの発光を学習させる、、、、、、
|
←(前のページ) KURO-RS / PC-OP-RS1 の認識(2) |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ 開発環境のインストール |