EasyManua.ls Logo

Altera Cyclone V - Datasheet

Altera Cyclone V
30 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
For the scenarios where the next boot stage is located in Flash, the Boot ROM can use up to four dierent
images:
• On Cold reset, the Boot ROM always starts with the rst image, and checks the CRC. If the CRC is OK,
then it passes control to it. If the CRC is not OK, then it tries the next image and so on. Before an image
is passed control, the Boot ROM updates the register sysmgr.romcodegrp.initswlastld with the
image index.
• On a Warm reset, the Boot ROM looks at the register sysmgr.romcodegrp.initswstate for the magic
value 0x49535756. If it is there, it means last Preloader executed OK, so it loads it again and executes it.
If the magic value is not found, it means the previous Preloader was not OK, and the Boot ROM will
advance to the next image and increment sysmgr.romcodegrp.initswlastld.
• If all images are exhausted, the Boot ROM will try to fallback on the FPGA image. It will continue to be
reset by the Watchdog, but will never try to boot from Flash until the next Cold reset.
Note:
e BootROM requires a special header to be placed at the beginning of the images that need to be
loaded from ash. e header also contains a checksum that is used for validating the image. e
header can be attached to the image by using the mkpimage tool that is included with the SoC
EDS.
Preloader
Typically, the main responsibilities of the Preloader are:
• Perform additional HPS initialization
• Bring up SDRAM
• Load the next boot stage from Flash to SDRAM and jump to it
Currently, two dierent Preloader options are available:
• SPL – part of U-Boot. Provided with SoC EDS under GPL (Open Source) License
• MPL – provided with SoC EDS as an example using the HWLibs (Altera bare-metal libraries). Uses
BSD license.
Note:
e Preloader requires a special header to be placed at the beginning of the next stage boot image.
Also, the header contains a CRC value used to validate the image. e header can be attached to an
image by using the mkimage utility that is included with the SoC EDS.
Bootloader
e Bootloader has typical responsibilities that are similar with the Preloader, except it does not need to
bring up SDRAM.
Because the Bootloader is already residing in SDRAM, it is not limited by the size of the OCRAM.
erefore, it can provide a lot of features, such as network stack support.
Boot Sources
e HPS can boot from one of the following sources, as selected by the BSEL pins:
• SD/MMC
• QSPI
• NAND
• FPGA
AN-709
2016.01.27
Preloader
3
HPS SoC Boot Guide - Cyclone V SoC Development Kit
Altera Corporation
Send Feedback