add uboot check, allow more boards then just beagle

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 54185342bd
commit a58c7ea51a

@ -63,9 +63,15 @@ function dl_xload_uboot {
ABI="ABI" ABI="ABI"
fi fi
case "$SYSTEM" in
beagle)
MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 MLO" | awk '{print $3}') MLO=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 MLO" | awk '{print $3}')
UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 UBOOT" | awk '{print $3}') UBOOT=$(cat ${TEMPDIR}/dl/bootloader | grep "${ABI}:1 UBOOT" | awk '{print $3}')
;;
esac
wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MLO} wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MLO}
wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${UBOOT} wget -c --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${UBOOT}
@ -642,6 +648,25 @@ function check_mmc {
fi fi
} }
function check_uboot_type {
IN_VALID_UBOOT=1
unset DO_UBOOT
case "$UBOOT_TYPE" in
beagle)
SYSTEM=beagle
unset IN_VALID_UBOOT
DO_UBOOT=1
;;
esac
if [ "$IN_VALID_UBOOT" ] ; then
usage
fi
}
function check_distro { function check_distro {
IN_VALID_DISTRO=1 IN_VALID_DISTRO=1
@ -684,6 +709,9 @@ required options:
--mmc </dev/sdX> --mmc </dev/sdX>
Unformated MMC Card Unformated MMC Card
--uboot <dev board>
beagle - <Bx, C2/C3/C4, xMA, xMB>
--distro <distro> --distro <distro>
Debian: Debian:
squeeze <default> squeeze <default>
@ -730,6 +758,11 @@ while [ ! -z "$1" ]; do
fi fi
check_mmc check_mmc
;; ;;
--uboot)
checkparm $2
UBOOT_TYPE="$2"
check_uboot_type
;;
--distro) --distro)
checkparm $2 checkparm $2
DISTRO_TYPE="$2" DISTRO_TYPE="$2"

Loading…
Cancel
Save