User manual

Linux Guide taskit GmbH
directory.
6.3. Preparing the kernel
To install the new kernel on the taskit device, you now need to prepare the zipped kernel
image for use by U-Boot. This is done using the mkimage tool. Mkimage is also included
in the /scripts directory on the starter-kit CD.
Enter the following 3 lines as one line separated by a space character:
mkimage -A arm -T kernel -O linux -C none
-a 21000000 -e 21000000 -n plinux
-d arch/arm/boot/zImage uImage
Result:
Image Name: plinux
Created: Tue Dec 14 19:12:23 2004
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 738972 Bytes = 721.65 kB = 0.70 MB
Load Address: 0x21000000
Entry Point: 0x21000000
This script packs a 64 Kb header around the zipped image. This gives U-Boot important
information for booting the kernel correctly.
Before you can install the kernel you need to copy the uImage into the tftp directory:
cp uImage /tftpboot
You can also carry out this process by running the simple shell script install_linux.sh,
which you will find in the /scripts directory on the starterkit CD.
6.4. Installing the kernel
Finally, load the finished image in U-Boot, program it into flash memory and start it:
U-Boot> erase 10060000 101FFFFF
U-Boot> tftpboot 21000000 uImage
-> TFTP from server 192.168.2.238; our IP address is 192.168.2.171
Filename 'uImage'.
Load address: 0x21000000
Loading: ###################################################
##########################################################
###############
done
Bytes transferred = 739036 (b46dc hex)
The last step is to copy the kernelimage into flash. To do that the copy-command needs
the filesize of the kernelimage. The filesize is displayed after the transfer from the remote
PC (marked red) and is also stored in the environment variable filesize.
U-Boot> cp.b 21000000 10060000 $(filesize)
-> Copy to Flash... done
U-Boot> boot
Page 20 of 65 Version 1.26 (2008-04-30)