Skip to contentSkip to conversation

Patch series to add Gateworks Ventana SBCs

PATCH In review Pushpal Sidhu 2 participants 7 messages Apr 18, 2015

lore
Share & tools
lore
#0 lore raw

This patch series adds support for Gateworks Ventana product family. These boards can contain either an i.MX6Q, i.MX6DL, or i.MX6S and have a variety of memory configurations. Please let me know if something is unacceptable and I will rework them.

Thank you.
- Pushpal

#1 lore raw

PATCH 1/3 gateworks ventana: add machine conf

This commit adds a machine conf for the Gateworks Ventana product family. For more information, please see the product site at
http://www.gateworks.com/product#ventana

---
 conf/machine/gwventana.conf | 60 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 conf/machine/gwventana.conf
conf/machine/gwventana.conf new file +60 -0
new file mode 100644
index 0000000..741e8b7
@@ -0,0 +1,60 @@
+#@TYPE: Machine
+#@NAME: i.MX6Q/DL Ventana Platform
+#@SOC: i.MX6Q/DL
+#@DESCRIPTION: Machine configuration for Gateworks Ventana boards.
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/tune-cortexa9.inc
+
+PREFERRED_PROVIDER_u-boot = "u-boot-gwventana"
+PREFERRED_PROVIDER_virtual/kernel = "linux-gwventana"
+
+SOC_FAMILY = "mx6:mx6dl:mx6q"
+
+KERNEL_DEVICETREE  = " \
+	imx6q-gw5400-a.dtb \
+	imx6q-gw51xx.dtb \
+	imx6q-gw52xx.dtb \
+	imx6q-gw53xx.dtb \
+	imx6q-gw54xx.dtb \
+	imx6q-gw551x.dtb \
+	imx6q-gw552x.dtb \
+	imx6dl-gw51xx.dtb \
+	imx6dl-gw52xx.dtb \
+	imx6dl-gw53xx.dtb \
+	imx6dl-gw54xx.dtb \
+	imx6dl-gw551x.dtb \
+	imx6dl-gw552x.dtb \
+"
+
+KERNEL_IMAGETYPE = "uImage"
+
+MACHINE_FEATURES += "pci wifi bluetooth"
+
+# Add kernel/modules
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
+MACHINE_EXTRA_RRECOMMENDS += "kernel-module-sky2"
+
+# Modules autoload
+KERNEL_MODULE_AUTOLOAD = "sky2"
+
+# Bootloader configs:
+UBOOT_ENTRYPOINT := "10008000"
+UBOOT_CONFIG ??= "std"
+UBOOT_CONFIG[std] = "gwventana_config"
+
+# Put bootscript on board
+do_rootfs[depends] += "u-boot-script-gateworks:do_install"
+
+SERIAL_CONSOLE = "115200 ttymxc1"
+
+# Override FS Type Creation
+IMAGE_FSTYPES = "tar.bz2 ubi"
+
+UBI_VOLNAME = "rootfs"
+# 256MB ('normal' flash layout)
+MKUBIFS_ARGS += "-F -m 2048 -e 124KiB -c 1912 -x zlib"
+UBINIZE_ARGS += "-m 2048 -p 128KiB -s 2048"
+# 2GB ('large' flash layout)
+#MKUBIFS_ARGS += "-F -m 4096 -e 248KiB -c 8124 -x zlib"
+#UBINIZE_ARGS += "-m 4096 -p 256KiB -s 4096"
Signature · 1 line
2.3.5
#3 lore raw

PATCH 2/3 uboot-gwventana: initial recipe for uboot

In reply to Pushpal Sidhu

This commit adds the initial recipes for Gateworks Ventana boards. This includes a bootscript recipe along with a bootloader recipe.

---
 recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb     |  15 +++
 recipes-bsp/u-boot/u-boot-script-gateworks.bb      |  28 ++++
 .../6x_bootscript-yocto.txt                        | 141 +++++++++++++++++++++
 3 files changed, 184 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-script-gateworks.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-script-gateworks/6x_bootscript-yocto.txt
recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb new file +15 -0
new file mode 100644
index 0000000..e733952
@@ -0,0 +1,15 @@
+require recipes-bsp/u-boot/u-boot.inc
+
+DESCRIPTION = "U-Boot for Gateworks Ventana Family SBC's"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
+DEPENDS = "u-boot-mkimage-native"
+
+PR = "r1"
+PV = "v2014.04+git${SRCPV}"
+
+SRCREV = "f2a73003969ef178e4734a3658d8295dde63901e"
+SRC_URI = "git://github.com/Gateworks/u-boot-imx6.git;branch=gateworks_v2014.04"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(gwventana)"
recipes-bsp/u-boot/u-boot-script-gateworks.bb new file +28 -0
new file mode 100644
index 0000000..693ec26
@@ -0,0 +1,28 @@
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
+DEPENDS = "u-boot-mkimage-native"
+
+PR = "r1"
+SRC_URI = "file://6x_bootscript-yocto.txt"
+
+DESTDIR = "/boot"
+S = "${WORKDIR}"
+
+do_compile() {
+    bootscript="${THISDIR}/u-boot-script-gateworks/6x_bootscript-yocto.txt"
+    echo "bootscript == $bootscript"
+
+    uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
+        -n "boot script" -d $bootscript \
+        6x_bootscript
+}
+
+do_install() {
+    install -d ${D}/${DESTDIR}
+    install ${S}/6x_bootscript ${D}${DESTDIR}/6x_bootscript-${MACHINE}
+}
+
+FILES_${PN} = "${DESTDIR}/*"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(gwventana)"
recipes-bsp/u-boot/u-boot-script-gateworks/6x_bootscript-yocto.txt new file +141 -0

141 lines not on this page · raw message

Signature · 1 line
2.3.5
#5 lore raw

PATCH 3/3 linux-gwventana: Initial linux kernel recipe

In reply to Pushpal Sidhu

This commit adds a kernel recipe based on Freescale's 3.10.53_1.1.0_ga kernel. The defconfig used is located in arch/arm/configs/gwventana_config.

---
 recipes-kernel/linux/linux-gwventana_3.10.53.bb | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-gwventana_3.10.53.bb
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +23 -0
new file mode 100644
index 0000000..81abe89
@@ -0,0 +1,23 @@
+# Copyright (C) 2014 Gateworks Corporation
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require recipes-kernel/linux/linux-imx.inc
+require recipes-kernel/linux/linux-dtb.inc
+
+PR = "1"
+
+DEPENDS += "lzop-native bc-native"
+
+COMPATIBLE_MACHINE = "(gwventana)"
+
+# override URI of source for Gateworks linux-imx kernel
+SRCREV = "daca48d0edd5e850a956e68facf190b567be9434"
+LOCALVERSION = "-1.1.0_ga+yocto"
+SRC_URI = "git://github.com/Gateworks/linux-imx6.git;protocol=git;branch=gateworks_3.10.53_1.1.0_ga"
+
+# use defconfig from arch/arm/configs
+# Should note that this defconfig turns off cfg80211 subsystem.
+# To get those drivers, please build with linux-backports (compat-wireless)
+do_configure_prepend() {
+    cp "${S}/arch/arm/configs/gwventana_defconfig" "${WORKDIR}/defconfig"
+}
Signature · 1 line
2.3.5
#2 lore raw

Re: [meta-fsl-arm-extra][PATCH 1/3] gateworks ventana: add machine conf

In reply to Pushpal Sidhu

Hello Pushpal,

I would like to thank you to prepare the patches for the integration of Gateworks board. There are some possible changes which I want to propose, please look at the comments inline ...

Quoted 5 lines · Pushpal Sidhu

This commit adds a machine conf for the Gateworks Ventana product family. For more information, please see the product site at
http://www.gateworks.com/product#ventana

This commit should be the 'last one' as it depends on the u-boot and kernel availability to proper work. So this should be the 3/3 patch.

...

conf/machine/gwventana.conf line 4

Quoted 7 lines
conf/machine/gwventana.conf new file +4 -0
@@ -0,0 +1,60 @@
+#@TYPE: Machine
+#@NAME: i.MX6Q/DL Ventana Platform
+#@SOC: i.MX6Q/DL
+#@DESCRIPTION: Machine configuration for Gateworks Ventana boards

...

Daiane, please see if those works for the Documentation use or might needs adjustments.

...

conf/machine/gwventana.conf line 42

Quoted 2 lines
conf/machine/gwventana.conf new file +2 -0
+# Bootloader configs:
+UBOOT_ENTRYPOINT := "10008000"

This is the same as the default. Please remove it as it is a duplication.

conf/machine/gwventana.conf line 47

Quoted 5 lines
conf/machine/gwventana.conf new file +5 -0
+UBOOT_CONFIG ??= "std"
+UBOOT_CONFIG[std] = "gwventana_config"
+
+# Put bootscript on board
+do_rootfs[depends] += "u-boot-script-gateworks:do_install"

The right task to depends is do_deploy otherwise you can have problems in a build from an empty tmp directory with hot sstate-cache.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

Re: [meta-fsl-arm-extra][PATCH 2/3] uboot-gwventana: initial recipe for uboot

In reply to Pushpal Sidhu

Hello Pushpal,

There are some possible changes which I want to propose, please look at the comments inline ...

Quoted 4 lines · Pushpal Sidhu

This commit adds the initial recipes for Gateworks Ventana boards. This includes a bootscript recipe along with a bootloader recipe.

I noticed all comments starts with 'This commit'. This is very picky but I would start in Adds. So it would be: "Adds initial recipes ..."

Quoted 15 lines
---
 recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb     |  15 +++
 recipes-bsp/u-boot/u-boot-script-gateworks.bb      |  28 ++++
 .../6x_bootscript-yocto.txt                        | 141 +++++++++++++++++++++
 3 files changed, 184 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-script-gateworks.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-script-gateworks/6x_bootscript-yocto.txt
recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb new file +0 -0
new file mode 100644
index 0000000..e733952

recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb line 8

Quoted 8 lines
recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb new file +8 -0
@@ -0,0 +1,15 @@
+require recipes-bsp/u-boot/u-boot.inc
+
+DESCRIPTION = "U-Boot for Gateworks Ventana Family SBC's"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
+DEPENDS = "u-boot-mkimage-native"
+
+PR = "r1"

PR is not needed please drop.

Quoted 13 lines
recipes-bsp/u-boot/u-boot-gwventana_2014.04.bb new file +7 -0
+PV = "v2014.04+git${SRCPV}"
+
+SRCREV = "f2a73003969ef178e4734a3658d8295dde63901e"
+SRC_URI = "git://github.com/Gateworks/u-boot-imx6.git;branch=gateworks_v2014.04"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(gwventana)"
recipes-bsp/u-boot/u-boot-script-gateworks.bb new file +0 -0
new file mode 100644
index 0000000..693ec26

recipes-bsp/u-boot/u-boot-script-gateworks.bb line 5

Quoted 5 lines
recipes-bsp/u-boot/u-boot-script-gateworks.bb new file +5 -0
@@ -0,0 +1,28 @@
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
+DEPENDS = "u-boot-mkimage-native"
+
+PR = "r1"

PR is not needed, please drop.

recipes-bsp/u-boot/u-boot-script-gateworks.bb line 13

Quoted 8 lines
recipes-bsp/u-boot/u-boot-script-gateworks.bb new file +8 -0
+SRC_URI = "file://6x_bootscript-yocto.txt"
+
+DESTDIR = "/boot"
+S = "${WORKDIR}"
+
+do_compile() {
+    bootscript="${THISDIR}/u-boot-script-gateworks/6x_bootscript-yocto.txt"
+    echo "bootscript == $bootscript"

The echo seems to be a remaining debug trick. Please drop.

...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#6 lore raw

Re: [meta-fsl-arm-extra][PATCH 3/3] linux-gwventana: Initial linux kernel recipe

In reply to Pushpal Sidhu

Hello Pushpal,

Some more comments :)

Quoted 16 lines · Pushpal Sidhu

This commit adds a kernel recipe based on Freescale's 3.10.53_1.1.0_ga kernel. The defconfig used is located in arch/arm/configs/gwventana_config.

---
 recipes-kernel/linux/linux-gwventana_3.10.53.bb | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-gwventana_3.10.53.bb
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +0 -0
new file mode 100644
index 0000000..81abe89

recipes-kernel/linux/linux-gwventana_3.10.53.bb line 7

Quoted 7 lines
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +7 -0
@@ -0,0 +1,23 @@
+# Copyright (C) 2014 Gateworks Corporation
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require recipes-kernel/linux/linux-imx.inc
+require recipes-kernel/linux/linux-dtb.inc
+
+PR = "1"

Please drop PR.

recipes-kernel/linux/linux-gwventana_3.10.53.bb line 13

Quoted 5 lines
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +5 -0
+DEPENDS += "lzop-native bc-native"
+
+COMPATIBLE_MACHINE = "(gwventana)"
+
+# override URI of source for Gateworks linux-imx kernel

Comment not necessary. All boards do that so people are usually aware of it.

recipes-kernel/linux/linux-gwventana_3.10.53.bb line 15

Quoted 2 lines
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +2 -0
+SRCREV = "daca48d0edd5e850a956e68facf190b567be9434"
+LOCALVERSION = "-1.1.0_ga+yocto"

I would drop +yocto but this is personal preference.

recipes-kernel/linux/linux-gwventana_3.10.53.bb line 23

Quoted 8 lines
recipes-kernel/linux/linux-gwventana_3.10.53.bb new file +8 -0
+SRC_URI = "git://github.com/Gateworks/linux-imx6.git;protocol=git;branch=gateworks_3.10.53_1.1.0_ga"
+
+# use defconfig from arch/arm/configs
+# Should note that this defconfig turns off cfg80211 subsystem.
+# To get those drivers, please build with linux-backports (compat-wireless)
+do_configure_prepend() {
+    cp "${S}/arch/arm/configs/gwventana_defconfig" "${WORKDIR}/defconfig"
+}

Due user friendness we prefer the defconfig to be included verbatim otherwise people need to prepare patches to change things on it. Take a look how other boards did ;)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750