Commit 12998ce7 authored by Grant Likely's avatar Grant Likely
Browse files

Add flash target using rkdeveloptool to install firmware

`make flash` will install the firmware onto a board in BOOTROM mode.
This target requires `rkdeveloptool` to be in the `$PATH` and for
`MiniLoaderAll.bin` to be in the build directory.
Signed-off-by: Grant Likely's avatarGrant Likely <>
parent 0a43a666
......@@ -101,3 +101,11 @@ u-boot-clean:
rm -rf $(BINARIES_PATH)/u-boot
rm -rf $(BINARIES_PATH)/capsule
$(U-BOOT_EXPORTS) $(MAKE) -C $(U-BOOT_PATH) distclean
.PHONY: flash
rkdeveloptool db MiniLoaderAll.bin
sleep 1s
rkdeveloptool wl 0x40 $(BINARIES_PATH)/u-boot/idbloader.img
rkdeveloptool wl 0x4000 $(BINARIES_PATH)/u-boot/u-boot.itb
rkdeveloptool rd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment