1.展開SDK包得時候,運行./sdk.unpack得時候出現:
原因:ubuntu14.04中默認得是dash,要將dash改成bash。
解決方法:sudo ln -fs /bin/bash /bin/sh
2.安裝完arm-hisiv500-linux-gcc后編譯內核,提示/bin/sh: /opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/bin/arm-hisiv500-linux-gcc: No such file or directory
這是因為宿主機是64 位 而交叉編譯器是針對32位的開發板制作的。所以要安裝對應的32位庫。
我的linux宿主機是ubuntu 14.04 64位。
安裝命令: sudo apt install lib32z1-dev
3.arm-hisiv500-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
安裝命令:apt-get install lib32stdc++6
4.“mkimage” command not found – U-Boot images will not be built
安裝命令:sudo apt-get install u-boot-tools