6 getting help, 7 update, Getting help – Kontron COMe-cP2020 User Manual
Page 99: Update

www.kontron.com
COMe-P2020 User Guide
99
6.6
Getting Help
U-Boot was configured with support for longhelp. This means that online help is available for every command while work-
ing with the system. To access the online help, enter “?” or “help” at the console prompt. This will show an overview of all
available commands. To get specific help, enter “?
To get help on the mmc command group enter “? mmc”.
6.7
Update
The environment contains two scripts which allow an update of various components, e.g. U-Boot, bootrom for VxWorks,
data in EEPROMs, etc.
The script “update” checks for a U-Boot script “update” in the directory “update_d0481” in the first partition of the SD
card with “ext2” or “fat” filesystem. If unsuccessful, the check continues with the first NAND chip, volume “boot”, and
again U-Boot searches in the subdirectory “update_d0481” for the script “update”. If the script “update” is found, it is
loaded to memory and executed.
So, to actually execute an update, e.g. an SD card should be prepared with a directory “update_d0481” on the first parti-
tion. Kontron provides an update e.g. for U-Boot as a compressed archive (zip, tar.bz2, tar.gz) which must be unpacked in
the directory “update”.
After the SD card is inserted, U-Boot should be stopped at the console after power-up. To manually start the update, enter
the following command:
In the case of a U-Boot update, only the standard SPI boot flash is updated.
The script “netupdate” tries to load a U-Boot script “update_d0481/update” from the server. If found, it is loaded to mem-
ory and executed as in the case of the SD card.
=> ? saves
saves - save S-Record file over serial line
Usage:
saves [ off ] [size] [ baud ]
- save S-Record file over serial line with offset 'off', size 'size' and
baudrate 'baud'
=>
=> ? mmc
mmc - MMC sub system
Usage:
mmc read
mmc write
mmc rescan
mmc part
mmc list - lists available devices
=>
=> run update
=>