Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Nortmann <bernhard.nortmann@web.de>2016-05-28 13:26:49 +0300
committerBernhard Nortmann <bernhard.nortmann@web.de>2016-05-28 13:32:55 +0300
commit17164d8d9ad4b11ea7e180ca3a8ed1ab042cd950 (patch)
treee5c648a0f69e6412a2a18686fc9bee94ef17b8dc /Makefile
parentce9cf33606492076b81e1157ba9fc54b56379335 (diff)
fel-sdboot: Fix header corruption workaround, implement in assembly
Now that we have a better understanding of what's causing the issue that prevented entering FEL sometimes, we can adjust the workaround code to a proper solution, i.e. skip over the problematic location. Since the code amounts to less than a dozen ARM instructions, I've decided to rewrite it as assembly code - fel-sdboot.S replaces the former fel-sdboot.c. The commit also includes a new binary (bin/fel-sdboot.sunxi) with these changes. Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de> Reviewed-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e1dcb8a..623dda1 100644
--- a/Makefile
+++ b/Makefile
@@ -135,7 +135,7 @@ fel-pio.nm: fel-pio.elf
jtag-loop.elf: jtag-loop.c jtag-loop.lds
$(CROSS_COMPILE)gcc -g $(ARM_ELF_FLAGS) $< -nostdlib -o $@ -T jtag-loop.lds -Wl,-N
-fel-sdboot.elf: fel-sdboot.c fel-sdboot.lds
+fel-sdboot.elf: fel-sdboot.S fel-sdboot.lds
$(CROSS_COMPILE)gcc -g $(ARM_ELF_FLAGS) $< -nostdlib -o $@ -T fel-sdboot.lds -Wl,-N
boot_head_sun3i.elf: boot_head.S boot_head.lds