lichee编译u-boot(Allwinner A80)

本文详细介绍了如何在lichee平台上编译u-boot针对全志A80芯片的版本。首先,定制u-boot命令,编辑sun9iw1p1.h配置文件,然后在Makefile中添加库。编译完成后,生成u-boot文件,并在特定目录下找到配置文件。接下来,更新boot0文件,区分从SD卡和NAND启动的两种类型,并将它们烧录到对应介质上。最后,制作一个启动分区,格式化为fat16,放入uImage内核,通过u-boot加载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在下面这个文件中定制u-boot的命令

brandy/u-boot-2011.09/include/configs/sun9iw1p1.h

添加lib

vi brandy/u-boot-2011.09/Makefile

编译u-boot

cd brandy/u-boot-2011.09/
make sun9iw1p1_config
make

 

产生u-boot文件

ll tools/pack/chips/sun9iw1p1/bin/
boot0_nand_sun9iw1p1.bin
boot0_sdcard_sun9iw1p1.bin
fes1_sun9iw1p1.bin
u-boot-sun9iw1p1.bin

 

uboot相关的config默认是在tools/pack/chips/sun9iw1p1/configs/cubieboard4下

env.cfg                    ---env分区内容,保存uboot命令的一些环境变量

sys_partition.fex   ----用pack脚本打包时的分区布局

sys_config.fex       ----u-boot硬件参数

更新boot0

boot0有两种,从sd卡启动用boot0_sdcard.fex, 从nand启动用boot0_nand.fex

cd ${LICHEE_ROO
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ cd lichee/ rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux 3. tina Choice: 2 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 0. bell-one 1. evb 2. evb-20 3. evb-30 4. evb-rtl8723bs 5. sc3813r Choice: 3 rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh 错误1: KCONFIG_AUTOCONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/tristate.config BUILDROOT_CONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/.config /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/conf --silentoldconfig Config.in # # make dependencies written to .auto.deps # ATTENTION buildroot devels! # See top of this file before playing with this auto-preprequisites! # make[1]:正在离开目录 `/home/wwt/linux_r16/lichee/buildroot' You must install 'makeinfo' on your build machine makeinfo is usually part of the texinfo package in your distribution make: *** [dependencies] 错误 1 make:离开目录“/home/wwt/linux_r16/lichee/buildroot” ERROR: build buildroot Failed rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ d/buildroot-config/conf.o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/zconf.tab.o -o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buil
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值