diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2018-08-10 11:43:34 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-03-05 19:22:16 +0100 |
commit | 7bc3b60d36cc1bd9ca55ac93aab5655aec522776 (patch) | |
tree | f6b747ba95a12ba67a5ccb9d56e431ec94258b39 /Makefile | |
parent | 9bfdda4f7eb922a2722dab267bd67c80d979ea9b (diff) |
Makefiles: add a i.MX8 flash.bin target
This is taken from the soc.mak makefile. It relies on an OE deploy dir with
the relevant boot binaries. See mx8_boot_img/Makefile for where the
mkimage-imx8 and the various boot binaries are taken from.
use 'make flash.bin' to build U-Boot and then build the boot image.
To flash use:
dd if=flash.bin of=${SDCARD} conv=notrunc seek=33 bs=1K
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 72d2432e6fd3166fa45204b5515e04ae1524088e)
(cherry picked from commit fe7b38897ec1339e77cf80b409f659019a76fb71)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -908,6 +908,11 @@ u-boot.bin: u-boot-nodtb.bin FORCE $(call if_changed,copy) endif +flash.bin: u-boot.bin + cd mx8_boot_img; $(MAKE) + @echo;echo "To update an SD card use e.g.:" + @echo 'sudo "sudo sh -c "dd if=flash.bin of=/dev/sdX bs=1k seek=33;sync"';echo + %.imx: %.bin $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ |