Forum Discussion
Altera_Forum
Honored Contributor
21 years agothe sequence of boot in NIos II based HAL
I had read the boot modes of NIos II ,I want to know the boot sequence of Nios II based HAL,In the doucount of Altera,It said that if boot without boot_loader ,the crt0.s deal with boot ,see crt0.s...
Altera_Forum
Honored Contributor
21 years agoHi gerger,
> In addtion. boot_loader only copy crt0 and .text to RAM ? > or it copy all programm image (include crto, .text, .rwdata, .rodata) to RAM? I should copy everything -- but all of my applications run completely in RAM (I do not locate rodata in flash for example) -- so I'm not sure how it behaves if you locate rodata in non-volatile memory. Regardless, as I recall, the "data" that the boot loader operates on is formatted as a sequence of records (length, destination address, data). The loader just fetches the length, and destination, then transfers the following bytes. When the length is zero, the copy process is complete. If you need more details, you should probably "use the force" ;-) and review the source code -- You might also want to get some details on how elf2flash works, since this is where the bootloader is married to your application code. Regards, --Scott