Configure the cross-compiling environment in Linux, and configure the compiling kernel and uboot installation.
Source: Internet
Author: User
This article is an experiment on the h9200e Development Board. In Linux, copy the fedora cookbook to/root.
1. Install the Cross Compiler
Log On As a Super User
[Root @ hostname] # bunzip2 cross-2.95.3.tar.bz2; unzip
[Root @ hostname] # tar xvf cross-2.95.3.tar
Put the obtained 2.95.3 folder under/usr/local/arm. Remember to use this path later.
2. Configure the kernel
Take the minimum h9200e configuration as an example.
Iii. Compile the kernel
Decompress the kernel source code package and edit makefile.
Set cross_compile: = [absolute path of the compiler]; this absolute path is the path put in the above 2.95.3.
Enter the kernel folder and execute the following command
[Root @ hostname] # Make clean
[Root @ hostname] # Make Dep
[Root @ hostname] # Make
[Root @ hostname] # [absolute path of the compiler]/bin/ARM-Linux-objcopy-O Binary-s vmlinux Linux. Bin; the absolute path of the compiler is also the path mentioned above
[Root @ hostname] # gzip Linux. Bin
The following is important, mainly the installation of U-boot, which is not clear in the h9200 manual.
[Root @ hostname] # tar xzvf u-boot-1.0.0.tar.gz; unzip U-boot
[Root @ hostname] # cd u-boot-1.0.0
[Root @ hostname] # Make distclean
[Root @ hostname] # Make at91rm9200dk_config
[Root @ hostname] # Make all
Then create a uboot folder under/usr/local to copy all the files under the u-boot-1.0.0 to the uboot
[Root @ hostname] # [uboot absolute path]/tools/mkimage-A arm-O Linux-C gzip-A 0x20008000-E 0x20008000-D linux.bin.gz uimage; the absolute path here is/usr/local/uboot.
Okay, the kernel has been compiled. You can go down to the board and check it !!!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service