Resources
==========================================================
OS
Ubuntu 7.04 (kernel version: 2.6.20-15)
Toolchain
ARM-GCC v3.4.1.
Http://www.handhelds.org
Linux Kernel
Linux-2.6.20.10.tar.bz2 & linux-2.6.20.tar.bz2
Http://www.kernel.org
Linux Kernel Patch for OMAP
Patch-2.6.20-omap1.bz2
Http://www.muru.com
Tutorial
Osk5912 newbie Guide
Http://oskfordummies.hp.infoseek.co.jp
Procedure
1. Install tool chain;
2. Compile the kernel linux-2.6.20.10 according to the steps in osk5912 newbie guide:
2.1. An error occurs when "make menucongig" is executed. The error message is as follows:
-----------------------------------------------------------------------
Shawn @ Shawn-LAPTOP:/usr/src/linux-2.6.20.10 $ make menuconfig
Hostcc scripts/kconfig/lxdialog/checklist. o
In the file containing scripts/kconfig/lxdialog/checklist. C: 24:
Scripts/kconfig/lxdialog/dialog. h: 32: 20: Error: Curses. h: no such file or directory
......
-----------------------------------------------------------------------
3. Compile the kernel linux-2.6.20 according to the steps in osk5912 newbie guide:
3.1. When the patch is executed, the system prompts "/tmp/*** cannot be patched to/documentomap. It is suspected that the permission issue affects the creation of temporary files to/tmp, but sudo does not;
3.2. Try again the next day and switch to the root permission in the console this time. Step 3. 1. Pass, do not know the reason;
3.3. Run "make omap_osk_5912_defconfig". The problem is the same as step 2.
4. The problem may be that the ncurses-dev package is not installed, and thus "make menuconfig" cannot be used.
4.1. Run the command "sudo apt-Get install ncurses-dev" to install, prompting "I selected the libncurses5-dev instead of ncurses-dev ";
4.2. "Make menuconfig" is normal after installation;
5. Note that NFS-related options should be selected when "make menuconfig" is prompted. Check that the NFS-related options are selected by default;
6. Execute "make" and start waiting;
6.1. In particular, the default edited FS includes autofs, autofs4, ext2, fat (M), jffs2, lockd (?), Msdos (?) (M), NFS, NLS (M), ramfs, sysfs, vfat (m );
7. After a long wait, the compilation is successful. The binary file ARCH/ARM/boot/compressed/vmlinux is generated and saved as/home/Shawn/doc/OMAP/vmlinux.20070429.
8. The following steps need to compile the mkimage tool generated by uboot and jump to compile uboot;
9. After uboot is compiled, run the following command to generate the image file uimage. CC, in the size of 1.2mb;
@ Mkimage-A arm-O Linux-T kernel-C gzip-A 0x10c08000-e 0x10c08000-N 'linux kernel image'-D/usr/src/linux-2.6.20/linux.bin.gz/usr/ src/linux-2.6.20/uimage. CC
9.1. Have the opportunity to study the usage of these options, such as-N;
9.2. The following message is displayed when an image file is generated:
--------------------------------------------------------------------------------
Image name: Linux kernel Image
Created: Sun APR 29 22:41:33 2007
Image Type: ARM Linux kernel image (gzip compressed)
Data size: 1229135 bytes = 1200.33 kb = 1.17 MB
Load address: 0x10c08000
Entry Point: 0x10c08000
--------------------------------------------------------------------------------
9.3. Save As/home/Shawn/doc/OMAP/uimage. cc.20070429.