Add iMX8 NMHW23 build script

This commit is contained in:
Andrejs Cainikovs 2019-05-17 15:09:23 +02:00
parent 009844bc23
commit eca191faab
1 changed files with 20 additions and 0 deletions

20
build-imx8-nmhw23.sh Executable file
View File

@ -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