LINUX for EM2440/MINI2440 board

     Step by step how to configure and compile Linux kernel for EM2440/MINI2440 board

!!! Remember the procedure works for me, but if your cat will change in an elk, do not blame me for it.
You use information from this site at your own risk. !!!

First we need download Linux kernel, uboot source for the board and the toolchain.
Type in the Linux terminal :

$ cd /opt
$ mkdir mini2440
$ cd mini2440
$ mkdir uboot
$ mkdir kernel-src
$ cd kernel-src
$ git clone git://repo.or.cz/linux-2.6/mini2440.git
$ cd ..
$ cd uboot
$ git clone git://repo.or.cz/u-boot-openmoko/mini2440.git
$ cd ..
$ wget http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
$ tar xjf arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linuxgnu.tar.bz2

Create a TFTP server directory

$ mkdir /tftpboot

Now we build the uboot and Linux Kernel.

$ export CROSS_COMPILE=arm-none-linux-gnueabi-
$ export CC=${CROSS_COMPILE}"gcc -march=armv4t -mtune=arm920t"
$ export PATH=$PATH:/opt/mini2440/arm-2008q3/bin
$ export ARCH=arm

$ cd uboot/mini2440
$ make mini2440_config
$ cd /opt/mini2440
$ cd /opt/mini2440/kernel-src/mini2440
$ make  mrproper
$ cp /opt/mini2440/kernel-src/mini2440/arch/arm/configs/mini2440_defconfig /opt/mini2440/kernel- 
   src/mini2440/.config
$ make   menuconfig


At this point should show a Linux configuration screen.
You can add additional functions to the kernel.
www.micro-tech.com.pl
Microtech provides services in the areas of:
 
+ Programming microprocessors systems
 
+ Telemetry
 
+ Industrial Automation 
 
+ Embedded Systems
How to configure Linux for EM2440/MINI2440 board with S3C2440 processor
How to download the kernel to the EM2400/MINI2440 board ?
Make the kernel image

$ make -j4
$ make ARCH=arm  -j4 modules modules_install

Convert the zImage to uImage and put into the TFTP server directory.

$ cd /opt/mini2440
$ ./uboot/mini2440/tools/mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000  
   -d kernel-src/mini2440/arch/arm/boot/zImage /tftpboot/uImage

Download the script to create the kernel and uboot.
Download configuration file for uboot.

Now we can download the kernel image to the EM2440/MINI2440 board.