您好:
我从nand启动了u-boot,现在需要烧写u-boot镜像到spi接口的nor中,烧写过程出现入下错误:
TI8168_EVM#sf probe 0:0
Failed to initialize SPI flash at 0:0
TI8168_EVM#sf erase 0x0 0x40000
No SPI flash selected. Please run `sf probe'
TI8168_EVM#sf probe 0:0
Failed to initialize SPI flash at 0:0
TI8168_EVM#
不能初始化spi flash,无法查看到debug的信息,所以无法确定是什么原因,请问:
1.这可能是什么原因?
2.如何查看u-boot源码中debug的命令
(
比如源码中 debug(“SF : fail to setup slave!”)
)
kooking:
1.参考一下这个,有可能是命令使用不正确:
http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide
2.可以用grep查找一下,一般是重新包装了一下printf或者宏定义了一下