Results 1 to 4 of 4

Thread: preloader-mkpimage binary from SOC EDS V17.0 is not working

  1. #1
    Join Date
    Jun 2018
    Posts
    3
    Rep Power
    1

    Question preloader-mkpimage binary from SOC EDS V17.0 is not working

    I have installed SOC EDS Standard V17.0 on Ubuntu 17.10. Ubuntu is installed in Virtual Box.
    I am able to create "preloader-mkpimage.bin" and "uboot.img" by using our customized handsoff file. But "preloader-mkpimage.bin" is not working on our board.

    "preloader-mkpimage.bin" and "uboot.img" created on SOC EDS Standard V14.0 with the same handsoff file is working correctly on our board.

    Is there any specific configuration needs to be done for upgrading SOC EDS Standard V17.0 from SOC EDS V14.0 OR is there any specific more input needs to be given in V17.0
    Last edited by VikasP_Altera; June 6th, 2018 at 12:21 PM.

  2. #2
    Join Date
    Nov 2017
    Posts
    529
    Rep Power
    1

    Default Re: preloader-mkpimage binary from SOC EDS V17.0 is not working

    Hi,

    1. If your GHRD/Project is created using QUARTUS 17.1std you need to use the same version of "SoC EDS" (i.e SoC EDS 17.1std) to avoid the issues.
    2. GHRD was created with Quartus 16 whereas, We are using version 17. Click the Launch IP Upgrade Tool button, and this window will appear, You can safely ignore the warning and click the Perform Automatic Upgrade button.

    Make sure while Generating the preloader in BSP Editor point to correct directory and compile.
    For reference click.

    Best Regards,
    Anand Raj Shankar
    (This message was posted on behalf of Intel Corporation)

  3. #3
    Join Date
    Jun 2018
    Posts
    3
    Rep Power
    1

    Default Re: preloader-mkpimage binary from SOC EDS V17.0 is not working

    Thanks for suggestion.

    I have checked for version for GHRD and SOC EDS and that are same.
    I am facing problem while jumping to application for boot-loader. In V14 jump from boot-loader to application is happening correctly, but in V17 it is not happening.

    In below my code 'preloader-mkpimage.bin' is not working after '__DI(); ' call
    "
    jumptostart = (void (*)()) PHY_APP_IMG_BEGIN;
    Reg_Cpsr = __GETSR();
    Reg_Cpsr = 0x1d3;
    __SETSR(Reg_Cpsr);
    //_api disable all interrupts
    __DI();
    //MMU DIsable
    MCR(CP15_SCTLR, (0x0));
    //_api SD controller reset before loading APP image.
    SDMMC_Reset();
    LCDC_LoadBitmap(meatball7);
    jumptostart();
    "

  4. #4
    Join Date
    Jun 2018
    Posts
    3
    Rep Power
    1

    Default Re: preloader-mkpimage binary from SOC EDS V17.0 is not working

    After troubleshooting the issue in detail, we found that ‘sdram.c’ file generated by SOC ED V17.1 is different than SOC EDS V14.
    Path for sdram.c : /software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7/socfpga

    ‘sdram.c’ file generated by SOC ED V17.1 calls below two methods in ‘unsigned sdram_mmr_init_full(unsigned int sdr_phy_reg)’
    sdram_set_protection_config(0, sdram_calculate_size());
    sdram_dump_protection_config();
    Because of these two methods our application lock up during boot.

    Our application works correctly after commenting out these two methods.

    Is there any configuration or check box available in SOC EDS V17.1 so that mentioned methods should not get called?

Similar Threads

  1. preloader can not be generated
    By shika in forum SoC Bootloading
    Replies: 0
    Last Post: May 21st, 2018, 12:22 AM
  2. [mpl_C5_s-mkpimage.bin] Error 2
    By hehao9051 in forum SoC Bootloading
    Replies: 0
    Last Post: July 13th, 2017, 10:55 PM
  3. preloader
    By sunny_zhanxg in forum SoC Bootloading
    Replies: 3
    Last Post: November 2nd, 2015, 04:45 AM
  4. Read binary file to binary vector array
    By ellilu11 in forum Quartus II and EDA Tools Discussion
    Replies: 6
    Last Post: July 7th, 2013, 11:57 PM
  5. Binary to Binary coded deicmal help
    By wolfmankurd in forum General Altera Discussion
    Replies: 14
    Last Post: April 30th, 2011, 04:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •