嵌入式开发者社区

标题: AM437XF从SPI flash启动uboot [打印本页]

作者: xzf361    时间: 2018-9-12 14:28
标题: AM437XF从SPI flash启动uboot
本帖最后由 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使用正常。
作者: 梁淑怡-Tronlong    时间: 2018-9-12 17:56
您好,TL4379F-EVM开发板目前已经停产,所以相关案例已不再对外发布。
作者: xzf361    时间: 2018-9-12 18:06
梁淑怡-Tronlong 发表于 2018-9-12 17:56
您好,目前没有相关案例。

但核心板上spiflash内出厂已经烧写了可从spiflash 的UBOOT
作者: czs----Tronlong    时间: 2018-9-13 09:15
Dear xzf361,

        您好,请确认您的烧写方法是否正确。
        可以试一下烧写我们提供的uboot镜像看看是否正常;uboot不需要修改配置,使用的是am43xx_evm_config。
作者: xzf361    时间: 2018-9-13 09:21
本帖最后由 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#

作者: 梁淑怡-Tronlong    时间: 2018-9-13 14:29
您好,烧写SPI FLASH 使用的镜像为MLO.bytewap。

作者: xzf361    时间: 2018-9-13 14:42
梁淑怡-Tronlong 发表于 2018-9-13 14:29
您好,烧写SPI FLASH 使用的镜像为MLO.bytewap。

十分感谢!
作者: hitdajun    时间: 2019-7-2 01:13
梁淑怡-Tronlong 发表于 2018-9-12 17:56
您好,TL4379F-EVM开发板目前已经停产,所以相关案例已不再对外发布。

梁工,TL4379F-EVM开发板,FPGA部门以后不会更新,是这样吗?
作者: 梁淑怡-Tronlong    时间: 2019-7-2 09:06
hitdajun 发表于 2019-7-2 01:13
梁工,TL4379F-EVM开发板,FPGA部门以后不会更新,是这样吗?

目前暂时还没有更新计划,但是以后更不更新,以实际发布情况为准,如有更新,会在QQ群或者邮件通知您们。




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4