From eca191faab063dac1558639fff217f7fc930c111 Mon Sep 17 00:00:00 2001 From: Andrejs Cainikovs Date: Fri, 17 May 2019 15:09:23 +0200 Subject: [PATCH] Add iMX8 NMHW23 build script --- build-imx8-nmhw23.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 build-imx8-nmhw23.sh diff --git a/build-imx8-nmhw23.sh b/build-imx8-nmhw23.sh new file mode 100755 index 0000000000..88b7f8b167 --- /dev/null +++ b/build-imx8-nmhw23.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Stop on error + +set -e + +# Build boot image + +make imx8_nmhw23_defconfig +export ATF_LOAD_ADDR=0x80000000 +export BL33_LOAD_ADDR=0x80020000 +make flash.bin + +# Generate boot image + +dd if=u-boot.itb of=flash.bin bs=512 seek=528 + +# Generate eMMC/SD image + +dd if=flash.bin of=flash.sd bs=1k seek=32 conv=fsync