EmbeddedRelated.com
Forums
Memfault Beyond the Launch

How to acces USB ports in AT91SAM9260 ?

Started by pratibha_275 June 20, 2009
Hi!
I am using "/dev/ttys0or1or2" to access my serial ports but being unable to access USB ports by giving "/dev/usb1".
Do i need to write a USB driver to access or what should I do?

On Sat, 20 Jun 2009 06:04:57 -0000
"pratibha_275" wrote:
> I am using "/dev/ttys0or1or2" to access my serial ports but being
> unable to access USB ports by giving "/dev/usb1". Do i need to write
> a USB driver to access or what should I do?

I assume you're running Linux on your 9260? If so, the USB drivers for
the particular devices you have plugged in to those ports will create
devices specifically for those devices. For instance, serial converters
(and devices which use the FTDI chip) will often end up
as /dev/ttyUSB0, where mass storage devices (ie: thumb drives) may end
up as SCSI subsystem devices, like /dev/sdc.

If you're running Linux, find support for the particular devices that
you're trying to plug in to the USB ports.

Dan

Oh, and I think the front page for the 9260 is telling me that it's got
host and device ports, which means the 9260 can be a device. If you're
trying to make it be a device rather than a host, look into "gadgetfs".

Dan
--- In A..., Dan Lyke wrote:
>
> On Sat, 20 Jun 2009 06:04:57 -0000
> "pratibha_275" wrote:
> > I am using "/dev/ttys0or1or2" to access my serial ports but being
> > unable to access USB ports by giving "/dev/usb1". Do i need to write
> > a USB driver to access or what should I do?
>
> I assume you're running Linux on your 9260? If so, the USB drivers for
> the particular devices you have plugged in to those ports will create
> devices specifically for those devices. For instance, serial converters
> (and devices which use the FTDI chip) will often end up
> as /dev/ttyUSB0, where mass storage devices (ie: thumb drives) may end
> up as SCSI subsystem devices, like /dev/sdc.
>
> If you're running Linux, find support for the particular devices that
> you're trying to plug in to the USB ports.
>
> Dan
>

Yes I am using Linux on my 9260. And in my /dev/ folder I can see the devices ttys0 ,ttys1....tty1,tty2.....usb1,usbdev1.1_ep00,usbdev1.1_ep01........
so i thought like i can use ttyS0,ttyS1and ttyS2, i should be able to access USB device. Actually i need one more serial port as i have used all the serial ports including debug ports.

Pratibha,

Do you want the USB ports to be accessed as serial ports,if yes you must
enable the USB serial driver in the kernel and then you can access the USB
device port as /dev/ttyUSB0.
Regards
T.V.R.Prasad

On Sat, Jun 20, 2009 at 11:34 AM, pratibha_275 wrote:

> Hi!
> I am using "/dev/ttys0or1or2" to access my serial ports but being unable to
> access USB ports by giving "/dev/usb1".
> Do i need to write a USB driver to access or what should I do?
>

Memfault Beyond the Launch