Recompiling the Linux Kernel

As of 2010, all Gumstix customers should be using Gumstix OpenEmbedded, not Buildroot.

The Gumstix Developer's website is www.gumstix.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

For legacy customers still requiring buildroot:

If you want to recompile the linux kernel for your gumstix board, follow these steps. cd  cd build_arm_nofpu cd linux- make ARCH=arm menuconfig

Note that CROSS_COMPILE is NOT required when doing the menuconfig. It's fine to provide it (like if you've created an alias or script), but for hand typing, it's completely unnecessary.

Like most things in software development, there are often many ways of achieving the same result. Here are two different methods which can be used to rebuild the kernel: make ARCH=arm CROSS_COMPILE=`pwd`/../staging_dir/bin/arm-linux- cd  make

Personally, I prefer to do the following instead: rm arch/arm/boot/compressed/vmlinux cd  make

Removing that particular vmlinux file will trigger buildroot's make to rebuild the kernel with all of the appropriate command line options.

The reason I prefer the second approach is that sometimes rebuilding the kernel can take a while (certain config options can cause many files to be rebuilt). In the first approach you need to do two make - wait-a-whiles. The second approach involves a single make - wait-a-while step The wait-a-while will be the sum of the two wait-a-whiles from the first approach, but it means I can go and do something else while I'm waiting and not have to come back until the whole thing is done.