From 1b8542490da3283dfa0ce0f3363f16eab0609815 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 7 Apr 2021 22:11:01 +0100 Subject: x1000: Redesign SPL, and allow it to flash the bootloader SPL is now designed so core X1000 code is in control of the boot, under the reasonable assumption that the device boots from flash. It should not be too hard to adapt to other X1000 ports. The biggest functional change is that the SPL can now read/write the flash, under the control of a host computer. The SPL relies on the boot ROM for USB communication, so the host has to execute the SPL multiple times following a protocol. Change-Id: I3ffaa00e4bf191e043c9df0e2e64d15193ff42c9 --- firmware/SOURCES | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/SOURCES') diff --git a/firmware/SOURCES b/firmware/SOURCES index 3a42381003..ce3d8d52e2 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -1747,6 +1747,9 @@ target/mips/ingenic_x1000/msc-x1000.c #if (CONFIG_STORAGE & STORAGE_SD) target/mips/ingenic_x1000/sd-x1000.c #endif +#ifdef BOOTLOADER_SPL +target/mips/ingenic_x1000/spl-x1000.c +#endif #endif /* CONFIG_CPU == X1000 */ #if defined(ONDA_VX747) || defined(ONDA_VX747P) || defined(ONDA_VX777) @@ -1780,6 +1783,9 @@ target/mips/ingenic_x1000/fiiom3k/installer-fiiom3k.c target/mips/ingenic_x1000/fiiom3k/lcd-fiiom3k.c target/mips/ingenic_x1000/fiiom3k/nand-fiiom3k.c target/mips/ingenic_x1000/fiiom3k/power-fiiom3k.c +#ifdef BOOTLOADER_SPL +target/mips/ingenic_x1000/fiiom3k/spl-fiiom3k.c +#endif #endif /* FIIO_M3K */ #if defined(LYRE_PROTO1) -- cgit v1.2.3