Last modified: Mon Feb 11 11:05:14 JST 2002
VAIO PCG-Z505DX に Kondara をインストールしたときの覚書です。
|
mkdir /dev/usb mknod /dev/usb/usbmouse0 c 10 32 ln -s /dev/usb/usbmouse0 /dev/usb/usbmouse |
私の VAIO 君は USB のコントローラは、UHCI なので、(USB 関係のドライバがモジュールになっていれば)以下のようにしてモジュールを読み込みます。
|
modprobe usb-uhci modprobe mousedev insmod hid |
あとは XF86Config に以下の項目を追加して X を起動すると USB Mouse が使えると思います。
Section "Xinput"
SubSection "Mouse"
Protocol "IMPS/2"
DeviceName "USB Mouse"
Port "/dev/usb/usbmouse"
Buttons 5
ZAxisMapping 4 5
AlwaysCore
EndSubSection
EndSection
Section "ServerFlags"
AllowMouseOpenFail
EndSection
|
kernel が 2.2.15(?) 以上の人は上記の方法でははうまく行かないので、以下のようにすると動作すると思います。
|
cd /dev/usb mknod mouse0 c 13 32 mknod mouse1 c 13 33 mknod mice c 13 63 |
上記の XF86Config の Port を /dev/usb/usbmouse から /dev/usb/mice に変更します。
XFree86 4.X になって Config ファイルの記述が変わったため、XFree86 4.X では 以下のようにする必要があります。(/etc/X11/XFConfig-4 が設定ファイルになります。)
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "USB Mouse" "SendCoreEvents"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "on"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/usb/mice"
Option "Protocol" "IMPS/2"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
|
また、wheel 機能を使いたい人は、ここを参考にしてください。
| insmod usb-serial |
| usbserial.c: FTDI SIO converter now attached to ttyUSB0 |
その後、
|
mknod /dev/ircomm c 161 0 mknod /dev/ircomm0 c 161 0 mknod /dev/ircomm1 c 161 1 |
ブート時に
| ttyS02 at 0x03e8 (irq = 4) is a 16550A |
| setserial /dev/ttyS2 irq 10 |
私は、この設定を /etc/rc.d/init.d/irda で設定しており、内容は以下の通りです。
#!/bin/sh
#
# irmanager This shell script takes care of starting and stopping
# irmanger (irda daemon).
#
# description: lrmanager is the irda daemon required for irda to work \
# properly.
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/irmanager ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
if [ -x /bin/setserial ]; then
setserial /dev/ttyS2 irq 10;
fi
echo -n "Starting irmanager: "
daemon irmanager -d 1
echo
;;
stop)
# Stop daemons.
echo -n "Shutting down irmanager: "
killproc irmanager
echo
;;
status)
status irmanager
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: irda {start|stop|restart|reload|status}"
exit 1
esac
exit 0
|
また、/etc/conf.modules に以下の項目を追加します。
|
alias tty-ldisc-11 irtty alias char-major-161 ircomm-tty |
/etc/irda/driversの start 部分を自分の環境のデバイスに合わせます。私は以下のように設定しています。
#! /bin/sh
#
# drivers
#
# Initialize and shutdown IrDA device drivers.
#
# This script should be invoked with two arguments. The first is the
# action to be taken, either "start", "stop", or "restart".
#
action=$1
device=$2
case "${action:?}" in
'start')
irattach /dev/ttyS2 # The third serial port is an IrDA port
# irattach /dev/ttyS0 -d esi # Attach a ESI dongle to the first serial port
#irattach /dev/ttyS0 -d tekram
# insmod pc87108 # If your machine as a pc87108 FIR chipset
# modprobe uircc # Sharp UIRCC chipset
;;
'stop')
killall irattach # ... or something. Currently not used
;;
'restart')
/sbin/ifconfig ${device:?} down up
;;
esac
|
あとは、pilot-xfer で転送できるように
| ln -s /dev/ircomm0 /dev/pilot |
システム再起動後、irmanager と irattach が立ち上がっているのを確認後、pilot-xfer を使うと赤外線を使ってHotSyncができるはずです。
もし irmanager が立ち上がってない場合は、/etc/rc.d/init.d/irda restart をした後、
IRDA が使えると思います。
ちなみにシステム起動後の lsmod の状態は、
Module Size Used by irtty 5116 2 (autoclean) irda 80129 2 [irtty] |
irda0 Link encap:IrLAP HWaddr 33:8e:d0:31
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
|
参考にしたサイト:
http://www.weitz.de/vaio.html
http://home.rochester.rr.com/specht/505/index.html
| PCIC_OPTS="cs_irq=11" |

Japanese Skin を選択するとフレーム、Graffiti エリアが実機同様 WorkPad C3 になります。 プログラムのデバッグは、この POSE 上で行っています。デバッグ方法等についてはまた別の機会にいたします(^^;