2022-06-22 06:24:39 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This is a temporary work around for generating kv260 u-boot.itb.
|
2023-05-31 13:40:08 +02:00
|
|
|
# The problem is there is no way to currently configure u-boot to apply
|
|
|
|
# the carrier board dtb overlay during build, so all kv260 carrier board
|
2022-06-22 06:24:39 +02:00
|
|
|
# drivers are missing.
|
|
|
|
# This will be removed when u-boot can build the kv260 u-boot.itb natively.
|
|
|
|
|
2023-06-06 19:54:59 +02:00
|
|
|
UBOOT_DIR="$4"
|
2022-06-22 06:24:39 +02:00
|
|
|
|
2023-06-06 19:54:59 +02:00
|
|
|
fdtoverlay -o "${UBOOT_DIR}/fit-dtb.blob" \
|
|
|
|
-i "${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb" \
|
|
|
|
"${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kv-g-revB.dtbo"
|
|
|
|
|
|
|
|
"${UBOOT_DIR}/tools/mkimage" -E -f "${UBOOT_DIR}/u-boot.its" \
|
|
|
|
-B 0x8 "${BINARIES_DIR}/u-boot.itb"
|