
Altera Corporation
C–4
July 2010
Nios II Embedded Evaluation Kit, Cyclone III Edition
Application
Selector
Software Image
The final portion of the factory recovery image is the application selector
software image. This section is located at flash offset 0x100000. The Nios
II processor resets to this address and runs this code every time the FPGA
gets configured with the application selector hardware image. The file
you will need to create this portion of the factory recovery image is
named
ext_flash.flash
, and is located in the application selector software
project directory. You need to run the following command from the
application selector software project directory to create
ext_flash.flash
if it
does not already exist:
make flash
Once “ext_flash.flash” is created, you can program it into flash with the
following command:
nios2-flash-programmer --base=0x4000000 ext_flash.flash
Combining
factory recovery
image files
Once you’ve created flash (or srec) files for all the sections of the factory
recovery image, you can combine them all into one file using the
cat
command:
cat app_selector_boot_code.srec catalog.flash appsel_hw.flash
ext_flash.flash > temp_restore.flash
However, you are still not done. Some of the individual files we combined
contained non-data records in them. Some non-data records, such as “S0”
records cannot appear anywhere in an SREC file except for the beginning,
so you want to remove all the non-data records from the final factory
recovery image. Data record types, are S1, S2, and S3, so you want to
remove all the other types of records (S0, S5, S7, S8, and S9).You can use
the command “sed” to perform this task. Use the following command to
remove all non-data records from the new factory recovery image file:
sed '/^S[05789]/ d' temp_restore.flash >restore_cycloneIII
_3c25.flash
You can now restore the Embedded Evaluation Kit board to its factory
state by running the command
nios2-flash-programmer --base=0x4000000 restore_cycloneIII
_3c25.flash
Содержание Nios II Embedded Evaluation Kit Cyclone III Edition
Страница 6: ...Altera Corporation vi July 2010 Preliminary Contents Contents ...
Страница 54: ...Altera Corporation A 4 July 2010 Nios II Embedded Evaluation Kit Cyclone III Edition ...
Страница 76: ...Altera Corporation D 6 July 2010 Nios II Embedded Evaluation Kit Cyclone III Edition ...
Страница 80: ...Altera Corporation Info iv Additional Information Typographic Conventions ...