您尚未登录。

楼主 #1 2018-09-06 22:16:11

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

@assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

QQ20180906221431.png

地址: svn://oslife.top/f1c100s/release/bootloader/u-boot
地址: svn://release.lenrek.cn/f1c100s/release/bootloader/u-boot
账号: user
密码: userpasswd


svn命令下载:

svn checkout svn://oslife.top/f1c100s/release/bootloader/u-boot --username user
svn checkout svn://release.lenrek.cn/f1c100s/release/bootloader/u-boot --username user

然后输入密码: userpasswd 即可!









2019-06-08 修改:
--------------------------------------------
域名改为: release.lenrek.cn




2019-06-13 更新:
--------------------------------------
源码本站打包下载: u-boot-lenrek.tgz





在线

楼主 #3 2018-11-02 13:47:27

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

这个u-boot 支持 spi nand

这个目录下面 svn://oslife.top/f1c100s/release  有一个sunxi-fel 二进制可执行文件支持spi nand

linux4.19 直接支持 spi nand: https://whycan.cn/t_1672.html#p10579





在线

楼主 #4 2018-11-02 17:43:17

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

你可以先用 tf 卡启动 linux4.19, 把spi nand 先跑起来,看能否读写 nand 分区,文件系统是否正常。





在线

楼主 #6 2018-11-08 11:26:24

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

mfr_id: ef, dev_id: aa is not in id table.

上面这个 id 没有在 flash id 数组里面,  你添加一下,重新编译看下效果.


发图片的方法: https://whycan.cn/t_588.html





在线

楼主 #8 2018-11-08 14:04:06

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

打开 u-boot/drivers/mtd/spi-nand/spi-nand-base.c

static struct spi_nand_flash spi_nand_table[] = {
    SPI_NAND_INFO("GD5F1GQ4UAYIG", 0xC8, 0xF1, 2048, 64, 64, 1024,
            1, 1, 0 | SPINAND_USED_GIGADEVICE),
    SPI_NAND_INFO("GD5F1GQ4UBYIG", 0xC8, 0xD1, 2048, 64, 64, 1024,
            1, 1, 0 | SPINAND_USED_GIGADEVICE),
    SPI_NAND_INFO("MT29F2G01AAAED", 0x2C, 0x22, 2048, 64, 64, 2048,
            1, 1, SPINAND_NEED_PLANE_SELECT),
    SPI_NAND_INFO("MT29F4G01AAADD", 0x2C, 0x32, 2048, 64, 64, 4096,
            1, 1, SPINAND_NEED_PLANE_SELECT),
    SPI_NAND_INFO("MT29F4G01ABAGD", 0x2C, 0x36, 2048, 128, 64, 2048,
            2, 8, SPINAND_NEED_PLANE_SELECT | SPINAND_NEED_DIE_SELECT),
    SPI_NAND_INFO("MT29F2G01ABAGD", 0x2C, 0x24, 2048, 128, 64, 2048,
            1, 8, SPINAND_NEED_PLANE_SELECT),
    {.name = NULL},
};

在这里修改.





在线

楼主 #10 2018-11-08 15:15:03

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

是环境变量(bootcmd, bootargs ...)CRC错误, 可以不用管.





在线

楼主 #12 2018-11-08 15:20:22

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

迪卡 说:
迪卡 说:

填写完毕:效果如下:
https://whycan.cn/files/members/1228/1.png
重新将编译好的uboot使用sunxi-fel在ram中运行
sudo sunxi-fel uboot u-boot-sunxi-with-spl.bin
效果如下,可以识别到了,但CRC错误...
https://whycan.cn/files/members/1228/2.png

将uboot烧到spi nand里或tf卡里,和上面是一样的

是的, 你还没有去写环境变量(u-boot执行saveenv命令),
所以u-boot读不到数据和CRC校验值,
所以显示一个警告而已。
就当没看到好了。





在线

楼主 #14 2018-11-08 16:02:07

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

迪卡 说:

https://whycan.cn/files/members/1228/3.png
把生成的u-boot-sunxi-with-spl.bin烧写进tf卡
sudo dd if=/dev/zero of=/dev/sdb bs=1024 seek=8 count=512
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
sync

上电效果如上图,还有用sunxi-fel烧进spi nand也是如此,可以说明...brom刚开始的校验没过.....
这.....

对比一下  W25N 和 GD 的区别改下源码,
建议先买 GD 的spi nand flash先测试.





在线

楼主 #17 2019-01-11 15:39:57

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

release.lenrek.cn

把域名替换一下,其他操作一样, @assert 断言哥的回复,我还没来得及测试





在线

楼主 #20 2019-01-14 19:38:20

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

使用方法在这里:  https://whycan.cn/t_1008.html





在线

楼主 #22 2019-06-08 22:46:52

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

2019-06-08 修改:
--------------------------------------------
域名改为: release.lenrek.cn





在线

楼主 #24 2019-06-13 08:36:59

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

2019-06-13 更新:
--------------------------------------
源码本站打包下载: u-boot-lenrek.tgz





在线

楼主 #31 2020-03-18 14:08:51

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

zhouyu2019 说:

@晕哥,请问这个uboot能引导主线linux吗?我试了会卡在"Starting kernel...",不知道是要改uboot还是改kernel,能指点一下吗?谢谢!

主线的你进置顶的精华帖里面找,有很多帖子





在线

楼主 #33 2020-03-18 14:28:03

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

zhouyu2019 说:

晕哥,在spi-flash上用主线uboot+主线linux是没问题的,我现在用的是spi-nand,所以只能用这个改版的uboot,内核就起不来了。

那你参考这个V3s openwrt @spi nand帖子: https://whycan.cn/t_3123.html

代码在这里: https://github.com/bhorn/openwrt/tree/dolphinpi-spinand





在线

楼主 #35 2020-03-29 09:49:21

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

@zhouyu2019 挺好, 方便分享一下修改部分吗?





在线

楼主 #37 2020-03-29 12:42:03

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

@zhouyu2019 感谢分享,有你真好。





在线

楼主 #39 2020-04-22 19:10:28

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

Re: @assert 修改后的 f1c100s u-boot 开源了, 可以引导bsp linux

wammaw1314 说:

收藏本帖,目前正在新增使用spi nand flash,启动引导主线Linux 4.19,各种学习中。。。

这个帖子更有参考价值: https://whycan.cn/t_3123.html





在线

页脚

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

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