さて、USBのデバッグコードを含んだDriver acm-FOMA.koが出来たので適当にコピー
[root@~]# cp acm-FOMA.ko.debug /lib/modules/2.6.35.6-pepo/kernel/drivers/usb/class/acm-FOMA.ko
debug情報を吐き出すファイルをsyslog.confへ追加
[root@~]# vi /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
kern.* /var/log/debug #<--追加
syslogdをrestart
[root@~]# /etc/init.d/syslog restart
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]
Starting system logger:
[root@~]# tail -f /var/log/debug
Apr 27 20:40:39 epicon kernel: klogd 1.4.1, log source = /proc/kmsg started.
これでdebug情報を監視できる
また後に続くよ
pepoと