make OSDRV_CROSS=arm-hisiv300-linux all FLASH_TYPE=spinand
编译时出现:
/bin/sh: popd: not found
修改编译命令:
make OSDRV_CROSS=arm-hisiv300-linux all FLASH_TYPE=spinand SHELL=bash
或者修改命令行环境:
sudo dpkg-reconfigure dash
选择no
如果64位机运行32位编译器:
sudo apt-get install libgl1-mesa-dri:i386
sudo apt install gcc-multiarch
apt-get install lib32ncurses5
如果报错:
dirname: missing operand Try 'dirname --help' for more information.
/bin/sh:bash: arm-hisiv100nptl-linux-gcc: command not found
则需要切换到root用户执行编译:
sudo su
make OSDRV_CROSS=arm-hisiv300-linux all
遇到
"mkimage" command not found - U-Boot images will not be built
sudo apt install u-boot-tools -y
fatal error: curses.h: No such file or directory
sudo apt-get install libncurses5-dev libncursesw5-dev