Add update scripts#27
Conversation
7d7a0d8 to
c1e8d15
Compare
|
|
||
| set -e | ||
|
|
||
| # ver 1.1.46 |
There was a problem hiding this comment.
I would switch to patched oc instead of stock.
If anything blows up in the upgrade process, on stock recovery is insanely tricky. Under patched OC we have options.
There was a problem hiding this comment.
We could implement both and let the user choose?
Then it's only the case of changing the URL to download from and skip decrypting it.
|
|
||
| # Flash stock bootloader | ||
| service klipper stop | ||
| flashtool -d $SERIALPORT_BED -b 115200 -r |
There was a problem hiding this comment.
I think it's a lot better to do it here as well. Patching this in in the patched firmware is quite a mess
| @@ -0,0 +1,17 @@ | |||
| #!/bin/sh | |||
There was a problem hiding this comment.
Question, does guppy/grumpy show stdout/stderr while its running the script?
There was a problem hiding this comment.
Nope, it just looks at the exit code, however it shouldn't return if it successful as it should reboot.
Not as nice as your recovery app 😉
| #!/bin/sh | ||
|
|
||
| sleep 3 | ||
| touch /data/.factory-reset |
There was a problem hiding this comment.
How does this work? I assume another script somewhere else not in this PR?
There was a problem hiding this comment.
It's done in the custom init script here
https://github.com/OpenCentauri/yocto-opencentauri/blob/4e1243b0da772f98a05a364498afa8ee51e761c8/meta-opencentauri/images/files/overlayfs-etc-preinit.sh.in#L37
| # ver 1.1.46 | ||
| FW_URL="https://download.chitubox.com/chitusystems/chitusystems/public/printer/firmware/release/1/ca8e1d9a20974a5896f8f744e780a8a7/1/01.01.46/2025-10-22/f9bd2b9b1926408ca238de8e7eac69b6.bin" | ||
| DECRYPT="/usr/bin/swu-decrypt.py" | ||
| KEY="78B6A614B6B6E361DC84D705B7FDDA33C967DDF2970A689F8156F78EFE0B1FCE" |
There was a problem hiding this comment.
Hm, unsure if plaintext key here is the best approach. Although don't think elegoo particuarly cares (or anycubic for that matter)
There was a problem hiding this comment.
Well... it already exists on the internet...
No description provided.