- 论坛徽章:
- 0
|
这个问题可以直接试试去换一个交叉编译器,我遇到过这,好像是u-boot的bug和交叉编译器的问题都有
细节我不知道,我只知道换了一个版本的就可以了,这是我学的时候的手记你可以看一下:
Wed Nov 22 12:27:37 CST 2006
I was compiled u-boot-1.1.2 for "smdk2410" completely,and the flow showing below.
Flow:
http://www.handhelds.org/downloa ... x-gcc-3.3.2.tar.bz2
We can download arm-linux-gcc-3.3.2.tar.bz2 from the URL above.
Following,do the command such as:
tar -jxvf ./arm-linux-gcc-3.3.2.tar.bz2
Then you can see a new directory at current path,and then:
cd usr/local/arm
Transfer it to(into) /usr/local/arm(sub-directory arm was created by yourself)
mv ./3.3.2 /usr/local/arm/
Now,we should change the content of /etc/profile.
vi /etc/profile
Add a new line as "PATH=$PATH:/usr/local/arm/3.3.2/bin" at last or wherever you would like.Restart or Relogin,maybe export the variable will be better.
In the following several steps,we are begin to compile the u-boot-1.1.2.
Turn into the directory /arm/u-boot-1.1.2 and typed:
make smdk2410_config
(smdk2410 is a familiar board and a good example for developers in our country.)
(I guessed that you should known how to change the value of CROSS_COMPILE ... .)
make
or
make 2>&1 | tee /arm/logs/make_smdk.log
At last,four binaries such as u-boot,u-boot.bin,u-boot.map and u-boot.srec were created successfully,if without any exceptions.
[ 本帖最后由 Pacer 于 2006-12-21 15:30 编辑 ] |
|