The embedded.tgz File
The embedded.tgz file contains the board server
software, the "data" directory, and sample configuration files.
Typically, this would be installed on
each FX12 system. This could be done by placing
its contents in "free/local/", so it would be included
in the root filesystem.
However, because VL2 is useless
without a network connection, you might also want each FX12
board to download "embedded.tgz" on bootup. This is
useful because it allows software updates to be applied to
any number of VL2 systems without needing to update the
Flash memory in each one.
This networked update
is done by the "free/local/etc/init.d/S60embedded"
script, which is executed as Linux boots.
It obtains a HTTP URL from the "/jffs2/update"
file and downloads
update.sh to /tmp/ from that location.
update.sh is then executed as a program. The sample
update.sh file in bin/ will download
embedded.tgz by HTTP, then unpack it. Finally,
S60embedded executes "embedded" to start the board server.
FX12 Board Configuration
When an FX12 board has been
correctly initialised,
the /jffs2/ directory on the FX12 board contains a persistent
filesystem implemented by Flash memory. This is used to store
system-specific configuration files. There are currently three
of these:
- econfig - board server configuration file.
This specifies (at least) the FPGA board driver to be used.
It might also specify other settings for the board server.
The default startup scripts copy it to /tmp before
running the board server. Here is a sample:
[server]
bitfile_megabytes = 4
info_text = virtual lab 2 board!
[fpga]
driver = xsvf
board_dir = data/fx12
- network - network configuration file.
This specifies the MAC address and the IP address for the
FX12, in the following format:
export MAC=00:56:4c:41:42:34
export IP=192.168.124.52
There is currently no way to specify a gateway or use DHCP.
(DHCP is not very useful since the MAC address would still
need to be specified; MAC addresses are not built into
Ethernet chipsets, they are obtained from EEPROMs
and user software.) Obviously, it is important to ensure
that there are no MAC or IP address conflicts on your network.
- update - update configuration file.
This specifies the source URL for the update.sh script
(executed at bootup). Here is an example:
export UPDATE=http://192.168.124.2/VL2/update.sh
Sample versions of all of these files can be found in the
setup/ directory of embedded.tgz. You should copy
the samples to /jffs2/, then edit them to match your
requirements. You can use the vi editor. If you don't like
vi, you can also create the files using cat, e.g.:
# cat <<EOF >econfig
[server]
bitfile_megabytes = 4
info_text = virtual lab 2 board!
[fpga]
driver = xsvf
board_dir = data/fx12
EOF
#
| |
 |
|
|
| |
Copyright (C) Jack Whitham 1997-2011
|
|