User keys – Digi 9P 9360/9750 User Manual

Page 75

Advertising
background image

7 5

The command “run” allows to execute variables as sequence od commands.

Here values of other variables could be used to simplify the scripts. (e.g. $(filesize) )

Example (A9M24x0):

The following variables are available:

ipaddr = 192.168.42.10

serverip = 192.168.42.1

loadaddress = 0x30100000

bootfile = uImage-a9m2410dev

setenv bootcmd tftp\;bootm

This command is identical with:

setenv bootcmd tftp 30100000 uImage-a9m2410dev\;bootm 30100000

and:

setenv bootcmd tftp 30100000 $(bootfile)\;bootm 30100000

User keys

Note: CC9P9360/9750 and A9M2410/2440 only

There are two User Keys on the development board, which can be used with functions

from U-Boot. It is common to use them for booting different kernel versions or using

different rootfs. For example:

When User Key 1 is pressed in the start phase of U-Boot, the contents of the variable

“key1” is executed, i.e. the target will boot from a USB medium.

When User Key 2 is pressed the target boots via TFTP/NFS.

#

setenv key1 run boot_usb

#

setenv key2 run boot_net

#

saveenv

Advertising