Hardware image catalog, Application selector hardware image – Altera Nios II Embedded Evaluation Kit Cyclone III Edition User Manual
Page 69
C–3
Development Board Version 1.0.
Altera Corporation
Nios II Embedded Evaluation Kit, Cyclone III Edition
July 2010
Hardware Image Catalog
2.
From the Nios II Command Shell type:
nios2-flash-programmer -–base=0x4000000
Hardware Image
Catalog
The hardware image catalog section of flash is located at offset 0x8000.
This section holds the locations of the currently cached hardware images
in flash. Any time a factory recovery is performed, this section of flash
should be erased to ensure no stale catalog entries exist. To erase this
section of flash, enter the command:
nios2-flash-programmer --base=0x4000000 –-erase
0x8000+0x8000
After erasing this section, you may wish to read back the erased contents
into a file, so that you can combine this file into the final factory recover
image. The command to read back this section into a file named
catalog.srec is:
nios2-flash-programmer --base=0x4000000 --read
catalog.flash
--read-bytes 0x8000+0x8000
Application
Selector
Hardware Image
The application selector hardware image section contains the FPGA
hardware image for the application selector utility. This section is located
at flash offset 0x20000. The FPGA gets configured with this image upon
power-up and after a board reset. The file you will need to create this
portion of the factory recovery image is named
cycloneIII_embedded_evaluation_kit_application_selector.sof, and is located in
the application selector’s Quartus II project directory. The command
needed to create the application selector hardware portion of the factory
recovery image is:
From the Nios II Command Shell navigate to altera\<version #>
\kits\cycloneIII_3c120_niosII_dev\examples\application_selector
.
From the Nios II Command Shell type:
sof2flash --activeparallel --offset=0x20000 --input= cycloneIII_
embedded_ evaluation_kit _application_selector.sof --output=
appsel_hw.flash
1
The command above converts the application selector SOF file
to hardware flash image.
To program this .flash file to flash, run the command:
nios2-flash-programmer --base=0x4000000 appsel_hw.flash