User Guide

Emcraft Systems
5.3. Network Configuration
You will have to update the network configuration of your board to match settings of your
local environment.
Typically, all you have to allow loading images over network from a TFTP server is update
the U-Boot environment variables ipaddr (the board IP address) and serverip (the IP
address of the TFTP server). Here is how it is done.
Update ipaddr and serverip:
M2S-FG484-SOM> setenv ipaddr 192.168.0.2
M2S-FG484-SOM> setenv serverip 192.168.0.1
and then save the updated environment to the external Flash so that your changes are
persistent across resets/power cycles.
5.4. Running Pre-installed Linux Image
The M2S-FG484 SOM board comes with a Linux bootable image for the networking project
installed into external Flash. To boot this Linux configuration onto the M2S-FG484 SOM board
just reset the board and let U-Boot perform the autoboot sequence.
Detailed information on functionality of the pre-installed Linux image can be found in Linux
Cortex-M User's Manual, Section 3.
5.5. Loading Linux Images
At this point, you are able to load Linux bootable images to the board over TFTP and either
boot them directly or install them to the external Flash to allow booting Linux from Flash on
power-up/reset.
On the host, activate the Linux SmartFusion2 development environment and build the
networking project:
-bash-3.2$ . ACTIVATE.sh
-bash-3.2$ cd projects/networking/
-bash-3.2$ make
...
-bash-3.2$
Copy the Linux bootable image to the TFTP download directory:
-bash-3.2$ cp networking.uImage /tftpboot/vlad/
-bash-3.2$
To load the image directly, use the netboot U-Boot macro:
M2S-FG484-SOM> setenv image vlad/networking.uImage
M2S-FG484-SOM> run netboot
...
TFTP from server 172.17.0.1; our IP address is 172.17.5.100
Filename 'vlad/networking.uImage'.
...
Loading: #################################################################
#################################################################
#############
done
Bytes transferred = 2084704 (1fcf60 hex)
...
Image Name: Linux-2.6.33-arm1
Image Type: ARM Linux Kernel Image (uncompressed)
...
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux SmartFusion2 9/11 Release 1.12.0
Emcraft Systems M2S-FG484 SOM Starter Kit Guide