Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: AT91SAM9263 : USB Device Port (slave) look like ethernetport
PostPosted: Wed Jun 08, 2011 8:36 am 
Offline

Joined: Thu Jun 08, 2006 11:12 am
Posts: 14
Hello

I know there is a way but it is difficult to find...HELP!!

I would like to have my Linux (sam9263) utilizing the slave USB port to provide ethernet like service when connecting to a usb host.

To make it clear: a PC connects with a usb cable to the slave port of the sam9263 and sees an ethernet device. I guees, the standard PC provides already this kind of capability. Now, my sam9263 running linux needs to be the slave counter part.

linux sam9263 (SLAVE USB) ------ (HOST USB) any PC (sees ethernet device on usb)

We have the microhttpd running already on the sam9263. Up to now the PC connects through standard LAN port connection. Now we would like the usb slave port to be the port.

What needs to be done? We are using biuldroot 2011.02 and Linux 2.6.30.

I came along something like "gadget". Is this helping? and how??

Thanks indeed for any contribution.


Top
 Profile  
 
 Post subject: Re: AT91SAM9263 : USB Device Port (slave) look like ethernetport
PostPosted: Fri Jun 17, 2011 2:55 pm 
Offline

Joined: Thu Jun 08, 2006 11:12 am
Posts: 14
no idea in this world wide web...

Am I the only one wo wants to use the USB Device Port under Linux?

Best wishes
Thomas


Top
 Profile  
 
 Post subject: Re: AT91SAM9263 : USB Device Port (slave) look like ethernetport
PostPosted: Tue Jun 21, 2011 10:19 pm 
Offline

Joined: Tue Aug 21, 2007 8:42 pm
Posts: 26
Location: Alberta, Canada
Yes, you'd want to use the USB gadget drivers. From my notes:

Ethernet bridge over USB

• first, load the ethernet gadget driver if needed (or build it into your kernel):
# insmod /lib/modules/2.6.30-ts-armv5l/kernel/drivers/usb/gadget/g_ether.ko
• assign the new usb0 driver an ip:
# ifconfig usb0 192.168.1.1
• plug in the device port to a PC, it should detect the connection
• if the PC asks for drivers, point it to the linux.inf file (located in LINUX source /Documentation/usb) using the have disk method (see http://docwiki.gumstix.org/Windows_XP_usbnet). This is for XP, not sure on others.
• setup the new USB network on the PC with a fixed IP in the same subnet, ie: 192.168.1.10 (must be a different subnet than the Ethernet ports)

Also see:
http://www.linux-usb.org/usbnet/

--
Al


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron