This is the faster way to download the already patched sources without the whole Linux commit history:
This is the slowest way to download the sources because it includes the whole Linux commit history and each patch applied by Acme. To follow this way you have to install Git on your Linux PC.
Open a terminal session and type:
$ git clone git://github.com/tanzilli/foxg20-linux-2.6.38.git ... $ cd foxg20-linux-2.6.38
Using gitk take a look to the patches applied by Acme Systems on the Linux Kernel Vanilla 2.6.38 to obtain a working image for the FOX Board G20 by typing:
You can see all the commit also via web on https://github.com/tanzilli/foxg20-linux-2.6.38/commits/acme-2.6.38.
Set the default Kernel configuration used by Acme to generate its default bootable microSD.
$ make foxg20_defconfig
Access the Kernel configuration and make your changes (if you have any changes to make) typing:
$ make menuconfig
To launch the Kernel compilation type:
$ make -j8 ...
The j8 option is to build the kernel in a multithreaded way.
"It is best to give a number to the -j option that corresponds to twice the number of processors in the system". (From pag.26 of Linux in a Nutshell by Greg Kroah-Hartman)
When finished you will find a new uImage file containing the bootable Kernel image in binary format. This file has to be copied on the first FAT16 partition of your microSD card as described next.
If you have a FOX Board already running you can store the Kernel image on the bootable micro SD remotely by following this article: How to update the kernel uImage remotely.
To compile the Kernel modules type:
$ make modules -j8 $ make modules_install
Note that modules are not installed but copied to the foxg20-modules sub-directory. If you don't want old modules you've built before, instead of that last line do:
$ rm -rf ./foxg20-modules $ make modules_install
Copy your module tree from your build machine's foxg20-modules/lib to the FOX Board G20 rootfs:
$ rsync -avc foxg20-modules/lib/. firstname.lastname@example.org:/lib/.
If this doesn't work install rsync on the FOX with the command:
$ apt-get install rsync
Back to the FOX Board G20 terminal and update the module dependencies:
$ depmod -a
Finally reboot the FOX Board G20 to load the new Kernel.