summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-03-06 22:10:16 -0300
committerRicardo Salveti <ricardo@opensourcefoundries.com>2018-03-27 22:10:35 -0300
commitcdc758ec0598fb948126b738e9525ecafe70d5f2 (patch)
tree61fe3600a95409cf8d589fd2185a9b9b9cc5a628
parentc4fe17eab3327dbd6347bd697d58d8a7f96c05ba (diff)
Add machine configuration for colibri-imx7
Based on the machine configuration available in meta-freescale-3rdparty but extended in order to support both the nand and emmc versions. Can be removed once the required changes are merged upstream. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r--conf/machine/colibri-imx7.conf44
1 files changed, 44 insertions, 0 deletions
diff --git a/conf/machine/colibri-imx7.conf b/conf/machine/colibri-imx7.conf
new file mode 100644
index 0000000..2365c18
--- /dev/null
+++ b/conf/machine/colibri-imx7.conf
@@ -0,0 +1,44 @@
+#@TYPE: Machine
+#@NAME: Toradex Colibri iMX7D/S
+#@SOC: i.MX 7Dual / i.MX 7Solo
+#@DESCRIPTION: Machine configuration for Toradex Colibri iMX7 SOM
+#@MAINTAINER: Max Krummenacher <max.krummenacher@toradex.com>
+
+MACHINEOVERRIDES =. "mx7:mx7d:"
+
+include conf/machine/include/imx-base.inc
+include conf/machine/include/tune-cortexa7.inc
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-toradex"
+KERNEL_IMAGETYPE = "zImage"
+KERNEL_DEVICETREE += "imx7d-colibri-eval-v3.dtb imx7s-colibri-eval-v3.dtb \
+ imx7d-colibri-aster.dtb imx7s-colibri-aster.dtb \
+ imx7d-colibri-emmc-eval-v3.dtb imx7d-colibri-emmc-aster.dtb"
+
+# U-Boot of our newer release read the Kernel and device tree from static UBI
+# volumes, hence no need to deploy the kernel binary in the image itself
+RDEPENDS_kernel-base = ""
+
+PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"
+
+# U-Boot NAND binary includes 0x400 padding required for NAND boot
+UBOOT_MAKE_TARGET = ""
+UBOOT_BINARY = "u-boot-nand.imx"
+UBOOT_CONFIG ??= "sd nd"
+UBOOT_CONFIG[sd] = "colibri_imx7_emmc_defconfig,,u-boot.imx"
+UBOOT_CONFIG[nd] = "colibri_imx7_defconfig,,u-boot-nand.imx"
+
+IMAGE_FSTYPES = "wic.gz tar.xz"
+# wic support
+WKS_FILE = "sdimage-bootpart.wks"
+WIC_CREATE_EXTRA_ARGS_append = " --no-fstab-update"
+
+# Enable free --space-fixup (-F) by default, this allows DFU updates
+MKUBIFS_ARGS = " -c 8112 -e 124KiB -m 2KiB -F"
+UBINIZE_ARGS = " -p 128KiB -m 2048 -s 2048"
+UBI_VOLNAME = "rootfs"
+
+SERIAL_CONSOLE = "115200 ttymxc0"
+
+MACHINE_FEATURES += "screen usbgadget usbhost vfat ext2 alsa touchscreen wifi bluetooth 3g"