post-image.sh 534 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. BOARD_DIR="$(dirname "$0")"
  3. support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"
  4. AMLOGIC_DIR=${BINARIES_DIR}/amlogic-boot-fip
  5. FIP_DIR=${BINARIES_DIR}/fip
  6. mkdir -p "${FIP_DIR}"
  7. (cd "${AMLOGIC_DIR}" && \
  8. ./build-fip.sh khadas-vim3 \
  9. "${BINARIES_DIR}"/u-boot.bin \
  10. "${FIP_DIR}")
  11. dd if="${FIP_DIR}"/u-boot.bin.sd.bin \
  12. of="${BINARIES_DIR}"/sdcard.img \
  13. conv=fsync,notrunc bs=1 count=444
  14. dd if="${FIP_DIR}"/u-boot.bin.sd.bin \
  15. of="${BINARIES_DIR}"/sdcard.img \
  16. conv=fsync,notrunc bs=512 skip=1 seek=1