e5e35027d2
Currently, at least on fairphone-fp3 doing "fastboot boot" crashes lk2nd, presumably due to some bug when compiled with a newer gcc version. Compiling with -O1 works well. [81660] booting linux @ 0x10000000, ramdisk @ 0x13600000 (3339187), tags/device tree @ 0x13400000 [81660] Jumping to kernel via monitor [81660] data abort, halting [81660] r0 0x8f7724fc r1 0x8f772504 r2 0x00000000 r3 0x00000000 [81660] r4 0x00000001 r5 0x8f7724fb r6 0x00000001 r7 0x5b080000 [81660] r8 0x00000000 r9 0x011b9000 r10 0x8f741094 r11 0x8f7725ac [81660] r12 0x00000001 usp 0x00000000 ulr 0x00000000 pc 0x8f630690 [81660] spsr 0x600001d3 [81660] fiq r13 0x8f729000 r14 0x00000000 [81660] irq r13 0x8f72d1a0 r14 0x8f620c2c [81660] *svc r13 0x8f7724f8 r14 0x8f6147b0 [81660] und r13 0x8f729000 r14 0x00000000 [81660] sys r13 0x00000000 r14 0x00000000 [81660] bottom of stack at 0x8f7724f8: 0x8f7724f8: 00726f63 824fe86d 00020000 8f7724fb |cor.m.O.......w.| 0x8f772508: 8f742c01 824fe86d 10000000 00000000 |..t.m.O.........| 0x8f772518: 13400000 00000000 8f628aa0 8f6147b0 |..........b..Ga.| 0x8f772528: 00000000 00000000 13400000 10000000 |................| 0x8f772538: 00000000 00000001 0000000f 824fe86d |............m.O.| 0x8f772548: 13400000 00000000 00000000 00000000 |................| 0x8f772558: 00000000 00000000 00000000 00000000 |................| 0x8f772568: 00000000 00000000 00000000 00000000 |................|
13 lines
555 B
Diff
13 lines
555 B
Diff
diff --git a/makefile b/makefile
|
|
index 437f7bcb0..51b060c9c 100644
|
|
--- a/makefile
|
|
+++ b/makefile
|
|
@@ -53,7 +53,7 @@ ifeq ($(ENABLE_TRUSTZONE),1)
|
|
endif
|
|
|
|
INCLUDES := -I$(BUILDDIR) -Iinclude
|
|
-CFLAGS := -O2 -g -fno-builtin -finline -Wno-multichar -Wno-unused-parameter -Wno-unused-function $(LKLE_CFLAGS) -include $(CONFIGHEADER)
|
|
+CFLAGS := -O1 -g -fno-builtin -finline -Wno-multichar -Wno-unused-parameter -Wno-unused-function $(LKLE_CFLAGS) -include $(CONFIGHEADER)
|
|
# -fcommon is needed to build this using GCC 10
|
|
CFLAGS += -fcommon
|
|
#CFLAGS += -Werror
|