Forum Discussion
Altera_Forum
Honored Contributor
19 years agohi hippo
if i use cfi flash.when i have built kernel zImage to support the Jffs2 . Dose i must execute some steps to program flash (include zImage.flash & sof.flash)? such as followingcd arch/nios2nommu/boot# Creating .flash file for the FPGA configuration
sof2flash --offset=0xC00000 --input=$SOPC_KIT_NIOS2/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof --output=standard.flash# Programming flash with the FPGA configuration
nios2-flash-programmer --base=0x00000000 standard.flash# Creating .flash file for the project
elf2flash --base=0x00000000 --end=0xffffff --reset=0x0 --input=zImage --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec# Programming flash with the project
nios2-flash-programmer --base=0x00000000 ext_flash.flash in my csae, i have only 4M flash for DE2. Can i only create a MTD partition to store "my_image.flash" around 4M space? Because my sof.flash is big around 2.1M ,and i don't program it to flash. Thx !