summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes/images/files/colibri-imx7/update.sh70
-rwxr-xr-xrecipes/images/files/colibri-vf/update.sh58
-rwxr-xr-xrecipes/images/files/library/imx6/update.sh87
-rwxr-xr-xrecipes/images/files/library/tegra/update.sh194
4 files changed, 265 insertions, 144 deletions
diff --git a/recipes/images/files/colibri-imx7/update.sh b/recipes/images/files/colibri-imx7/update.sh
index 8ebe604..53f9391 100755
--- a/recipes/images/files/colibri-imx7/update.sh
+++ b/recipes/images/files/colibri-imx7/update.sh
@@ -49,31 +49,36 @@ Usage()
echo "The script format_sd.sh may be used to format the SD card."
echo ""
echo "The flash step requires a running U-Boot on the target. Either one already"
- echo "flashed on the NAND or downloaded using serial downloader (argument -d)."
+ echo "flashed on the NAND or downloaded using serial downloader (argument -d)."
echo ""
echo "-d : use a USB connection to copy/execute U-Boot to/from module's RAM"
echo "-f : flash instructions"
echo "-h : prints this message"
+ echo "-m : module type: 0: autodetect from ./rootfs/etc/issues (default)"
+ echo " 1: Colibri iMX7"
echo "-o directory : output directory"
echo ""
- echo "Example \"./update.sh -o /media/KERNEL/\" copies the required files to SD card"
+ echo "Example \"./update.sh -o /media/KERNEL/\" copies the required files to SD card"
echo ""
echo "*** For detailed recovery/update procedures, refer to the following website: ***"
- echo "http://developer.toradex.com/knowledge-base/flashing-linux-on-vybrid-modules"
+ echo "http://developer.toradex.com/knowledge-base/flashing-embedded-linux-to-imx7-modules"
echo ""
}
# initialise options
-UBOOT_RECOVERY=0
-OUT_DIR=""
+KERNEL_DEVICETREE="imx7s-colibri-eval-v3.dtb imx7d-colibri-eval-v3.dtb"
+KERNEL_IMAGETYPE="zImage"
+MODTYPE_DETECT=0
+
# NAND parameters
-PAGE=2KiB
BLOCK=124KiB
MAXLEB=8112
-KERNEL_DEVICETREE="imx7s-colibri-eval-v3.dtb imx7d-colibri-eval-v3.dtb"
-KERNEL_IMAGETYPE="zImage"
+PAGE=2KiB
-while getopts "dfhno:s" Option ; do
+OUT_DIR=""
+UBOOT_RECOVERY=0
+
+while getopts "dfhm:o:" Option ; do
case $Option in
d) UBOOT_RECOVERY=1
;;
@@ -83,6 +88,8 @@ while getopts "dfhno:s" Option ; do
h) Usage
exit 0
;;
+ m) MODTYPE_DETECT=$OPTARG
+ ;;
o) OUT_DIR=$OPTARG
;;
esac
@@ -99,23 +106,42 @@ if [ ! -d "$OUT_DIR" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then
exit 1
fi
-# auto detect MODTYPE from rootfs directory
-if [ -f rootfs/etc/issue ] ; then
- CNT=`grep -c "MX7" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Colibri iMX7 rootfs detected"
- MODTYPE=colibri-imx7
+case $MODTYPE_DETECT in
+ 0) # auto detect MODTYPE from rootfs directory
+ if [ -f rootfs/etc/issue ] ; then
+ CNT=`grep -c "MX7" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Colibri iMX7 rootfs detected"
+ MODTYPE=colibri-imx7
+ fi
+ fi
+ if [ -e $MODTYPE ] ; then
+ echo "can not detect module type from ./rootfs/etc/issue"
+ echo "please specify the module type with the -m parameter"
+ echo "see help: '$ ./update.sh -h'"
+ echo "exiting"
+ exit 1
+ fi
+ ;;
+ 1) MODTYPE=colibri-imx7
+ echo "Colibri iMX7 rootfs specified"
+ ;;
+ *) echo "-m paramter specifies an unknown value"
+ exit 1
+ ;;
+esac
+
+case "$MODTYPE" in
+ "colibri-imx7")
IMAGEFILE=ubifs.img
LOCPATH="imx_flash"
OUT_DIR="$OUT_DIR/colibri_imx7"
- fi
-fi
+ ;;
+ *) echo "script internal error, unknown module type set"
+ exit 1
+ ;;
+esac
-if [ -e $MODTYPE ] ; then
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
- exit 1
-fi
BINARIES=${MODTYPE}_bin
#is only U-Boot to be copied to RAM?
diff --git a/recipes/images/files/colibri-vf/update.sh b/recipes/images/files/colibri-vf/update.sh
index 57ba05f..bf6dd5b 100755
--- a/recipes/images/files/colibri-vf/update.sh
+++ b/recipes/images/files/colibri-vf/update.sh
@@ -56,6 +56,8 @@ Usage()
echo "-d uart_dev : use UART connection to copy/execute U-Boot to/from module's RAM"
echo "-f : flash instructions"
echo "-h : prints this message"
+ echo "-m : module type: 0: autodetect from ./rootfs/etc/issues (default)"
+ echo " 1: Colibri VF50/VF61"
echo "-n : disable hardware flow control (bridge RTS/CTS!)"
echo "-o directory : output directory"
echo "-s : optimise file system for 128MB NAND, increases usable space"
@@ -69,17 +71,18 @@ Usage()
}
# initialise options
-UBOOT_RECOVERY=0
+KERNEL_DEVICETREE="vf500-colibri-eval-v3.dtb vf610-colibri-eval-v3.dtb"
+KERNEL_IMAGETYPE="zImage"
+MODTYPE_DETECT=0
NORTSCTS=0
OUT_DIR=""
+UBOOT_RECOVERY=0
# NAND parameters
PAGE=2KiB
BLOCK=124KiB
MAXLEB=8112
-KERNEL_DEVICETREE="vf500-colibri-eval-v3.dtb vf610-colibri-eval-v3.dtb"
-KERNEL_IMAGETYPE="zImage"
-while getopts "d:fhno:s" Option ; do
+while getopts "d:fhm:no:s" Option ; do
case $Option in
d) UBOOT_RECOVERY=1
UARTDEV=$OPTARG
@@ -90,6 +93,8 @@ while getopts "d:fhno:s" Option ; do
h) Usage
exit 0
;;
+ m) MODTYPE_DETECT=$OPTARG
+ ;;
n) NORTSCTS=1
;;
o) OUT_DIR=$OPTARG
@@ -110,23 +115,42 @@ if [ ! -d "$OUT_DIR" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then
exit 1
fi
-# auto detect MODTYPE from rootfs directory
-if [ -f rootfs/etc/issue ] ; then
- CNT=`grep -c "VF" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Colibri VF rootfs detected"
- MODTYPE=colibri-vf
+case $MODTYPE_DETECT in
+ 0) # auto detect MODTYPE from rootfs directory
+ if [ -f rootfs/etc/issue ] ; then
+ CNT=`grep -c "VF" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Colibri VF rootfs detected"
+ MODTYPE=colibri-vf
+ fi
+ fi
+ if [ -e $MODTYPE ] ; then
+ echo "can not detect module type from ./rootfs/etc/issue"
+ echo "please specify the module type with the -m parameter"
+ echo "see help: '$ ./update.sh -h'"
+ echo "exiting"
+ exit 1
+ fi
+ ;;
+ 1) MODTYPE=colibri-vf
+ echo "Colibri VF rootfs specified"
+ ;;
+ *) echo "-m paramter specifies an unknown value"
+ exit 1
+ ;;
+esac
+
+case "$MODTYPE" in
+ "colibri-vf")
IMAGEFILE=ubifs.img
LOCPATH="vf_flash"
OUT_DIR="$OUT_DIR/colibri_vf"
- fi
-fi
+ ;;
+ *) echo "script internal error, unknown module type set"
+ exit 1
+ ;;
+esac
-if [ -e $MODTYPE ] ; then
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
- exit 1
-fi
BINARIES=${MODTYPE}_bin
#is only U-Boot to be copied to RAM?
diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh
index d613ecf..8d9d9ba 100755
--- a/recipes/images/files/library/imx6/update.sh
+++ b/recipes/images/files/library/imx6/update.sh
@@ -21,6 +21,7 @@ Flash()
echo "to update a single component enter one of:"
echo "'run update_uboot' or 'run update_uboot_it'"
echo "'run update_kernel'"
+ echo "'run update_fdt'"
echo "'run update_rootfs'"
echo ""
echo "for 'Apalis iMX6Q 2GB IT' use the version with '_it'."
@@ -43,6 +44,9 @@ Usage()
echo "-d : use USB connection to copy/execute U-Boot to/from module's RAM"
echo "-f : flash instructions"
echo "-h : prints this message"
+ echo "-m : module type: 0: autodetect from ./rootfs/etc/issues (default)"
+ echo " 1: Apalis iMX6"
+ echo " 2: Colibri iMX6"
echo "-o directory : output directory"
echo ""
echo "Example \"./update.sh -o /srv/tftp/\" copies the required files to /srv/tftp/"
@@ -53,16 +57,15 @@ Usage()
}
# initialise options
+KERNEL_IMAGETYPE="uImage"
MIN_PARTITION_FREE_SIZE=100
+MODTYPE_DETECT=0
OUT_DIR=""
ROOTFSPATH=rootfs
SPLIT=0
UBOOT_RECOVERY=0
-# No devicetree by default
-KERNEL_DEVICETREE=""
-KERNEL_IMAGETYPE="uImage"
-while getopts "cdfho:" Option ; do
+while getopts "cdfhm:o:" Option ; do
case $Option in
c) SPLIT=1
;;
@@ -74,6 +77,8 @@ while getopts "cdfho:" Option ; do
h) Usage
exit 0
;;
+ m) MODTYPE_DETECT=$OPTARG
+ ;;
o) OUT_DIR=$OPTARG
;;
esac
@@ -90,24 +95,42 @@ if [ ! -d "$OUT_DIR" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then
exit 1
fi
-# auto detect MODTYPE from rootfs directory
-CNT=`grep -ic "Colibri.iMX6" rootfs/etc/issue || true`
-if [ "$CNT" -ge 1 ] ; then
- echo "Colibri iMX6 rootfs detected"
- MODTYPE=colibri-imx6
- # assumed minimal eMMC size [in sectors of 512]
- EMMC_SIZE=$(expr 1024 \* 3500 \* 2)
- IMAGEFILE=root.ext3
- KERNEL_DEVICETREE="imx6dl-colibri-eval-v3.dtb imx6dl-colibri-cam-eval-v3.dtb"
- LOCPATH="imx_flash"
- OUT_DIR="$OUT_DIR/colibri_imx6"
- U_BOOT_BINARY=u-boot.imx
- U_BOOT_BINARY_IT=u-boot.imx
-else
- CNT=`grep -ic "imx6" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Apalis iMX6 rootfs detected"
- MODTYPE=apalis-imx6
+case $MODTYPE_DETECT in
+ 0) # auto detect MODTYPE from rootfs directory
+ if [ -f rootfs/etc/issue ] ; then
+ CNT=`grep -ic "Colibri.iMX6" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Colibri iMX6 rootfs detected"
+ MODTYPE=colibri-imx6
+ else
+ CNT=`grep -ic "imx6" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Apalis iMX6 rootfs detected"
+ MODTYPE=apalis-imx6
+ fi
+ fi
+ fi
+ if [ -e $MODTYPE ] ; then
+ echo "can not detect module type from ./rootfs/etc/issue"
+ echo "please specify the module type with the -m parameter"
+ echo "see help: '$ ./update.sh -h'"
+ echo "exiting"
+ exit 1
+ fi
+ ;;
+ 1) MODTYPE=apalis-imx6
+ echo "Apalis T30 rootfs specified"
+ ;;
+ 2) MODTYPE=colibri-imx6
+ echo "Colibri T20 rootfs specified"
+ ;;
+ *) echo "-m paramter specifies an unknown value"
+ exit 1
+ ;;
+esac
+
+case "$MODTYPE" in
+ "apalis-imx6")
# assumed minimal eMMC size [in sectors of 512]
EMMC_SIZE=$(expr 1024 \* 3500 \* 2)
IMAGEFILE=root.ext3
@@ -117,12 +140,22 @@ else
OUT_DIR="$OUT_DIR/apalis_imx6"
U_BOOT_BINARY=u-boot.imx
U_BOOT_BINARY_IT=u-boot.imx-it
- else
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
+ ;;
+ "colibri-imx6")
+ # assumed minimal eMMC size [in sectors of 512]
+ EMMC_SIZE=$(expr 1024 \* 3500 \* 2)
+ IMAGEFILE=root.ext3
+ KERNEL_DEVICETREE="imx6dl-colibri-eval-v3.dtb imx6dl-colibri-cam-eval-v3.dtb"
+ LOCPATH="imx_flash"
+ OUT_DIR="$OUT_DIR/colibri_imx6"
+ U_BOOT_BINARY=u-boot.imx
+ U_BOOT_BINARY_IT=u-boot.imx
+ ;;
+ *) echo "script internal error, unknown module type set"
exit 1
- fi
-fi
+ ;;
+esac
+
BINARIES=${MODTYPE}_bin
#is only U-Boot to be copied to RAM?
diff --git a/recipes/images/files/library/tegra/update.sh b/recipes/images/files/library/tegra/update.sh
index 4780be6..1229675 100755
--- a/recipes/images/files/library/tegra/update.sh
+++ b/recipes/images/files/library/tegra/update.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Prepare files needed for flashing an Apalis/Colibri T20/T30 module and
+# Prepare files needed for flashing an Apalis/Colibri T20/T30/TK1 module and
# copy them to a convenient location for using from a running U-Boot
# exit on error
@@ -7,7 +7,7 @@ set -e
Flash()
{
- echo "To flash the Apalis/Colibri T20/T30 module a running U-Boot is required. Boot"
+ echo "To flash the Apalis/Colibri T20/T30/TK1 module a running U-Boot is required. Boot"
echo "the module to the U-Boot prompt and"
echo ""
echo "insert the SD card, USB flash drive or when using TFTP connect Ethernet only"
@@ -20,7 +20,7 @@ Flash()
echo "Alternatively, to update U-Boot enter:"
echo "'run update_uboot'"
echo "to update a component stored in UBI enter:"
- echo "'run prepare_ubi'"
+ echo "'run prepare_ubi' (for Colibri T20)"
echo "followed by one of:"
echo "'run update_kernel'"
echo "'run update_fdt' (for device tree enabled kernels)"
@@ -36,7 +36,7 @@ Flash()
Usage()
{
echo ""
- echo "Prepares and copies files for flashing internal eMMC/NAND of Apalis T30 and"
+ echo "Prepares and copies files for flashing internal eMMC/NAND of Apalis T30/TK1 and"
echo "Colibri T20/T30"
echo ""
echo "Will require a running U-Boot on the target. Either one already flashed on the"
@@ -47,6 +47,11 @@ Usage()
echo "-d : use USB recovery mode to copy/execute U-Boot to/from module's RAM"
echo "-f : flash instructions"
echo "-h : prints this message"
+ echo "-m : module type: 0: autodetect from ./rootfs/etc/issues (default)"
+ echo " 1: Apalis T30"
+ echo " 2: Apalis TK1"
+ echo " 3: Colibri T20"
+ echo " 4: Colibri T30"
echo "-o directory : output directory"
echo "-r : T20 recovery mode: select RAM size (256 | 512)"
echo "-s : T20: optimise file system for V1.1 or 256MB V1.2 modules,"
@@ -64,11 +69,11 @@ Usage()
# initialise options
BOOT_DEVICE=nand
EMMC_PARTS="mbr.bin boot.vfat"
-SPLIT=0
# no devicetree by default
KERNEL_DEVICETREE=""
KERNEL_IMAGETYPE="uImage"
MIN_PARTITION_FREE_SIZE=100
+MODTYPE_DETECT=0
# NAND parameters
BLOCK="248KiB 504KiB"
@@ -77,13 +82,14 @@ PAGE="4KiB"
OUT_DIR=""
ROOTFSPATH=rootfs
+SPLIT=0
UBOOT_RECOVERY=0
# don't provide working defaults which may lead to wrong HW/SW combination
MODVERSION=Add_Version_-v
RAM_SIZE=Add_RAMsize_-r
-while getopts "b:cdfho:r:sv:" Option ; do
+while getopts "b:cdfhm:o:r:sv:" Option ; do
case $Option in
b) BOOT_DEVICE=$OPTARG
;;
@@ -97,6 +103,8 @@ while getopts "b:cdfho:r:sv:" Option ; do
h) Usage
exit 0
;;
+ m) MODTYPE_DETECT=$OPTARG
+ ;;
o) OUT_DIR=$OPTARG
;;
r) RAM_SIZE=$OPTARG
@@ -120,13 +128,66 @@ if [ ! -d "$OUT_DIR" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then
exit 1
fi
-# auto detect MODTYPE from rootfs directory
-CNT=`grep -ic "apalis" rootfs/etc/issue || true`
-if [ "$CNT" -ge 1 ] ; then
- CNT=`grep -ic "t30" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Apalis T30 rootfs detected"
- MODTYPE=apalis-t30
+case $MODTYPE_DETECT in
+ 0) # auto detect MODTYPE from rootfs directory
+ if [ -f rootfs/etc/issue ] ; then
+ CNT=`grep -ic "apalis" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ CNT=`grep -ic "t30" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Apalis T30 rootfs detected"
+ MODTYPE=apalis-t30
+ else
+ CNT=`grep -ic "tk1" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Apalis TK1 rootfs detected"
+ MODTYPE=apalis-tk1
+ fi
+ fi
+ else
+ CNT=`grep -ic "colibri" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ CNT=`grep -ic "t20" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Colibri T20 rootfs detected"
+ MODTYPE=colibri-t20
+ else
+ CNT=`grep -ic "t30" rootfs/etc/issue || true`
+ if [ "$CNT" -ge 1 ] ; then
+ echo "Colibri T30 rootfs detected"
+ MODTYPE=colibri-t30
+ fi
+ fi
+ fi
+ fi
+ fi
+ if [ -e $MODTYPE ] ; then
+ echo "can not detect module type from ./rootfs/etc/issue"
+ echo "please specify the module type with the -m parameter"
+ echo "see help: '$ ./update.sh -h'"
+ echo "exiting"
+ exit 1
+ fi
+ ;;
+ 1) MODTYPE=apalis-t30
+ echo "Apalis T30 rootfs specified"
+ ;;
+ 2) MODTYPE=apalis-tk1
+ echo "Apalis TK1 rootfs specified"
+ ;;
+ 3) MODTYPE=colibri-t20
+ echo "Colibri T20 rootfs specified"
+ ;;
+ 4) MODTYPE=colibri-t30
+ echo "Colibri T30 rootfs specified"
+ ;;
+ *) echo "-m paramter specifies an unknown value"
+ exit 1
+ ;;
+esac
+
+case "$MODTYPE" in
+ "apalis-t30")
# BCT=apalis_t30_12MHz_MT41K512M8RH-125_533MHz.bct
BCT=Apalis_T30_2GB_800Mhz.bct
CBOOT_IMAGE=apalis_t30.img
@@ -138,72 +199,49 @@ if [ "$CNT" -ge 1 ] ; then
LOCPATH="tegra-uboot-flasher"
OUT_DIR="$OUT_DIR/apalis_t30"
U_BOOT_BINARY=u-boot-dtb-tegra.bin
- else
- CNT=`grep -ic "tk1" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Apalis TK1 rootfs detected"
- MODTYPE=apalis-tk1
- BCT=PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct
- CBOOT_IMAGE=apalis-tk1.img
- CBOOT_IMAGE_TARGET=tegra124
- # assumed minimal eMMC size [in sectors of 512]
- EMMC_SIZE=$(expr 1024 \* 7450 \* 2)
- IMAGEFILE=root.ext3
- KERNEL_DEVICETREE="tegra124-apalis-eval.dtb"
- LOCPATH="tegra-uboot-flasher"
- OUT_DIR="$OUT_DIR/apalis-tk1"
- U_BOOT_BINARY=u-boot-dtb-tegra.bin
- else
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
- exit 1
- fi
- fi
-else
- CNT=`grep -ic "colibri" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- CNT=`grep -ic "t20" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Colibri T20 rootfs detected"
- MODTYPE=colibri-t20
- BCT=colibri_t20-${RAM_SIZE}-${MODVERSION}-${BOOT_DEVICE}.bct
- CBOOT_IMAGE="colibri_t20-256-v11-nand.img colibri_t20-256-v12-nand.img colibri_t20-512-v11-nand.img colibri_t20-512-v12-nand.img"
- CBOOT_IMAGE_TARGET=tegra20
- EMMC_PARTS=""
- IMAGEFILE=ubifs
- KERNEL_DEVICETREE="tegra20-colibri-eval-v3.dtb"
- KERNEL_IMAGETYPE="zImage"
- LOCPATH="tegra-uboot-flasher"
- OUT_DIR="$OUT_DIR/colibri_t20"
- U_BOOT_BINARY=u-boot-dtb-tegra.bin
- else
- CNT=`grep -ic "t30" rootfs/etc/issue || true`
- if [ "$CNT" -ge 1 ] ; then
- echo "Colibri T30 rootfs detected"
- MODTYPE=colibri-t30
- # with new kernel, boot with 400MHz, then switch between 400 & 800
- BCT=colibri_t30_12MHz_NT5CC256M16CP-DI_400MHz.bct
-# BCT=colibri_t30_12MHz_NT5CC256M16CP-DI_533MHz.bct
- CBOOT_IMAGE=colibri_t30.img
- CBOOT_IMAGE_TARGET=tegra30
- EMMC_SIZE=$(expr 1024 \* 2000 \* 2)
- IMAGEFILE=root.ext3
- KERNEL_DEVICETREE="tegra30-colibri-eval-v3.dtb"
- LOCPATH="tegra-uboot-flasher"
- OUT_DIR="$OUT_DIR/colibri_t30"
- U_BOOT_BINARY=u-boot-dtb-tegra.bin
- else
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
- exit 1
- fi
- fi
- else
- echo "can not detect module type from ./rootfs/etc/issue"
- echo "exiting"
+ ;;
+ "apalis-tk1")
+ BCT=PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct
+ CBOOT_IMAGE=apalis-tk1.img
+ CBOOT_IMAGE_TARGET=tegra124
+ # assumed minimal eMMC size [in sectors of 512]
+ EMMC_SIZE=$(expr 1024 \* 7450 \* 2)
+ IMAGEFILE=root.ext3
+ KERNEL_DEVICETREE="tegra124-apalis-eval.dtb"
+ LOCPATH="tegra-uboot-flasher"
+ OUT_DIR="$OUT_DIR/apalis-tk1"
+ U_BOOT_BINARY=u-boot-dtb-tegra.bin
+ ;;
+ "colibri-t20")
+ BCT=colibri_t20-${RAM_SIZE}-${MODVERSION}-${BOOT_DEVICE}.bct
+ CBOOT_IMAGE="colibri_t20-256-v11-nand.img colibri_t20-256-v12-nand.img colibri_t20-512-v11-nand.img colibri_t20-512-v12-nand.img"
+ CBOOT_IMAGE_TARGET=tegra20
+ EMMC_PARTS=""
+ IMAGEFILE=ubifs
+ KERNEL_DEVICETREE="tegra20-colibri-eval-v3.dtb"
+ KERNEL_IMAGETYPE="zImage"
+ LOCPATH="tegra-uboot-flasher"
+ OUT_DIR="$OUT_DIR/colibri_t20"
+ U_BOOT_BINARY=u-boot-dtb-tegra.bin
+ ;;
+ "colibri-t30")
+ # with new kernel, boot with 400MHz, then switch between 400 & 800
+ BCT=colibri_t30_12MHz_NT5CC256M16CP-DI_400MHz.bct
+# BCT=colibri_t30_12MHz_NT5CC256M16CP-DI_533MHz.bct
+ CBOOT_IMAGE=colibri_t30.img
+ CBOOT_IMAGE_TARGET=tegra30
+ EMMC_SIZE=$(expr 1024 \* 2000 \* 2)
+ IMAGEFILE=root.ext3
+ KERNEL_DEVICETREE="tegra30-colibri-eval-v3.dtb"
+ LOCPATH="tegra-uboot-flasher"
+ OUT_DIR="$OUT_DIR/colibri_t30"
+ U_BOOT_BINARY=u-boot-dtb-tegra.bin
+ ;;
+ *) echo "script internal error, unknown module type set"
exit 1
- fi
-fi
+ ;;
+esac
+
BINARIES=${MODTYPE}_bin
#is only U-Boot to be copied to RAM?