以下赤色是Shell操作, #是终端提示符一般不必手动输入 Ubuntu是最新版别V11 我的穿插编译器下的文件列表: root@ubuntu:/usr/local/arm/4.3.2/bin# ls arm-linux-addr2linearm-none-linux-gnueabi-addr2line arm-linux-ar arm-none-linux-gnueabi-ar arm-linux-as arm-none-linux-gnueabi-as arm-linux-c++ arm-none-linux-gnueabi-c++ arm-linux-c++filt arm-none-linux-gnueabi-c++filt arm-linux-cpp arm-none-linux-gnueabi-cpp arm-linux-g++ arm-none-linux-gnueabi-g++ arm-linux-gcc arm-none-linux-gnueabi-gcc arm-linux-gcc-4.3.2arm-none-linux-gnueabi-gcc-4.3.2 arm-linux-gcov arm-none-linux-gnueabi-gcov arm-linux-gdb arm-none-linux-gnueabi-gdb arm-linux-gdbtui arm-none-linux-gnueabi-gdbtui arm-linux-gprof arm-none-linux-gnueabi-gprof arm-linux-ld arm-none-linux-gnueabi-ld arm-linux-nm arm-none-linux-gnueabi-nm arm-linux-objcopy arm-none-linux-gnueabi-objcopy arm-linux-objdump arm-none-linux-gnueabi-objdump arm-linux-ranlib arm-none-linux-gnueabi-ranlib arm-linux-readelf arm-none-linux-gnueabi-readelf arm-linux-size arm-none-linux-gnueabi-size arm-linux-sprite arm-none-linux-gnueabi-sprite arm-linux-strings arm-none-linux-gnueabi-strings arm-linux-strip arm-none-linux-gnueabi-strip
依照文档Make配置文件的时分
# make smdk6410_config
显现 /usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: exec: arm-none-linux-gnueabi-gcc: not found Configuring for smdk6410 board which boot from…
而我将Makefeile文件中的途径改写: CROSS_COMPILE = /usr/local/arm/4.3.2/bin/arm-linux-改成CROSS_COMPILE = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi- 然后make clean之后编译 依然犯错: 结尾如下过错 /forlinx/uboot1.16/include/configs/smdk6410.h:347:2:error: #error RAM size must be defined /forlinx/uboot1.16/include/configs/smdk6410.h:522:3: error: #error Define one of CONFIG_BOOT_{NAND|MOVINAND|ONENAND|ONENAND_IROM} make[1]: *** No rule to make target `.depend, needed by `_depend.Stop. make[1]: Leaving directory `/forlinx/uboot1.16/post/cpu make: *** [depend] Error 2
|
后来在QQ群big_fish和砂锅米线的协助下找到问题。原来是OK6410里自带光盘的u-boot编译运用的指令参数和论坛里最新版及操作手册的指令参数不一样。
最新版的指令操作是#make forlinx_nand_ram256_config
老版别是#make smdk6410_config
也期望今后论坛Relese的时分能将操作手册和镜像打包在一个压缩包里
———————————————————————————-
别的,也能够经过如下指令将穿插编译器中的一切的arm-none-linux-gnueabi-* 链接成arm-linux-*:
#ls-sarm-none-linux-gnueabi-gccarm-linux-gcc
将途径加入到环境变量时也能够运用如下指令:
#PATH=/usr/local/arm/4.3.2/bin:$PATH
总结:
1. 结尾如下过错
/forlinx/uboot1.16/include/configs/smdk6410.h:347:2:error: #error RAM size must be defined
/forlinx/uboot1.16/include/configs/smdk6410.h:522:3: error: #error Define one of CONFIG_BOOT_{NAND|MOVINAND|ONENAND|ONENAND_IROM}
make[1]: *** No rule to make target `.depend, needed by `_depend.Stop.
make[1]: Leaving directory `/forlinx/uboot1.16/post/cpu
make: *** [depend] Error 2
一般是编译时编译config文件的参数用错了,确认一下u-boot 是较早仍是较新的,别离挑选#make smdk6410_config或#make forlinx_nand_ram256_config
2. 编译时显现如下过错
显现
/usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: exec: arm-none-linux-gnueabi-gcc: not found
Configuring for smdk6410 board which boot from…
将途径加入到环境变量时也能够运用如下指令:
#PATH=/usr/local/arm/4.3.2/bin:$PATH
声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/xinpin/chanpin/263341.html