1)uboot的编译和烧写
- 2020 年 8 月 6 日
- 筆記
- 荔枝派zero学习笔记
购买荔枝派ZERO已经将近一个星期了,由于官方资料不够完整一直没有任何进展。经过今夜近三个小时的折腾终于将UBOOT烧写成功,现将过程记录如下:
1)获取官方uboot 源码 : git clone //github.com/Lichee-Pi/u-boot.git -b v3s-current //-b v3s-current 表示下载的分支为v3s-current
2)查看源码所有分支,如下图所示:
3)切换到v3s-spi-experimental 分支以便于支持下载到spiflash里 git checkout v3s-spi-experimental
4)加载默认配置文件 make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)
5)开始编译 make -j4
6) sunxi-fel官方下载工具的使用并下载程序
a、下载sunxi-fel工具
b、切换分支
c、切换到uboot目录并下载uboot二进制文件 sunxi-fel spiflash-write 0 u-boot-sunxi-with-spl.bin
d、重现上电。。。成功!