Linux driver for the MFRC522 chip, written in C and Rust
There are two solutions to build this driver:
- Using a cross compilation toolchain
- Using a docker container
If you don't have a cross compilation toolchain, run activate.sh
to download an arm toolchain.
If you already have one, don't forget to set ARCH
and CROSS_COMPILE
environment variables.
docker build . --build-arg user_id=$(id -u $USER) --build-arg user_name=$USER -t linux-build-container # or any other tag you want
You only need to build the image once, as long as you don't change anything in the Dockerfile.
docker run -it -v $PWD:/app linux-build-container # or the above tag
This will pop a shell and allow you to build linux from a Debian environment with the necessary packages.