How to use USB device networking

Table of Contents

Kernel Configuration

Gadget Ethernet Kernel Config

On Embedded Target

Insmod Drivers

After that, you will see a new usb ethernet adapter by ‘ifconfig -a’

Assign ethernet adapter ‘usb0’ with IP address

Connect Target to Host with a USB cable

You will see Windows notice found a new hardware and try to search and install driver.

RNDIS-Ethernet Gadget Driver installing

On Host Platform

Because there is no associated device driver on Windows, so we use a virtual PC to validate it.

Connect it to Virtual PC
Netchip on VMware

And we will see kernel print such as

And system recognized a new ethernet adapter

On the other hand, the Target will detect link is ready, you will see message such as below on console

Assign USB ethernet adapter with IP address

Check connection between Target and Host with USB cable

You can ping the other IP address such as

Reference

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.