mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* USB device not found
@ 2010-06-23  8:39 Jose Luis Zabalza
  2010-06-24  7:00 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Luis Zabalza @ 2010-06-23  8:39 UTC (permalink / raw)
  To: barebox

Hello all.

I connect a usb device to my board but I can't see the device on /dev.
Is it usual?
I should see a /dev/usb0-20 device file?




jlxx:/ usb
USB: scanning bus for devices...
...
usb0-2: 1516:8628 FlashDisk
usb0-1: 0000:0000 EHCI Host Controller
2 USB Device(s) found

jlxx:/ devinfo
devices:
|----imx_serial0
|----cs0
|----ramfs0
|----devfs0
|----mem0 (defaultenv)
|----mem1 (mem)
|----cfi_flash0 (nor0, self, env, nor0.uboot, nor0.kernel, nor0.root)
|----mem2 (ram0)
|----fec_imx0
|----miiphy0 (phy0)
|----eth0
|----imxfb0
|----fb0 (fb0)
|----ehci0
|----usb0-20
|----usb0-10

drivers:
imx_serial
     ramfs
     devfs
   fec_imx
    miiphy
 cfi_flash
      ehci
     imxfb
       mem


jlxx:/ ls /dev
zero           defaultenv     mem            nor0           ram0
phy0           fb0            self           env            nor0.uboot
nor0.kernel    nor0.root


Thanks in avance




-- 
José Luis Zabalza
jlz.3008  a t  gmail.com
Linux Counter 172551

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: USB device not found
  2010-06-23  8:39 USB device not found Jose Luis Zabalza
@ 2010-06-24  7:00 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2010-06-24  7:00 UTC (permalink / raw)
  To: Jose Luis Zabalza; +Cc: barebox

On Wed, Jun 23, 2010 at 10:39:35AM +0200, Jose Luis Zabalza wrote:
> Hello all.
> 
> I connect a usb device to my board but I can't see the device on /dev.
> Is it usual?
> I should see a /dev/usb0-20 device file?
> 
> jlxx:/ usb
> USB: scanning bus for devices...
> ...
> usb0-2: 1516:8628 FlashDisk
> usb0-1: 0000:0000 EHCI Host Controller
> 2 USB Device(s) found
> 
> jlxx:/ devinfo
> devices:
> |----imx_serial0
> |----cs0
> |----ramfs0
> |----devfs0
> |----mem0 (defaultenv)
> |----mem1 (mem)
> |----cfi_flash0 (nor0, self, env, nor0.uboot, nor0.kernel, nor0.root)
> |----mem2 (ram0)
> |----fec_imx0
> |----miiphy0 (phy0)
> |----eth0
> |----imxfb0
> |----fb0 (fb0)
> |----ehci0
> |----usb0-20
> |----usb0-10

The devinfo command should be worked on. Traditionally each device
automatically had a file under /dev, but this behaviour was not really
nice because several devices do not need a file. I changed this
so that files under /dev have to be explicitely registered. What you
see with the devinfo command are the devices registered in the system
and in brackets the /dev files registered from these devices. so for
example the device 'miiphy0' has registered a file /dev/phy0.

usb0-2 is a device registered for housekeeping only with no files at
all, that's normal.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-24  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-23  8:39 USB device not found Jose Luis Zabalza
2010-06-24  7:00 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox