[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gentoojp-users 1005] 2.6 とRS232C



日頃お世話になってる竹島です。

2.6に移行しようとしてますが、残念ながらRS232Cで監視カメラ撮影
が2.6では躓いてます。
で お知恵をお借りしたく投稿しました。

カーネル2.4の時は
gentoo root # cat kansi-cp100.bat 
ーーーーーーーーーーーーーーーーー
#!/bin/sh
photopc flash Off
photopc snapshot 
photopc image 1 kansi.jpg
photopc eraseall
convert  -colors 64 -geometry 90x75   kansi.jpg kansi.gif
scp -i /home/tuyosi/.ssh/id_dsa  /root/kansi.gif  tuyosi@xxxxxxxxxxxxx:/home/tuyosi/
echo `date` > /home/tuyosi/ttt.txt
scp -i /home/tuyosi/.ssh/id_dsa /home/tuyosi/ttt.txt  tuyosi@xxxxxxxxxxxxx:/home/tuyosi/
ls -l /root/kansi.jpg
ーーーーーーーー
のスクリプトが通ってました。

この中核はphotopc snapshot での撮影なのですが、
gentoo root # photopc snapshot
Error 19: open /dev/photopc error No such device
eph_open failed
と叱られます。

しかし、
gentoo root # ls -l /dev/photopc 
lrwxrwxrwx    1 root     root           10 Dec 30 17:37 /dev/photopc -> /dev/ttyS0
としてあり、これで2.4はうまく動いてました。

2.6になってRS232Cへのdev名が変更になったのでしょうか?

というのは カーネルの.configは2.4では
bash-2.05b$ cat ../linux-2.4.22-gentoo-r2/.config | grep  SERI
# CONFIG_PARPORT_SERIAL is not set
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_PCMCIA_SERIAL_CS is not set
# CONFIG_USB_SERIAL is not set
とSERIAですが、

2.6では
bash-2.05b$ cat .config | grep SERI
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_SERIAL_8250 is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_USB_SERIAL is not set
とSERIOのようですので。

_/_/_/_/_/
HP     nakajin.dyndns.org
Mail   nakazintuyosi@xxxxxxxxxxxxxxxxxx