Altera_Forum
Honored Contributor
19 years agozImage
I have an Altera Cyclone Eval Brd with 16 MB cfi flash and 32 MB DDR RAM.
I successfully made a zImage and uploaded it to the DDR RAM with the command: nios2-download -g zImage This is working. Offset is 0x800000. Now I want to put the zImage into cfi flash. What I tried so far is: Convert the zImage elf format to bin format with: nios2-elf-objcopy -o binary zimage zimage.bin Then convert the bin into s19 flash format. bin2flash --input=zimage.bin --output=zimage.flash --location=0x0 Then I upload this file with nios2-flash-programmer --base=0x0 zimage.flash When starting I see the message Uncompressing Linux and then system halted with some errormessage (not always the same) My flash starts at 0x0 and DDR starts at 0x4000000 What I also tried is to change the link address to 0x0 and manually change the nasys_program_mem address in vmlinux.lds.S also to 0x0 in order to link the start segment to 0x0 for my flash. It started but stopped with: ran out of input data. Does anyone know how to get the zImage into flash?