Project layout¶
OpenCreator spans several repositories. This page says what each one holds, where to find things inside the main ones, and how a change gets from a repository to a printer. How the parts work together on the printer is on Architecture.
| Repository | Purpose |
|---|---|
| OpenCreator | This documentation site, the project landing page and the installer downloads (its releases) |
| kalico | Creator 5 Klipper host and MCU code (Kalico) |
| opencreator-fs | Everything OpenCreator puts on the printer's data partition: startup scripts, configs, updater, MCU firmware |
| opencreator-tunnel | Tunneled Klipper: the SBC side of OpenCreator for SBC |
| opencreator-installer | The touchscreen OpenCreator Installer |
| opnecreator-kernel-test | A custom kernel test |
| Creator-5-Mods | Stock-based Legacy guides and modifications |
| Creator-5-Scripts | Printer-side scripts for the Legacy path |
How a change reaches a printer¶
flowchart LR
K["kalico<br/>(host + MCU code)"] -->|build_c5_update.py| H["opencreator-fs<br/>mcu-firmware/"]
F["opencreator-fs<br/>main branch"] -->|update manager| P["printer"]
K -->|update manager| P
H --> F
I["opencreator-installer<br/>(USB drive)"] -->|first install| P
- Installer. A USB drive does the first install. It downloads Kalico, Moonraker, the web UI and opencreator-fs during the install; only the MCU firmware package is on the drive. Releases are on the OpenCreator repository's releases page.
- opencreator-fs and Kalico. After that, the printer follows both repositories through Moonraker's update manager. The OpenCreator updater merges config changes and keeps the startup files current.
- MCU firmware. Built in Kalico, then copied into opencreator-fs, which carries it to printers.
Details: Firmware, installer and updates.
opencreator-fs¶
| Path | What |
|---|---|
fs/usr/data/ |
Mirrors the printer's /usr/data; everything below is copied there |
fs/usr/data/config/ |
The config templates: printer.cfg and its printer.*.cfg includes, moonraker.conf, AFC/, ace/, KAMP_LiTE/, grumpyscreen.cfg, the Fluidd theme |
fs/usr/data/opencreator/startup/ |
startup.sh, the numbered startup scripts in scripts/, the updater opencreator_updater.py, the user commands in commands/ (oc-switchscreen, support-zip.sh, restart-klipper.sh, restart-gui.sh, restart-wifi.sh), the login banner and USB network modules |
fs/usr/data/opencreator/firmware/ |
driver.sh (the early boot hook), firmwareExe (the launcher) and the boot progress screen |
fs/usr/data/opencreator/plugin-manager/ |
oc-plugin and the plugin catalog.json (Plugins) |
fs/usr/data/opencreator/mcu-flash/ |
oc-mcu-flash, the live MCU flasher |
fs/usr/data/opencreator/moonraker/ |
Moonraker components: sliced 3MF uploads, print cancel, the machine provider (so Moonraker can reboot and restart services on the printer), the shaper and VFA graphs |
fs/usr/data/opencreator/fluidd/ |
macros.json, the Fluidd categories for OpenCreator's macros, and the script that adds new ones to existing printers |
fs/usr/data/opencreator/tunneled/ |
tunneled.sh and oc-tunneled, the printer side of tunnel mode |
fs/usr/data/grumpyscreen/, fs/usr/data/nginx/ |
GrumpyScreen's config and languages, and the nginx config |
mcu-firmware/ |
The four board images (eBoard.hex, heaterBoard.hex, levelBoard.hex, mainBoardGD.hex), SHA256SUMS and VERSION |
kalico/ |
Extra Kalico config (printer.kalico_mpc.cfg) |
config-docs/ |
Technical notes per feature (CREATOR5_*.md, UPDATER.md, MOONRAKER_REPO.md) |
tests/ |
Python unittest tests for the macros, the updater, the plugin manager, the MCU flasher and the Moonraker components |
tools/gen-bootlogo.py |
Renders the boot progress frames (needs Pillow) |
.github/ |
The release workflow (below) |
Where each file ends up on the printer is on Printer-side layout.
Releases¶
Every push to main of opencreator-fs gets one GitHub release and tag,
numbered 0.1.x in order (0.1.0, 0.1.1, ...), however many commits the
push has. .github/workflows/release.yml runs
.github/scripts/release-per-push.sh for this. The release notes list every
change since 0.1.0, newest release first, each under its version.
A push gets no release when its newest commit has -nover or --nover in
its message as a word of its own (for example fix typo -nover). Its commits
are listed in the next release instead. --nover only works since commit
a7cc3cb; before that only -nover did. The markers -nover, --nover and
--urgent are left out of the release notes. Other branches get no releases.
Printers follow main itself, so every commit reaches them whether it got a
release or not. The release number is for tracking changes, not a separate
channel.
kalico¶
The OpenCreator fork of Kalico. Upstream Kalico is a fork of Klipper; the Creator 5 parts are added next to it:
| Path | What |
|---|---|
klippy/extras/ |
The Creator 5 host modules: creator5_toolchanger.py, mclib.py, mclib_ripple.py (VFA), stepper_resonance_tester.py, c5_motion_guard.py, c5_mcu_flash.py, c5_board_fans.py, creator5_beeper.py, creator5_remote_beeper.py, creator5_dryer.py, creator5_midi.py, ff_eddy.py, and the AFC modules (AFC*.py) |
src/c5_*.c |
The board-specific MCU code: mainboard, eBoard (including its pressure advance test), levelboard, MCLib, endstops |
scripts/build_c5_update.py |
Builds the MCU firmware: the live images for opencreator-fs and stock-style update packages |
docs/Creator5_*.md |
Notes on updates, motor tuning and ACE fallback and multiplexing |
test/ |
Tests for the board code |
What each module does is on Interfaces and MCLib and motor control.
opencreator-installer¶
| Path | What |
|---|---|
src/, include/ |
The touchscreen app (LVGL 8.3, drawn straight to the framebuffer) |
vendor/lvgl |
LVGL, a Git submodule |
scripts/install.sh |
The install backend the app runs |
scripts/make-usb.sh |
Assembles the USB drive |
payload-template/ |
The install steps: installers/soc/ and installers/tunnel/ hold short ordered wrappers; the real steps are in common/, soc/ and tunnel/ |
stock-2.0/ |
A separate USB drive that puts a printer back on FlashForge 2.0.0's firmware |
tests/ |
Shell tests for rollback, stock reset, broken Entware and app_startup.sh safety |
make builds the app, make mips32 cross-compiles it for the printer,
make sdl builds a desktop preview that only runs a demo backend, and
make usb builds the drive in dist/usb and zips it as the release asset.
On the drive, the payload lives in payload/, generated from
payload-template/; edit the template. What the steps do is on
Firmware, installer and updates.
OpenCreator (this site)¶
| Path | What |
|---|---|
docs/ |
The pages, in Markdown |
mkdocs.yml |
Site settings and the navigation |
overrides/ |
Theme overrides |
.github/workflows/docs.yml |
Builds the site on every push to main and publishes it |
.readthedocs.yaml |
The same build on Read the Docs |
How to change a page is on Contributing.
The source repository and branch should always be recorded alongside any published build or testing result. Hardware compatibility and verification status are summarized in Status and roadmap.