Closed ftyghome closed 2 years ago
As a side note, I found that I don't need to change the storage_gpio configuration to make the SPI NAND Flash work 😄
Improved the description of commit and signed off :) Thank you!
Merged this as 0ad88bfdb723b1ac74cca96122918f885a4781ac.
Hey:) After getting an Allwinner Nezha D1-H board, I found the SPL is unable to find TOC file and the NAND does not initialized properly. The problem seems to have something to do with the lack of configuration of its MX35LF2GE4AD SPI NAND Flash. In the boot0_head.c, I made some changes to the storage_data array, filled in information about the NAND according to the D1_Linux_SPI-NAND developer guide published by Allwinner.![image](https://user-images.githubusercontent.com/22185413/155881715-a5c70e98-0444-4a97-8200-1210a1570511.png)
Before the change, the SPL failed to get information about the NAND(like sector count per page, page count per block...) and consequently, it failed on finding where the TOC file locates.
Now the NAND in Nezha board works fine!