Altera_Forum
Honored Contributor
21 years agoBoot up questions
I just have a few issues with booting that I am hoping someone can shed some light on.
First of all, here is my hardware design. Cyclone 1C6, 16 x 512K SRAM, EPCS4. You will probably notice that there is no Flash. Yes, if we had flash I wouldn't be having any trouble at all. But, that is out of my hands as the hardware is done. So, obviously I need to boot out of the EPCS. Right now I have flashed my entire program into the EPCS. That is working fine. But, what we really want is for the code to be downloaded from the host (it is always connected to a host SBC.) The boards are connected with a user logic interface (something to do with serdes and lvds, what do I know, I'm just the software guy.) Here is how I want booting to work: EPCS bootloader loads seconday boot code to RAM Secondary boot code downloads real code to RAM Jump to real code in RAM On to the questions: Where do I put the real code in RAM? After looking through the linker scripts I see that the 2ndary boot code will occupy the .text section. When I download the real code, how do I only place the new bits in RAM? Can I even do this? The .entry and.exceptions sections shouldn't have to change. I just want to place the new .text, .rodata, .rwdata, .bss sections into RAM. Am I totally off the mark here? Is there a simpler solution to my problem? Is there a way to skip over a section of RAM? I would like to try to do this without messing with the linker scripts. Though, I have a feeling that this will be impossible. Thanks,