python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / board / hardkernel / odroidc2 / post-image.sh
blobaaf12c1e797c921db7774a192adc6d069db4714b
1 #!/bin/sh
3 BOARD_DIR="$(dirname $0)"
4 GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
5 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
7 cp ${BOARD_DIR}/boot.ini ${BINARIES_DIR}/
9 rm -rf "${GENIMAGE_TMP}"
11 genimage \
12 --rootpath "${TARGET_DIR}" \
13 --tmppath "${GENIMAGE_TMP}" \
14 --inputpath "${BINARIES_DIR}" \
15 --outputpath "${BINARIES_DIR}" \
16 --config "${GENIMAGE_CFG}"
18 dd if=${BINARIES_DIR}/u-boot.bin of=${BINARIES_DIR}/sdcard.img bs=1 count=442 conv=sync,notrunc
19 dd if=${BINARIES_DIR}/u-boot.bin of=${BINARIES_DIR}/sdcard.img bs=512 skip=1 seek=1 conv=fsync,notrunc