ccimx6qpsbc: add support for variants 0x02 and 0x03

Build the U-Boot for variants with 1GB of memory and make the installation and
boot scripts recognize all of the current variants.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2020-10-21 13:55:16 +02:00
parent 5a8b929694
commit d7d8c7aa56
3 changed files with 12 additions and 2 deletions

View File

@ -22,7 +22,8 @@ PREFERRED_PROVIDER_virtual/libg2d_mx6 = "imx-gpu-g2d"
# U-Boot configurations
# Last one is the default (the one the symlinks point at)
UBOOT_CONFIG ??= "ccimx6qpsbc2GB"
UBOOT_CONFIG ??= "ccimx6qpsbc1GB ccimx6qpsbc2GB"
UBOOT_CONFIG[ccimx6qpsbc1GB] = "ccimx6qpsbc1GB_defconfig,,u-boot-dtb.${UBOOT_SUFFIX}"
UBOOT_CONFIG[ccimx6qpsbc2GB] = "ccimx6qpsbc2GB_defconfig,,u-boot-dtb.${UBOOT_SUFFIX}"
KERNEL_DEVICETREE ?= " \

View File

@ -16,6 +16,10 @@ else
#
if test "${module_variant}" = "0x01"; then
setenv fdt_file imx6qp-ccimx6qpsbc-wb.dtb
elif test "${module_variant}" = "0x02"; then
setenv fdt_file imx6qp-ccimx6qpsbc-wb.dtb
elif test "${module_variant}" = "0x03"; then
setenv fdt_file imx6qp-ccimx6qpsbc.dtb
else
setenv fdt_file imx6qp-ccimx6qpsbc-wb.dtb
fi

View File

@ -21,8 +21,10 @@ fi
# Determine U-Boot file to program basing on module variant
if test -n "${module_variant}"; then
if test "${module_variant}" = "0x01"; then
if test "${module_variant}" = "0x01" || test "${module_variant}" = "0x02"; then
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qpsbc2GB.imx;
elif test "${module_variant}" = "0x03"; then
setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qpsbc1GB.imx;
fi
fi
# Use 'test -n ...' because 'test -z ...' does not work well on old versions of
@ -36,6 +38,9 @@ else
echo "1. Set variable 'INSTALL_UBOOT_FILENAME' depending on your ConnectCore 6 QuadPlus variant:";
echo " - For a QuadPlus CPU with 2GB DDR3, run:";
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qpsbc2GB.imx";
echo " - For a DualPlus CPU with 1GB DDR3, run:";
echo " => setenv INSTALL_UBOOT_FILENAME u-boot-ccimx6qpsbc1GB.imx";
echo "";
echo "";
echo "2. Run the install script again.";
echo "";