2020-06-07 16:49:03 +02:00
|
|
|
# The Ardix Kernel
|
|
|
|
|
|
|
|
This is the source tree of Ardix, a microkernel for various Arduino boards that implements some core
|
|
|
|
concepts of the Unix philosophy. Please note that this project is not affiliated with or endorsed
|
2020-06-12 00:36:13 +02:00
|
|
|
by Arduino s.r.l. in any way. Only ARM-based boards are supported at the moment.
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2021-02-28 02:18:39 +01:00
|
|
|
Copyright (c) 2020, 2021 Felix Kopp <owo@fef.moe>.
|
|
|
|
|
2021-05-10 16:19:38 +02:00
|
|
|
Ardix is non-violent software: you may only use, redistribute,
|
|
|
|
and/or modify it under the terms of the CNPLv6+ as found in
|
|
|
|
the LICENSE file in the source code root directory or at
|
|
|
|
<https://git.pixie.town/thufie/CNPL>.
|
|
|
|
|
|
|
|
Ardix comes with ABSOLUTELY NO WARRANTY, to the extent
|
|
|
|
permitted by applicable law. See the CNPLv6+ for details.
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
## Compiling
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
2020-06-12 00:36:13 +02:00
|
|
|
- The GNU toolchain, including
|
|
|
|
* `arm-gcc`
|
|
|
|
* `arm-ld`
|
|
|
|
* `arm-objcopy`
|
2021-07-31 19:39:51 +02:00
|
|
|
- CMake >= 3.14
|
2020-06-12 00:36:13 +02:00
|
|
|
- A programmer (`bossac` recommended)
|
2020-06-07 16:49:03 +02:00
|
|
|
- A Unix-like shell (sorry Microsoft lackeys, you can use the Windows Subsystem for Linux for
|
2020-06-12 00:36:13 +02:00
|
|
|
compiling but probably not for flashing)
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
### Configuration
|
|
|
|
|
2021-07-31 19:39:51 +02:00
|
|
|
Configuration is done with the standard CMake config system.
|
|
|
|
The following options are available:
|
2020-06-07 16:49:03 +02:00
|
|
|
|
2021-07-31 19:39:51 +02:00
|
|
|
- `TOOLCHAIN_PATH`: Path where the compiler toolchain is located.
|
|
|
|
Defaults to `/usr/bin`.
|
|
|
|
- `ARCH`: Codename for the target architecture.
|
2020-06-07 16:49:03 +02:00
|
|
|
The following architectures are currently supported:
|
2020-06-10 16:51:55 +02:00
|
|
|
* `at91sam3x8e` (Arduino Due)
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
### Build
|
|
|
|
|
2020-06-12 00:36:13 +02:00
|
|
|
To build the EEPROM image, execute the following command:
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
```shell
|
|
|
|
# Replace <target> with one of the target architectures from the list above
|
2021-07-31 19:39:51 +02:00
|
|
|
cmake -DARCH=<arch> -B build -S .
|
|
|
|
cmake --build build
|
2020-06-07 16:49:03 +02:00
|
|
|
```
|
|
|
|
|
2021-07-31 19:39:51 +02:00
|
|
|
This will create `ardix.bin` in the `build` directory, which can be passed to `bossac` for flashing.
|
2020-06-12 00:36:13 +02:00
|
|
|
If you are using an Arduino DUE (at91sam3x8e), make sure to connect the USB cable to the programmer
|
|
|
|
port (the one closer to the power jack).
|
2020-06-07 16:49:03 +02:00
|
|
|
|
|
|
|
```shell
|
2020-06-12 00:36:13 +02:00
|
|
|
# Replace <tty> with the name of the tty device in /dev
|
|
|
|
# that is connected to your Arduino
|
2021-07-31 19:39:51 +02:00
|
|
|
bossac -e -w -v -b -a --port=<tty> build/ardix.bin
|
2020-06-07 16:49:03 +02:00
|
|
|
```
|
|
|
|
|
2020-06-12 00:36:13 +02:00
|
|
|
Please refer to `bossac --help` for more information on how to use it.
|