This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4377 spi0 nor flash boot启动问题

Other Parts Discussed in Thread: AM4377

问一下,现在在调试AM4377从spi norflash启动(ISSI的32MB flash)
先用uart或emmc启动到自编的bsp阶段,flash可以读写正常
分别向flash的0和0x20000地址写入MLO和uboot文件,然后跳线选择从spi启动,
spl可以走到spl_spi_load_image(编译MLO时打开CONFIG_SPL_SPI_SUPPORT)
但flash会扫描失败,看spi_xfer接口走的是ti_qspi.c分支的,因为deconfig中CONFIG_TI_QSPI=y
是否应该走此分支?或者应该走cf_spi.c?
cf_spi.c当前没有编到,增加定义CONFIG_CF_SPI,出现其他编译错误(#include <asm/immap.h>找不到)
想问一下spi nor flash启动是应该走ti_qspi.c还是cf_spi.c或其他?

U-Boot SPL 2018.12-00304-g4d20f09-dirty (Dec 20 2018 - 16:30:07)
Trying to boot from (10)SPI
ti_spi_set_speed: hz: 48000000, clock divider 3 --是qspi分支?
spi_claim_bus: bus:0 cs:0
spi_xfer: bus:0 cs:0 bitlen:8 flags:1 --spi_flash_read_write 分支可能不对
tx cmd 003a0fff dc 00000005
tx done, status 00010002
spi_xfer: bus:0 cs:0 bitlen:40 flags:2
rx cmd 00390fff dc 00000005
rx done, status 00020002, read 00
rx cmd 00390fff dc 00000005
rx done, status 00030002, read 00
rx cmd 00390fff dc 00000005
rx done, status 00040002, read 00
rx cmd 00390fff dc 00000005
rx done, status 00050002, read 00
rx cmd 00390fff dc 00000005
rx done, status 00060002, read 00 --自编bsp阶段9F cmd读出id为0x9d6019 正常
SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
spi_release_bus: bus:0 cs:0
SPI probe failed. --【】扫描失败
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###