Friday, April 13, 2007

RNDIS

Remote Network Driver Interface Specification

(NDIS 網路驅動程式介面規格) Miniport 驅動程式,有兩項基本功能:

  • 管理網路介面卡,包括透過介面卡的資料傳送與接收。
  • 擔任更高層級驅動程式的介面,例如中繼驅動程式與傳輸通訊協定驅動程式。

Miniport 驅動程式與其網路介面卡及更高階層的驅動程式,是透過 NDIS 程式庫通訊,它從網路驅動程式中抽取網路硬體。NDIS 也在各層網路驅動程式之間明確界定了一個標準介面,從網路傳輸之類的上層驅動程式中,抽取出負責處理硬體的較低層級驅動程式。NDIS 並維護網路驅動程式狀態資訊及相關參數。

from Microsoft


RNDIS 連線教學
  1. set BSP_RNDIS_KITL = 1 in xxx.BAT (platform的環境變數,path在platform\xxx下)
  2. rebuild image
  3. boot device and enter eboot
  4. set mac address (option 7) = device的網路卡實體位置
  5. select i (DOWNLOAD image via USB RNDIS Ethernet)
  6. install PC USB RNDIS driver (C:\ WINCE500\ PUBLIC\ COMMON\ OAK\ CSP\ ARM\ Cxx...\ 5000\ TOOLS)
  7. 之後會自動跳出新的連線
  8. 選取原本的網路連線與新的連線,按右鍵點橋接器連接
  9. Then you can use DHCP to get IP for your device
  10. Enter platform builder, Target -> Connectivity option
  11. For option Download & Transport, select Ethernet and click on Settings, choose the model. For option Debugger, select Kdstub
  12. select Platform -> setting -> File name for runtime image -> chain.lst
  13. Select Target -> Attach device

And it will start to download image.
After image is downloaded, you could get all the retail message in platform builder console.


USB RNDIS 就是以USBclient來模仿Ethernet的傳輸數據的行為,達到實現Kitl的目的。

*
當我選橋接器連接會出現以下message:
您必須至少選取二條私人網路連線,[橋接器連線] 才能建立橋接器。
後來把網路連線 -> 內容 -> 進階 ->
允許其他使用者使用Internet的勾勾取消就可以連了


0 comments: