... | ... | @@ -4,35 +4,27 @@ This page shows how to get started with the ExpressMIMO2 family of cards. |
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
Before compiling you need to set `OPENAIRx_DIR` to the root directory
|
|
|
of `openairx`, see the file `oaienv` in the top director of OAI or do something like:
|
|
|
Before everything else, you should check that Linux has properly identified the card by typing:
|
|
|
|
|
|
Set `OPENAIR_HOME` variable and export the following:
|
|
|
```shell lspci```
|
|
|
|
|
|
```shell
|
|
|
export OPENAIR1_DIR=$OPENAIR_HOME/openair1
|
|
|
export OPENAIR2_DIR=$OPENAIR_HOME/openair2
|
|
|
export OPENAIR3_DIR=$OPENAIR_HOME/openair3
|
|
|
export OPENAIR_TARGETS=$OPENAIR_HOME/targets/
|
|
|
```
|
|
|
You should see something like:
|
|
|
|
|
|
Also, you should check that Linux has properly identified the card by doing:
|
|
|
`01:00.0 Signal processing controller: Xilinx Corporation Default PCIe endpoint ID`
|
|
|
|
|
|
```shell
|
|
|
lspci
|
|
|
```
|
|
|
If not, please check that you have inserted the card correctly in a PIC gen2 slot; that the two orange LEDs on the card are on; and that the green LEDs are "dancing".
|
|
|
|
|
|
You should see something like:
|
|
|
## Compilation
|
|
|
|
|
|
`01:00.0 Signal processing controller: Xilinx Corporation Default PCIe endpoint ID`
|
|
|
All necessary utilities (kernel module, updatefw tool) are compiled automatically using the build script, as long as you specify the hardware using the -w EXMIMO option. The build script should also place the script `init_exmimo2.sh` which loads the driver and initializes the firmware into the directory targets/bin
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
## Scripts
|
|
|
To initialize the card just run `init_exmimo2.sh` from targets/bin. Use `dmesg` to check that the card is operational. You should see the message
|
|
|
|
|
|
Everything can also be compiled comfortably from the directory `$OPENAIR_TARGETS/RT/USER`
|
|
|
using `make drivers`. There is a script `init_exmimo2.sh` which loads the driver and
|
|
|
initializes the firmware after auto-detecting the version of the card.
|
|
|
`[LEON card0]: ready`.
|
|
|
|
|
|
## To compile Openair kernel modules yourself
|
|
|
## To compile Openair kernel modules manually (for information only)
|
|
|
|
|
|
To operate the ExpressMIMO2 cards, you need one hardware driver (linux kernel module).
|
|
|
This driver is located in `$OPENAIR_TARGETS/ARCH/EXMIMO/DRIVER/eurecom`. RTAI is no
|
... | ... | |