build_uboot.sh: add a u-boot that is usable for a USB serial download boot

parent 9c90cd74
......@@ -241,6 +241,22 @@ case ${pureos_board} in
ARCH=arm
COPY_UBOOT=copy_uboot
;;
devkit-recovery)
ATF_REPO=https://source.codeaurora.org/external/imx/imx-atf
ATF_BRANCH=imx_4.9.51_imx8m_beta
ATF_PLAT=imx8mq
DDR_FILE=files/imx-mkimage-emcraft.tar.gz
MKIMAGE_REPO=https://source.codeaurora.org/external/imx/imx-mkimage
MKIMAGE_BRANCH=imx_4.9.51_imx8m_beta
UBOOT_REPO=git@source.puri.sm:Librem5/uboot-imx.git
HW_DEFCONFIG=imx8m_lpddr4_som_defconfig
CROSS_COMPILER=aarch64-linux-gnu-
UBOOT_BRANCH=librem5-devkit-recovery
UBOOT_BIN=iMX8M/flash.bin
UBOOT_DTB=emcraft-imx8m-som.dtb
ARCH=arm
COPY_UBOOT=copy_uboot
;;
*)
echo "unrecognized board type ${pureos_board}"
exit 1
......@@ -253,13 +269,16 @@ build_uboot ${pureos_board} ${ARCH} ${CROSS_COMPILER} ${HW_DEFCONFIG} ${make_cle
cd ${CWD}
if [ ${pureos_board} == "imx8" -o ${pureos_board} == "ec-som" ]; then
build_cortex_m4 ${UBOOT_OUTPUT}
combine_uboot_bins ${pureos_board}
cd imx-mkimage
else
cd u-boot-${pureos_board}
fi
case ${pureos_board} in
imx8|ec-som|devkit-recovery)
build_cortex_m4 ${UBOOT_OUTPUT}
combine_uboot_bins ${pureos_board}
cd imx-mkimage
;;
*)
cd u-boot-${pureos_board}
;;
esac
${COPY_UBOOT} ${pureos_board} ${UBOOT_OUTPUT} ${UBOOT_BIN}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment