Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi Dan,
I'll address your questions, one at a time: --- Quote Start --- 1. how can i debug this procedure? --- Quote End --- Usually, you don't have to. --- Quote Start --- 2.boot loader file - the nios wiki tells you to use the boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec but i don't understand how could it not be changed after each compilation. I mean - isn't this file dependent on my design?? --- Quote End --- No. This is a generic boot copier. The ELF file (even if it's a whole kernel) is translated into memory section based boot records consisting of a 32-bit word for copy location/address, a 32-bit word for size, followed by the data that needs to be copied....repeating for each memory section that requires copying. --- Quote Start --- 3. shouldn't I change nothing on the design in my uClinux kernel? --- Quote End --- You shouldn't have to change anything. --- Quote Start --- 4. what is the purpose of the file : epcs_controller_boot_rom.hex? --- Quote End --- That's the boot copier when using EPCS devices. EPCS devices are really just serial flashes, so a small onchip memory (epcs_controller_boot_rom) houses the boot copier code. Have you tested that this boot procedure works on something simpler than uClinux/Linux? I would try a simple "hello world" and/or LED flasher before before something as large as a full kernel. Cheers, - slacker