RNDIS_HOST와 USB SERIAL 모듈 사용할 때 udhcpc 동작 문제

onnzoo의 이미지

안녕하세요.

커널 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...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.