All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting USB devices to work on BeagleBoard xM
@ 2014-04-15 22:13 Jeremy Cole-Baker
  2014-04-19 20:44 ` No USB devices on BeagleBoard xM! Jeremy Cole-Baker
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Cole-Baker @ 2014-04-15 22:13 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2821 bytes --]

Hi,

I've managed to build a couple of different recipes for my BeagleBoard 
(BeagleBoard xM Rev C), and also had a go at customising it.  I think 
I've tried core-image-minimal and core-image-basic.

The build works OK, and I can set up my micro SD card and get it to 
boot. I see lots of messages about loading drivers during boot, and I 
can log in to linux.

However, the USB devices don't seem to be working. The built in 
USB-Ethernet isn't there, and when I plug in a USB stick nothing happens 
- nothing in /dev/ and no messages in the system log.

I don't know whether this is something I missed in the build, or some 
configuration I need to do. I also don't know whether it is specific to 
the Beagle or a general problem. Unfortunately I am new to Kernel builds 
and device drivers.

Here's what I've looked into:

The boot-up messages indicate that the USB drivers are loaded, e.g.:

<snip>
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
...
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
...etc

(I think smsc95xx is the USB-Ethernet chip on the beagle board xM).

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap: OMAP-EHCI Host Controller driver
ehci-omap 48064800.ehci: EHCI Host Controller
ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 1
ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver usb-storage
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -6
mousedev: PS/2 mouse device common for all mice
...Etc

There's a modprobe error which occurs a couple of times:

udevd[71]: starting version 175
modprobe: chdir(3.10.11-yocto-standard): No such file or directory

I also saw errors from the ethernet subsystem (?), along the lines of 
"eth0: device not found" and "usb0: device not found". This occurred 
during boot and also when I used "ifup eth0". I'm actually seeing a 
different error now: "ifconfig: SIOCGIFFLAGS: No such device". In either 
case, I think it's because something to do with the actual USB hardware 
is missing or not configured.

"lsmod" shows no modules loaded, i.e.:

root@beagleboard:~#lsmod
Module Size Used by
root@beagleboard:~#

Does this mean that the various device drivers, etc, above are built in 
to the kernel?

Any suggestions for how to diagnose / fix this problem? Anybody else 
have experience with the BeagleBoard xM? I'm a bit lost.

Thanks!


-- 
Riverhead Technology
Jeremy Cole-Baker
Ph. (+64) 27 673 0129
www.rhtech.co.nz


[-- Attachment #2: Type: text/html, Size: 5321 bytes --]

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

* No USB devices on BeagleBoard xM!
  2014-04-15 22:13 Getting USB devices to work on BeagleBoard xM Jeremy Cole-Baker
@ 2014-04-19 20:44 ` Jeremy Cole-Baker
  2014-04-19 22:24   ` Denys Dmytriyenko
  2014-04-22 11:05   ` Jukka Rissanen
  0 siblings, 2 replies; 5+ messages in thread
From: Jeremy Cole-Baker @ 2014-04-19 20:44 UTC (permalink / raw)
  To: yocto


Hi, I still can't figure out how to get the USB hardware working on my 
BeagelBoard xM.

I've managed to build a couple of different recipes for my BeagleBoard 
(BeagleBoard xM Rev C), and also had a go at customising it.  I think 
I've tried core-image-minimal and core-image-basic.

The build works OK, and I can set up my micro SD card and get it to 
boot. I see lots of messages about loading drivers during boot, and I 
can log in to linux.

However, the USB devices don't seem to be working. The built in 
USB-Ethernet isn't there, and when I plug in a USB stick nothing happens 
- nothing in /dev/ and no messages in the system log.

I don't know whether this is something I missed in the build, or some 
configuration I need to do. I also don't know whether it is specific to 
the Beagle or a general problem. Unfortunately I am new to Kernel builds 
and device drivers.

Here's what I've looked into:

The boot-up messages indicate that the USB drivers are loaded, e.g.:

<snip>
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
...
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
...etc

(I think smsc95xx is the USB-Ethernet chip on the beagle board xM).

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap: OMAP-EHCI Host Controller driver
ehci-omap 48064800.ehci: EHCI Host Controller
ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 1
ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver usb-storage
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -6
mousedev: PS/2 mouse device common for all mice
...Etc

There's a modprobe error which occurs a couple of times:

udevd[71]: starting version 175
modprobe: chdir(3.10.11-yocto-standard): No such file or directory

I also saw errors from the ethernet subsystem (?), along the lines of 
"eth0: device not found" and "usb0: device not found". This occurred 
during boot and also when I used "ifup eth0". I'm actually seeing a 
different error now: "ifconfig: SIOCGIFFLAGS: No such device". In either 
case, I think it's because something to do with the actual USB hardware 
is missing or not configured.

"lsmod" shows no modules loaded, i.e.:

root@beagleboard:~# lsmod
Module Size Used by
root@beagleboard:~#

Does this mean that the various device drivers, etc, above are built in 
to the kernel?

Any suggestions for how to diagnose / fix this problem? Anybody else 
have experience with the BeagleBoard xM? I'm a bit lost.

Thanks!

Jeremy Cole-Baker



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

* Re: No USB devices on BeagleBoard xM!
  2014-04-19 20:44 ` No USB devices on BeagleBoard xM! Jeremy Cole-Baker
@ 2014-04-19 22:24   ` Denys Dmytriyenko
  2014-04-20  5:37     ` Jeremy Cole-Baker
  2014-04-22 11:05   ` Jukka Rissanen
  1 sibling, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2014-04-19 22:24 UTC (permalink / raw)
  To: Jeremy Cole-Baker; +Cc: yocto

On Sun, Apr 20, 2014 at 08:44:57AM +1200, Jeremy Cole-Baker wrote:
> 
> Hi, I still can't figure out how to get the USB hardware working on
> my BeagelBoard xM.
> 
> I've managed to build a couple of different recipes for my
> BeagleBoard (BeagleBoard xM Rev C), and also had a go at customising
> it.  I think I've tried core-image-minimal and core-image-basic.
> 
> The build works OK, and I can set up my micro SD card and get it to
> boot. I see lots of messages about loading drivers during boot, and
> I can log in to linux.
> 
> However, the USB devices don't seem to be working. The built in
> USB-Ethernet isn't there, and when I plug in a USB stick nothing
> happens - nothing in /dev/ and no messages in the system log.
> 
> I don't know whether this is something I missed in the build, or
> some configuration I need to do. I also don't know whether it is
> specific to the Beagle or a general problem. Unfortunately I am new
> to Kernel builds and device drivers.
> 
> Here's what I've looked into:
> 
> The boot-up messages indicate that the USB drivers are loaded, e.g.:
> 
> <snip>
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> ...
> usbcore: registered new interface driver smsc75xx
> usbcore: registered new interface driver smsc95xx
> ...etc
> 
> (I think smsc95xx is the USB-Ethernet chip on the beagle board xM).
> 
> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> ehci-omap: OMAP-EHCI Host Controller driver
> ehci-omap 48064800.ehci: EHCI Host Controller
> ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 1
> ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
> ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 3 ports detected
> usbcore: registered new interface driver usb-storage
> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -6
> mousedev: PS/2 mouse device common for all mice
> ...Etc
> 
> There's a modprobe error which occurs a couple of times:
> 
> udevd[71]: starting version 175
> modprobe: chdir(3.10.11-yocto-standard): No such file or directory

Doesn't seem like you have modules installed in your rootfs ^^^

If you build core-image-minimal, you then need to extract the modules from a 
tarball you got in the deplot area...


> I also saw errors from the ethernet subsystem (?), along the lines
> of "eth0: device not found" and "usb0: device not found". This
> occurred during boot and also when I used "ifup eth0". I'm actually
> seeing a different error now: "ifconfig: SIOCGIFFLAGS: No such
> device". In either case, I think it's because something to do with
> the actual USB hardware is missing or not configured.
> 
> "lsmod" shows no modules loaded, i.e.:
> 
> root@beagleboard:~# lsmod
> Module Size Used by
> root@beagleboard:~#
> 
> Does this mean that the various device drivers, etc, above are built
> in to the kernel?
> 
> Any suggestions for how to diagnose / fix this problem? Anybody else
> have experience with the BeagleBoard xM? I'm a bit lost.
> 
> Thanks!
> 
> Jeremy Cole-Baker
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

* Re: No USB devices on BeagleBoard xM!
  2014-04-19 22:24   ` Denys Dmytriyenko
@ 2014-04-20  5:37     ` Jeremy Cole-Baker
  0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Cole-Baker @ 2014-04-20  5:37 UTC (permalink / raw)
  To: yocto

Hi, thanks for your reply.

I did have a modules file from the build, which I installed on my root 
fs as follows:

tar x -C _root/ -f 
modules–3.10.11+git0+363bd856c8_702040ac7c-r0-beagleboard-20140415194907.tgz

(_root is a link to the correct partition on the flash card). The file 
contained a number of directories and files which were installed under 
/lib/modules/3.10.11-yocto-standard/. I have verified that these were 
copied correctly.

Could I be missing one or more modules, because I haven't selected some 
option in the build somewhere?

Is there any way to find out what module it is trying to load (i.e. when 
it says "no such file or directory")?


On 20/04/2014 10:24 a.m., Denys Dmytriyenko wrote:
> On Sun, Apr 20, 2014 at 08:44:57AM +1200, Jeremy Cole-Baker wrote:
>>
>> Hi, I still can't figure out how to get the USB hardware working on
>> my BeagelBoard xM.
>>
>> I've managed to build a couple of different recipes for my
>> BeagleBoard (BeagleBoard xM Rev C), and also had a go at customising
>> it.  I think I've tried core-image-minimal and core-image-basic.
>>
>> The build works OK, and I can set up my micro SD card and get it to
>> boot. I see lots of messages about loading drivers during boot, and
>> I can log in to linux.
>>
>> However, the USB devices don't seem to be working. The built in
>> USB-Ethernet isn't there, and when I plug in a USB stick nothing
>> happens - nothing in /dev/ and no messages in the system log.
>>
>> I don't know whether this is something I missed in the build, or
>> some configuration I need to do. I also don't know whether it is
>> specific to the Beagle or a general problem. Unfortunately I am new
>> to Kernel builds and device drivers.
>>
>> Here's what I've looked into:
>>
>> The boot-up messages indicate that the USB drivers are loaded, e.g.:
>>
>> <snip>
>> usbcore: registered new interface driver usbfs
>> usbcore: registered new interface driver hub
>> usbcore: registered new device driver usb
>> ...
>> usbcore: registered new interface driver smsc75xx
>> usbcore: registered new interface driver smsc95xx
>> ...etc
>>
>> (I think smsc95xx is the USB-Ethernet chip on the beagle board xM).
>>
>> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
>> ehci-omap: OMAP-EHCI Host Controller driver
>> ehci-omap 48064800.ehci: EHCI Host Controller
>> ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 1
>> ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
>> ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
>> hub 1-0:1.0: USB hub found
>> hub 1-0:1.0: 3 ports detected
>> usbcore: registered new interface driver usb-storage
>> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -6
>> mousedev: PS/2 mouse device common for all mice
>> ...Etc
>>
>> There's a modprobe error which occurs a couple of times:
>>
>> udevd[71]: starting version 175
>> modprobe: chdir(3.10.11-yocto-standard): No such file or directory
>
> Doesn't seem like you have modules installed in your rootfs ^^^
>
> If you build core-image-minimal, you then need to extract the modules from a
> tarball you got in the deplot area...
>
>
>> I also saw errors from the ethernet subsystem (?), along the lines
>> of "eth0: device not found" and "usb0: device not found". This
>> occurred during boot and also when I used "ifup eth0". I'm actually
>> seeing a different error now: "ifconfig: SIOCGIFFLAGS: No such
>> device". In either case, I think it's because something to do with
>> the actual USB hardware is missing or not configured.
>>
>> "lsmod" shows no modules loaded, i.e.:
>>
>> root@beagleboard:~# lsmod
>> Module Size Used by
>> root@beagleboard:~#
>>
>> Does this mean that the various device drivers, etc, above are built
>> in to the kernel?
>>
>> Any suggestions for how to diagnose / fix this problem? Anybody else
>> have experience with the BeagleBoard xM? I'm a bit lost.
>>
>> Thanks!
>>
>> Jeremy Cole-Baker
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>


-- 
Jeremy Cole-Baker



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

* Re: No USB devices on BeagleBoard xM!
  2014-04-19 20:44 ` No USB devices on BeagleBoard xM! Jeremy Cole-Baker
  2014-04-19 22:24   ` Denys Dmytriyenko
@ 2014-04-22 11:05   ` Jukka Rissanen
  1 sibling, 0 replies; 5+ messages in thread
From: Jukka Rissanen @ 2014-04-22 11:05 UTC (permalink / raw)
  To: jeremy; +Cc: yocto

Hi Jeremy,

On su, 2014-04-20 at 08:44 +1200, Jeremy Cole-Baker wrote:
> Hi, I still can't figure out how to get the USB hardware working on my 
> BeagelBoard xM.
> 

I think you are seeing this bug
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5211

I did not manage to get usb working with the instructions in the bug
thou.


Cheers,
Jukka




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

end of thread, other threads:[~2014-04-22 11:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 22:13 Getting USB devices to work on BeagleBoard xM Jeremy Cole-Baker
2014-04-19 20:44 ` No USB devices on BeagleBoard xM! Jeremy Cole-Baker
2014-04-19 22:24   ` Denys Dmytriyenko
2014-04-20  5:37     ` Jeremy Cole-Baker
2014-04-22 11:05   ` Jukka Rissanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.