am335x USB OTG nic (rndis/ethernet Gadget) Debug

Source: Internet
Author: User

Recompile kernel (2.6.29)
2.6.29 kernel
Device Drivers---> USB support---> USB Gadget Support--->
where USB peripheral controller selected S3C2410 USB Device controller
Then choose a Gadget driver from the kernel to do the demo, here is the Ethernet Gadget (with CDC Ethernet support)
Because this driver does not need to pass in the parameters, so give a y instead of M, easy



Make and burn zimage to mini1440
After the Linux is fully booted, unplug the USB slave connector and plug it in, and the Discovery (Rndis/ethernet Gadget) device will pop up.

Just this Rndis drive is really hard to do, it is said to have in ActiveSync, but I pretend not to react
Only download the Microsoft Rndis USB Kit 2005, extract the driver and change the INF file in the template to calculate the installation success

I changed it. rndis nic driver download
http://download.csdn.net/source/1742242

INF file only changes the VID and PID, this can be found in the Device Manager (even if there is no driver)

Here vid is 0525 pid a4a2
And then I think it's all right. The manufacturer and something changed, that should be fun.

Then one more network connection, set to IP 192.168.1.2 Gateway 192.168.1.1 Subnet Mask 255.255.255.0
This network connection is still in a disconnected state

DNW Connect the Development Board, Ifconfig usb0 192.168.1.1, you will find the network Unicom (kangear Note: Test OK)
Mutual Ping can also http://192.168.1.1 access to the built-in Web server in the board (kangear Note: Test OK)

As for the use of the Development Board to get the PC online, this should be a lot of WM Mobile features, Rndis I think is designed for this purpose.
Can mini2440 not iptable what complex package forwarding program, will usb0 through eth0 implementation of forwarding, I can not add themselves, can only end.


kangear Supplement: For: Test methods in http://www.arm9home.net/simple/index.php?t3326.html:[Email protected]:~$
[Email protected]:~$ ftp 192.168.0.202
Connected to 192.168.0.202.
friendlyarm FTP Server (Version 6.4/openbsd/linux-ftpd-0.17) ready.
Name (192.168.0.202:alex):
331 Password required for Alex.
Password:
530 Login incorrect.
Login failed.
ftp>
My test results:[[Email protected] linux-2.6.32.2]# FTP 192.168.1.230Connected to 192.168.1.230 (192.168.1.230).friendlyarm FTP Server (Version 6.4/openbsd/linux-ftpd-0.17) ready.Name (192.168.1.230:root): 331 Password required for root. password:530 Login incorrect. Login failed.ftp> (notes:I did not know the account password to directly hit the return, but see can see already can connect.
On the original blogger did not realize the function as a true NIC, but I found some knowledge, understanding should be able to "how to turn on the Linux dual network card forwarding function"

The following are the key parts of the reprint:


Finally, there is a problem, is the Development Board has a network card, but also analog USB network card, it is necessary to ensure that the USB virtual network card and the USB network card in the same IP segment, and the Development Board of the original network card IP segment, or you can not be exhausted to ping ~

is the condition of my network card setting

Windows

USB Card

ip:192.168.2.50 Mask: 255.255.255.0 gateway: (this casual, see a person likes, if set Gateway Best Development Board also set) 192.168.2.1

Normal NIC

ip:192.168.1.235 Mask: 255.255.255.0 gateway: 192.168.1.1

Development Board

USB Card

ip:192.168.2.70 Mask: 255.255.255.0 gateway: 192.168.2.1

Normal NIC

ip:192.168.1.70 Mask: 255.255.255.0 gateway: 192.168.1.1

View Development Board Gateways

Route-n

Set up the Board gateway

Route add default GW 192.168.2.1

Then you should be able to ping it with Windows.

Test results for Kangear: [Plain]View Plaincopy
  1. [[Email protected] Desktop]# FTP 192.168.2.230
  2. Connected to 192.168.2.230 (192.168.2.230).
  3. Friendlyarm FTP Server (Version 6.4/openbsd/linux-ftpd-0.17) ready.
  4. Name (192.168.2.230:root): PLG
  5. 331 Password required for PLG.
  6. Password:
  7. User PLG logged in.
  8. Remote system type is UNIX.
  9. Using binary mode to transfer files.
  10. Ftp>
  11. Ftp>

am335x USB OTG nic (rndis/ethernet Gadget) Debug

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.