u-boot-dey: customize install_linux_fw_uuu script for ccimx6/ccimx6qp
Also, set UBOOT_HAS_FASTBOOT = "true" for these platforms. Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
This commit is contained in:
parent
1166981fa1
commit
555be511a6
|
|
@ -11,6 +11,7 @@ include conf/machine/include/tune-cortexa9.inc
|
||||||
# Platform u-boot settings
|
# Platform u-boot settings
|
||||||
UBOOT_PREFIX = "u-boot"
|
UBOOT_PREFIX = "u-boot"
|
||||||
UBOOT_SUFFIX = "imx"
|
UBOOT_SUFFIX = "imx"
|
||||||
|
UBOOT_HAS_FASTBOOT = "true"
|
||||||
|
|
||||||
# Linux kernel configuration
|
# Linux kernel configuration
|
||||||
KERNEL_DEFCONFIG ?= "arch/arm/configs/ccimx6sbc_defconfig"
|
KERNEL_DEFCONFIG ?= "arch/arm/configs/ccimx6sbc_defconfig"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020-2021 by Digi International Inc.
|
# Copyright (C) 2021 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
|
||||||
|
|
@ -93,38 +93,16 @@ echo "Determining image files to use..."
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on SOM's SOC type (linked to bus width)
|
# Determine U-Boot file to program basing on SOM's SOC type (linked to bus width)
|
||||||
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
# Since SOMs with the B0 SOC might have an older U-Boot that doesn't export the
|
module_variant=$(getenv "module_variant")
|
||||||
# SOC revision to the environment, use B0 by default
|
# Determine U-Boot file to program basing on SOM's variant
|
||||||
soc_rev=$(getenv "soc_rev")
|
if [ -n "$module_variant" ] || [ "$module_variant" = "0x00" ]; then
|
||||||
if [ -z "${soc_rev}" ]; then
|
if [ "$module_variant" = "0x01" ] || \
|
||||||
soc_rev="B0"
|
[ "$module_variant" = "0x02" ]; then
|
||||||
fi
|
module_ram="2GB"
|
||||||
|
else
|
||||||
bus_width="32bit"
|
module_ram="1GB"
|
||||||
soc_type=$(getenv "soc_type")
|
|
||||||
if [ "$soc_type" = "imx8dx" ]; then
|
|
||||||
bus_width="16bit"
|
|
||||||
fi
|
|
||||||
|
|
||||||
module_ram=$(getenv "module_ram")
|
|
||||||
if [ -z "${module_ram}" ]; then
|
|
||||||
module_variant=$(getenv "module_variant")
|
|
||||||
# Determine U-Boot file to program basing on SOM's variant
|
|
||||||
if [ -n "$module_variant" ] || [ "$module_variant" = "0x00" ]; then
|
|
||||||
if [ "$module_variant" = "0x01" ] || \
|
|
||||||
[ "$module_variant" = "0x04" ] || \
|
|
||||||
[ "$module_variant" = "0x05" ]; then
|
|
||||||
module_ram="1GB"
|
|
||||||
elif [ "$module_variant" = "0x06" ] || \
|
|
||||||
[ "$module_variant" = "0x09" ]; then
|
|
||||||
module_ram="512MB"
|
|
||||||
else
|
|
||||||
module_ram="2GB"
|
|
||||||
fi
|
|
||||||
INSTALL_UBOOT_FILENAME="imx-boot-##MACHINE##-${soc_rev}-${module_ram}_${bus_width}.bin"
|
|
||||||
fi
|
fi
|
||||||
else
|
INSTALL_UBOOT_FILENAME="u-boot-##MACHINE##${module_ram}.imx"
|
||||||
INSTALL_UBOOT_FILENAME="imx-boot-##MACHINE##-${soc_rev}-${module_ram}_${bus_width}.bin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove redirect
|
# remove redirect
|
||||||
|
|
@ -137,15 +115,12 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "[ERROR] Cannot determine U-Boot file for this module!"
|
echo "[ERROR] Cannot determine U-Boot file for this module!"
|
||||||
echo ""
|
echo ""
|
||||||
echo "1. Add U-boot file name, depending on your ConnectCore 8X variant, to script command line:"
|
echo "1. Set variable 'INSTALL_UBOOT_FILENAME' depending on your ConnectCore 6 QuadPlus variant:"
|
||||||
echo " - For a QuadXPlus CPU with 1GB LPDDR4, run:"
|
echo " - For a QuadPlus CPU with 2GB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-1GB_32bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##2GB.imx"
|
||||||
echo " - For a QuadXPlus CPU with 2GB LPDDR4, run:"
|
echo " - For a DualPlus CPU with 1GB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-2GB_32bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-##MACHINE##1GB.imx"
|
||||||
echo " - For a DualX CPU with 1GB LPDDR4, run:"
|
echo ""
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-1GB_16bit.bin"
|
|
||||||
echo " - For a DualX CPU with 512MB LPDDR4, run:"
|
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-512MB_16bit.bin"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "2. Run the install script again."
|
echo "2. Run the install script again."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
@ -271,7 +246,7 @@ uuu fb: ucmd setenv bootcmd "
|
||||||
echo \"\";
|
echo \"\";
|
||||||
echo \"\";
|
echo \"\";
|
||||||
saveenv;
|
saveenv;
|
||||||
fastboot 1;
|
fastboot 0;
|
||||||
"
|
"
|
||||||
|
|
||||||
uuu fb: ucmd saveenv
|
uuu fb: ucmd saveenv
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020-2021 by Digi International Inc.
|
# Copyright (C) 2021 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
|
||||||
|
|
@ -93,38 +93,29 @@ echo "Determining image files to use..."
|
||||||
|
|
||||||
# Determine U-Boot file to program basing on SOM's SOC type (linked to bus width)
|
# Determine U-Boot file to program basing on SOM's SOC type (linked to bus width)
|
||||||
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
# Since SOMs with the B0 SOC might have an older U-Boot that doesn't export the
|
soc_family=$(getenv "soc_family")
|
||||||
# SOC revision to the environment, use B0 by default
|
if [ -n "$soc_family" ]; then
|
||||||
soc_rev=$(getenv "soc_rev")
|
|
||||||
if [ -z "${soc_rev}" ]; then
|
|
||||||
soc_rev="B0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
bus_width="32bit"
|
|
||||||
soc_type=$(getenv "soc_type")
|
|
||||||
if [ "$soc_type" = "imx8dx" ]; then
|
|
||||||
bus_width="16bit"
|
|
||||||
fi
|
|
||||||
|
|
||||||
module_ram=$(getenv "module_ram")
|
|
||||||
if [ -z "${module_ram}" ]; 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" ] || [ "$module_variant" = "0x00" ]; then
|
if [ -n "$module_variant" ] || [ "$module_variant" = "0x00" ]; then
|
||||||
if [ "$module_variant" = "0x01" ] || \
|
if [ "$module_variant" = "0x12" ]; then
|
||||||
[ "$module_variant" = "0x04" ] || \
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc2GB.imx"
|
||||||
[ "$module_variant" = "0x05" ]; then
|
elif [ "$module_variant" = "0x01" ] || \
|
||||||
module_ram="1GB"
|
[ "$module_variant" = "0x02" ] || \
|
||||||
elif [ "$module_variant" = "0x06" ] || \
|
[ "$module_variant" = "0x04" ] || \
|
||||||
[ "$module_variant" = "0x09" ]; then
|
[ "$module_variant" = "0x05" ] || \
|
||||||
module_ram="512MB"
|
[ "$module_variant" = "0x0b" ] || \
|
||||||
|
[ "$module_variant" = "0x0d" ] || \
|
||||||
|
[ "$module_variant" = "0x10" ] || \
|
||||||
|
[ "$module_variant" = "0x11" ] || \
|
||||||
|
[ "$module_variant" = "0x14" ] || \
|
||||||
|
[ "$module_variant" = "0x15" ] || \
|
||||||
|
[ "$module_variant" = "0x16" ]; then
|
||||||
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc.imx"
|
||||||
else
|
else
|
||||||
module_ram="2GB"
|
INSTALL_UBOOT_FILENAME="u-boot-cc${soc_family}sbc512MB.imx"
|
||||||
fi
|
fi
|
||||||
INSTALL_UBOOT_FILENAME="imx-boot-##MACHINE##-${soc_rev}-${module_ram}_${bus_width}.bin"
|
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
INSTALL_UBOOT_FILENAME="imx-boot-##MACHINE##-${soc_rev}-${module_ram}_${bus_width}.bin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove redirect
|
# remove redirect
|
||||||
|
|
@ -137,15 +128,17 @@ if [ -z ${INSTALL_UBOOT_FILENAME} ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "[ERROR] Cannot determine U-Boot file for this module!"
|
echo "[ERROR] Cannot determine U-Boot file for this module!"
|
||||||
echo ""
|
echo ""
|
||||||
echo "1. Add U-boot file name, depending on your ConnectCore 8X variant, to script command line:"
|
echo "1. Set variable 'INSTALL_UBOOT_FILENAME' depending on your ConnectCore 6 variant:"
|
||||||
echo " - For a QuadXPlus CPU with 1GB LPDDR4, run:"
|
echo " - For a Quad/Dual CPU with 2GB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-1GB_32bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc2GB.imx"
|
||||||
echo " - For a QuadXPlus CPU with 2GB LPDDR4, run:"
|
echo " - For a Quad/Dual CPU with 1GB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-2GB_32bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc.imx"
|
||||||
echo " - For a DualX CPU with 1GB LPDDR4, run:"
|
echo " - For a Quad/Dual CPU with 512MB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-1GB_16bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qsbc512MB.imx"
|
||||||
echo " - For a DualX CPU with 512MB LPDDR4, run:"
|
echo " - For a DualLite/Solo CPU with 1GB DDR3, run:"
|
||||||
echo " => ./install_linux_fw_uuu.sh -u imx-boot-##MACHINE##-${soc_rev}-512MB_16bit.bin"
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc.imx"
|
||||||
|
echo " - For a DualLite/Solo CPU with 512MB DDR3, run:"
|
||||||
|
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6dlsbc512MB.imx"
|
||||||
echo ""
|
echo ""
|
||||||
echo "2. Run the install script again."
|
echo "2. Run the install script again."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
@ -271,7 +264,7 @@ uuu fb: ucmd setenv bootcmd "
|
||||||
echo \"\";
|
echo \"\";
|
||||||
echo \"\";
|
echo \"\";
|
||||||
saveenv;
|
saveenv;
|
||||||
fastboot 1;
|
fastboot 0;
|
||||||
"
|
"
|
||||||
|
|
||||||
uuu fb: ucmd saveenv
|
uuu fb: ucmd saveenv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue