U-Boot Configuration
For loading the kernel and rootfile system over the network, the U-Boot Configurations needs to be correctly set to match that of the TFTP and NFS servers. Refer to Host Setup for more details on setting up the Host System.
serverip
This should be the IP Addres of the Host which is running TFTP and NFS servers.
setenv serverip 192.168.1.2
kernel
This should point to the kernel image stored within the TFTP server directory. Since our kernel image is being stored in /tftpboot/boot/uImage, we nedd to provide the full path excluding the toplevel TFTP directory as shown below:
setenv kernel boot/uImage
nfsroot
This should point to the root filesystem directory as configured in Host Setup.
setenv nfsroot /opt/poky/1.3/sysroots/cpu_3xx-poky-linux-gnueabi
Saving the Environment setting
The environment settings need to be saved otherwise they will be lost if the device is rebooted. Use the following command to save the environment settings.
saveenv
There are two methods to load the kernel and root filesystem based on how the IP Address of the target is assigned and they are described below.
-
Using DHCP
To get the IP Address using DHCP run the following command.
setenv autoload no; dhcp;
Wait for it to get a valid address. Once the IP address has been assigned run the following command to load the kernel and root filesystem over the network.
run bootcmd_net
Using Static IP Address
Set the appropriate static IP Address using
setenv ipaddr 192.168.1.10
Set the appropriate subnet mask using
setenv netmask 255.255.255.0
If you want to save the IP address and netmask setting run the following command
saveenv
Load the kernel and root filesystem over the network using
run bootcmd_net