Add mksunxi tool to make flashable image

This commit is contained in:
Yunhao Tian
2021-12-07 22:53:52 +08:00
parent 96979a2c4a
commit 75f7fb3d9d
4 changed files with 69 additions and 15 deletions
+6 -1
View File
@@ -41,5 +41,10 @@ INC += \
$(TOP)/$(MCU_DIR)/include \
$(TOP)/$(BOARD_PATH)
# flash target using on-board stlink
# flash target using xfel
flash: flash-xfel
exec: $(BUILD)/$(PROJECT).bin
xfel ddr
xfel write 0x80000000 $<
xfel exec 0x80000000
+9 -10
View File
@@ -21,15 +21,15 @@ SECTIONS
PROVIDE(__bootloader_start = .);
PROVIDE(__image_start = .);
PROVIDE(__text_start = .);
*/machine/start.o (.text)
*/lib/memcpy.o (.text)
*/lib/memset.o (.text)
*/machine/sys-uart.o (.text)
*/machine/sys-clock.o (.text)
*/machine/sys-dram.o (.text)
*/machine/sys-mmu.o (.text)
*/machine/sys-spi-flash.o (.text)
*/machine/sys-copyself.o (.text)
_build/*/obj/hw/mcu/allwinner/*/machine/start_asm.o (.text)
_build/*/obj/hw/mcu/allwinner/*/lib/memcpy_asm.o (.text)
_build/*/obj/hw/mcu/allwinner/*/lib/memset_asm.o (.text)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-uart.o (.text*)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-clock.o (.text*)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-dram.o (.text*)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-mmu.o (.text*)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-spi-flash.o (.text*)
_build/*/obj/hw/mcu/allwinner/*/machine/sys-copyself.o (.text*)
PROVIDE(__bootloader_end = .);
} > ram
@@ -37,7 +37,6 @@ SECTIONS
.text :
{
*/main.o (.text)
*(.text*)
*(.glue*)
*(.note.gnu.build-id)