Protected Variables; Netconsole - Kontron AdvancedMC AM4211 User Manual

Table of Contents

Advertisement

Environment changes are stored in the bootloader environment sectors. In case of failure (e.g. power loss),
default setting are used and the following startup message is displayed:
Using default environment
Any changes of the environment can be cleared using the following commands:
Kontron T5519# env default -f
Kontron T5519# saveenv
5.3.2

Protected variables

Several variables are of great relevance for the system and are stored in a protected section of NVRAM. Some
of these protected variables are, for example, the serial number of the module and the MAC addresses of the
network interfaces, which are programmed during production and normally should not be changed.
5.3.3

NetConsole

If you are deploying a system, which has no UART connected to it, or is not practical to connect, you can use
the network console. In U-Boot, the network console is implemented via the standard "devices" mechanism,
which means that you can switch between the serial and network input/output devices by adjusting the
'stdin' and 'stdout' environment variables. To switch to the networked console, follow these instructions:
1 On AM4211, run the u-boot and enter the monitor shell
2 Setup network environment. For example:
LOCAL IP
# setenv ipaddr 192.168.100.2
# setenv netmask 255.255.255.0
HOST IP
# setenv gatewayip 192.168.100.1
# setenv serverip 192.168.100.1
# setenv ncip 192.168.100.1
3 To activate Netconsole, type the following command:
# run nc
4 On the host computer, create the "my_nc" script with the following content:
#! /bin/bash
[ $# = 1 ] || { echo "Usage: $0 target_ip" >&2 ; exit 1 ; }
TARGET_IP=$1
stty -icanon -echo intr ^T
nc -u -l 6666 < /dev/null &
nc -u ${TARGET_IP} 6666
stty icanon echo intr ^C
5 On the host computer, run network console startup script.
43
AM4211
www.kontron.com

Advertisement

Table of Contents
loading

Table of Contents