diff options
Diffstat (limited to 'chip/mec1322')
-rw-r--r-- | chip/mec1322/lfw/ec_lfw.c | 2 | ||||
-rw-r--r-- | chip/mec1322/lfw/ec_lfw.ld | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/chip/mec1322/lfw/ec_lfw.c b/chip/mec1322/lfw/ec_lfw.c index 6824d10686..b99d33d011 100644 --- a/chip/mec1322/lfw/ec_lfw.c +++ b/chip/mec1322/lfw/ec_lfw.c @@ -256,7 +256,7 @@ void lfw_main() spi_enable(CONFIG_SPI_FLASH_PORT, 1); uart_puts("littlefw "); - uart_puts(version_data.version); + uart_puts(current_image_data.version); uart_puts("\n"); switch (system_get_image_copy()) { diff --git a/chip/mec1322/lfw/ec_lfw.ld b/chip/mec1322/lfw/ec_lfw.ld index 55b5fda390..adb8b30bba 100644 --- a/chip/mec1322/lfw/ec_lfw.ld +++ b/chip/mec1322/lfw/ec_lfw.ld @@ -53,4 +53,6 @@ SECTIONS . = ORIGIN(SRAM) + LENGTH(SRAM) - 1; BYTE(0xFF); /* emit at least a byte to make linker happy */ } + + __image_size = LOADADDR(.text) + SIZEOF(.text) - ORIGIN(VECTOR); } |