mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Update how to setup oai with lmsdr
@@ -36,14 +36,73 @@ sudo apt-get update
|
||||
sudo apt-get install limesuite liblimesuite liblimesuite-dev limesuite-udev limesuite-images
|
||||
sudo apt-get install soapysdr soapysdr-module-lms7
|
||||
```
|
||||
For more information, have a look at [Lime Suite](https://wiki.myriadrf.org/Lime_Suite)
|
||||
For more information, have a look at [Lime Suite](https://wiki.myriadrf.org/Lime_Suite), `git clone https://github.com/myriadrf/LimeSuite`, and read the following file: LimeSuite/docs/lms7suite_compilation_guide.pdf
|
||||
|
||||
To install from source, follow the instructions [here](
|
||||
https://open-cells.com/index.php/2017/05/10/limesdr-installation/) by [open-cells] (https://open-cells.com):
|
||||
|
||||
1. Required packages
|
||||
|
||||
```
|
||||
sudo apt-get install cmake g++ libpython-dev python-numpy swig git libsqlite3-dev libi2c-dev libusb-1.0-0-dev libwxgtk3.0-dev freeglut3-dev
|
||||
```
|
||||
|
||||
1. SoapySDR
|
||||
|
||||
```
|
||||
git clone https://github.com/pothosware/SoapySDR.git
|
||||
cd SoapySDR
|
||||
git pull origin master
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
make -j4
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
```
|
||||
|
||||
1. LimeSDR
|
||||
|
||||
```
|
||||
git clone https://github.com/myriadrf/LimeSuite.git
|
||||
cd LimeSuite
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
make -j4
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
cd ../udev-rules/
|
||||
sudo ./install.sh
|
||||
# Download board firmware
|
||||
sudo LimeUtil --update
|
||||
```
|
||||
## Update FX3 firmware and FPGA
|
||||
|
||||
### Flashing FX3
|
||||
We used the firmware version 1.4. To flash the firmware and FPGA image, you need to install [cypress-fx3-sdk-linux](https://github.com/nickdademo/cypress-fx3-sdk-linux/tree/master/util/cyusb_linux_1.0.4) following the README file instructions.
|
||||
The most recent version of LimeSDR-USB FX3 firmware can be found at [GitHub](https://github.com/myriadrf/LimeSDR-USB_FX3). To update, follow the steps below:
|
||||
|
||||
1. Power OFF the board
|
||||
2. Remove FX3 BOOT jumper
|
||||
3. Power ON the board
|
||||
4. Put on FX3 BOOT jumper
|
||||
5. Start cyusb_linux
|
||||
6. Select device from the “List of devices”
|
||||
7. Go to 'Program' tab, select 'FX3' and 'RAM'
|
||||
8. Select image “firmware/CyBootProgrammer.img” and press start download
|
||||
9. Select SPI Flash
|
||||
10. Select image “firmware/limesdr-usb_1.2.img” and press start download
|
||||
11. When programming finishes, close cyusb_linux and power cycle the board
|
||||
|
||||
### Update FPGA
|
||||
This step requires LimeSuiteGUI. There is version for Windows, for Linux, follow the instructions here: LimeSuite/docs/lms7suite_compilation_guide.pdf. The most recent version of LimeSDR-USB FPGA bitstream can be fount at [GitHub](https://github.com/myriadrf/LimeSDR-USB_GW). To update, follow the steps below:
|
||||
|
||||
1. Start LimeSuiteGUI: `sudo LimeSuiteGUI`
|
||||
2. Navigate to Modules->Programming
|
||||
3. Press Open and select file: “firmware/LimeSDR-USB_lms7_trx.rbf”
|
||||
4. Select 'Altera FPGA' and 'Bitstream to Flash'
|
||||
5. Press 'Program' and wait
|
||||
6. When programing finishes power cycle the board
|
||||
|
||||
## How to compile and run
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user