RNDIS_HOST와 USB SERIAL 모듈 사용할 때 udhcpc 동작 문제
안녕하세요.
커널 2.6.21을 사용하고 있습니다.
그리고 아래의 두 모듈을 컴파일하여,
커널/drivers/usb/net/rndis_host.c
커널/drivers/usb/serial/option.c
modprobe rndis_host
modprobe option
을 실행하게 되면,
rndis_host는 usb0 인터페이스를 아래와 같이 인식하고,
> Using /lib/modules/2.6.21/kernel/drivers/usb/net/usbnet.ko
> Using /lib/modules/2.6.21/kernel/drivers/usb/net/cdc_ether.ko
> usbcore: registered new interface driver cdc_ether
> Using /lib/modules/2.6.21/kernel/drivers/usb/net/rndis_host.ko
> usb0: register 'rndis_host' at usb-lm0-1, RNDIS device, 0a:36:91:ea:25:b2
> usbcore: registered new interface driver rndis_host
option은 다음과 같이 ttyUSB0, ttyUSB1, ttyUSB2 인터페이스를 인식합니다.
> modprobe option
> Using /lib/modules/2.6.21/kernel/drivers/usb/serial/usbserial.ko
> usbcore: registered new interface driver usbserial
> drivers/usb/serial/usb-serial.c: USB Serial Driver core
> Using /lib/modules/2.6.21/kernel/drivers/usb/serial/option.ko
> drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
> option 1-1:1.2: GSM modem (1-port) converter detected
> usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
> option 1-1:1.3: GSM modem (1-port) converter detected
> usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
> option 1-1:1.4: GSM modem (1-port) converter detected
> usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
> usbcore: registered new interface driver option
> drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.2
이 때, minicom으로 option 모듈의 ttyUSB1을 OPEN하면
정상적으로 Serial 통신이 이루어지고 있습니다.
그리고 이때, usb0 인터페이스를 "ifconfig usb0 up" 한 이후에,
"udhcpc -i usb0 -f -p /var/usb0.pid &" 를 실행하면,
다음과 같은 메시지만 출력하며, 정상적인 dhcp 할당 과정이 이루어지지 않습니다.
> udhcpc -i usb0 -f -p /var/usb0.pid &
> udhcpc (v0.9.9) started
> # *IP(usb0) has changed... 0.0.0.0
> IP is lost...
> Sending discover...
> Sending discover...
> Sending discover...
> /etc/default.script: 2: /etc/default.leasefail: not found
> Sending discover...
> Sending discover...
> Sending discover...
> /etc/default.script: 2: /etc/default.leasefail: not found
> Sending discover...
> Sending discover...
> Sending discover...
댓글 달기