AR init/mounts.oarm-linux-ar: illegal option -- TUsage: arm-linux-ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file... arm-linux-ar -M [- read options from emulation options: No emulation specific optionsarm-linux-ar: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec tekhex binary ihexscripts/Makefile.build:558: recipe for target 'init/mounts.o' failedmake[1]: *** [init/mounts.o] Error 1Makefile:1018: recipe for target 'init' failedmake: *** [init] Error 2
这个问题一时不知道怎么查,于是各种百度,但几乎没人遇到这种问题,于是第一反应想到的是工具链的问题,于是换了arm-linux-gcc4.4.3的版本,可以直接去友善之臂的官网下载:
换成了4.4.3的工具链却报下面的问题:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
于是安装库:
sudo apt-get install lib32stdc++6sudo apt-get install lib32z1
终于编过了,看到希望了,但最后还是报了一个错误:
"mkimage" command not found - U-Boot images will not be builtarch/arm/boot/Makefile:90: recipe for target 'arch/arm/boot/uImage' failedmake[1]: *** [arch/arm/boot/uImage] Error 1arch/arm/Makefile:337: recipe for target 'uImage' failedmake: *** [uImage] Error 2
其实这个问题很好解决,mkimage这个工具在编译uboot的时候就会产生,在uboot/tools/目录下,所以只需要将这个目录加到环境变量里面去即可。