全新 Maix 系列产品 MaixCAM 已上线, 全新 MaixPy 功能更丰富,性能更强大,软件更易用,文档更全面!x

编译和配置uboot

一、克隆uboot#

git clone https://github.com/Lichee-Pi/u-boot.git -b nano-v2018.01

二、载入默认配置#

如果需要生成在sdram里启动的uboot

make ARCH=arm licheepi_nano_defconfig

如果需要生成在spiflash里启动的uboot

make ARCH=arm licheepi_nano_spiflash_defconfig

三、编译时可能遇到的问题以及解决办法#

/bin/sh: 1: cc: not found

sudo apt install gcc

***** Configuration file ".config" not found!**

请检查当前用户是否有当前文件夹的读写权限,然后再次载入默认配置.

/bin/sh: 1: python: not found

sudo apt install python

unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1

apt install swig 

scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h:
No such file or directory

apt install python-dev

/bin/sh: 1: bc: not found

apt install bc

四、测试uboot#

Related Issues not found

Please login GitHub to create issue