feat(rebrand): rename firmware installer and packager for RosetteOS

This commit is contained in:
Dark98 committed 2026-10-10 01:52:12 +00:00
1 parent 666a0726d3
commit 9640fb5da5
8 files changed
+74 -74

No files matched your search

+6 -6
View File
@@ -8,7 +8,7 @@ This document details the eMMC physical partition layout, the hardware A/B slot
The onboard eMMC is partitioned with a standard GPT partition table:
| Partition | Label | Fixed Capacity | Mount / Role | Active Slot 1 (Stock) | Active Slot 2 (OpenKE) |
| Partition | Label | Fixed Capacity | Mount / Role | Active Slot 1 (Stock) | Active Slot 2 (RosetteOS) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| `/dev/mmcblk0p1` | `ota` | **1 MiB** | Boot marker storage | Stores `ota:kernel` or `ota:kernel2` | Shared |
| `/dev/mmcblk0p2` | `sn_mac` | **1 MiB** | Factory serial & MAC addresses | Read-only identity | Shared |
@@ -28,7 +28,7 @@ The onboard eMMC is partitioned with a standard GPT partition table:
The bootloader (U-Boot) reads the 1 MiB `ota` partition (`/dev/mmcblk0p1`) on power-up to decide which kernel and rootfs to mount. The partition contains a simple ASCII string:
* `ota:kernel` $\rightarrow$ Boots **Slot 1** (Stock CrealityOS: kernel `p5`, rootfs `p7`).
* `ota:kernel2` $\rightarrow$ Boots **Slot 2** (Custom / OpenKE: kernel `p6`, rootfs `p8`).
* `ota:kernel2` $\rightarrow$ Boots **Slot 2** (Custom / RosetteOS: kernel `p6`, rootfs `p8`).
### How Stock OTA Updater Flashes to Slot 2
@@ -39,7 +39,7 @@ When you run a USB update from the stock Creality touchscreen:
- Flashes `rootfs.squashfs` to `rootfs2` (`mmcblk0p8`).
- Flashes `zero.bin` to `rtos2` (`mmcblk0p4`).
3. Calls `local_set_next_boot_device`, which writes `ota:kernel2` into `mmcblk0p1`.
4. Reboots into OpenKE.
4. Reboots into RosetteOS.
> [!NOTE]
> Stock firmware in Slot 1 (`mmcblk0p5` and `mmcblk0p7`) is **never overwritten** by this process.
@@ -55,14 +55,14 @@ When you run a USB update from the stock Creality touchscreen:
├── creality/ # Stock CrealityOS files (gcode, logs, userdata, factory data)
│ ├── userdata/
│ └── printer_data/
└── openke/ # OpenKE isolated runtime
└── rosetteos/ # RosetteOS isolated runtime
├── apps/ # Mutable checkouts (klipper, moonraker, mainsail)
├── envs/ # Python virtual environments
├── system/ # Boot logs, activation state, machine configs
└── printer_data/ # Klipper config (printer.cfg), macros, Moonraker DB
```
Because OpenKE namespaces all its data under `/usr/data/openke/`, flashing OpenKE does not erase or corrupt stock print history, WiFi credentials, or factory calibration files.
Because RosetteOS namespaces its data under `/usr/data/rosetteos/`, flashing it does not erase or corrupt stock print history, WiFi credentials, or factory calibration files.
---
@@ -70,7 +70,7 @@ Because OpenKE namespaces all its data under `/usr/data/openke/`, flashing OpenK
If you ever wish to return to stock CrealityOS, you do not need to reflash. You simply toggle the boot marker back to Slot 1:
### From OpenKE Shell (SSH)
### From a RosetteOS shell (SSH)
```bash
echo -n "ota:kernel" > /dev/mmcblk0p1
sync
+3 -3
View File
@@ -35,7 +35,7 @@ openssl passwd -1 -salt cxswfile "${BOARD_NAME}C3_7e_bz"
| **Creality K1** | `CR4CU220812S12` | `CR4CU220812S12C3_7e_bz` | Board-derived key |
> [!TIP]
> `tools/pack_openke.py` includes a pure-Python implementation of Unix MD5-crypt, making password derivation completely cross-platform without external tools.
> `tools/pack_rosetteos.py` includes a pure-Python implementation of Unix MD5-crypt, making password derivation completely cross-platform without external tools.
---
@@ -150,7 +150,7 @@ sequenceDiagram
LU->>BL: Streams zero.bin chunks -> mmcblk0p4 (rtos2)
LU->>BL: Writes "ota:kernel2" to /dev/mmcblk0p1
LU->>MS: Returns success
MS->>User: Reboots printer into OpenKE
MS->>User: Reboots printer into RosetteOS
```
### The Critical Folder-Name Matching Rule
@@ -165,4 +165,4 @@ ota_site_config=$ota_site/ota_config.in
```
> [!IMPORTANT]
> If the archive file is named `NEBULA_ota_img_V1.1.0.34.img`, `OTA_UNZIP_FILE_NAME` evaluates to `NEBULA_ota_img_V1.1.0.34`. The root directory inside the 7z archive **must match that exact string**. If the archive has a different folder name (e.g. `OpenKE_...`), `cp -f $ota_site_config` fails and the update aborts immediately.
> If the archive file is named `NEBULA_ota_img_V1.1.0.34.img`, `OTA_UNZIP_FILE_NAME` evaluates to `NEBULA_ota_img_V1.1.0.34`. The root directory inside the 7z archive **must match that exact string**. If the archive has a different folder name, `cp -f $ota_site_config` fails and the update aborts immediately.
+3 -3
View File
@@ -1,6 +1,6 @@
# Troubleshooting & USB Flashing Diagnostics
This document covers common issues when flashing OpenKE via USB OTA, root causes, and diagnostic steps.
This document covers common issues when flashing RosetteOS via USB OTA, root causes, and diagnostic steps.
---
@@ -29,7 +29,7 @@ The screen detects the update, you click "Update Now", the progress bar appears
### Root Cause:
* Creality's updater extracts the 7z archive to a temporary directory and looks for `ota_config.in` in `<TEMP_DIR>/<UNZIP_FOLDER>/ota_config.in`.
* If the root directory inside the 7z archive does not match the `.img` filename (without `.img`), `cp -f $ota_site_config` fails.
* **Resolution**: The updated `build_openke_image.sh` / `tools/pack_openke.py` guarantees this alignment automatically. Ensure you use images built with the latest packager.
* **Resolution**: The updated `build_rosetteos_image.sh` / `tools/pack_rosetteos.py` guarantees this alignment automatically. Ensure you use images built with the latest packager.
---
@@ -48,7 +48,7 @@ The UI says the firmware is already up-to-date or newer.
* If your device is running `1.1.0.30` and the package version is `1.1.0.30` or lower, it refuses to flash.
* **Fix**: Pass a higher version number when running the build script:
```bash
./build_openke_image.sh --target nebula --version 1.1.0.35
./build_rosetteos_image.sh --target nebula --version 1.1.0.35
```
---