Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Stratix IV GX BUP booting problem

I have installed the new version and it doesn't work also for my Stratix IV GX board using board update portal (BUP).

Here are my steps:

1. Convert .sof to .flash:

sof2flash --input=<yourfile_hw>.sof --output=<yourfile>_hw.flash --offset=0xC20000 --pfl --optionbit=0x00018000

2. Convert .elf to .flash:

elf2flash --base=0x0A000000 --end=0x0BFFFFFF --reset=0x0A820000 --input=<yourfile_sw>.elf --output=<yourfile>_sw.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec

3. Program hardware:

nios2-flash-programmer --base=0x08000000 <yourfile>_hw.flash

4. Program software:

nios2-flash-programmer --base=0x0A000000 <yourfile>_sw.flash

Do I also need to program in the <yourfile>_hw.map.flash file ?

Please let me know if my steps are correct. BTW I have upgraded my Quartus II and Nios II EDS to 9.1 SP1 and before I done the above steps.

Thanks.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi bobo,

    see thread

    problems uploading flash memory

    To convert a .sof to a .flash file, use the following command in Quartus II 9.1 SP1:

    sof2flash --pfl --optionbit=<option bit address offset> --input=<your SOF.sof> --output=<output.flash> --offset=<desired image offset>

    option --pfl adds four bytes before configuration data. These bytes are used by parallel flash loader to determine wether a compressed or uncompressed bitstream is used.