Fixed SPL to enable serial console input.

This commit is contained in:
ballaswag
2024-02-07 23:55:56 -08:00
parent 5d5a1234fe
commit c65eaa337c
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -10,8 +10,6 @@ To Enter USB Boot mode for the K1, hold the boot button, while holding boot hold
```$ 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 (USE AT YOUR OWN RISK)
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.
@@ -73,5 +71,6 @@ The bootrom sets the stack pointer at 0xb2401000 (TCSM/SRAM), this is referenced
Once SPL completes, the DRAM is initialized. At this point, uboot can be loaded into DRAM and executed at 0x80100000, this is referenced `CONFIG_SYS_TEXT_BASE` in the u-boot configurations.
Also note that UARTs and such are also initialized via the SPL and not the uboot. If you're having issue where serial consoles are not working and pins are not behaving as you expect, make sure to check that the SPL is configured and builtin properly.
![k1 uboot](https://github.com/ballaswag/ingenic-usbboot/blob/main/uboot.png)
BIN
View File
Binary file not shown.