FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5993 Discussions

MMC Init Failed on Agilex FPGA Card (Part No: AGFB012R24B2I3E)

Jayasurya
Beginner
946 Views

Dear Team,

 

I am writing to seek urgent assistance regarding an issue we are facing with the custom card which features the Agilex FPGA (Part No: AGFB012R24B2I3E).

Currently, we are encountering a critical problem during the initialization process as the MMC (MultiMediaCard) is failing with an error code -5. We have been following the GitHub source (rocketboards.org/foswiki/Documentation/BuildingBootloaderAgilex7) for generating the FSBL (First Stage Boot Loader) and U-boot image.

 

Fpga PartNo : AGFB012R24B2I3E [E&P Tile]

 

We would like to mention that we have integrated a level shifter between the HPS (Hard Processor System) and the SD Card to achieve voltage translation from 1.8V (HPS output) to 3V (SD Card input) as per the datasheet.

 

I have attached the boot log for your reference. We kindly request your assistance in resolving the MMC init failed issue.

 

Labels (1)
0 Kudos
9 Replies
aikeu
Employee
890 Views

Hi Jayasurya,


Can you elaborate more regarding the custom card which you have mentioned? Would like to know what is the changes as compared to a default dev kit.

Just to confirm, are you currently booting up with SD card or QSPI flash?

May I know how you enable the changes in the Uboot device tree to consider the hardware changes?


Thanks.

Regards,

Aik Eu


0 Kudos
Jayasurya
Beginner
858 Views

Hi Aikeu,

 

Thanks for the reply.

 

We have changed the level translator, ESD diode part number compared to the reference design.

 

I have done the changes in the device tree file(arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi). In my custom board DDR size has changed from 8GB to 4GB. I have attached the dts file for your reference.

 

I have loaded the .jic file in the QSPI, so that FSBL will load from QSPI and I am trying to boot from MMC(SD Card).

 

Best Regards,

Jayasurya R.

0 Kudos
Jayasurya
Beginner
852 Views

Hi Aikeu,

 

Sorry, my dtsi file didn't get added last time. 

 

Thanks,

Jayasurya R.

0 Kudos
aikeu
Employee
821 Views

Hi Jayasurya,


Can refer this document and the way the patches was done for the default GSRD uboot to consider emmc:

https://www.rocketboards.org/foswiki/Projects/AgilexSoCWithEMMCStorageOnHPS


I think for the device tree, you must consider the socfpga_agilex_socdk.dts for Uboot instead and those properties for that particular node.

I do not know exactly on how it should be set for your case usage depending on your hardware but you can try to refer the example above and check the outcome.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
776 Views

Hi Jayasurya,


I will close this thread if no further question.


Thanks.

Regards,

Aik Eu


0 Kudos
Jayasurya
Beginner
736 Views

Hi aikeu,

 

Sorry for the late reply. I have tried the patch added uboot workspace. But still I am getting the same error. I have attached the log for your reference.

 

Thanks,

Jayasurya R.

0 Kudos
aikeu
Employee
691 Views

Hi Jayasurya,


You will need to make the changes to the node properties according to your specific hardware MMC. The patch was only for reference purpose on where to make the device tree changes. I think the main part is the status="okay" must be considered.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
664 Views

Hi Jayasurya,


I will close this thread if no further question.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
641 Views

Hi Jayasurya,


I am closing the thread for now. Do consider re-open a new thread if there is further question.


Thanks.

Regards,

Aik Eu


0 Kudos
Reply