ubuntu编译U-boot时遇到的问题
Ubuntu版本:Ubuntu12.04
U-boot版本:1.1.6
操作流程:
u-boot解压
1、创建/study/system文件夹,将u-boot-1.1.6.tar.bz2和补丁文件u-boot-1.1.6_100ask24x0.patch放入system
2、解压u-boot,输入tar -xjf u-boot-1.1.6.tar.bz2
打补丁
1、在解压后的u-boot-1.1.6文件下输入patch -p1 ../u-boot-1.1.6_100ask24x0.patch打补丁
配置
1、输入make 100ask24x0_config配置文件
编译make
1、在u-boot-1.1.6文件下进行编译
问题1:在编译时出现提示:
arm-linux-gcc :command not find
解决办法;
以为自己没有安装 arm-linux-gcc ,后来在Ubuntu上通过apt-get install gcc-arm-linux-gnueabi 自动安装了gcc-arm-linux-gnueabi (因为没找到arm-linux-gcc)也没有考虑在/etc/profile和/etc/environment 下的路径,后来又按照网上的教程,安装了arm-linux-gcc 4.4.3.还是没有编译通过,最后摸索了很久,才发现/etc/environment 和/etc/profile下的路径都需要写成一样(即安装的arm-linux-gcc的路径)。
问题2:第一个问题解决后,没有提示 arm-linux-gcc :command not find了,但是提示;
undefined reference to '__aeabi_unwind_cpp_pr0'
解决办法:暂无