AM437XF从SPI flash启动uboot - AM437x - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 6501|回复: 8
打印 上一主题 下一主题

[已解决] AM437XF从SPI flash启动uboot

[复制链接]

5

主题

12

帖子

109

积分

注册会员

Rank: 2

积分
109
跳转到指定楼层
楼主
发表于 2018-9-12 14:28:35 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 xzf361 于 2018-9-13 08:38 编辑

如何从spi启动uboot,目前核心板上的spiflash内出厂好像已经烧写了UBOOT,拨动拨码开关到spiboot可以从spi启动。但使用重新编译的uboot烧写进spi内后,无法正常从spi启动UBOOT,是需要修改uboot配置嘛。uboot版本为u-boot-g10e4fe2-v1.6;分别使用了am43xx_evm_qspiboot_config与am43xx_evm_config;使用am43xx_evm_config配置编译的uboot在sd卡与nand flash使用正常。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享淘帖
回复

使用道具 举报

5

主题

12

帖子

109

积分

注册会员

Rank: 2

积分
109
沙发
 楼主| 发表于 2018-9-12 18:06:26 | 显示全部楼层
梁淑怡-Tronlong 发表于 2018-9-12 17:56
您好,目前没有相关案例。

但核心板上spiflash内出厂已经烧写了可从spiflash 的UBOOT
回复 支持 反对

使用道具 举报

5

主题

12

帖子

109

积分

注册会员

Rank: 2

积分
109
板凳
 楼主| 发表于 2018-9-13 09:21:47 | 显示全部楼层
本帖最后由 xzf361 于 2018-9-13 11:05 编辑
czs----Tronlong 发表于 2018-9-13 09:15
Dear xzf361,

        您好,请确认您的烧写方法是否正确。

uboot中烧写步骤如下,使用提供的uboot镜像进行烧写,无法从spi启动。
spi flash内出厂烧的uboot版本为旧版本的2014.07-00121-g0adfb2b
U-Boot# tftpboot 0x82000000 MLO
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 10.10.100.200; our IP address is 10.10.100.123
Filename 'MLO'.
Load address: 0x82000000
Loading: #######
         965.8 KiB/s
done
Bytes transferred = 94008 (16f38 hex)
U-Boot# sf probe 0
SF: Detected W25Q64CV with page size 256 Bytes, erase size 4 KiB, total 8 MiB
U-Boot# sf erase 0x0 0x20000
SF: 131072 bytes @ 0x0 Erased: OK
U-Boot# sf write 0x82000000 0x0 0x20000
SF: 131072 bytes @ 0x0 Written: OK
U-Boot# tftpboot 0x82000000 u-boot.img
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 10.10.100.200; our IP address is 10.10.100.123
Filename 'u-boot.img'.
Load address: 0x82000000
Loading: #############################
         1.7 MiB/s
done
Bytes transferred = 420108 (6690c hex)
U-Boot# sf erase 0x20000 0x80000
SF: 524288 bytes @ 0x20000 Erased: OK
U-Boot# sf write 0x82000000 0x20000 0x80000
SF: 524288 bytes @ 0x20000 Written: OK
U-Boot#
回复 支持 反对

使用道具 举报

5

主题

12

帖子

109

积分

注册会员

Rank: 2

积分
109
地板
 楼主| 发表于 2018-9-13 14:42:43 | 显示全部楼层
梁淑怡-Tronlong 发表于 2018-9-13 14:29
您好,烧写SPI FLASH 使用的镜像为MLO.bytewap。

十分感谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2024-5-2 11:27 , Processed in 0.035202 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表