
CP3005 – User Guide Rev. 1.8
// 110
kwdt -t 15
echo “Watchdog enabled”
endif
if %pxe_first% == “on” then
echo “forced booting from network”
kboot -t network
endif
To create uEFI Shell environment variables, use the set uEFI Shell command as shown below:
Shell> set wdt_enable on
Shell> set pxe_first on
Shell> set
pxe_first : on
wdt_enable : on
Shell> reset
13.4.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> kmkramdisk -s 3 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 kbootnsh uEFI Shell command.
myramdisk:\> kbootnsh -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 kbootnsh uEFI Shell commands.
myramdisk:\> kbootnsh -g boot.nsh
myramdisk:\> edit boot.nsh
13.5.
Updating the uEFI BIOS
The CP3005 has two SPI boot flashes programmed with the uEFI BIOS, a standard SPI boot flash and a recovery SPI
boot flash. The basic idea behind that is to always have at least one working uEFI BIOS flash available regardless if
there have been any flashing errors or not.
13.5.1.
Updating Procedure
For the BIOS update the customer should follow the instructions in the Readme.txt BIOS package.
13.5.2.
uEFI BIOS Recovery
In case of the standard SPI boot flash being corrupted and therefore the board not starting up, the board can be
booted from the recovery SPI boot flash if the DIP switch SW1, switch 2 is set to ON.
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.