[beagleboard] Where do I get the Kernel Source Code?

I am still really new at this. I am trying to get usbip to work for
beagleboard ubuntu and it says i need to compile the staging drivers.
In order to do this it says that I need the source code for the
kernel.

After running 'uname -a' it shows I am running 2.6.32.7-x7.1 version
of the kernel.

Where can I get the source code for this?

Download the 2.6.32 kernel and 2.6.32.7 patch.. Along with the
patch-set and defconfig uploaded here:
http://rcn-ee.net/deb/kernel/beagle/ for the same distro you are using
(jaunty, karmic or lucid)..

Regards,

Btw, after downloading all that, tweak the defconfig with this change
to build the usbip stuff..

-# CONFIG_USB_IP_COMMON is not set
+CONFIG_USB_IP_COMMON=m
+CONFIG_USB_IP_VHCI_HCD=m
+CONFIG_USB_IP_HOST=m

Regards,

Okay, so I tried to patch the 2.6.32 files by following the info on
http://www.howtoforge.com/kernel_compilation_ubuntu
I keep getting an error where patch cannot rename something in the /
tmp directory to Documentation?

So, what am i doing wrong?

Also is all of this really necessary to get the drivers to work?

Dear Robert,

may I use codesourcery toolchain to compile Ubuntu kernel? and which version is suitable?

Max

2010/5/14 mgough <mgough85@gmail.com>

Okay, so I tried to patch the 2.6.32 files by following the info on
http://www.howtoforge.com/kernel_compilation_ubuntu
I keep getting an error where patch cannot rename something in the /
tmp directory to Documentation?

So, what am i doing wrong?

Also is all of this really necessary to get the drivers to work?

Well... I've already enabled them shortly after our first conversation...

voodoo@lvrm:~/bzr_repo/2.6-stable$ grep -r "CONFIG_USB_IP_" patches/
patches/defconfig:CONFIG_USB_IP_COMMON=m
patches/defconfig:CONFIG_USB_IP_VHCI_HCD=m
patches/defconfig:CONFIG_USB_IP_HOST=m
patches/lucid-defconfig:CONFIG_USB_IP_COMMON=m
patches/lucid-defconfig:CONFIG_USB_IP_VHCI_HCD=m
patches/lucid-defconfig:CONFIG_USB_IP_HOST=m

Karmic: http://rcn-ee.net/deb/karmic/v2.6.33.4-x3/linux-image-2.6.33.4-x3_1.0karmic_armel.deb
Lucid (weird gcc bug in 2.6.33.x so use mavericks' till i get it
sorted out..): http://rcn-ee.net/deb/maverick/v2.6.33.4-l3/linux-image-2.6.33.4-l3_1.0maverick_armel.deb

may I use codesourcery toolchain to compile Ubuntu kernel? and which version is suitable?

Sure just use the latest as they'll make a bootable kernel... (None
are really suitable, i've just had better luck with Angstrom's cross
compiler over the years....)

Regards,