UBUNTU7.10's ARM compiling environment is built on Kernel Compilation
Source: Internet
Author: User
The ARM compiling environment of UBUNTU7.10 is based on Kernel Compiling-general Linux technology-Linux programming and kernel information. The following is a detailed description. There are a lot of such information on the Internet. I recorded my own installation and compilation process and encountered some problems. I hope I can help my friends later.
The board I used is the FS2410 of Shenzhen youlong, and there is a compiled tool chain in its CD (I also wanted to compile it myself at first, but there were too many problems, this cainiao is very difficult to solve for the time being. I hope I can solve it later .), Youlong also uses the CROSSTOOL tool chain, whose version is 3.3.2. Now the latest seems to be a crosstool-0.4.3 that can download the latest from its http://kegel.com/crosstoolool.
You can decompress the package directly because you have compiled it:
Tar jxvf c *. bz2; // c *. bz2 is short for ease of writing. decompress it to the desired directory.
In this case, you need to add a PATH to use the arm-linux-tool in other directories. The specific method is: Modify/etc/bash. bashrc, add your specific tool chain path in the future. My tool is at:/usr/local/arm/3.3.2. So, I add:
Export PATH =/usr/local/arm/3.3.2: $ PATH
Now you can write a simple program to test whether the installation is successful.
If such a prompt appears, it indicates that ELF 32-bit LSB executable, ARM, version 1, for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped has been installed.
The 32-bit ELF format file has been compiled!
Next, prepare to compile the kernel:
First, download the required kernel from the internet. I downloaded 2.6.8.
First, decompress the package.
Tar jxvf ****
Cd ****
Modify makefile (using vi or gedit or something, my personal hobby, using VI)
Vi Make *
After entering, you can first search (/str)
ARCH = arm
CROSS_COMPILE =/your path/arm-linux-; // this step is critical. You can make zImage later to see if the path here is correct.
Then you can make menuconfig, because I am a side dish, or I am used to configuring the kernel in this way, directly configuring text, I am not yet competent.
At this time, UBUNTU users may encounter some problems. I have not recorded the problems here. In general, there are two problems:
1. Insufficient permissions. Use sudo
2. The NCURSES library function is missing and needs to be installed. I am on the Internet, because I don't know what the UBUNTU library is called, and I cannot find it when I use atp-get.
Note that there is generally no problem after the above two points. Make zImage is your favorite. Then we can see that a row of compilation information is printed out on the screen, which is a real pleasure!
I wrote here, there are questions to discuss, you can contact me: dahai_boy@163.com
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