kr260.sh 610 B

12345678910111213141516
  1. #!/bin/sh
  2. # This is a temporary work around for generating kr260 u-boot.itb.
  3. # The problem is there is no way to currently configure u-boot to apply
  4. # the carrier board dtb overlay during build, so all kr260 carrier board
  5. # drivers are missing.
  6. # This will be removed when u-boot can build the kr260 u-boot.itb natively.
  7. UBOOT_DIR="$4"
  8. fdtoverlay -o "${UBOOT_DIR}/fit-dtb.blob" \
  9. -i "${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb" \
  10. "${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kr-g-revB.dtbo"
  11. "${UBOOT_DIR}/tools/mkimage" -E -f "${UBOOT_DIR}/u-boot.its" \
  12. -B 0x8 "${BINARIES_DIR}/u-boot.itb"