|
|
|
@ -140,6 +140,35 @@ fi
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dl_bootloader {
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Downloading Device's Bootloader"
|
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
|
|
|
|
|
mkdir -p ${TEMPDIR}/dl/${DIST}
|
|
|
|
|
mkdir -p ${DIR}/dl/${DIST}
|
|
|
|
|
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}tools/latest/bootloader
|
|
|
|
|
|
|
|
|
|
if [ "$USE_BETA_BOOTLOADER" ];then
|
|
|
|
|
ABI="ABX"
|
|
|
|
|
else
|
|
|
|
|
ABI="ABI"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "${SPL_BOOT}" ] ; then
|
|
|
|
|
MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:${ABI_VER}:MLO" | awk '{print $2}')
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MLO}
|
|
|
|
|
MLO=${MLO##*/}
|
|
|
|
|
echo "SPL Bootloader: ${MLO}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:${ABI_VER}:UBOOT" | awk '{print $2}')
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${UBOOT}
|
|
|
|
|
UBOOT=${UBOOT##*/}
|
|
|
|
|
echo "UBOOT Bootloader: ${UBOOT}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function boot_files_template {
|
|
|
|
|
|
|
|
|
|
mkdir -p ${TEMPDIR}/bootscripts/
|
|
|
|
@ -275,35 +304,6 @@ fi
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function dl_bootloader {
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Downloading Device's Bootloader"
|
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
|
|
|
|
|
mkdir -p ${TEMPDIR}/dl/${DIST}
|
|
|
|
|
mkdir -p ${DIR}/dl/${DIST}
|
|
|
|
|
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}tools/latest/bootloader
|
|
|
|
|
|
|
|
|
|
if [ "$USE_BETA_BOOTLOADER" ];then
|
|
|
|
|
ABI="ABX"
|
|
|
|
|
else
|
|
|
|
|
ABI="ABI"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "${SPL_BOOT}" ] ; then
|
|
|
|
|
MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:${ABI_VER}:MLO" | awk '{print $2}')
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MLO}
|
|
|
|
|
MLO=${MLO##*/}
|
|
|
|
|
echo "SPL Bootloader: ${MLO}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:${ABI_VER}:UBOOT" | awk '{print $2}')
|
|
|
|
|
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${UBOOT}
|
|
|
|
|
UBOOT=${UBOOT##*/}
|
|
|
|
|
echo "UBOOT Bootloader: ${UBOOT}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function set_defaults {
|
|
|
|
|
|
|
|
|
|
if [ "$USE_UENV" ];then
|
|
|
|
@ -359,8 +359,6 @@ fi
|
|
|
|
|
|
|
|
|
|
function dl_xload_uboot {
|
|
|
|
|
|
|
|
|
|
dl_bootloader
|
|
|
|
|
|
|
|
|
|
case "$DIST" in
|
|
|
|
|
maverick)
|
|
|
|
|
TEST_MD5SUM=$MAVERICK_MD5SUM
|
|
|
|
@ -1360,6 +1358,7 @@ fi
|
|
|
|
|
|
|
|
|
|
find_issue
|
|
|
|
|
detect_software
|
|
|
|
|
dl_bootloader
|
|
|
|
|
|
|
|
|
|
boot_files_template
|
|
|
|
|
set_defaults
|
|
|
|
|