SBC Kernel Setup

From HotDec

Jump to: navigation, search

Contents

Kernel Configuration

TODO:

  • what drivers do I need?
  • how to reuse a .config file from an older linux version
  • where to find the .config information for the kernel currently running on the sbc

Compiling the Kernel

TODO:

  •  ?

Installing the kernel

Once the kernel is install the easist (AFAIK) way to get the nessasary files on an SBC (or /home3/sbc) is to the kernels makefile to make a compressed archive of the kernel modules and drivers.

make tarbz2-pkg

This should create the file 'linux-2.6.15.3.tar.bz2'. This files should be uncompressed from the root directory of the SBC installation.

tar xvjf linux-2.6.15.3.tar.bz2 -C /home3/sbc 

Untarring should put the following files in /boot:

  • config - a comy of the config options used to build the kernel
  • System.map - used to translate addresses in the kernel to variable/function names
  • vmlinuz - the compressed linux kernel image
  • vmlinux - ?? the uncompressed linux kernel image ?? (it ends up getting deleted)

It will also put the modules in /lib/modules/<kernel-version>.


The files in the boot directory should be renamed to match the naming scheme used by the modules directory.

cd /home3/sbc/boot
mv config-2.6.15.3 config-2.6.15.3-sbc-apr13-rtai
mv System.map-2.6.15.3 System.map-2.6.15.3-sbc-apr13-rtai
mv vmlinuz-2.6.15.3 vmlinuz-2.6.15.3-sbc-apr13-rtai
rm vmlinux-2.6.15.3

You may also want to edit the grub.conf file so that the new kernel can be selected automatically. (see Grub Howto)


TODO:

  •  ?

See also

Personal tools