From 5334fb0eb78f836cce64e4f38eac3970639b88c1 Mon Sep 17 00:00:00 2001 From: Dark98 Date: Sat, 10 Oct 2026 01:56:43 +0000 Subject: [PATCH] refactor(assets): relocate stock CrealityOS baseline images to assets/ --- .gitignore | 6 +++--- FIRMWARE_NOTES.md | 4 ++-- README.md | 14 +++++++------- .../Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img | Bin .../NEBULA_ota_img_V1.1.0.30.img | Bin build_rosetteos_image.sh | 14 ++++++++++---- 6 files changed, 22 insertions(+), 16 deletions(-) rename Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img => assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img (100%) rename NEBULA_ota_img_V1.1.0.30.img => assets/NEBULA_ota_img_V1.1.0.30.img (100%) diff --git a/.gitignore b/.gitignore index 5fcc5ec..8e92f59 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ # Build output /build/ -# Firmware images (allow tracked official stock baselines) +# Firmware images (allow tracked official stock baselines in assets/) *.img -!Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img -!NEBULA_ota_img_V1.1.0.30.img +!assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img +!assets/NEBULA_ota_img_V1.1.0.30.img # Python cache & temporary files __pycache__/ diff --git a/FIRMWARE_NOTES.md b/FIRMWARE_NOTES.md index b516857..c0abf4d 100644 --- a/FIRMWARE_NOTES.md +++ b/FIRMWARE_NOTES.md @@ -8,8 +8,8 @@ This document contains technical reference information on stock firmware layouts | Target | Official Baseline Image | Version | Board Name | Derived 7z Encryption Password | | :--- | :--- | :--- | :--- | :--- | -| **Ender-3 V3 KE** | `Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img` | `V1.1.0.17` | `F005` | `$1$cxswfile$ZFd0RWFYkJQugbtKVGL9y0` | -| **Nebula Pad** | `NEBULA_ota_img_V1.1.0.30.img` | `V1.1.0.30` | `NEBULA` | `$1$cxswfile$XG7ANbYX3bq2H2xmmwrka.` | +| **Ender-3 V3 KE** | `assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img` | `V1.1.0.17` | `F005` | `$1$cxswfile$ZFd0RWFYkJQugbtKVGL9y0` | +| **Nebula Pad** | `assets/NEBULA_ota_img_V1.1.0.30.img` | `V1.1.0.30` | `NEBULA` | `$1$cxswfile$XG7ANbYX3bq2H2xmmwrka.` | ### Password Derivation Algorithm ```bash diff --git a/README.md b/README.md index 2a07ddb..8421586 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ This enables a **zero-disassembly, single-USB installation of RosetteOS straight | Device | Board Identifier | Official Stock Baseline | Generated OTA Installer Package | | :--- | :--- | :--- | :--- | -| **Creality Ender-3 V3 KE** | `F005` | `Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img` | [`build/Ender-3_V3_KE_F005_ota_img_V1.1.0.34.img`](build/Ender-3_V3_KE_F005_ota_img_V1.1.0.34.img) | -| **Creality Nebula Pad** | `NEBULA` | `NEBULA_ota_img_V1.1.0.30.img` | [`build/NEBULA_ota_img_V1.1.0.34.img`](build/NEBULA_ota_img_V1.1.0.34.img) | +| **Creality Ender-3 V3 KE** | `F005` | [`assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img`](assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img) | [`build/Ender-3_V3_KE_F005_ota_img_V1.1.0.34.img`](build/Ender-3_V3_KE_F005_ota_img_V1.1.0.34.img) | +| **Creality Nebula Pad** | `NEBULA` | [`assets/NEBULA_ota_img_V1.1.0.30.img`](assets/NEBULA_ota_img_V1.1.0.30.img) | [`build/NEBULA_ota_img_V1.1.0.34.img`](build/NEBULA_ota_img_V1.1.0.34.img) | --- @@ -124,14 +124,14 @@ For in-depth architectural and developer documentation: ``` DarKE/ -├── Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img # Stock CrealityOS baseline for Ender-3 V3 KE (F005) -├── NEBULA_ota_img_V1.1.0.30.img # Stock CrealityOS baseline for Nebula Pad (NEBULA) -├── build_rosetteos_image.sh # Automated build wrapper script +├── build_rosetteos_image.sh # Automated build wrapper script ├── README.md # Workspace overview & quickstart ├── FIRMWARE_NOTES.md # Architecture notes & encryption keys ├── FIRMWARE_CHANGELOG.md # Version changelog & release milestones ├── requirements.txt # Python dependencies (`py7zr`) -├── assets/ # Standalone RTOS binaries +├── assets/ # Vendor baseline images & RTOS binaries +│ ├── Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img # Stock CrealityOS baseline for Ender-3 V3 KE (F005) +│ ├── NEBULA_ota_img_V1.1.0.30.img # Stock CrealityOS baseline for Nebula Pad (NEBULA) │ ├── zero.bin # Stock RTOS for Ender-3 V3 KE (F005) │ └── zero_nebula.bin # Stock RTOS for Nebula Pad (NEBULA) ├── docs/ # In-depth technical documentation @@ -139,7 +139,7 @@ DarKE/ │ ├── A_B_PARTITION_MODEL.md # GPT partition layout & slot mechanics │ └── TROUBLESHOOTING.md # USB diagnostics & common issues ├── tools/ -│ └── pack_rosetteos.py # RosetteOS stock OTA packager +│ └── pack_rosetteos.py # RosetteOS stock OTA packager └── build/ # Generated OTA installer images ├── Ender-3_V3_KE_F005_ota_img_V1.1.0.34.img └── NEBULA_ota_img_V1.1.0.34.img diff --git a/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img b/assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img similarity index 100% rename from Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img rename to assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img diff --git a/NEBULA_ota_img_V1.1.0.30.img b/assets/NEBULA_ota_img_V1.1.0.30.img similarity index 100% rename from NEBULA_ota_img_V1.1.0.30.img rename to assets/NEBULA_ota_img_V1.1.0.30.img diff --git a/build_rosetteos_image.sh b/build_rosetteos_image.sh index 5117b66..7d43353 100755 --- a/build_rosetteos_image.sh +++ b/build_rosetteos_image.sh @@ -98,16 +98,22 @@ fi # Ensure assets are present mkdir -p "${SCRIPT_DIR}/assets" -if [[ ! -f "${SCRIPT_DIR}/assets/zero.bin" && -f "${SCRIPT_DIR}/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img" ]]; then +KE_STOCK_IMG="${SCRIPT_DIR}/assets/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img" +[[ ! -f "${KE_STOCK_IMG}" && -f "${SCRIPT_DIR}/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img" ]] && KE_STOCK_IMG="${SCRIPT_DIR}/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img" + +if [[ ! -f "${SCRIPT_DIR}/assets/zero.bin" && -f "${KE_STOCK_IMG}" ]]; then echo "[*] Extracting assets/zero.bin from KE stock image..." - 7z e -p'$1$cxswfile$ZFd0RWFYkJQugbtKVGL9y0' -r "${SCRIPT_DIR}/Ender-3_V3_KE_F005_ota_img_V1.1.0.17.img" 'zero.bin*' -o"${SCRIPT_DIR}/assets" -y >/dev/null + 7z e -p'$1$cxswfile$ZFd0RWFYkJQugbtKVGL9y0' -r "${KE_STOCK_IMG}" 'zero.bin*' -o"${SCRIPT_DIR}/assets" -y >/dev/null cp "${SCRIPT_DIR}/assets/zero.bin.0000."* "${SCRIPT_DIR}/assets/zero.bin" 2>/dev/null || true rm -f "${SCRIPT_DIR}/assets/zero.bin.0000."* fi -if [[ ! -f "${SCRIPT_DIR}/assets/zero_nebula.bin" && -f "${SCRIPT_DIR}/NEBULA_ota_img_V1.1.0.30.img" ]]; then +NEBULA_STOCK_IMG="${SCRIPT_DIR}/assets/NEBULA_ota_img_V1.1.0.30.img" +[[ ! -f "${NEBULA_STOCK_IMG}" && -f "${SCRIPT_DIR}/NEBULA_ota_img_V1.1.0.30.img" ]] && NEBULA_STOCK_IMG="${SCRIPT_DIR}/NEBULA_ota_img_V1.1.0.30.img" + +if [[ ! -f "${SCRIPT_DIR}/assets/zero_nebula.bin" && -f "${NEBULA_STOCK_IMG}" ]]; then echo "[*] Extracting assets/zero_nebula.bin from Nebula stock image..." - 7z e -p'$1$cxswfile$XG7ANbYX3bq2H2xmmwrka.' -r "${SCRIPT_DIR}/NEBULA_ota_img_V1.1.0.30.img" 'zero.bin*' -o"${SCRIPT_DIR}/assets" -y >/dev/null + 7z e -p'$1$cxswfile$XG7ANbYX3bq2H2xmmwrka.' -r "${NEBULA_STOCK_IMG}" 'zero.bin*' -o"${SCRIPT_DIR}/assets" -y >/dev/null cp "${SCRIPT_DIR}/assets/zero.bin.0000."* "${SCRIPT_DIR}/assets/zero_nebula.bin" 2>/dev/null || true rm -f "${SCRIPT_DIR}/assets/zero.bin.0000."* fi