diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2018-08-10 11:43:34 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-01-30 18:05:15 +0100 |
commit | f6eea802adad1feaf2d3d81d9cbf7619abaa5d37 (patch) | |
tree | b310c554c6a51e95cbc0d1601325266ab9cd1ca9 /Makefile | |
parent | 82a2e3a6f32d6b30528ff3aad4aecb6ba87365ea (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 $@ |