Forum Discussion
Altera_Forum
Honored Contributor
14 years agoUpdate bitstream and kernel in flash from Linux : A clean way to generate binary file
Hi all, I wish to update my entire system from a running Linux by changing Flash content : changing bitstream and kernel. My flash is partitioned with 2 area : bitstream (4MB ) and kernel (4M...
Altera_Forum
Honored Contributor
14 years agoYou can use nios2-elf-objcopy on the SREC like so:
elf2flash --base=0xc1000000 --end=0xc1FFFFFF --reset=0xc1540020 --input=zImage --output=zImage.flash --boot=/opt/altera/nios2eds/components/altera_nios2/boot_loader_cfi.srec && nios2-elf-objcopy -I srec -O binary zImage.flash /data/nios/nios2-linux/zImage.bin