Output image layout, Base address, Size – Altera SoC Embedded Design Suite User Manual

Page 184: Address alignment, Nand flash, Output image layout -19

Advertising
background image

Output Image Layout

Base Address

You must place the preloader image at 0x0 for NAND and QSPI flash. The SD/MMC flash has a MBR that

points to a specific offset at the start of the partition. The partition is of type 0xA2, a custom raw partition

type without any file system. The preloader image tool always places the output image at the start of the

output binary file, regardless of the target flash memory type. The flash programming tool is responsible

for placing the image at the desired location on the flash memory device.

Related Information

Cyclone V Device Handbook, Appendix A: Booting and Configuration

For more information, refer to the Booting and Configuration appendix in volume 3 of the Cyclone V

Device Handbook.

Arria V Device Handbook, Appendix A: Booting and Configuration

For more information, refer to the Booting and Configuration appendix in volume 3 of the Arria V

Device Handbook.

Size

A single preloader has a 60 KB image size. You can store up to four preloader images in flash. If the boot

ROM does not find a valid preloader image at the first location, it attempts to read an image from the next

location, 64 KB above the first. To take advantage of this feature, program four preloader images in flash

at consecutive 64 KB intervals.

Related Information

Cyclone V Device Handbook, Appendix A: Booting and Configuration

For information about how the boot ROM loads preloader images, refer to "Boot ROM Flow" in the

Booting and Configuration appendix in volume 3 of the Cyclone V Device Handbook.

Arria V Device Handbook, Appendix A: Booting and Configuration

For information about how the boot ROM loads preloader images, refer to "Boot ROM Flow" in the

Booting and Configuration appendix in volume 3 of the Arria V Device Handbook.

Address Alignment

Every preloader image aligns to a 64 KB boundary at offsets 0x0, 0x10000, 0x20000, and 0x30000, except

for the NAND flash. Version 0 of the boot ROM assumes that all preloader images in flash memory align

to 64 KB boundaries, except in the case of NAND flash.
If the preloader images are stored in NAND flash with an erasable block size larger than 64 KB, preloader

images are aligned to the block size.
The preloader image tool is unaware of the target flash memory type. If you do not specify the block size,

the default is 64 KB.

NAND Flash

Each preloader image occupies an integer number of blocks. A block is the smallest entity that can be

erased, so updates to a particular boot image does not impact the other images. The size of a single

preloader image sizing is either 64 KB or the NAND flash block size, whichever is larger. For example, if a

NAND block is 32 KB or 64 KB, a single preloader image size is 64 KB; if a NAND block is 128 KB, a

single preloader image size is 128 KB.

ug-1137

2013.05.03

Output Image Layout

7-19

HPS Preloader User Guide

Altera Corporation

Send Feedback

Advertising