您尚未登录。

楼主 # 2021-06-01 11:53:19

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

2021-06-01_114853.png



xfel.exe & u-boot.bin 二进制文件下载:f1c_xfel_run_uboot_20210603.zip (修复找不到动态链接库问题)

①用 xfel.exe 初始化 F1C100s DDR
②把可执行文件下载到DDR
③执行程序





离线

楼主 #1 2021-06-01 11:56:48

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

可以建立批处理文件:

run.bat

xfel_20210530 ddr ddr2
xfel_20210530 write 0x81700000 u-boot.bin
xfel_20210530 exec 0x81700000

sleep 10

双击就能运行了.





离线

楼主 #4 2021-06-01 21:43:00

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

sea18c 说:

晕哥,修复下下载文件,打开是失败的

我这里下载,解压是正常的.



检查一下 md5码:
md5sum f1c_xfel_run_uboot_20210601.zip
39df3d9625a54797cfddf053e56829dc





离线

楼主 #7 2021-06-03 10:23:19

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

sea18c 说:

晕哥,修复下下载文件,打开是失败的


QQ截图20210603102141.png

有网友反应依赖两个C库, 我参考这个 https://segmentfault.com/a/1190000011748576

编译成了[真]静态链接版本.

下载地址: f1c_xfel_run_uboot_20210603.zip





离线

楼主 #9 2021-12-19 17:21:19

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

gerryqd 说:

一个疑问:
加载到 0x81700000 是因为配置中有,

CONFIG_SYS_TEXT_BASE=0x81700000

如果我想验证 SPL 或者是 SPL + UBOOT (u-boot-sunxi-with-spl.bin), 这个可以通过 xfel 实现吗?
(类似于 sunxi-fel uboot ...的功能)

这个问题建议看下 sunxi-fel 的 uboot 命令实现源码。





离线

楼主 #12 2022-01-17 15:16:44

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

HongSang 说:

@哇酷小二
晕哥请问用xfel如何烧其他的固件 您这边只烧了一个uboot 请问烧写其他的dtb zImage rootfs该怎么烧写
也是用xfel write 0x81700000 zImage dtb rootfs这样挨个烧写吗

write 是写到 ddr的,
写 flash 用 spinor 子目录:

    xfel spinor                                 - Detect spi nor flash
    xfel spinor read <address> <length> <file>  - Read spi nor flash to file
    xfel spinor write <address> <file>          - Write file to spi nor flash
    xfel spinand                                - Detect spi nand flash
    xfel spinand read <address> <length> <file> - Read spi nand flash to file
    xfel spinand write <address> <file>         - Write file to spi nand flash




离线

楼主 #14 2022-01-17 15:28:50

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

对的。





离线

楼主 #16 2022-01-17 18:45:46

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

现在烧uboot能不能跑起来?





离线

楼主 #18 2022-01-18 10:27:45

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

手动执行那几行加载 zImage 和 dtb 到 ddr的命令试一试,我感觉地址没对上。





离线

楼主 #19 2022-01-18 10:53:18

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

@HongSang
建议把dtb和zImage读到内存之后,再校验一次crc32,确认数据没有问题。





离线

楼主 #21 2022-01-18 11:11:11

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

我想了一下,前面我说的不对。

烧录地址是看这个文件 board/allwinner/suniv-f1c100s/genimage-nand.cfg

flash nand-128M {
        pebsize = 128K
        numpebs = 1024
        minimum-io-unit-size = 2048
}

image sysimage-nand.img {
        flash {
        }

        flashtype = "nand-128M"

        partition u-boot {
                image = "u-boot-sunxi-with-nand-spl.bin"
                size = 512K
        }

        partition dtb {
                offset = 0x80000
                image = "devicetree.dtb"
                size = 128K
        }

        partition kernel {
                offset = 0x100000
                image = "zImage"
                size = 7M
        }

        partition rom {
                offset = 0x800000
                image = "rootfs.squashfs"
        }
}

烧录地址和前面那个 dts 文件无关,那个文件只会影响到Linux启动后的mtd分区。





离线

楼主 #23 2022-01-18 15:57:53

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: ①用 xfel.exe 初始化 F1C100s DDR, ②把可执行文件下载到DDR ③执行程序

感谢 @xboot,同时也感谢 @HongSang,你是第一个用xfel公开烧写 @aodzip buildroot sdk nand img,并验证通过的朋友。





离线

页脚

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

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