Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

store two software images on flash

Hi all,

I am trying to boot from onchip memory, and at the end of the bootloader, it has to select between two (or more) applications stored on flash. Altera offers AN about how to do that, but my question is how to program the flash with two different images. I know that first we need to use the elf2flash to convert the application into flash format - so I need to run it for each application, how can I tell it that app1 is going to sit at location FLASH_BASE+x and app2 at FLASH_BASE+y ?

Help is appreciated.

Thanks

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you kevin,

    I was able to transform the resultant elf file into a flash file and load it at a desired location in flash.

    Now I am trying to load the bootloader off of onchip. the bootloader is expected to load the image from flash. But the bootloader keeps rebooting itself as if the image in flash was pointing back to the bootloader code in onchip. Any pointers ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To support booting different ELF files, you will need to create a custom boot loader (or modify the standard one). The default boot loader will only every load the first ELF file immediately after the first SOF. Have you done this?