Discussion:
[uClinux-dev] How to enable USB_ARCH_HAS_HCD for embedded target?
Steve deRosier
2012-10-02 18:19:55 UTC
Permalink
Can anyone tell me the "proper" or "accepted" way to enable
CONFIG_USB_ARCH_HAS_HCD for my embedded uClinux project?

I have a bus-connected c67x00 USB chip on my mcf5235 system. To get it
running and make the chip-driver accessible, I hacked the
linux-3.x/drivers/usb/Kconfig:
config USB_ARCH_HAS_HCD
boolean
default y if USB_ARCH_HAS_OHCI
default y if USB_ARCH_HAS_EHCI
default y if USB_ARCH_HAS_XHCI
default y if PCMCIA && !M32R # sl811_cs
default y if ARM # SL-811
default y if NIOS2 # SL-811
default y if BLACKFIN # SL-811
default y if SUPERH # r8a66597-hcd
+ default y if M523x
default PCI

I selected the right stuff, setup the platform device in my board-specific
.c files and have it running and tested. Now I want to cleanup so I can
make my commits.

Obviously this is a board-specific thing, not a "generic linux" thing, so
what's the better way of doing this?

Thanks,
- Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20121002/98f8f510/attachment.html>
Gavin Lambert
2012-10-02 23:29:51 UTC
Permalink
Post by Steve deRosier
Can anyone tell me the "proper" or "accepted" way to enable
CONFIG_USB_ARCH_HAS_HCD
Post by Steve deRosier
for my embedded uClinux project?
[...]
Post by Steve deRosier
Obviously this is a board-specific thing, not a "generic linux" thing, so
what's the
Post by Steve deRosier
better way of doing this?
You should have a board-specific directory in the "vendors" tree, and have
that selected as your current board via the top-level uClinux makefile
(CAUTION: if you change the board selection it will replace your current
.config files and do a clean rebuild, so make sure you've saved your current
ones elsewhere if you need to change the selected board and have changes you
wish to preserve).

One of the options in the top-level makefile's config menu is to save your
modified .config files to the vendors folder as the new defaults for that
board. (Or if you want to do it manually, look at the existing vendor
folders. The naming conventions for the default config files should
hopefully be obvious.)
Steve deRosier
2012-10-02 23:36:02 UTC
Permalink
Post by Steve deRosier
Post by Steve deRosier
Can anyone tell me the "proper" or "accepted" way to enable
CONFIG_USB_ARCH_HAS_HCD
Post by Steve deRosier
for my embedded uClinux project?
[...]
Post by Steve deRosier
Obviously this is a board-specific thing, not a "generic linux" thing, so
what's the
Post by Steve deRosier
better way of doing this?
You should have a board-specific directory in the "vendors" tree, and have
that selected as your current board via the top-level uClinux makefile
(CAUTION: if you change the board selection it will replace your current
.config files and do a clean rebuild, so make sure you've saved your current
ones elsewhere if you need to change the selected board and have changes you
wish to preserve).
One of the options in the top-level makefile's config menu is to save your
modified .config files to the vendors folder as the new defaults for that
board. (Or if you want to do it manually, look at the existing vendor
folders. The naming conventions for the default config files should
hopefully be obvious.)
Thanks Gavin. I had tried that. The problem is, this particular flag is
not a user-selectable one, and even if I enable it by directly editing the
vendors/.../config.linux, it always gets undone when I actually go and
configure my kernel. This option seems to be forcibly enforced by the
Kconfig. There's got to be some way to keep it without hacking the Kconfig.

Thanks,
- Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20121002/49abc463/attachment.html>
Loading...