|
|
5 yıl önce | |
|---|---|---|
| base-station/software | 5 yıl önce | |
| display | 5 yıl önce | |
| documentation | 5 yıl önce | |
| kicad-library | 5 yıl önce | |
| weather-sensor | 5 yıl önce | |
| .gitignore | 5 yıl önce | |
| .gitmodules | 5 yıl önce | |
| README.md | 5 yıl önce | |
| cern_ohl_w_v2.txt | 5 yıl önce | |
| gpl-3.0.md | 5 yıl önce |
This repository contains the description of a number of smart home devices as well as the source code for the corresponding firmware.
Compiling the display firmware requires a rust toolchain for ARMv6m:
rustup target add thumbv6m-none-eabi
Compiling the base station software depends on the targeted board. The following steps can be used to cross-compile the software for an ARMv7 target running Armbian from a Fedora host:
Install the toolchain:
sudo dnf copr enable lantw44/arm-linux-gnueabi-toolchain
sudo dnf install arm-linux-gnueabi-gcc.x86_64
rustup target add arm-unknown-linux-gnueabi
Configure Rust to use the ARM GCC:
cat > ~/.cargo/config <<_EOF
[target.arm-unknown-linux-gnueabi]
linker = "arm-linux-gnueabi-gcc"
rustflags = ["-Clink-args=-Wl,--dynamic-linker=/lib/ld-linux-armhf.so.3"]
_EOF
Compile the software using the newly installed toolchain:
cargo build --target=arm-unknown-linux-gnueabi
For an Ubuntu host, the following steps can be used:
Install the toolchain:
sudo apt-get install gcc-arm-linux-gnueabihf
rustup target add arm-unknown-linux-gnueabihf
Configure Rust to use the ARM GCC:
cat > ~/.cargo/config <<_EOF
[target.arm-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
_EOF
Compile the software using the newly installed toolchain:
cargo build --target=arm-unknown-linux-gnueabihf
The hardware contained in this repository is licensed under the CERN Open Hardware Licence Version 2 - Weakly Reciprocal, and the software is licensed under the GNU General Public License v3.