Forum Discussion
Altera_Forum
Honored Contributor
16 years ago<div class='quotetop'>QUOTE (hippo @ Aug 24 2009, 11:56 PM) <{post_snapback}> (index.php?act=findpost&pid=23571)</div>
--- Quote Start ---elf2flash --base=0x04000000 --end=0x04FFFFFF --reset=0x04100000 --input=zImage --output=zImagebf.flash --boot=/opt/altera/nios2eds/components/altera_nios2/boot_loader_cfi.srec You gave wrong reset address in elf2flash, which should be nios2 cpu hardware reset address. You should also change the reset vector to offset 0x100000 of cpi flash in sopc. The boot link address in kernel config for neek can be set to 0x01600000, which is about 2/3 of 32MB. From power on reset, fpga gets configured from offset 0x20000 of cfi flash, cpu reset from 0x100000 of cfi flash, boot loader cfi copy zImage to boot link address, zImage uncompress to 0, and kernel start. - Hippo[/b] --- Quote End --- So, to clarify, the argument passed to --reset has to be the reset address (0x100000) PLUS the base address (0x4000000) = 0x04100000 as in your listing?