root@jcjung:~/work/shared# tar zxf lit35xCTU_kernel_2.6.29.tar.gz -C /work
root@jcjung:/work# cd kernel
root@jcjung:/work/kernel# ls
COPYING Module.symvers cscope.files init samples virt
CREDITS README cscope.out ipc scripts
Documentation REPORTING-BUGS drivers kernel security
Kbuild arch firmware lib sound
MAINTAINERS block fs mm sound_devkit
Makefile crypto include net usr
There are configuration file in arch/arm/configs
root@jcjung:/work/kernel# ls arch/arm/configs/
lit35XCTU_defconfig --> config file of current target board
root@jcjung:/work/kernel# ARCH=arm make lit35XCTU_defconfig
root@jcjung:/work/kernel# ARCH=arm make menuconfig
root@jcjung:/work/kernel# ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabl- make uImage
Another way to compile
open Make file in kernel directory and code hardly
export KBUILD_BUILDHOST := $(SUBARCH)
#ARCH ?= $(SUBARCH)
ARCH ?= arm
CROSS_COMPILE ?= arm-none-linux-gnueabi-
make uImage
You need a uboot source to make uImage for this target board.
download uboot source from TI repository
$ git clone git://git.denx.de/u-boot.git u-boot-omap3
$ cd u-boot-omap3
$ git checkout --track -b omap3 origin/master
compile u-boot
$ make CROSS_COMPILE=arm-none-linux-gnueabi- mrproper
$ make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_config
$ make CROSS_COMPILE=arm-none-linux-gnueabi-
After build is finished successfully, you can see the mkimage file in tools directory.
커널 빌드 과정에서 mkimage가 호출될 수 있도록 mkimage를 /sbin 디렉터리에 위치시키고
커널 빌드를 진행하면 uImage가 정상적으로 만들어집니다.
upload kernel on target board
mmc init
run loadbootscript
set ipaddr 192.168.10.100
set serverip 192.168.10.10
tftpboot 82000000 uImage
bootm 82000000