1、安装交叉编译工具
1.1 cd toolchain/arm-hisiv300-linux/
1.2 tar -xvf arm-hisiv300-linux.tar.bz2
1.3 修改cross.install:使用bash
1.4 sudo ./cross.instal
1.5 执行source /etc/profile, 安装交叉编译器的脚本配置的环境变量就可以生效了
2、osdrv编译
make OSDRV_CROSS=arm-hisiv300-linuxCPU_TYPE=single PCI_MODE=none all
2.1报错
pushd/home/lisa/nvr/Hi3536_SDK_V2.0.4.0/osdrv/opensource/uboot/u-boot-2010.06;makeARCH=arm CROSS_COMPILE=arm-hisiv300-linux- -j 20 >/dev/null;popd
/bin/sh: 1: pushd: not found
make[2]: warning: jobserver unavailable:using -j1. Add `+' to parent make rule.
make[2]: warning: jobserver unavailable:using -j1. Add `+' to parent mak