Sd card boot utility, Usage scenarios, Sd card boot utility -1 – Altera SoC Embedded Design Suite User Manual
Page 199: Usage scenarios -1

SD Card Boot Utility
11
2014.12.15
ug-1137
The SoC EDS SD card boot utility is a tool for updating the boot software on an SD card.
The Preloader is typically stored in a custom partition (with type = 0xA2) on the SD card. Optionally the
next boot stage (usually the Bootloader) can also be stored on the same custom partition.
Since it is a custom partition, without a file-system, the Preloader and/or Bootloader cannot be updated
by copying the new file to the card; and a software tool is needed.
The SD card boot utility allows the user to update the Preloader and/or Bootloader on a physical SD card
or a disk image file. The utility is not intended to create a new bootable SD card or disk image file from
scratch. In order to do that, it is recommended to use fdisk on a Linux host OS.
Usage Scenarios
This utility is intended to update boot software on that resides on an existing:
• Existing SD card
• Existing disk image file
You can choose from these three usage scenarios:
• Update just the Preloader software
• Update just the Bootloader software
• Update both Preloader and Bootloader software
In the context of this tool, the term ‘Bootloader’ simply means the next boot stage from Preloader. In
some usage scenarios it can be a bootloader, while in other scenarios it could be a bare-metal application
or even an OS.
Note: The Preloader file needs to have the mkpimage header, as required by the BootROM, and the
Bootloader file needs to have the mkimage header, as required by the Preloader. Both mkpimage
and mkimage tools are delivered as part of SoC EDS.
The tool only updates the custom partition that stores the Altera SoC boot code. The rest of the SD card
or disk image file is not touched. This includes the Master Boot Record (MBR) and any other partitions
(FAT, EXT3 etc) and free space.
©
2014 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134