Advanced Boot and Backup Configuration Information > Changing the Boot Image > Changing the Boot Image in U-Boot Monitor Mode

Changing the Boot Image in U-Boot Monitor Mode
You can access U-Boot monitor mode in one of the following two ways:
During boot, when the “Hit any key to stop autoboot” prompt appears, pressing any key before the timer expires brings the OnBoard to U-Boot monitor mode.
The U-Boot hw_boot command boots from either the first or second image according to the value of the currentimage environment variable. You can use the following procedures to change which image is used for booting.
To Boot in U-Boot Monitor Mode
1.
2.
Enter the reboot command.
# reboot
3.
During boot, when the “Hit any key to stop autoboot” prompt appears, press any key before the time elapses to stop the boot.
The U-Boot monitor prompt appears:
4.
Enter help to see a list of supported commands.
=> help
To Boot From an Alternate Image in U-Boot Monitor Mode
1.
See "To Boot in U-Boot Monitor Mode" if needed.
2.
Set the current image environment variable to the number of the image you want to boot.
=> setenv currentimage N
For example, to boot from image2 enter the number 2, as shown in the following screen example.
=> setenv currentimage 2
3.
=> hw_boot
 
To Boot in Single User Mode From U-Boot Monitor Mode
1.
2.
Boot by entering hw_boot followed by single, as shown in the following screen example.
=> hw_boot single
3.
The single-user # prompt appears, as shown in the following screen example.

Advanced Boot and Backup Configuration Information > Changing the Boot Image > Changing the Boot Image in U-Boot Monitor Mode