USB under LinuxPPC
Hi,
I have been trying to compile USB support into the 2.2.5 kernel on LinuxPPC using the uusb driver.
On my LinuxPPC machine I keep getting errors that the struct s_snode has no element named lock. I checked in usb-slist.h and this struct's definition does not have an element named lock, nevertheless it is referenced throughout the usb driver code.
If anyone has been able to comple the uusb driver on LinuxPPC, I would appreciate some pointers. Also if there is a version of the usb drivers that compiles with kernel 2.2.0pre6, I would like to use it, since the SMP support on 2.2.1+ has been quite buggy for me.
Thanks,
----ranga <[email protected]>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 4 lines · Sriranga Veeraraghavan
If anyone has been able to comple the uusb driver on LinuxPPC, I would appreciate some pointers. Also if there is a version of the usb drivers that compiles with kernel 2.2.0pre6, I would like to use it, since the SMP support on 2.2.1+ has been quite buggy for me.
Er, SMP uusbd? uusbd currently doesn't have all the locking requires for SMP to work. Linus' simple USB code might work on SMP, but doens't have an OHCI driver that works yet.
---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 5 lines
Er, SMP uusbd? uusbd currently doesn't have all the locking requires for SMP to work. Linus' simple USB code might work on SMP, but doens't have an OHCI driver that works yet.
I tried to make some simple patches to the uusb code to support locking using the same locking strategy as the vmscan.c and other kernel files, but there were too many things to fix.
Where can I pick up a copy of Linus's USB driver? It does not seem to be included with my 2.2.5 kernel sources.
I am about to reveal my limited knowledge of USB, but what is the OHCI driver and will I need it to use a USB mouse or keyboard?
Anyway, I wish I had the time to do a complete patch. I really would like to get usb running on my 7600. But if it is a tradeoff between SMP and USB, I'll pick 800 bogoMIPS over a three button mouse. :-)
----ranga <[email protected]>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 11 lines · Sriranga Veeraraghavan
Quoted 4 lines
Er, SMP uusbd? uusbd currently doesn't have all the locking requires for SMP to work. Linus' simple USB code might work on SMP, but doens't have an OHCI driver that works yet.
I tried to make some simple patches to the uusb code to support locking using the same locking strategy as the
vmscan.cand other kernel files, but there were too many things to fix.Where can I pick up a copy of Linus's USB driver? It does not seem to be included with my 2.2.5 kernel sources.
It's in 2.2.7. But it does not have a OHCI controler (ie everything that's not from intel).
Quoted 2 lines
I am about to reveal my limited knowledge of USB, but what is the OHCI driver and will I need it to use a USB mouse or keyboard?
It's the controller you plug your keyboard/mouse into. :)
Quoted 3 lines
Anyway, I wish I had the time to do a complete patch. I really would like to get usb running on my 7600. But if it is a tradeoff between SMP and USB, I'll pick 800 bogoMIPS over a three button mouse. :-)
Yeah, that's a bit of a shame..
---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 6 lines · Sriranga Veeraraghavan
Quoted 5 lines
Er, SMP uusbd? uusbd currently doesn't have all the locking requires for SMP to work. Linus' simple USB code might work on SMP, but doens't have an OHCI driver that works yet.
Quoted 7 lines
I tried to make some simple patches to the uusb code to support locking using the same locking strategy as the
vmscan.cand other kernel files, but there were too many things to fix.Where can I pick up a copy of Linus's USB driver? It does not seem to be included with my 2.2.5 kernel sources.
2.2.7 standard kernel. Beware, though, you can't even enable it by default. If I were you, I'd wait for 2.2.8. Additionally, the current drivers are *very* experimental from what I hear, and there's little guarantee it would work with your mouse for the current release.
--
+----------------------------------------+ | Derek Moeller [email protected] | | Linux for PowerPC User, Student | | http://www.networksplus.net/moeller | | * * * | | "aut inveniam viam aut faciam" | +----------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 17 lines · Sriranga Veeraraghavan
Hi,
I have been trying to compile USB support into the 2.2.5 kernel on LinuxPPC using the uusb driver.
On my LinuxPPC machine I keep getting errors that the struct
s_snodehas no element named lock. I checked inusb-slist.hand this struct's definition does not have an element named lock, nevertheless it is referenced throughout the usb driver code.If anyone has been able to comple the uusb driver on LinuxPPC, I would appreciate some pointers. Also if there is a version of the usb drivers that compiles with kernel 2.2.0pre6, I would like to use it, since the SMP support on 2.2.1+ has been quite buggy for me.
Quoted 5 lines
Thanks,
----ranga <[email protected]>
I've used the 2.2.1 kernel from linuxppc.org
(/linuxppc/kernel/powermac/linux-pmac-2.2.1.tar.gz) that comes with USB support patched into the kernel and in good working order. You could probably patch the source up to 2.2.5 just fine.
+----------------------------------------+ | Derek Moeller [email protected] | | Linux for PowerPC User, Student | | http://www.networksplus.net/moeller | | * * * | | "aut inveniam viam aut faciam" | +----------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 7 lines · Sriranga Veeraraghavan
I have been trying to compile USB support into the 2.2.5 kernel on LinuxPPC using the uusb driver.
On my LinuxPPC machine I keep getting errors that the struct
s_snodehas no element named lock. I checked inusb-slist.hand this struct's definition does not have an element named lock, nevertheless it is referenced throughout the usb driver code.
You must be compiling an SMP kernel. The uusbd stuff doesn't support SMP yet. You'll have to compile with CONFIG_SMP=n if you want to use uusbd.
Paul.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]