lichee pi zero 荔枝派zero uboot编译 烧录

本文介绍如何在Ubuntu 18.04环境下准备U-Boot源码及交叉编译工具链,详细步骤包括下载源码、配置编译参数、添加网卡驱动、修改启动方式等,并解决了编译过程中遇到的问题。

ubuntu 18.04

1.准备uboot源码和交叉编译工具链

交叉编译工具链网盘地址:http://pan.baidu.com/s/1hsf22fq

 

tar xvf gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz
sudo mv gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf /opt/

增加路径

 

下载编译Uboot

git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
#or git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental
cd u-boot
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_800x480LCD_defconfig
#or make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero480x272LCD_defconfig
#or make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_defconfig
make ARCH=arm menuconfig
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log

发生问题,编译没有通过没有找到LicheePi的配置文件,从网上重新下载uboot

地址 u-boot:https://github.com/Lichee-Pi/u-boot/archive/v3s-current.zip

 

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig

添加网卡驱动

选择 Device Drivers —>

选择 Network device support —> 并选中 Allwinner Sun8i Ethernet MAC support

 

  • 修改dts

/arch/arm/dts/sun8i-v3s-licheepi-zero.dts:<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

oshan2012

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值