From 1bfdf69b1e49dc87b07244d8d3d208f14b76371f Mon Sep 17 00:00:00 2001 From: ballaswag Date: Mon, 25 Sep 2023 23:38:05 -0700 Subject: [PATCH] Update readme with ota-swap instructions. --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3280628..a617ea4 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,24 @@ To see console output, a USB to TTL adapter is needed. For the Creality K1 board To Enter USB Boot mode for the K1, hold the boot button, while holding boot hold down reset, let go reset then boot. -```./usbboot --cpu x2000 --stage1 ./spl.bin --wait 1 --stage2 ./uboot.bin``` - +```$ sudo ./usbboot --uboot``` BIG caveat, I haven't gotten keyboard input to work through serial, I can only see the uboot logs. Please reach out if you figure out how to get keyboard input over serial for uboot. +## Unbricking Creality K1 Mainboard +The Creality K1 comes with a set of backup partitions. The OTA partition stores either the string `ota:kernel` or `ota:kernel2` to indicate which set of partitions to boot. This tool allows you to quickly switch between the two. This should fix a bricked Creality K1 mainboard given the backup partitions are functional. For cases where the partition table, main, and backup partitions are corrupted, read through this [guide](https://github.com/ballaswag/k1-discovery/blob/main/k1-ingenic-cloner-instruction.pdf) for a better chance of recoverying the mainboad. + +``` +$ sudo ./usbboot --uboot +$ sudo ./usbboot --swap-ota +Current OTA points at kernel. Switching OTA to kernel2 +Switched OTA to ota:kernel2 + +$ sudo ./usbboot --swap-ota +Current OTA points at kernel2. Switching OTA to kernel +Switched OTA to ota:kernel + +``` ## SPL/u-boot The general idea is to write and execute loader codes at different memory spaces during the different stages of boot. SPL is a smaller piece of code that lives in TCSM/SRAM and executed to initialize DRAM. Then the bigger uboot code can be loaded and executed from DRAM.