Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
514 Discussions

How to access the 8GB ram of DDR in Agilex 7

Gokulraj
Beginner
2,596 Views

Hi,

I need to access  8GB DDR ram in agilex dev kit,but now i able to access only 2GB ram.While trying to access the remaining 6GB of ram ot throw error as "TFTP error: trying to overwrite reserved memory...".

I have tried to access the remaining 6GB of ram by changing memory address in .dtb file,but same issue continues.

 

Thanks

M Gokulraj

0 Kudos
29 Replies
Gokulraj
Beginner
367 Views

Hi,

I've already tried these patches, but the issue persists.

The main issue now is reading a 64-bit memory address. The mmc write command works with 32-bit addresses, but it does not function correctly with 64-bit addresses.

Please review the MMC driver files related to handling 64-bit memory addressing. The issue is not related to configuring the memory node.

Thanks,
Gokulraj

 

 

0 Kudos
JingyangTeh
Employee
336 Views

Hi


Let me try to reproduce this in the board we have here.


Just to confirm, the tftp to the reserved memory is working on your end and currently the issue is when you are writting from the reserved memory to the sd card?


Could you please share me the command that you use to write into the mmc?


Regards

Jingyang, Teh


0 Kudos
Gokulraj
Beginner
307 Views

Hi,

Yes i can write in the reserved memory.

I've used the following commands and attached serial terminal log for your reference.

SOCFPGA_AGILEX # setenv ipaddr 192.168.12.111
SOCFPGA_AGILEX # setenv serverip 192.168.12.121
SOCFPGA_AGILEX # setenv loadaddr 0x280000000
SOCFPGA_AGILEX # tftp ${loadaddr} emmc-image-agilex.img

SOCFPGA_AGILEX # setexp blkcnt ${0x6000000}/0x200
SOCFPGA_AGILEX # mmc write ${loadaddr} 0 0x30000

 

Thanks,

Gokulraj

 

 

 

 

0 Kudos
JingyangTeh
Employee
281 Views

Hi

 

I tried it out on our devkit and there was no problem in writting into the SDCard.

Please find the logs given.

I see that you are writing to the address 0x28 000 0000.

This address space is a reserved space in the HPS. You should not be writting into that space.

 

https://www.intel.com/content/www/us/en/docs/programmable/814346/24-1/total-address-map-graphical.html

 

The DDR range are from 0x00_8000_0000 to 0x01_0000_0000 ( first 2GB) and 0x08_8000_0000 to 0x10_0000_0000 (remaining size of the ddr).

 

Regards

Jingyang, Teh

 

0 Kudos
Gokulraj
Beginner
264 Views

Hi,

I've changed the load address as 0x880000000 mentioned by you,but still i'm stuck in the same issue and refer the attached log and dtb file.

will you place share the u-boot you used while writing in the memory address 0x880000000.

 

Thanks

Gokulraj

 

 

0 Kudos
JingyangTeh
Employee
196 Views

Hi

 

Please find attached the uboot i am using.

Going through the device tree I see that the is a difference in the mmc node between yours and mine.

Are you using a devkit or a custom board? If it is a custom board, are you use an 8 bit sd card or a 4 bit sdcard?

 

Could you try changing your mmc node in the device tree to below:

&mmc {

status = "okay";

bus-width = <4>;

sd-uhs-sdr50;

cap-mmc-highspeed;

bootph-all;

};

 

 

Regards

Jingyang,Teh

 

0 Kudos
Gokulraj
Beginner
168 Views

Hi

I'm Using Agilex 7 FPGA I-series transceiver-soc development kit(4x F-tile).

Unfortunately the shared u-boot is not working with my board.

It stops at  "## Checking hash(es) for config board-0 ... OK."

I need to build u-boot for Agilex 7.so sharing u-boot source will be very useful for me.I'll compile and debug according to our need.

 

Thanks

Gokulraj

0 Kudos
JingyangTeh
Employee
96 Views

Hi


I tested the same changes in our devkit (F-Series Transceiver) and it is working.

If it is possible if you could capture a new log with the changes suggested and share it with us and I will raise this to our technical team for further debugging.


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
27 Views

Hi


As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


Regards

Jingyang, Teh


0 Kudos
Reply