您尚未登录。

楼主 #1 2019-04-25 16:43:31

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试

参考: http://linux-sunxi.org/Initial_Ramdisk





2019-04-26_163531.png

2019-04-26_163242.png

2019-04-26_170303.png


run.bat 文件内容:

"bin\sunxi-fel.exe" -p uboot u-boot-sunxi-with-spl.bin write 0x41000000 zImage write 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb write 0x41900000 boot_fel_initrd.scr write 0x41A00000 rootfs.cpio.gz.uImage

@echo "download complete! now run linux ..."
@sleep 5




文件下载: v3s_s3_fel_autorun_linux_uart0_pb8_pb9.7z





离线

楼主 #2 2019-04-25 16:59:48

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

使用最新的 u-boot: 编译 V3s 2019 版本的 u-boot






(文件已经在一楼附件内)










2019-05-08 更新:
---------------------------------

mkimage -C none -A arm -T script -d boot.cmd boot.scr

用这个命令生成 scr 文件





离线

楼主 #3 2019-04-25 16:59:50

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

参考: https://whycan.cn/t_444.html

sunxi-fel 需要修改fel.c

#define SPL_MAX_VERSION            2 /* maximum supported version */

改为 3:

#define SPL_MAX_VERSION            3 /* maximum supported version */


然后重新编译, 否则 sunxi-fel 不会解析传递 scr 环境变量参数给 u-boot.



(文件已经在一楼附件内)





离线

楼主 #4 2019-04-25 16:59:52

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

Linux zero-4.13.y 和 buildroot 编译参考这个: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)



文件系统打包成 initramfs:

cd /opt/buildroot-2018.08.2/output/target

find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz

mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz  /var/www/html/rootfs.cpio.gz.uImage

mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz  ../rootfs.cpio.gz.uImage



(文件已经在一楼附件内)





离线

楼主 #9 2019-05-08 09:57:10

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

https://whycan.cn/t_682.html

mkimage -C none -A arm -T script -d boot.cmd boot.scr

用这个命令生成.


更新到2楼





离线

楼主 #11 2019-07-10 21:00:09

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

忘记是否要勾选了, 你自己试一试.





离线

楼主 #14 2019-10-11 11:19:48

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡

没有试过2019.10,如果用荔枝派的u-boot, 什么都不用改。





离线

楼主 #20 2020-03-12 18:16:39

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,236
积分: 9197

Re: 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn