前言
前面几篇文章讲解了,搭建海思的交叉编译环境的方法,选择docker或者,选择ubuntu下自己编译都行,DOPI的EV200开发板,板载的是SPI nand Flash:W25N01GV。在编译uboot时,需要选择nand

U-Boot编译
获取源码
cd /usr/dopi/
Github: git clone https://github.com/cijliu/uboot.git
Gitee : git clone https://gitee.com/cijliu/uboot.git
编译
把uboot的拥有者修改为当前用户dopi,进入uboot,执行
sudo chown -R dopi *
cd uboot
./build.sh nand
build.sh内容:
root@f8636ba553cb:/usr/dopi/uboot# cat build.sh
if [ $1 == "nand" ]
then
echo "#define DOPI_SPI_NAND ">include/configs/dopi.h
make ARCH=arm CROSS_COMPILE

最低0.47元/天 解锁文章
3189

被折叠的 条评论
为什么被折叠?



