Difference between revisions of "Compiling a 2.6 kernel"
From Nuclear Physics Group Documentation Pages
Jump to navigationJump to searchLine 9: | Line 9: | ||
<code> make ts72xx_defconfig </code><br> | <code> make ts72xx_defconfig </code><br> | ||
− | If you want, you can edit the default options | + | If you want, you can edit the default options. For instance, enabling usb serial conversion as a module, so that you can modprobe ftdi_sio and get usb/serial support.<br> |
<code> make menuconfig </code> <br> | <code> make menuconfig </code> <br> | ||
then make the kernel | then make the kernel | ||
Line 18: | Line 18: | ||
You can now copy all the modules to TARGET_DIR with: | You can now copy all the modules to TARGET_DIR with: | ||
<code>make modules_install INSTALL_MOD_PATH=TARGETDIR</code> | <code>make modules_install INSTALL_MOD_PATH=TARGETDIR</code> | ||
+ | If you were just compiling the kernel so you can get the ftdi_sio module, you'll find it in drivers/usb/serial/ftdi_sio.ko |
Revision as of 11:51, 14 September 2009
Making a custom 2.6 kernel for the TS-7260
curl -O ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/sources/tskernel-2.6.21-ts-src.tar.gz
tar -zxvf tskernel-2.6.21-ts-src.tar.gz
cd linux-2.6.21-ts
edit the Makefile:
- ARCH ?= arm
- CROSS_COMPILE ?= /usr/local/arm-linux-gnu/bin/arm-linux-gnu-
make ts72xx_defconfig
If you want, you can edit the default options. For instance, enabling usb serial conversion as a module, so that you can modprobe ftdi_sio and get usb/serial support.
make menuconfig
then make the kernel
make
make zImag
make modules
The final product is found in "arch/arm/boot" and is called "zImage". You can now copy all the modules to TARGET_DIR with:
make modules_install INSTALL_MOD_PATH=TARGETDIR
If you were just compiling the kernel so you can get the ftdi_sio module, you'll find it in drivers/usb/serial/ftdi_sio.ko