[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Correct Procedure to build nslu2 kernel natively ?



Hi All,

Okay, having upgraded my nslu2 to sid, and grabbed the latest
kernel, with AX25 support (Thanks Martin!), I remembered that
in order to use mkiss I needed CONFIG_LEGACY_PTS=y.

So I edit .config, unset CONFIG_ATH5K, as it seems not to compile
for me, and try make-kpkg again. I've tried multiple different
make-kpkg lines, but while I can get a package built, flash-kernel
complains that the vmlinuz file is not for the correct sub-arch.

The procedure I'm using (as root, yes yes, i know, but some bits
of make-kpkg need it, even with fakeroot, and at 20 hours build
time its a PITA when it bombs out) am using is:

apt-get source linux-source-2.6.26
cd linux-linux-2.6-2.6.26
<create and modify .config>
make-kpkg --arch arm --subarch ixp4xx --arch_in_name --initrd \ kernel_image
dpkg --install ../linux-image-2.6.26-ixp4xx.deb

I've tried various different variations on the make-kpkg cmdline,
but all to no avail. Am I do something wrong, or silly ? How
*should* I be compiling the kernel packages natively ?

Also, what, if anything extra do I need to do to get the ixp4xx
Ethernet firmware included ?


While not new to kernel building, it does take 20 or so
hours to build/test each thing I try, if any-one could
confirm that I'm doing it right, or missing something
silly, it might save me some time, and sanity :)

Or should I give up trying to compile the kernel natively,
and cross-compile ?


Thanks in Advance

Iain



Reply to: