Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe altera epcs boot loader is position independent. It is located in a onchip memory inside the epcs controller. The elf2flash gets load address from the elf, which is in kernel space, such as c0800000. For example, if the epcs controller base is 0x03200000,
sof2flash --epcs --input=NiosII_cycloneII_2c35_full_featured.sof --output=fpga.flash nios2-flash-programmer --epcs --mmu --base=0x03200000 fpga.flash elf2flash --epcs --after=fpga.flash --input=zImage --output=zImage.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec nios2-flash-programmer --epcs --mmu --base=0x03200000 zImage.flash Please note, the sof flash generated using quartus v9.1sp2 doesn't work. I have filed a service request. Please try v7.2 or others. u-boot can be used instead of zImage. - Hippo