荔枝派 nano 资料整理

时间秒杀一切 提交于 2019-12-31 13:43:44

一键烧录及脚本使用说明

http://nano.lichee.pro/build_sys/onekey.html#linux-16m-spi-flash
http://nano.lichee.pro/build_sys/onekey.html#linux-16m-spi-flash
https://www.thirtythreeforty.net/posts/2019/12/my-business-card-runs-linux/

https://whycan.cn/t_2933.html
上电后首先是 On-Chip ROM启动, 然后 ROM 依次检查 SPI NOR/NAND, TF 卡是否有合法的 boot0(u-boot spl), 如果都没有则进入 USB FEL

从sunxitool工具源码可以看出,在地址最开头放了一些信息头,有magic nunber来标记是否合法

我下载了uboot 源码 ,可是没找到 你说的这个东西,能告诉我再那个文件里吗 ,就这这段启动代码的源码,我搜索也找不到。
我想找到关键信息 自己写一个spi load 程序。感谢

https://whycan.cn/t_2179.html
原文发表在我博客上:荔枝派nano的SPI-Flash系统编译创建全过程

一键烧录镜像(Linux环境—16M spi-flash 启动)
在flash内容为空的情况下(fel模式下的一种情况)进行烧录时,通过micro-usb数据线将Nano与电脑连接,执行

sudo sunxi-fel -p spiflash-write 0 Your-Flash-BIN

若flash中已有系统,可通过:

短接flash的 1、4 两脚,重新上电,上电后松开短接,即可重新进入fel模式,进行再次下载

在启动到内核前,回车进入uboot,执行 sf probe 0;sf erase 0 0x100000;reset即可重新进入fel模式

http://nano.lichee.pro/build_sys/onekey.html#linux-16m-spi-flash

电子名片

https://www.thirtythreeforty.net/posts/2019/12/designing-my-linux-business-card/

https://github.com/thirtythreeforty/businesscard-linux
Installation
If you have a Lichee Pi Nano with a flash chip, or one of my blank business cards, you can flash it with the following command. Make sure the board is in FEL mode using dmesg or similar.

output/host/bin/sunxi-fel -p spiflash-write 0 output/images/flash.bin
You can erase the card after it boots by simply logging in (as root) and erasing the flash manually:

dd if=/dev/zero of=/dev/mtd0
Don’t erase it unless you’re prepared to burn a new image!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!