ethernet

1.kernel
 Device Drivers  --->  
[*] Network device support  --->
USB Network Adapters  ---> 
<*>   SMSC LAN95XX based USB 2.0 10/100 ethernet devices

drivers/net/usb/smsc95xx.c

 smsc95xx 1-2.1:1.0: usb0: register 'smsc95xx' at usb-ehci-omap.0-
2.1, smsc95xx USB 2.0 Ethernet, 82:b9:59:be:66:73


2.android source
参考上网本开发项目android-x86同等版本

android2.3-gingerbread-ethernet-patch

http://dl.vmall.com/c0io7mu4j3

3.init.rc
mkdir /data/misc/dhcp 0777 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp

service dhcpcd /system/bin/dhcpcd -o domain_name_servers -ABKL
    disabled
    oneshot

service dhcpcd /system/bin/dhcpcd -ABKL -d usb0:0
    disabled
    oneshot

4.在Setting中可以看到Ethernet Setting的选项,可以上网

你可能感兴趣的:(ethernet)