missing USB gadget support on beagleboard?
Hi, I'm sure I'm missing something simple, but I just built Poky from git for beagleboard, and can't figure out USB networking. I expected to find g_cdc and g_ether modules in /lib/modules/3.0.18-yocto-standard+/kernel/drivers/usb, but that directory doesn't actually exist (I guess the drivers are built-in to this kernel).
I have MACHINE ??= beagleboard in local.conf, and "bitbake core-image-minimal" did produce a working kernel, uboot, etc. I see some USB messages at boot (see below), but although cdc_ether is mentioned, ifconfig -a lists only loopback.
Any suggestions? Thanks!
usbcore: registered new interface driver kaweth
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
usbcore: registered new interface driver int51x1cdc_ncm: 04-Aug-2011
usbcore: registered new interface driver cdc_ncm
console [netcon0] enabled
netconsole: network logging startedehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver _regulator_get: ehci-omap.0 supply hsusb0 not found, using dummy regulator _regulator_get: ehci-omap.0 supply hsusb1 not found, using dummy regulator ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1 ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
Signature · 2 lines
Hollis Blanchard Mentor Graphics, Embedded Systems Division
Quoted 6 lines · Hollis Blanchard
Hi, I'm sure I'm missing something simple, but I just built Poky from git for beagleboard, and can't figure out USB networking. I expected to find
g_cdcandg_ethermodules in/lib/modules/3.0.18-yocto-standard+/kernel/drivers/usb, but that directory doesn't actually exist (I guess the drivers are built-in to this kernel).
Quoted 6 lines
I have MACHINE ??= beagleboard in local.conf, and "bitbake core-image-minimal" did produce a working kernel, uboot, etc. I see some USB messages at boot (see below), but although
cdc_etheris mentioned, ifconfig -a lists only loopback.Any suggestions? Thanks!
You can look at the default defconfig to see which kernel modules are selected and also make sure the kernel modules are actually included on core-image-minimal.
-M
Quoted 3 lines · Matthew McClintock
You can look at the default defconfig to see which kernel modules are selected and also make sure the kernel modules are actually included on core-image-minimal.
By making sure kernel modules are included... I mean the kernel recipes creates a kernel-modules package. You can see if it's generated, what it contains, and then determine if that is actually whats included on the root file system.
-M
Quoted 13 lines · On 02/14/2012 10:24 PM, McClintock Matthew-B29882 wrote:
Quoted 11 lines · Hollis Blanchard
Hi, I'm sure I'm missing something simple, but I just built Poky from git for beagleboard, and can't figure out USB networking. I expected to find
g_cdcandg_ethermodules in/lib/modules/3.0.18-yocto-standard+/kernel/drivers/usb, but that directory doesn't actually exist (I guess the drivers are built-in to this kernel).I have MACHINE ??= beagleboard in local.conf, and "bitbake core-image-minimal" did produce a working kernel, uboot, etc. I see some USB messages at boot (see below), but although
cdc_etheris mentioned, ifconfig -a lists only loopback.
Quoted 4 lines
Quoted 1 line
Any suggestions? Thanks!
You can look at the default defconfig to see which kernel modules are selected and also make sure the kernel modules are actually included on core-image-minimal.
Right, it looks like CONFIG_USB_ETH is disabled in linux-beagleboard-standard-build/.config , and I think that's the key missing option. I'm so lost in Yocto's kernel configuration "architecture" that I have no idea if that's being explicitly disabled, or just omitted from the base config, or what.
It seems to me that option should be enabled if DISTRO_FEATURES contains usbgadget. More simply, it seems like a good idea to enable CONFIG_USB_ETH in the beagleboard default configuration, since many beagleboards don't have any other network interface.
Is there an owner of Yocto's beagleboard BSP stuff?
Hollis Blanchard
Mentor Graphics, Embedded Systems Division
Quoted 6 lines · Hollis Blanchard
Right, it looks like
CONFIG_USB_ETHis disabled in linux-beagleboard-standard-build/.config , and I think that's the key missing option. I'm so lost in Yocto's kernel configuration "architecture" that I have no idea if that's being explicitly disabled, or just omitted from the base config, or what.
Quoted 6 lines
It seems to me that option should be enabled if
DISTRO_FEATUREScontains usbgadget. More simply, it seems like a good idea to enableCONFIG_USB_ETHin the beagleboard default configuration, since many beagleboards don't have any other network interface.Is there an owner of Yocto's beagleboard BSP stuff?
As a stop gap, you can run menuconfig:
bitbake -c menuconfig virtual/kernel
bitbake -c compile virtual/kernel -f
And add the kernel modules you need. The final ideal solution would be to include a kernel config fragment for this kernel config option by default for this and possibly other machines.
-M
Quoted 24 lines · Hollis Blanchard
Quoted 18 lines · On 02/14/2012 10:24 PM, McClintock Matthew-B29882 wrote:
Quoted 16 lines · Hollis Blanchard
Hi, I'm sure I'm missing something simple, but I just built Poky from git
for beagleboard, and can't figure out USB networking. I expected to findg_cdcandg_ethermodules in/lib/modules/3.0.18-yocto-standard+/kernel/drivers/usb, but that directory
doesn't actually exist (I guess the drivers are built-in to this kernel).I have MACHINE ??= beagleboard in local.conf, and "bitbake core-image-minimal" did produce a working kernel, uboot, etc. I see some USB
messages at boot (see below), but althoughcdc_etheris mentioned, ifconfig
-a lists only loopback.Quoted 4 lines
Quoted 1 line
Any suggestions? Thanks!
You can look at the default defconfig to see which kernel modules are selected and also make sure the kernel modules are actually included on core-image-minimal.
Quoted 5 lines
Right, it looks like
CONFIG_USB_ETHis disabled in linux-beagleboard-standard-build/.config , and I think that's the key missing option. I'm so lost in Yocto's kernel configuration "architecture" that I have no idea if that's being explicitly disabled, or just omitted from the base config, or what.
Is this the 3.0 variant ? That particular option wasn't enabled (most likely because no one had the right device to test it). But that's not the point, we can absolutely and easily enable it .. in particular if someone confirms that it works :)
Quoted 5 lines
It seems to me that option should be enabled if
DISTRO_FEATUREScontains usbgadget. More simply, it seems like a good idea to enableCONFIG_USB_ETHin the beagleboard default configuration, since many beagleboards don't have any other network interface.
The ethernet issue(s) are a painful memory of last year's ELC demos and plenty of swearing about USB ethernet that didn't detect due to particular USB hubs.
We can trigger the inclusion of a particular config option or fragment directly from a distro feature as well.
Quoted 2 lines
Is there an owner of Yocto's beagleboard BSP stuff?
I can help. Sorry that I missed your first email, traveling to ELC filled up my inbox with a backlog.
Bruce
Quoted 8 lines
Hollis Blanchard
Mentor Graphics, Embedded Systems Division_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 31 lines · Bruce Ashfield
Quoted 24 lines · Hollis Blanchard
Quoted 18 lines · On 02/14/2012 10:24 PM, McClintock Matthew-B29882 wrote:
Quoted 16 lines · Hollis Blanchard
Hi, I'm sure I'm missing something simple, but I just built Poky from git
for beagleboard, and can't figure out USB networking. I expected to findg_cdcandg_ethermodules in/lib/modules/3.0.18-yocto-standard+/kernel/drivers/usb, but that directory
doesn't actually exist (I guess the drivers are built-in to this kernel).I have MACHINE ??= beagleboard in local.conf, and "bitbake core-image-minimal" did produce a working kernel, uboot, etc. I see some USB
messages at boot (see below), but althoughcdc_etheris mentioned, ifconfig
-a lists only loopback.Quoted 4 lines
Quoted 1 line
Any suggestions? Thanks!
You can look at the default defconfig to see which kernel modules are selected and also make sure the kernel modules are actually included on core-image-minimal.
Quoted 5 lines
Right, it looks like
CONFIG_USB_ETHis disabled in linux-beagleboard-standard-build/.config , and I think that's the key missing option. I'm so lost in Yocto's kernel configuration "architecture" that I have no idea if that's being explicitly disabled, or just omitted from the base config, or what.
Quoted 4 lines
Is this the 3.0 variant ? That particular option wasn't enabled (most likely because no one had the right device to test it). But that's not the point, we can absolutely and easily enable it .. in particular if someone confirms that it works :)
Yes, it's (apparently) a 3.0.18 kernel. I'd be happy to test it.
Quoted 8 lines
Quoted 4 lines
It seems to me that option should be enabled if
DISTRO_FEATUREScontains usbgadget. More simply, it seems like a good idea to enableCONFIG_USB_ETHin the beagleboard default configuration, since many beagleboards don't have any other network interface.The ethernet issue(s) are a painful memory of last year's ELC demos and plenty of swearing about USB ethernet that didn't detect due to particular USB hubs.
I don't think I can do anything about that. :)
Quoted 2 lines
We can trigger the inclusion of a particular config option or fragment directly from a distro feature as well.
Matt's clues may have helped me decipher enough to create a features/usb-gadget fragment. AFAICS, that can't be controlled by bitbake variables... but it would be enough for me. :)
The next issue is something to auto-load the g_ether module at boot. It looks like there's no shortage of init scripts developed for this purpose in different OE distributions, but none of them are installed in Yocto's Beagleboard build...
Quoted 4 lines
Quoted 1 line
Is there an owner of Yocto's beagleboard BSP stuff?
I can help. Sorry that I missed your first email, traveling to ELC filled up my inbox with a backlog.
No worries, I knew it was a bad time to ask... thanks!
Hollis Blanchard
Mentor Graphics, Embedded Systems Division