9 setting-up netconsole, 10 setting-up a pxe boot server, Setting-up netconsole – Kontron AM4530 User Manual
Page 37: Setting-up a pxe boot server

24
www.kontron.com
4.4.9
Setting-Up NetConsole
To setup the NetConsole on the AM4530, follow the procedure below:
1 Run U-boot and enter the monitor shell.
2 Setup the network environment variables. Below is an example :
LOCAL IP
# setenv ipaddr 192.168.100.10
# setenv netmask 255.255.255.0
HOST IP
# setenv gatewayip 192.168.100.50
# setenv serverip 192.168.100.50
# setenv ncip 192.168.100.50
3 The following command must be typed to activate NetConsole.
# run nc
4 On the host computer, create a script called "my_nc".
#! /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 the network console startup script.
# ./my_nc 192.168.100.10
4.4.10 Setting-Up a PXE Boot Server
This section explains how to setup a PXE boot server for Linux. It should only be used as an example. Useful
files can be found into the folder /usr/pxeboot. The following elements must be configured:
1 Static IP Address
2 TFTP server
3 Syslinux
4 DHCP Server