Kernel Headers for Narcissus builds...

Hi.

I'm using the images generated by the narcissus online image builder

http://amethyst.openembedded.net/~koen/narcissus

They are great! Love them...

However, I'd like to compile a kernel-module or two, so I need the linux
headers for the kernel used in these images.

Would it be possible to somehow provide a tgz containing the headers? In
openembedded they're usually located at:
$OE_HOME/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include/linux/

I've tried to use the headers from my local OpenEmbedded installation
but for some reason I always get the following error in the kernel log:

  testmodulek: disagrees about version of symbol struct_module

Fun fact: my self-compiled kernel has the same version as the one
provided with narcissus, but it still does not work (It should,
shouldn't it?)
If I use my own kernel my module loads, but in this case all other
modules won't load anymore.

Cheers,
  Nils

Hi, download the kernel source:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
linux-omap-2.6

then, cd to to the folder.

you are going to need a cross compile toolchain, I use codesourcery
( free to download) and mkimage(apt-getable)

then type:
     ARCH=arm make CROSS_COMPILE=/path/to/the/tool/chain/bins/
toolchain distclean
     ARCH=arm make CROSS_COMPILE=/path/to/the/tool/chain/bins/
toolchain omap3_beagle_defconfig
     ARCH=arm make CROSS_COMPILE=/path/to/the/tool/chain/bins/
toolchain menuconfig /*here you activate everything you want*/
     ARCH=arm make CROSS_COMPILE=/path/to/the/tool/chain/bins/
toolchain uImage modules

      you are going to get a uImage in the folder arch/arm/boot

      now do ARCH=arm make CROSS_COMPILE=/path/to/the/tool/chain/
bins/toolchain
                      INSTALL_MOD_PATH=/path/to/your/card files
partition modules_install

this should do the trick....

Saul

sorry, hadn't read everything, this error is due to difference in the
kernel version you are using and the kernel you are using to compile
the module....there is a way to force module to load by erasing the
mod_info section but I never did it...

I couldn't open the narcissus sd.img...how did you do it?