How to boot a board from a SD card

From RidgeRun Developer Connection
Revision as of 10:25, 12 May 2011 by Mmadrigal (Talk | contribs)

Jump to: navigation, search


In this section it will be shown how to boot your board directly from your SD card. For this tutorial it will be used the Stable Release of the SDK for the LeopardBoard DM368 (called 2011Q2) but in most of SDKs you will find similar options.

Instruction to boot from SD card using the SDK 2011Q2

In our new Stable Release of the SDK (called 2011Q2) and later versions you will be able to find a new option to boot your board from the SD card, this means you will be able to load the bootloader and kernel images directly from a SD card. For this example we will use NFS for file system.

  1. Got to you SDK's path: cd <mySDKPath>.
  2. Run make config.
  3. Go to Installer Configuration.
  4. Press ENTER in the Firmware deployment mode option.
  5. Select Deploy all the firmware to an SD card.
  6. Now you can choose how to flash your SD card with the images as is shown below.

Creating a SD card image

This is the default option, you will see the Flash SD card image into loopback file instead of real SD option selected. This method creates a SD image that then you will be able to write to a real SD card. In order to do this follow the next steps:

1. Select the size of the image you want to create by typing it the Size of loopback device for SD card, by default it is set to 512MB and in most of the cases this value is enough.
2. Exit you configuration wizard and type make install into your SDK's path. A warning message will be prompted, just type yes and wait until the process finishes.
3. After that a file called sdcard.img will be created into the <mySDKPath>/images/ directory.
4. Insert a SD card in your PC and wait until it is mounted.
5. Type mount and verify the name of the device associated to your SD card as is shown in the following image:

6. Go to the images directory and run the following command:

sudo dd if=sdcard.img of=/dev/sdX

Where 'sdX represents the device name gotten in 5.

7. Once the process finishes insert the SD card into your board and turn ON the dip switch 2, then power on the board, it will start booting from your SD card now.

Write to the SD card directly