您尚未登录。

楼主 # 昨天 18:43:10

iyqyqr
会员
注册时间: 昨天
已发帖子: 1
积分: 11

菜鸟 求助 sunxi-fel 工具烧录uboot到spi nor flash 启动串口无输出,下载到ram的却可以?

坛里各位大佬好!小弟前两年买了f1c200s的开发板,cherry-pi,无奈资料太杂乱,想试一下有什么可玩性,TF卡可正常启动,但测试nor 启动时,遇到问题

用如下命令写入16M spi flash,型号w25q128,按下reset按键,串口0 无输出:

./sunxi-fel -p spiflash-write 0x000000 .\suniv_f1c100s_w25q128_usb_lcd_ok_20190722\u-boot-sunxi-with-spl.bin
100% [================================================]   168 kB,  113.2 kB/s

看起来是flash写入正常。

如果通过:

./sunxi-fel -v uboot .\suniv_f1c100s_w25q128_usb_lcd_ok_20190722\u-boot-sunxi-with-spl.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
=> Executing the SPL... done.
Writing image "U-Boot 2018.01-05684-gb7dcb96-di", 134720 bytes @ 0x81700000.
Starting U-Boot (0x81700000).


在串口是能看到启动过程的:
U-Boot 2018.01-05684-gb7dcb96-dirty (Jul 21 2019 - 21:23:17 -0400) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Whycan Pi Nano
DRAM:  64 MiB
Using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x60000, size 0x10000
SF: 65536 bytes @ 0x60000 Read: OK
Error: Bad gzipped data
There is no valid bmp file at the given address
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK


查询nor flash 信息:
./sunxi-fel spiflash-info

Manufacturer: Winbond (EFh), model: 40h, size: 16777216 bytes.

说明nor flash识别正常。

不知道为什么启动不了,困扰一天,请大佬指点一二。。。

离线

#1 昨天 19:16:56

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,391
积分: 9202

Re: 菜鸟 求助 sunxi-fel 工具烧录uboot到spi nor flash 启动串口无输出,下载到ram的却可以?

buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND
https://whycan.com/t_5221.html




分享一个 5寸的 800x480 的 f1c100s 固件, 感谢 @xm1994,   调试串口UART0 (PB8/PB9)
https://whycan.com/t_2689.html





离线

页脚

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

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