u-boot-dey: unify installation scripts
https://onedigi.atlassian.net/browse/DEL-8860 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
81059a9707
commit
4372eaba01
|
|
@ -8,13 +8,13 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x01" || test "${module_variant}" = "0x02"; then
|
if test "${module_variant}" = "0x01" || test "${module_variant}" = "0x02"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##2GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##2GB.imx;
|
||||||
elif test "${module_variant}" = "0x03"; then
|
elif test "${module_variant}" = "0x03"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
# u-boot when the checked value is empty.
|
# u-boot when the checked value is empty.
|
||||||
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,13 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x01" || test "${module_variant}" = "0x02"; then
|
if test "${module_variant}" = "0x01" || test "${module_variant}" = "0x02"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##2GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##2GB.imx;
|
||||||
elif test "${module_variant}" = "0x03"; then
|
elif test "${module_variant}" = "0x03"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
# u-boot when the checked value is empty.
|
# u-boot when the checked value is empty.
|
||||||
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2023 by Digi International Inc.
|
# Copyright (C) 2021-2024 by Digi International Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
# This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
@ -100,13 +100,12 @@ echo "Determining image files to use..."
|
||||||
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
module_variant=$(getenv "module_variant")
|
module_variant=$(getenv "module_variant")
|
||||||
# Determine U-Boot file to program basing on SOM's variant
|
# Determine U-Boot file to program basing on SOM's variant
|
||||||
if [ -n "$module_variant" ]; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if [ "$module_variant" = "0x01" ] || \
|
if [ "$module_variant" = "0x01" ] || \
|
||||||
[ "$module_variant" = "0x02" ]; then
|
[ "$module_variant" = "0x02" ]; then
|
||||||
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##2GB.imx"
|
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##2GB.imx"
|
||||||
elif [ "$module_variant" = "0x03" ]; then
|
elif [ "$module_variant" = "0x03" ] || \
|
||||||
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##1GB.imx"
|
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##1GB.imx"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# U-Boot when the checked value is empty.
|
# U-Boot when the checked value is empty.
|
||||||
|
|
|
||||||
|
|
@ -8,19 +8,15 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x12"; then
|
if test "${module_variant}" = "0x12"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc2GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc2GB.imx;
|
||||||
elif test "${module_variant}" = "0x02" || test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x11" || test "${module_variant}" = "0x14" || test "${module_variant}" = "0x16"; then
|
elif test "${module_variant}" = "0x02" || test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x0b" || test "${module_variant}" = "0x11" || test "${module_variant}" = "0x14" || test "${module_variant}" = "0x15" || test "${module_variant}" = "0x16"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-cc${soc_family}sbc.imx;
|
||||||
elif test "${module_variant}" = "0x03" || test "${module_variant}" = "0x0e" || test "${module_variant}" = "0x0f"; then
|
elif test "${module_variant}" = "0x03" || test "${module_variant}" = "0x0c" || test "${module_variant}" = "0x0e" || test "${module_variant}" = "0x0f" || test "${module_variant}" = "0x13"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc512MB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-cc${soc_family}sbc512MB.imx;
|
||||||
elif test "${module_variant}" = "0x0b" || test "${module_variant}" = "0x15"; then
|
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc.imx;
|
|
||||||
elif test "${module_variant}" = "0x0c" || test "${module_variant}" = "0x13"; then
|
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc512MB.imx;
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
# u-boot when the checked value is empty.
|
# u-boot when the checked value is empty.
|
||||||
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
||||||
|
|
|
||||||
|
|
@ -8,19 +8,15 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x12"; then
|
if test "${module_variant}" = "0x12"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc2GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc2GB.imx;
|
||||||
elif test "${module_variant}" = "0x02" || test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x11" || test "${module_variant}" = "0x14" || test "${module_variant}" = "0x16"; then
|
elif test "${module_variant}" = "0x02" || test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x0b" || test "${module_variant}" = "0x11" || test "${module_variant}" = "0x14" || test "${module_variant}" = "0x15" || test "${module_variant}" = "0x16"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-cc${soc_family}sbc.imx;
|
||||||
elif test "${module_variant}" = "0x03" || test "${module_variant}" = "0x0e" || test "${module_variant}" = "0x0f"; then
|
elif test "${module_variant}" = "0x03" || test "${module_variant}" = "0x0c" || test "${module_variant}" = "0x0e" || test "${module_variant}" = "0x0f" || test "${module_variant}" = "0x13"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc512MB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-cc${soc_family}sbc512MB.imx;
|
||||||
elif test "${module_variant}" = "0x0b" || test "${module_variant}" = "0x15"; then
|
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc.imx;
|
|
||||||
elif test "${module_variant}" = "0x0c" || test "${module_variant}" = "0x13"; then
|
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc512MB.imx;
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
# u-boot when the checked value is empty.
|
# u-boot when the checked value is empty.
|
||||||
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
if test -n "${INSTALL_UBOOT_FILENAME}"; then
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2023 by Digi International Inc.
|
# Copyright (C) 2021-2024 by Digi International Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
# This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
@ -102,28 +102,23 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
if [ -n "$soc_family" ]; then
|
if [ -n "$soc_family" ]; then
|
||||||
module_variant=$(getenv "module_variant")
|
module_variant=$(getenv "module_variant")
|
||||||
# Determine U-Boot file to program basing on SOM's variant
|
# Determine U-Boot file to program basing on SOM's variant
|
||||||
if [ -n "$module_variant" ]; then
|
if [ "$module_variant" = "0x12" ]; then
|
||||||
if [ "$module_variant" = "0x12" ]; then
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc2GB.imx"
|
||||||
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc2GB.imx"
|
elif [ "$module_variant" = "0x02" ] || \
|
||||||
elif [ "$module_variant" = "0x01" ] || \
|
[ "$module_variant" = "0x04" ] || \
|
||||||
[ "$module_variant" = "0x02" ] || \
|
[ "$module_variant" = "0x05" ] || \
|
||||||
[ "$module_variant" = "0x04" ] || \
|
[ "$module_variant" = "0x0b" ] || \
|
||||||
[ "$module_variant" = "0x05" ] || \
|
[ "$module_variant" = "0x11" ] || \
|
||||||
[ "$module_variant" = "0x0b" ] || \
|
[ "$module_variant" = "0x14" ] || \
|
||||||
[ "$module_variant" = "0x0d" ] || \
|
[ "$module_variant" = "0x15" ] || \
|
||||||
[ "$module_variant" = "0x10" ] || \
|
[ "$module_variant" = "0x16" ]; then
|
||||||
[ "$module_variant" = "0x11" ] || \
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc.imx"
|
||||||
[ "$module_variant" = "0x14" ] || \
|
elif [ "$module_variant" = "0x03" ] || \
|
||||||
[ "$module_variant" = "0x15" ] || \
|
[ "$module_variant" = "0x0c" ] || \
|
||||||
[ "$module_variant" = "0x16" ]; then
|
[ "$module_variant" = "0x0e" ] || \
|
||||||
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc.imx"
|
[ "$module_variant" = "0x0f" ] || \
|
||||||
elif [ "$module_variant" = "0x03" ] || \
|
[ "$module_variant" = "0x13" ]; then
|
||||||
[ "$module_variant" = "0x0c" ] || \
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc512MB.imx"
|
||||||
[ "$module_variant" = "0x0e" ] || \
|
|
||||||
[ "$module_variant" = "0x0f" ] || \
|
|
||||||
[ "$module_variant" = "0x13" ]; then
|
|
||||||
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc512MB.imx"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,13 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x02" || test "${module_variant}" = "0x03" || test "${module_variant}" = "0x06" || test "${module_variant}" = "0x09"; then
|
if test "${module_variant}" = "0x02" || test "${module_variant}" = "0x03" || test "${module_variant}" = "0x06" || test "${module_variant}" = "0x09"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##.imx;
|
||||||
elif test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x07"; then
|
elif test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x07"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
||||||
elif test "${module_variant}" = "0x08" || test "${module_variant}" = "0x0a"; then
|
elif test "${module_variant}" = "0x08" || test "${module_variant}" = "0x0a"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##512MB.imx
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##512MB.imx
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,13 @@ install_abort=0
|
||||||
BASEFILENAME=0
|
BASEFILENAME=0
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on module variant
|
# Determine U-Boot file to program basing on module variant
|
||||||
if test -n "${module_variant}"; then
|
# If module_variant is unknown or not set, return error asking the user
|
||||||
if test "${module_variant}" = "0x02" || test "${module_variant}" = "0x03" || test "${module_variant}" = "0x06" || test "${module_variant}" = "0x09"; then
|
if test "${module_variant}" = "0x02" || test "${module_variant}" = "0x03" || test "${module_variant}" = "0x06" || test "${module_variant}" = "0x09"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##.imx;
|
||||||
elif test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x07"; then
|
elif test "${module_variant}" = "0x04" || test "${module_variant}" = "0x05" || test "${module_variant}" = "0x07"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx;
|
||||||
elif test "${module_variant}" = "0x08" || test "${module_variant}" = "0x0a"; then
|
elif test "${module_variant}" = "0x08" || test "${module_variant}" = "0x0a"; then
|
||||||
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##512MB.imx
|
setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##512MB.imx
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue