You are not logged in.
I am trying to use RNDIS host function on my arm linux device,so i can use android phone to browse my device's WebUI with usb cable plug in.
my device's platform is at91sam9260,kernel version 2.6.19
if i plug my android phone into my device and set phone's usb tethering fuction on, my device can find it.But usb0 network device never show up.
[root@ICIM ~]# usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using at91_ohci and address 3
usb 1-1: configuration #1 chosen from 1 choice
[root@ICIM ~]# lsusb
Bus 001 Device 003: ID 04e8:6863 Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 0000:0000
root@ICIM ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:24:DE:00:02:40
inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:21 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)if i plug my android phone into a linux PC and set phone's usb tethering fuction on, the linux PC can find my phone, and I can find the usb0 network.
then i ping my phone from the linux PC, and it success
[root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] lsmod |grep rndis_host
rndis_host 7108 0
cdc_ether 6464 1 rndis_host
usbnet 13646 2 rndis_host,cdc_ether
[root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] ifconfig -a
eth1 Link encap:Ethernet HWaddr 00:16:76:D4:98:EC
inet addr:192.168.5.158 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::216:76ff:fed4:98ec/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12142625 errors:0 dropped:0 overruns:10372 frame:10372
TX packets:7310990 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2921302257 (2.7 GiB) TX bytes:3720558580 (3.4 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
usb0 Link encap:Ethernet HWaddr CE:3A:A2:93:89:73
inet addr:192.168.42.101 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::cc3a:a2ff:fe93:8973/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1094 (1.0 KiB) TX bytes:5718 (5.5 KiB)
[root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] ping 192.168.42.129
PING 192.168.42.129 (192.168.42.129) 56(84) bytes of data.
64 bytes from 192.168.42.129: icmp_seq=1 ttl=64 time=2.17 ms
64 bytes from 192.168.42.129: icmp_seq=2 ttl=64 time=0.473 ms
64 bytes from 192.168.42.129: icmp_seq=3 ttl=64 time=0.543 ms
64 bytes from 192.168.42.129: icmp_seq=4 ttl=64 time=1.27 ms
64 bytes from 192.168.42.129: icmp_seq=5 ttl=64 time=0.568 ms
64 bytes from 192.168.42.129: icmp_seq=6 ttl=64 time=1.21 ms
64 bytes from 192.168.42.129: icmp_seq=7 ttl=64 time=1.21 ms
64 bytes from 192.168.42.129: icmp_seq=8 ttl=64 time=1.24 ms
64 bytes from 192.168.42.129: icmp_seq=9 ttl=64 time=1.20 ms
64 bytes from 192.168.42.129: icmp_seq=10 ttl=64 time=0.505 ms
^C
--- 192.168.42.129 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9850ms
rtt min/avg/max/mdev = 0.473/1.041/2.176/0.506 ms
[root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] below is my kernel's configuration on usb. In the Linux pc, the RNDIS host function use rndis_host.ko cdc_ether.ko usbnet.ko.
I compile all these drivers into my kernel, but it doesn't work.
usb support
<*> Support for Host-side USB │ │
│ │ [ ] USB verbose debug messages │ │
│ │ --- Miscellaneous USB options │ │
│ │ [*] USB device filesystem │ │
│ │ [ ] Enforce USB bandwidth allocation (EXPERIMENTAL) │ │
│ │ [ ] Dynamic USB minor allocation (EXPERIMENTAL) │ │
│ │ --- USB Host Controller Drivers │ │
│ │ < > ISP116X HCD support │ │
│ │ <*> OHCI HCD support │ │
│ │ < > SL811HS HCD support │ │
│ │ --- USB Device Class drivers │ │
│ │ <*> USB Modem (CDC ACM) support │ │
│ │ < > USB Printer support │ │
│ │ --- NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' │ │
│ │ --- may also be needed; see USB_STORAGE Help for more information │ │
│ │ < > USB Mass Storage support │ │
│ │ [ ] The shared table of common (or usual) storage devices │ │
│ │ --- USB Input Devices │ │
│ │ < > USB Human Interface Device (full HID) support │ │
│ │ USB HID Boot Protocol drivers ---> │ │
│ │ < > Aiptek 6000U/8000U tablet support │ │
│ │ < > Wacom Intuos/Graphire tablet support │ │
│ │ < > Acecad Flair tablet support │ │
│ │ < > KB Gear JamStudio tablet support │ │
│ │ < > Griffin PowerMate and Contour Jog support │ │
│ │ < > USB Touchscreen Driver │ │
│ │ < > Yealink usb-p1k voip phone │ │
│ │ < > X-Box gamepad support │ │
│ │ < > ATI / X10 USB RF remote control │ │
│ │ < > ATI / Philips USB RF remote control │ │
│ │ < > Keyspan DMR USB remote control (EXPERIMENTAL) │ │
│ │ < > Apple USB Touchpad support │ │
│ │ --- USB Imaging devices │ │
│ │ < > USB Mustek MDC800 Digital Camera support (EXPERIMENTAL) │ │
│ │ < > Microtek X6USB scanner support │ │
│ │ USB Network Adapters ---> │ │
│ │ [*] USB Monitor │ │
│ │ --- USB port drivers │ │
│ │ USB Serial Converter support --->usb network adapters
< > USB CATC NetMate-based Ethernet device support (EXPERIMENTAL) │ │
│ │ <*> USB KLSI KL5USB101-based ethernet device support │ │
│ │ < > USB Pegasus/Pegasus-II based ethernet device support │ │
│ │ < > USB RTL8150 based ethernet device support (EXPERIMENTAL) │ │
│ │ <*> Multi-purpose USB Networking Framework │ │
│ │ <M> ASIX AX88xxx Based USB 2.0 Ethernet Adapters │ │
│ │ --- CDC Ethernet support (smart devices such as cable modems) │ │
│ │ < > GeneSys GL620USB-A based cables │ │
│ │ <M> NetChip 1080 based cables (Laplink, ...) │ │
│ │ < > Prolific PL-2301/2302 based cables │ │
│ │ < > MosChip MCS7830 based Ethernet adapters │ │
│ │ <*> Host for RNDIS devices (EXPERIMENTAL) │ │
│ │ <*> Simple USB Network Links (CDC Ethernet subset) │ │
│ │ [ ] ALi M5632 based 'USB 2.0 Data Link' cables │ │
│ │ [ ] AnchorChips 2720 based cables (Xircom PGUNET, ...) │ │
│ │ [*] eTEK based host-to-host cables (Advance, Belkin, ...) │ │
│ │ [*] Embedded ARM Linux links (iPaq, ...) │ │
│ │ [ ] Epson 2888 based firmware (DEVELOPMENT) │ │
│ │ <M> Sharp Zaurus (stock ROMs) and compatibleanyone familiar with the RNDIS host can help me ? Is my configuration of the kernel right?
Last edited by snakewind (2013-06-08 08:04:06)
Offline
We don't support archlinux-arm here, try archlinuxarm.org.
Offline