A portable EV3RT compiler. No need to install all those dependencies for compilation.
Supports the TOPPERS/HRP2
and TOPPERS/HRP3
kernel.
You need the following software to be installed:
- Docker
- git
Clone this repository:
$ git clone https://github.com/Binozo/Portable-EV3RT-Compiler
$ cd Portable-EV3RT-Compiler
Pull the compiler: (Please choose one compiler, either the hrp2
or hrp3
one)
$ docker pull ghcr.io/binozo/portable-ev3rt-compiler:hrp2
$ docker pull ghcr.io/binozo/portable-ev3rt-compiler:hrp3
or build it yourself:
$ docker build -f compiler/Dockerfile -t ghcr.io/binozo/portable-ev3rt-compiler:hrp2 .
$ docker build -f compiler/Dockerfile -t ghcr.io/binozo/portable-ev3rt-compiler:hrp3 .
You can skip this if you already have EV3RT installed on your EV3.
Run the following command to generate the necessary uImage
bootable system image: (Choose one)
$ git clone https://github.com/ev3rt-git/ev3rt-hrp2 compiler/build
$ cd compiler/build && git submodule init && git submodule update && cd ../..
$ docker run -v $PWD/compiler/build:/src/ ghcr.io/binozo/portable-ev3rt-compiler:hrp2 /bin/bash -c "cd cfg;make"
$ docker run -v $PWD/compiler/build:/src/ --rm --env APP=loader --env DIR=base-workspace --name portable-ev3rt-compiler ghcr.io/binozo/portable-ev3rt-compiler:hrp2
Your uImage
will be in compiler/build/base-workspace/
.
$ git clone https://github.com/ev3rt-git/ev3rt-hrp3 compiler/build
$ cd compiler/build && git submodule init && git submodule update && cd ../..
$ docker run -v $PWD/compiler/build:/src/ --rm --env IMG=loader --env DIR=sdk/firmware --name portable-ev3rt-compiler ghcr.io/binozo/portable-ev3rt-compiler:hrp3
Your uImage
will be in compiler/build/sdk/firmware/
.
Now copy the generated uImage
in a newly fat32 flashed SD card in the root directory.
Now insert the SD card into your EV3 and try to boot.
As an example, we compile the helloev3
sample project from the compiler/build/sdk/workspace
directory.
Compile with HRP2:
$ docker run -v $PWD/compiler/build:/src/ --rm --env APP=helloev3 --name portable-ev3rt-compiler ghcr.io/binozo/portable-ev3rt-compiler:hrp2
Or compile with HRP3:
$ docker run -v $PWD/compiler/build:/src/ --rm --env APP=helloev3 --name portable-ev3rt-compiler ghcr.io/binozo/portable-ev3rt-compiler:hrp3
Now copy the built compiler/build/sdk/workspace/app
file into the ev3rt/apps
directory of your SD card. (Create the apps
directory yourself if missing)
Or proceed with this way:
- Connect the EV3RT running EV3 with your computer via usb.
- Place the EV3RT app into the
ev3rt/apps/
folder. - Disconnect the usb cable
- Click
Load App
andSD Card
on the EV3