1 setting-up a static ip address, 2 setting-up tftp server, 3 setting-up syslinux – Kontron AM4530 User Manual

Page 38

Advertising
background image

25

AM453x

www.kontron.com

4.4.10.1

Setting-up a Static IP Address

Set the correct values for the 'IPADDR' and 'NETMASK' variables in the /etc/ifcfg-eth0 file and make sure
'BOOTPROTO' is set to 'static'.

DEVICE=eth0

IPADDR=192.168.100.10

NETMASK=255.255.255.0

BOOTPROTO=static

ONBOOT=yes

4.4.10.2

Setting-up TFTP Server

1 Mount a HDD folder to /tftpboot.

# mkdir /mnt/disk/

# mount /dev/sda1 /mnt/disk

# mount --bind /mnt/disk /tftpboot

Or use the following commands to make sure this is done automatically during boot.

# mkdir /mnt/disk/

# echo "/dev/sda1 /mnt/disk ext3 defaults 0 0" >> /etc/fstab

# echo "/mnt/disk /tftpboot none bind 0 0" >> /etc/fstab

2 Start the inet daemon.

# /etc/init.d/inet-daemon start

Or use the following commands to make sure this is done automatically during boot.

ln -sf /etc/init.d/inet-daemon /etc/rcS.d/S50inet-daemon

4.4.10.3

Setting-up Syslinux

1 Copy the file “pxelinux.0” into the TFTP server directory /tftpboot and copy any kernel or initrd images

that you want to boot in this directory.

2 Create the directory /tftpboot/pxelinux.cfg (and make it world readable).

# mkdir /tftpboot/pxelinux.cfg

3 Create a file "default" and then add the pxelinux configuration in/tftpboot/pxelinux.cfg/default:

prompt 1

default linux

timeout 100

label linux

kernel vmlinuz

append initrd=initrd.img [Add Linux kernel parameters]

Advertising