From 4ac6abdf47dc0f1beb5d10631b23a0b8b4120666 Mon Sep 17 00:00:00 2001 From: ballaswag <145094472+ballaswag@users.noreply.github.com> Date: Fri, 21 Jun 2024 01:20:52 -0700 Subject: [PATCH] handle k1 variants --- README.md | 9 ++-- build_scripts/build.sh | 2 - device_files/install/k1mod_init.sh | 69 ++++++++++++++++-------------- submodules/klipper | 2 +- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index be58cdc..0911859 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The mod is adapted for the K1 from the great work done by the [Flashforge Mod Pr ## Feature Overview -- [Klipper](https://www.klipper3d.org/) (Currently on the BTT Eddy branch) ‒ with improved configuration and default macros +- [Klipper](https://www.klipper3d.org/) ‒ with improved configuration and default macros - [Moonraker](https://github.com/Arksine/moonraker) on port 7125 - [Mainsail](https://docs.mainsail.xyz/) on port 4000 - [Fluidd](https://docs.fluidd.xyz/) on port 4001 @@ -33,18 +33,17 @@ The mod is adapted for the K1 from the great work done by the [Flashforge Mod Pr ## Guppy Mod vs K1 Stock | Guppy Mod | Stock | |-----------|-------| -| Mainline Klipper * | Creality Klipper | +| Mainline Klipper | Creality Klipper | | Buildroot 2024 | Buildroot 2020 | | Python 3.11.8 | Python 3.8.2 | | ustreamer | mjpeg-streamer | | Guppy Screen | Creality display-server | | Open source | Source? | No bloatware | Creality services | -| More performant ** | ?? | +| More performant * | ?? | -\* Guppy Mod is using the mainline + a PR for rapid bed mesh scan. Will switch to mainline once rapid bed mesh scan is merged. -\** Python 3.11.8 is *FASTER* than 3.8.2 (Faster Klipper/Moonraker). Since Guppy Mod also do not install any bloated software, it uses significantly less memory by default. On a fresh boot, Guppy Mod shows 36% used System memory in fluidd compared to 46% used by stock. +\* Python 3.11.8 is *FASTER* than 3.8.2 (Faster Klipper/Moonraker). Since Guppy Mod also do not install any bloated software, it uses significantly less memory by default. On a fresh boot, Guppy Mod shows 36% used System memory in fluidd compared to 46% used by stock. ## Roadmap diff --git a/build_scripts/build.sh b/build_scripts/build.sh index 2a5cc54..6d3494a 100755 --- a/build_scripts/build.sh +++ b/build_scripts/build.sh @@ -174,10 +174,8 @@ package_variant() { rm -f "$br_chroot" xz -cT`nproc` "$br_image" > "$br_chroot" package_name="K1-KlipperMod-$GIT_VERSION-$variant.tgz" - package_name_pro="K1Max-KlipperMod-$GIT_VERSION-$variant.tgz" mkdir -p $BUILD_PACKAGE tar -cf "$BUILD_PACKAGE/$package_name" -C "$GIT_ROOT/device_files/install" . -C "$br_builddir/images/" ./chroot.tar.xz - cp "$BUILD_PACKAGE/$package_name" "$BUILD_PACKAGE/$package_name_pro" log_info "variant-$variant: created $package_name" } diff --git a/device_files/install/k1mod_init.sh b/device_files/install/k1mod_init.sh index 4872f6b..1281b29 100755 --- a/device_files/install/k1mod_init.sh +++ b/device_files/install/k1mod_init.sh @@ -77,41 +77,44 @@ do_setup() ############################## # which k1 are you? ############################## - PRINTER_CONF_DIR="${CHROOT_DIR}//root/printer_data/config" machine_info=$(tr -d '\0'