Update nmhw23 build script

This commit is contained in:
Andrejs Cainikovs 2019-06-04 14:48:11 +02:00
parent 5e66c72de4
commit 678b917dd3
1 changed files with 11 additions and 4 deletions

View File

@ -4,16 +4,23 @@
set -e
# Checkout imx-image git if not present
if [ ! -d "imx-mkimage.git" ]; then
git clone https://source.codeaurora.org/external/imx/imx-mkimage -b imx_4.14.98_2.0.0_ga imx-mkimage.git
fi
# Build boot image
make imx8_nmhw23_defconfig
export ATF_LOAD_ADDR=0x80000000
export BL33_LOAD_ADDR=0x80020000
make flash.bin
make
# Generate boot image
dd if=u-boot.itb of=flash.bin bs=512 seek=528
cd imx-mkimage.git
make SOC=iMX8QX flash
cd ..
mv imx-mkimage.git/iMX8QX/flash.bin .
# Generate eMMC/SD image