Forum Discussion

Gokulraj's avatar
Gokulraj
Icon for New Contributor rankNew Contributor
10 months ago

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

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

29 Replies

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi

    Sorry about that.

    Could you try make the changes to the files in your uboot as shown in the image below:

    Regards

    Jingyang, Teh

    • Gokulraj's avatar
      Gokulraj
      Icon for New Contributor rankNew Contributor

      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

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    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


    • Gokulraj's avatar
      Gokulraj
      Icon for New Contributor rankNew Contributor

      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

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    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

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    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

    • Gokulraj's avatar
      Gokulraj
      Icon for New Contributor rankNew Contributor

      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

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    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


  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    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