Building the kernel image

  1. Obtain the Linux kernel sources and OMAP patch

  2. $ mkdir omap-linux
    $ cd omap-linux
    $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2
    $ wget http://www.muru.com/linux/omap/patches/patch-2.6.12-omap1.bz2
    
  3. Extract the files and aplly the patch
  4. $ tar xvfj linux-2.6.12.tar.bz2
    $ cd linux-2.6.12
    $ bzcat ../patch-2.6.12-omap1.bz2 | patch -p1
    
  5. Configure the kernel setting.
  6. $ make clean
    $ make omap_osk_5912_defconfig
    
    Optionally, NFS (Network File System) can be enabled, with which the OSK board can access PC Linux host machine directory. This is convenient function during development phase.
    $ make menuconfig
    	...
    	< A graphical configuratio menu appears >
    	...
    Network File Systems --->
    <*> NFS file system support			( CONFIG_NFS_FS )
    [*]  Provide NFSv3 client support		( CONFIG_NFS_V3 )
    ...
    [*] Root file system on NFS			( CONFIG_ROOT_NFS )
    
  7. Build the kernel image.
  8. $ make uImage
    
    After 5 ~ 30 minutes, ./arch/arm/boot/uImage will be generated.
    This file can be transferred to the OSK u-boot either through TFTP (ether) or Kermit (serial).

Further Reference

  1. Kernel Build FAQ

return