Simon Moore wrote:
My method works by recompiling the whole kernel and building the modules
into the kernel - it should be possible to compile just the modules as
loadable modules but I can't find any HowTo's on this, so if there is
anyone out there that can tell me how to compile a kernel module in
scratchox, I'd much appreciate it.
Compiling modules in kernel tree is like compiling kernel. Just install
kernel-source-2.6.16 in arm scratchbox target, go to
/usr/src/kernel-source-2.6.16 and do it the same way like any other kernel.
[sbox-SDK_ARMEL: ~] > cd /usr/src/kernel-source-2.6.16
[sbox-SDK_ARMEL: ~] > cp arch/arm/configs/n770_defconfig .config
[sbox-SDK_ARMEL: ~] > make menuconfig
enable your stuff
[sbox-SDK_ARMEL: ~] > make
Then find modules (.ko) manually in kernel tree or do 'make
modules_install' and find it in /lib. Kernel is in arch/arm/boot/zImage
No debian stuff neeeded except installing the source.
I find this easier.
Maybe there are still problems with linking curses when making make
menuconfig. It is in list archives. I think it is just changing one line
in Makefile somewhere. Ask if you can't find it.
vi kernel-source-2.6.16/Makefile
#change to EXTRAVERSION = .27 #Only needed in second release of IT2006
using First release source
Later found that better is to get
http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.16.27.gz
and patch the kernel. You get EXTRAVERSION plus .27 bugfixes. It applies
almost fine. There are no arm specific fixes that would conflict with
omap1 so it is easy. I think I got only one harmless reject in
drivers/mtd/nand/Kconfig.
Frantisek
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers