Personal tools
You are here: Home Hardware PRAP Switching between images

Switching between images

How to switch between booting the Beagle Board from the standard image and from the Angstrom demo image, using different SD cards for the two images and resetting the boot parameters.

A nice side effect of my current Beagle Board setup is that I now have two SD cards with different Linux images (the official one and the Angstrom Open Embedded demo image by Koen), and I can boot from either image by only adjusting a few parameters. Here is how to do it:
  1. Power off the board
  2. Insert the SD card with the image that you want to boot
  3. Make sure your serial connection from your host machine to the board is working and power it on
  4. After the test tone, when the serial console on your host machine gets to 'Hit any key to stop autoboot', do exactly that.
  5. Set the boot parameters for the image you want to boot (see below for which to choose).
  6. On the Beagle Board, press the 'Reset' button while holding the 'User' button.
For the standard image, I use the boot parameters from p.117 of the hardware reference manual:
# setenv bootargs console=ttyS2,115200n8 ramdisk_size=8192 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,8M nohz=0ff
# setenv bootcmd 'mmcinit;fatload mmc 0 0x80300000 uImage;fatload mmc 0 0x81600000 rd-ext2.bin;bootm 0x80300000';

For the Angstrom demo image, I use the ones from

# setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait'
# setenv bootcmd 'mmcinit;fatload mmc 0 80300000 uImage;bootm 80300000'

To make these changes persistent, e.g. because you already know that you will want to boot the respective image by default, you can save these settings to the Flash memory:

# saveenv
Document Actions
Florian Hollerweger. Cite/attribute Resource. admin. (2008, November 10). Switching between images. Retrieved April 23, 2017, from Florian Hollerweger Web site: All Rights Reserved.