User Guide

Emcraft Systems
Linux version 2.6.33-arm1 (vlad@ocean.emcraft.com) (gcc version 4.4.1 (Sourcery G++ Lite
2010q1-189) ) #1 Fri Dec 06 15:43:44 MSK 2013
...
To load the image into the Flash, use the U-Boot update macro:
M2S-FG484-SOM> setenv image vlad/networking.uImage
M2S-FG484-SOM> run update
...
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)
16384 KiB S25FL128S_64K at 0:0 is now current device
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
M2S-FG484-SOM>
Reset the board and verify that the newly programmed image boots on the target in the
autoboot mode:
M2S-FG484-SOM> reset
resetting ...
U-Boot 2010.03-linux-cortexm-1.12.0 (Dec 06 2013 - 17:19:37)
...
Starting kernel ...
...
init started: BusyBox v1.17.0 (Dec 06 2013 - 17:19:37)
~ #
5.6. U-Boot Build
The BSP distribution comes with U-Boot pre-built for the M2S-FG484 SOM board. If however
you need to re-build U-Boot for your board, please follow the instructions below:
1. Install the Linux SmartFusion2 distribution to the development host, as described in the
Linux Cortex-M User's Manual.
2. From the top of the Linux SmartFusion2 installation, activate the Linux SmartFusion2
cross-compile environment by running . ACTIVATE.sh.
3. Go to the U-Boot source directory (cd u-boot/).
4. Run the following commands:
[psl@pvr u-boot]$ make m2s-fg484-som_config
Configuring for m2s-fg484-som board...
[psl@pvr u-boot]$ make -s
[psl@pvr u-boot]$ make -s u-boot.hex
5.7. U-Boot Installation
The Emcraft Systems M2S-FG484 SOM board arrives with the U-Boot firmware pre-installed
into the on-chip Flash of the SmartFusion2. The U-Boot command line interface provides
commands that allow upgrading U-Boot on the running target in self-upgrade mode.
However, should you program a faulty U-Boot image into SmartFusion2, U-Boot can be re-
installed using the Emcraft-provided Linux SmartFusion2 Libero project and a Microsemi
FlashPro tool.
Here is an example of how this can be done:
Linux SmartFusion2 10/11 Release 1.12.0
Emcraft Systems M2S-FG484 SOM Starter Kit Guide