Wolfgang Denk 14d0a02a16 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 14 سال پیش
..
Makefile 78acc472d9 Rename lib_generic/ to lib/ 15 سال پیش
Pt1000_temp_data.h 4f7cb08ee7 * Patch by Martin Krause, 11 Sep 2003: 21 سال پیش
README.kbd c609719b8d Initial revision 22 سال پیش
auto_update.c 792a09eb9d Fix e-mail address of Gary Jennejohn. 16 سال پیش
cmd_trab.c 47e26b1bf9 cmd_usage(): simplify return code handling 14 سال پیش
config.mk 14d0a02a16 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 14 سال پیش
flash.c dfcd7f2160 Redundant Environment: protect full sector size 16 سال پیش
lowlevel_init.S 14d0a02a16 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 14 سال پیش
memory.c 45ca04f237 board/trab/memory.c: Fix compile problems. 16 سال پیش
rs485.c 84ad688473 arm: Move cpu/$CPU to arch/arm/cpu/$CPU 15 سال پیش
rs485.h 84ad688473 arm: Move cpu/$CPU to arch/arm/cpu/$CPU 15 سال پیش
trab.c cdb749778a Rename getenv_r() into getenv_f() 14 سال پیش
trab_fkt.c 54841ab50c Make sure that argv[] argument pointers are not modified. 15 سال پیش
tsc2000.c ac67804fbb Add a unified s3c24x0 header file 15 سال پیش
tsc2000.h eb0ae7f549 Clean-up of s3c24x0 drivers excluding nand driver 15 سال پیش
u-boot.lds 84ad688473 arm: Move cpu/$CPU to arch/arm/cpu/$CPU 15 سال پیش
vfd.c ac67804fbb Add a unified s3c24x0 header file 15 سال پیش

README.kbd


The TRAB keyboard implementation is similar to that for LWMON and
R360MPI boards. The only difference concerns key naming. There are 4
keys on TRAB: 1, 2, 3, 4.

1) The "kbd" command provides information about the current state of
the keys. For example,

TRAB # kbd
Keys: 1 0 1 0

means that keys 1 and 3 are pressed. The keyboard status is also
stored in the "keybd" environment variable. In this example we get

keybd=1010

2) The "preboot" variable is set according to current environment
settings and keys pressed. This is an example:

TRAB # setenv magic_keys XY
TRAB # setenv key_magicX 12
TRAB # setenv key_cmdX echo ## Keys 1 + 2 pressed ##\;echo
TRAB # setenv key_magicY 13
TRAB # setenv key_cmdY echo ## Keys 1 + 3 pressed ##\;echo

Here "magic_keys=XY" means that the "key_magicX" and "key_magicY"
variables will be checked for a match. Each variable "key_magic*"
defines a set of keys. In the our example, if keys 1 and 3 are
pressed during reset, then "key_magicY" matches, so the "preboot"
variable will be set to the contents of "key_cmdY":

preboot=echo ## Keys 1 + 3 pressed ##;echo

3) The TRAB board has optional modem support. When a certain key
combination is pressed on the keyboard at power-on, the firmware
performs the necessary initialization of the modem and allows for
dial-in. The key combination is specified in the
"include/configs/trab.h" file. For example:

#define CONFIG_MODEM_KEY_MAGIC "23"

means that modem will be initialized if and only if both keys 2, 3
are pressed. Note that the format of this string is similar to the
format of "key_magic*" environment variables described above.