接續先前討論:
http://www.aiothome.net/read.php?tid-16270-fpage-2.html參考了
http://www.embedu.org/Column/Column141.htmhttp://www.cto360.com/K10174/5000077499.shtmlhttp://www.cto360.com/a/5000097405.shtmlhttp://www.linuxidc.com/Linux/2011-11/47799.htm1.重新編譯kernel,
iptable/netfileter選項開啟, 並停用bridge
-> Networking support
-> Wireless --->
[*] Network activity statistics tracking
[*] Network packet filtering framework (Netfilter) --->
[*] Advanced netfilter configuration
Core Netfilter Configuration --->
<*> Netfilter NFQUEUE over NFNETLINK interface
<*> Netfilter connection tracking support
<*> NetBIOS name service protocol support
-*- Netfilter Xtables support (required for ip_tables)
<*> "multiport" Multiple port match support
<*> "owner" match support
<*> "state" match support
IP: Netfilter Configuration --->
<*> IPv4 connection tracking support (required for NAT)
[*] proc/sysctl compatibility with old connection tracking
<*> IP tables support (required for filtering/masq/NAT)
<*> Packet filtering
<*> MASQUERADE target support
<*> REDIRECT target support
USB gadget選項開啟
-> Device Drivers
[*] Network device support --->
<*> Dummy net driver support
[*] Ethernet (10 or 100Mbit) --->
[*] Wireless LAN --->
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)
<M> Multi-purpose USB Networking Framework
<M> ASIX AX88xxx Based USB 2.0 Ethernet Adapters
-M- CDC Ethernet support (smart devices such as cable modems)
< > CDC EEM support
< > Davicom DM9601 based USB 1.1 10/100 ethernet devices
< > SMSC LAN75XX based USB 2.0 gigabit ethernet devices
< > SMSC LAN95XX based USB 2.0 10/100 ethernet devices
< > GeneSys GL620USB-A based cables
<M> NetChip 1080 based cables (Laplink, ...)
< > Prolific PL-2301/2302 based cables
< > MosChip MCS7830 based Ethernet adapters
<M> Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
<M> 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)
[ ] KT Technology KC2190 based cables (InstaNet)
<M> Sharp Zaurus (stock ROMs) and compatible
< > Intellon PLC based usb adapter
< > Apple iPhone USB Ethernet driver
< > USB-to-WWAN Driver for Sierra Wireless modems
[*] USB support --->
<*> Support for Host-side USB
[*] USB verbose debug messages
[*] USB announce new devices
*** Miscellaneous USB options ***
[*] USB device filesystem (DEPRECATED)
[*] USB device class-devices (DEPRECATED)
[ ] Dynamic USB minor allocation
<*> OHCI HCD support
<M> USB Modem (CDC ACM) support
<*> USB Mass Storage support
<*> USB Serial Converter support --->
*** USB Miscellaneous drivers ***
<*> USB Gadget Support --->
*** OTG and related infrastructure ***
[ ] Debugging messages (DEVELOPMENT)
[ ] Debugging information files (DEVELOPMENT)
[ ] Debugging information files in debugfs (DEVELOPMENT)
(500) Maximum VBUS Power usage (2-500 mA)
USB Peripheral Controller (S3C HS/OtG USB Device controller) --->
S3C HS/OtG USB Device controller
<*> USB Gadget Drivers (Ethernet Gadget (with CDC Ethernet support)) --->
Ethernet Gadget (with CDC Ethernet support)
[*] RNDIS support
[ ] Ethernet Emulation Model (EEM) support
( ) Audio Gadget (EXPERIMENTAL)
(X) Ethernet Gadget (with CDC Ethernet support)
( ) Gadget Filesystem (EXPERIMENTAL)
( ) Function Filesystem (EXPERIMENTAL)
( ) File-backed Storage Gadget
( ) Mass Storage Gadget
( ) Serial Gadget (with CDC ACM and CDC OBEX support)
( ) MIDI Gadget (EXPERIMENTAL)
( ) Printer Gadget
( ) Android Gadget
( ) CDC Composite Device (Ethernet and ACM)
( ) Multifunction Composite Gadget (EXPERIMENTAL)
( ) HID Gadget
( ) EHCI Debug Device Gadget
( ) USB Webcam Gadget
< > GPIO based peripheral-only VBUS sensing 'transceiver'
2.產生usbnet?
linux#
modprobe usbnet
modprobe rndis_host
插入miniusb線到miniusb埠
mini6410#
insmod usbnet.ko
insmod rndis_host.ko
insmod cdc_ether.ko
linux#
ifconfig -a
沒有看到usb?請問如何處理?
=======================
看到這篇:
http://www.aiothome.net/read.php?tid=1753我又重新check kernel 的項目
mini6410及 linux本機都有少module
所以重新編譯
dmesg:
Dec 14 02:09:36 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 11
Dec 14 02:09:36 localhost kernel: usb 1-5: New USB device found, idVendor=18d1, idProduct=4e12
Dec 14 02:09:36 localhost kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 14 02:09:36 localhost kernel: usb 1-5: Product: Mini6410
Dec 14 02:09:36 localhost kernel: usb 1-5: Manufacturer: FriendlyARM
Dec 14 02:09:36 localhost kernel: usb 1-5: SerialNumber: MINI6410_2011W08
Dec 14 02:09:36 localhost kernel: usb 1-5: configuration #1 chosen from 1 choice
Dec 14 02:09:36 localhost kernel: scsi11 : SCSI emulation for USB Mass Storage devices
Dec 14 02:09:41 localhost kernel: usb 1-5: reset high speed USB device using ehci_hcd and address 11
Dec 14 02:09:41 localhost kernel: usb 1-5: reset high speed USB device using ehci_hcd and address 11
Dec 14 02:09:41 localhost kernel: usb 1-5: reset high speed USB device using ehci_hcd and address 11
Dec 14 02:09:41 localhost kernel: usb 1-5: reset high speed USB device using ehci_hcd and address 11
[ 此帖被kazaya在2011-12-14 16:32重新编辑 ]