[beagleboard] Need specific kernel headers

Why search, when you can build them yourself..

Grab:
v3.2.0 from kernel.org:
patch: http://rcn-ee.net/deb/sid-armhf/v3.2.18-psp14/patch-3.2-psp14.diff.gz
.config: http://rcn-ee.net/deb/sid-armhf/v3.2.18-psp14/defconfig

Now you have the full patched source as the kernel headers are
completely useless on arm (with v3.2.x) with any of the arm
subarch's..

Regards,

Thank you so much! Stupid question, but how do I apply this patch and where should that defconfig be placed?

Thanks again!

Nick

I tried to patch by changing to the source dir and executing “patch -p1 < …/patch-3.2-psp14.diff”. Is this the proper way to do it?

Yeah, that works too..

voodoo@hestia:/opt/git_repo/linux$ git checkout v3.2 -b tmp
Switched to a new branch 'tmp'
voodoo@hestia:/opt/git_repo/linux$ zcat ../patch-3.2-psp14.diff.gz | patch -p1

Regards,

Ok, looks like I have the source in place, but I still can’t compile this bloody driver. :frowning:

ninja@derp:…$ make
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -C /home/ninja/beaglebone/linux-stable M=/home/ninja/beaglebone/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105 modules
make[1]: Entering directory `/home/ninja/beaglebone/linux-stable’

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

So I ran ‘make oldconfig && make prepare’ which was fine, but now I get this error about a missing file when trying to build the driver.

“include/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: No such file or directory”

Frustrating! I’m not sure where to go from here, but thanks for your help so far.

Nick

Did you copy the "defconfig" as .config to the base directory?

Sometimes you also need to pre-build it, as some files need to be
generated.. so "make <stuff> zImage"...

Regards,

Yeh, moving defconfig as .config into the base dir didn’t do much difference on its own.

I tried to do a make oldconfig && make prepare to “prebuild” and it asked me a bazillion questions. What would go under “” in “make zImage”? Really new to this side of linux so sorry for my ignorance. I feel as though we’re nearly there!

Cheers,
Nick

Yeh, moving defconfig as .config into the base dir didn't do much difference
on its own.

I tried to do a make oldconfig && make prepare to "prebuild" and it asked me
a bazillion questions.

That's because with out the ARCH=arm part of "make ARCH=arm oldconfig"
it's now probally x86...

Re-copy defconfig as .config..

What would go under "<stuff>" in "make <stuff>
zImage"?

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage

Regards,

Thanks Robert! Got it going in the end. You are a deadset legend.