|
|
# Modifying WRS firmware
|
|
|
|
|
|
This page describes how you can generate you own WRS firmware to be used
|
|
|
by the WRS PTS v1.0.
|
|
|
|
|
|
WR Switch firmware is build from 3 main repositories:
|
|
|
|
|
|
- SoftPLL LM32 firmware:
|
|
|
<git:https://www.ohwr.org/hdl-core-lib/wr-cores/wrpc-sw.git>
|
|
|
- FPGA firmware:
|
|
|
<git:https://www.ohwr.org/white-rabbit/wr-switch-hdl.git>
|
|
|
- Software package:
|
|
|
<git:https://www.ohwr.org/white-rabbit/wr-switch-sw.git>
|
|
|
|
|
|
Please follow the procedure below to clone all the above repositories
|
|
|
and build a complete WRS firmware:
|
|
|
The procedure assumes that all the repositories are fetched in
|
|
|
<your_location> directory.
|
|
|
|
|
|
1\. Clone SoftPLL LM32 firmware repository and use branch
|
|
|
*wrs-pts-v1.0*:
|
|
|
|
|
|
$ git clone git:https://www.ohwr.org/hdl-core-lib/wr-cores/wrpc-sw.git
|
|
|
$ cd wrpc-sw
|
|
|
$ git checkout wrs-pts-v1.0
|
|
|
$ git submodule init
|
|
|
$ git submodule update
|
|
|
|
|
|
2\. Load default configuration for WRS SoftPLL firmware:
|
|
|
|
|
|
$ make wr_switch_defconfig
|
|
|
|
|
|
3.Modify the source code according to your needs
|
|
|
|
|
|
4\. Compile
|
|
|
|
|
|
$ make
|
|
|
|
|
|
5\. At this stage, if your compilation was successful, *rt\_cpu.elf*
|
|
|
file was created.
|
|
|
|