Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHallo,
I will try to remember. :) The boot copier loads the software image with reference to the base address of the Hw_Image_1. So the copier takes this base address and calculates the offset to find the Sw- Image. To load the Sw_Image_2 I modified the pointer on the base address. I modified only the file "boot_loader_epcs_bits_sii_siii_ciii.S". Every time the command movi r_flash_ptr, address_original appears, I replaced it with mov r_flash_ptr, hw_image_2_base_addressaddi r_flash_ptr, r_flash_ptr, address_originalSo the boot copier doesn't start his search at address 0x0000 (where Hw_image_1 was located), but he starts at the base address of Hw_image_2. The hw_image_2_base_address could be defined in boot_loader.h. I'm sorry, but I could not provide the modified source code, because I made this changes for someone else and I can't find a copy of the modified code. Maybe I deleted it... But I hope this information would help you. Greets.