21 lines
323 B
Bash
Executable File
21 lines
323 B
Bash
Executable File
#!/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
|