hi3516ev100 uboot Saving Environment to SPI Flash... Environment SPI flash not initialized

hisilicon # saveenv
Saving Environment to SPI Flash…
Environment SPI flash not initialized
spi nor flash 芯片
Check Flash Memory Controller v100 … Found
SPI Nor(cs 0) ID: 0x20 0x70 0x17
Block:64KB Chip:8MB Name:”XM25Q64AHIG”
CONFIG_CLOSE_SPI_8PIN_4IO = y.
at hifmc100_setTB() sr: 0x8 <<111>>.
lk[8 => 0x800000]
SPI Nor total size: 8MB
修改 drivers/mtd/spi/hifmc100/hifmc_spi_nor_ids.c

增加
//////////////luxin//////////////////
{
“GD25Q64”, {0xC8, 0x40, 0x17}, 3, _8M, _64K, 3,
{
&READ_STD(0, INFINITE, 66),
#ifndef CONFIG_CLOSE_SPI_8PIN_4IO
&READ_QUAD(1, INFINITE, 80),
#endif
0
},
{
&WRITE_STD(0, 256, 100),
#ifndef CONFIG_CLOSE_SPI_8PIN_4IO
&WRITE_QUAD(0, 256, 80),
#endif
0
},
{
&ERASE_SECTOR_64K(0, _64K, 100),
0
},
&spi_driver_gd25qxxx,
},
//////////////luxin///////////////////

猜你喜欢

转载自blog.csdn.net/whereisdog/article/details/82589816