README.md 2.37 KB
Newer Older
1
2
3
4
5
6
7
8

The setup required to make this sample application work, involves
connecting your GR740 board to a Linux machine via Ethernet.
This could mean a direct connection via a cross-over cable,
or a more normal setup involving an Ethernet switch.

Things to do first:

9
## GR740 board setup
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
If you check the [GR740 board's user manual](https://www.gaisler.com/doc/gr740/GR-CPCI-GR740-UM.pdf),
you will see that on page 17, Figure 4-8, there's a diagram indicating that the
ETH1 interface is only connected if J22 is connected. Note that connector J22
exists at the bottom side of the PCB - so flip your GR740 and look at the PCB:
if you see the same picture as that shown in Figure 4-9, you must move the
configuration plug to the middle location (J22).

After that, you can power up the board and connect it with the Linux machine via
an Ethernet cable plugged-in **at the bottom right Ethernet jack** (looking at the
board face-front).

## Linux ethernet configuration

On your Linux machine - the one that will run the `binaries/x86_partition` - you
need to make sure that the network configuration mirrors the values input in
the DeploymentView:
27
28
29
30
31
32

    $ grep 192 DeploymentView.aadl
    Deployment::Configuration => "{devname ""eth1"", address ""192.168.0.151"", port 5116 }";
    Deployment::Configuration => "{devname ""greth1"", address ""192.168.0.42"",
      gateway ""192.168.0.1"", netmask ""255.255.255.0"", version ipv4, port 5118 }";
 
33
34
Put simply, the default configuration assumes that in your Linux machine, there's
a second Ethernet interface (`eth1`) that has the IP address 192.168.0.151:
35
36
37

    $ sudo ifconfig eth1 192.168.0.151 up

38
39
40
41
42
43
44
45
46
If you use a different configuration, edit this line in the DeploymentView AADL
file and change it to mirror yours. You can change the 192.168.0.151 - but you must
stay in the 192.168.0.x subnet.

The reason for that is because you can't change the 192.168.0.42 address of the
GR740 side of the Ethernet setup. This address is currently hardcoded in the
PolyORB Ethernet driver.  The PolyORB team is investigating ways to improve
this; in older versions of RTEMS it was possible to modify the IP address after
bootstrapping, but in RTEMS5.1 apparently this is not possible anymore. 
47

48
## Build and run
49

50
51
52
That should do it - you should be able to launch the compiled `x86_partition`
in your Linux machine, and then the `gr740_partition` in your GR740's GRMON;
and see it all work.