Skip to content

Commit 93e6be1

Browse files
committed
Fix uboot startup
1 parent 5b13b95 commit 93e6be1

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

hardware/esp8266com/esp8266/bootloaders/eboot/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ OBJDUMP := $(XTENSA_TOOCHAIN)xtensa-lx106-elf-objdump
1818

1919
CFLAGS += -std=gnu99
2020

21-
CFLAGS += -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals
21+
CFLAGS += -O0 -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals
2222

2323
LDFLAGS += -nostdlib -Wl,--no-check-sections -umain
2424

hardware/esp8266com/esp8266/bootloaders/eboot/eboot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int copy_raw(const uint32_t src_addr,
150150

151151
void main()
152152
{
153-
int res;
153+
int res = 9;
154154
struct eboot_command cmd;
155155

156156
eboot_command_read(&cmd);
Binary file not shown.

hardware/esp8266com/esp8266/bootloaders/eboot/eboot.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MEMORY
44
{
55
dport0_0_seg : org = 0x3FF00000, len = 0x10
66
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
7-
iram1_0_seg : org = 0x4010f800, len = 0x800
7+
iram1_0_seg : org = 0x4010f000, len = 0x1000
88
irom0_0_seg : org = 0x40240000, len = 0x32000
99
}
1010

0 commit comments

Comments
 (0)