ubuntu-buildroot/board/bsh/imx8mn-bsh-smm-s2/flash.sh

27 lines
567 B
Bash
Raw Normal View History

2024-04-01 15:19:46 +00:00
#!/bin/bash
if [ $# -eq 0 ]; then
OUTPUT_DIR=output
else
OUTPUT_DIR=$1
fi
if ! test -d "${OUTPUT_DIR}" ; then
echo "ERROR: no output directory specified."
echo "Usage: $0 OUTPUT_DIR"
echo ""
echo "Arguments:"
echo " OUTPUT_DIR The Buildroot output directory."
exit 1
fi
IMAGES_DIR=${OUTPUT_DIR}/images
${OUTPUT_DIR}/host/bin/uuu -v -b ${IMAGES_DIR}/nand-full.lst \
${IMAGES_DIR}/flash.bin \
${IMAGES_DIR}/flash.bin \
${IMAGES_DIR}/rootfs.ubifs \
${IMAGES_DIR}/Image \
${IMAGES_DIR}/freescale/imx8mn-bsh-smm-s2.dtb