啟動 USB RNDIS 主機功能後, Jetston TK1 就能透過 Android 智慧手機 USB 行動數據分享連網.

<< 啟動 USB RNDIS 主機功能 >>

diff --git a/arch/arm/configs/tegra12_defconfig b/arch/arm/configs/tegra12_defconfig
index 24c006a..57fcd4c 100644
--- a/arch/arm/configs/tegra12_defconfig
+++ b/arch/arm/configs/tegra12_defconfig
@@ -240,6 +240,7 @@ CONFIG_PPPOPNS=m
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_USB_USBNET=y
+CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_NET_SMSC95XX=y
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_BELKIN is not set

<< 連接 USB 行動數據分享裝置 >>

usb0 網路裝置褂載成功.

[ 504.434799] usb 2-1.3: New USB device found, idVendor=0bb4, idProduct=0fb5
[ 504.434862] usb 2-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 504.434908] usb 2-1.3: Product: Android Phone
[ 504.434951] usb 2-1.3: Manufacturer: HTC
[ 504.434991] usb 2-1.3: SerialNumber: FA2BTW100430
[ 504.464942] rndis_host 2-1.3:1.0 usb0: register 'rndis_host' at usb-tegra-ehci.2-1.3, RNDIS device, 8a:d3:f3:a3:e9:7c

~$ ifconfig usb0
usb0 Link encap:Ethernet HWaddr 8a:d3:f3:a3:e9:7c
inet addr:192.168.42.37 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::88d3:f3ff:fea3:e97c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5352 errors:0 dropped:0 overruns:0 frame:0
TX packets:5055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4777166 (4.7 MB) TX bytes:955493 (955.4 KB)

(完成)

 

文章標籤
創作者介紹
創作者 版大 的頭像
版大

嵌入式系統

版大 發表在 痞客邦 留言(0) 人氣()