Updating the uefi bios, Uefi bios recovery, Determining the active flash – Kontron KBox C-101 User Manual

Page 56

Advertising
background image

15. uEFI BIOS

KBox C-101 – User’s Guide (Version 2.00)

15.2.3.4.

Handling the Startup Script in the SPI Boot Flash

In case there is no mass storage device attached, the startup script can be generated in a RAM disk and stored in the SPI
boot flash using the following instructions:
1. Press <ESC> during power-up to log into the uEFI Shell.

2. Create a RAM disk and set the proper working directory as shown below:

Shell> kramdisk -s 3-c -m myramdisk

Shell> myramdisk:


3. Enter the sample start-up script mentioned above in this section using the edit uEFI Shell command:

myramdisk:\> edit boot.nsh


4. Save the start-up script to the SPI boot flash using the kBootScript uEFI Shell command:

myramdisk:\> kbootscript -p boot.nsh


5. Reset the board to execute the newly installed script using the reset uEFI Shell command:

myramdisk:\> reset


6. If a script is already installed, it can be edited using the following kBootScript uEFI Shell commands:

myramdisk:\> kbootscript -g boot.nsh

myramdisk:\> edit boot.nsh

15.3. Updating the uEFI BIOS

The standard SPI boot flash can be updated with the latest uEFI BIOS from the ZIP archive using the

kUpdate -u or the

kFlash -p uEFI Shell command. When using the kUpdate command, the directory structure of ZIP archive must not be
altered. The update status is indicated in the log file located in the directory where the firmware images are stored.

To have the same content in both SPI boot flashes, clone the standard SPI boot flash to the recovery SPI
boot flash using the

kflash -c uEFI Shell.

15.3.1. uEFI BIOS Recovery

In case of the standard SPI boot flash being corrupted and therefore the system is not starting up, it can be booted from
the recovery SPI boot flash. For further information, refer to Chapter 7.3.9 “RESCUE Button and RSQ LED”.

The uEFI BIOS code and settings are stored in the SPI boot flashes. Changes made to the uEFI BIOS
settings are available only in the currently selected SPI boot flash. Thus, switching over to the other SPI
boot flash may result in operation with different uEFI BIOS code and settings.

15.3.2. Determining the Active Flash

Sometimes it may be necessary to check which flash is active. The information is available using the

kboardinfo uEFI Shell

command.

54

www.kontron.com

Advertising