beautypg.com

4 setting-up dhcp server, 5 upgrading the software, 1 upgrading from uboot – Kontron AM4530 User Manual

Page 39: Upgrading from uboot

background image

26

AM453x

www.kontron.com

4.4.10.4

Setting-up DHCP Server

1 Specify the correct IP addresses in /etc/udhcpd.conf:

start 192.168.100.20

end 192.168.100.254

2 Add the pxe boot option to DHCP server configuration in /etc/udhcpd.conf:

siaddr 192.168.100.10

boot_file pxelinux.0

3 Start the DHCP server.

# /etc/init.d/dhcp-server start

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

ln -sf /etc/init.d/dhcp-server /etc/rcS.d/S50dhcp-server

4.5

Upgrading the Software

4.5.1

Upgrading from Uboot

To upgrade all components(uboot + kernel + rootfs) from Uboot, use the following commands to upgrade the
whole image (all.img is the upgrade image) when connected to a DHCP server:

dhcp

tftp $(uboot_download_addr) all.img

run all_update

run update

Use the following connands when using a static IP address (192.168.100.1 must be replaced by the tftp
server address):

setenv gatewayip 192.168.100.1

setenv serverip 192.168.100.1

tftp $(uboot_download_addr) all.img

run all_update

run update

Note:

The current SPI flash is not modified. The new file image is programmed on the other flash and after
the reset, the CPU will boot on the other flash.