Patchwork [meta-fsl-arm-extra,4/4] cfa10036: Add cfa10036 machine configuration

login
register
mail settings
Submitter Alexandre Belloni
Date Aug. 22, 2013, 2:51 p.m.
Message ID <1377183077-5270-5-git-send-email-alexandre.belloni@free-electrons.com>
Download mbox | patch
Permalink /patch/56273/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Alexandre Belloni - Aug. 22, 2013, 2:51 p.m.
This configuration supports the following Crystalfontz boards:
 - cfa-10036
 - cfa-10037
 - cfa-10049
 - cfa-10055
 - cfa-10056
 - cfa-10057
 - cfa-10058

which are all based on the cfa-10036.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 conf/machine/cfa10036.conf | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 conf/machine/cfa10036.conf
Otavio Salvador - Aug. 22, 2013, 5:06 p.m.
On Thu, Aug 22, 2013 at 11:51 AM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> This configuration supports the following Crystalfontz boards:
>  - cfa-10036
>  - cfa-10037
>  - cfa-10049
>  - cfa-10055
>  - cfa-10056
>  - cfa-10057
>  - cfa-10058
>
> which are all based on the cfa-10036.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
>  conf/machine/cfa10036.conf | 40 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 conf/machine/cfa10036.conf
>
> diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf
> new file mode 100644
> index 0000000..7f2fe35
> --- /dev/null
> +++ b/conf/machine/cfa10036.conf
> @@ -0,0 +1,40 @@
> +#@TYPE: Machine
> +#@NAME: Crystalfontz CFA-10036
> +#@SOC: i.MX28
> +#@DESCRIPTION: Machine configuration for CFA-10036
> +
> +include conf/machine/include/mxs-base.inc
> +
> +SOC_FAMILY = "mxs:mx28"
> +
> +PREFERRED_PROVIDER_virtual/kernel = "linux-cfa"
> +PREFERRED_VERSION_imx-bootlets = "cfa"
> +
> +BAREBOX_MACHINE = "cfa10036_defconfig"
> +IMAGE_BOOTLOADER = "barebox"
> +BAREBOX_BINARY = "barebox"
> +
> +IMXBOOTLETS_MACHINE = "cfa10036"
> +BOOT_SPACE="32768"
> +
> +KERNEL_IMAGETYPE = "zImage"
> +KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx28-cfa10036.dts"

imx28-cfa10036.dtb ...

No full path.

> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10037.dts"
> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10049.dts"
> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10055.dts"
> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10056.dts"
> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10057.dts"
> +KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10058.dts"
> +
> +#we need the kernel to be installed in the final image
> +IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
> +
> +SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
> +IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.sb sdcard"
> +
> +SERIAL_CONSOLE = "115200 ttyAMA0"
> +
> +MACHINE_FEATURES = "apm usbgadget usbhost vfat"
> +
> +# Gstreamer plugin
> +MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin"
> --
> 1.8.1.2
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
Alexandre Belloni - Aug. 22, 2013, 5:12 p.m.
On 22/08/2013 19:06, Otavio Salvador wrote:
> On Thu, Aug 22, 2013 at 11:51 AM, Alexandre Belloni
> <alexandre.belloni@free-electrons.com> wrote:
>> This configuration supports the following Crystalfontz boards:
>>  - cfa-10036
>>  - cfa-10037
>>  - cfa-10049
>>  - cfa-10055
>>  - cfa-10056
>>  - cfa-10057
>>  - cfa-10058
>>
>> which are all based on the cfa-10036.
>>
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
>> ---
>>  conf/machine/cfa10036.conf | 40 ++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 40 insertions(+)
>>  create mode 100644 conf/machine/cfa10036.conf
>>
>> diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf
>> new file mode 100644
>> index 0000000..7f2fe35
>> --- /dev/null
>> +++ b/conf/machine/cfa10036.conf
>> @@ -0,0 +1,40 @@
>> +#@TYPE: Machine
>> +#@NAME: Crystalfontz CFA-10036
>> +#@SOC: i.MX28
>> +#@DESCRIPTION: Machine configuration for CFA-10036
>> +
>> +include conf/machine/include/mxs-base.inc
>> +
>> +SOC_FAMILY = "mxs:mx28"
>> +
>> +PREFERRED_PROVIDER_virtual/kernel = "linux-cfa"
>> +PREFERRED_VERSION_imx-bootlets = "cfa"
>> +
>> +BAREBOX_MACHINE = "cfa10036_defconfig"
>> +IMAGE_BOOTLOADER = "barebox"
>> +BAREBOX_BINARY = "barebox"
>> +
>> +IMXBOOTLETS_MACHINE = "cfa10036"
>> +BOOT_SPACE="32768"
>> +
>> +KERNEL_IMAGETYPE = "zImage"
>> +KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx28-cfa10036.dts"
> imx28-cfa10036.dtb ...
>
> No full path.

Oh yeah, and I saw that in linux-dtb.inc but didn't react on it. I would
be expecting a warning there with:

bbwarn "${DTB} contains the full path to the the dts file, but only the
dtb name should be used."

but didn't get any.
Otavio Salvador - Aug. 22, 2013, 5:15 p.m.
On Thu, Aug 22, 2013 at 2:12 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
...
>>> +KERNEL_IMAGETYPE = "zImage"
>>> +KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx28-cfa10036.dts"
>> imx28-cfa10036.dtb ...
>>
>> No full path.
>
> Oh yeah, and I saw that in linux-dtb.inc but didn't react on it. I would
> be expecting a warning there with:
>
> bbwarn "${DTB} contains the full path to the the dts file, but only the
> dtb name should be used."
>
> but didn't get any.

In the log files inside temp/log.* :D

Patch

diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf
new file mode 100644
index 0000000..7f2fe35
--- /dev/null
+++ b/conf/machine/cfa10036.conf
@@ -0,0 +1,40 @@ 
+#@TYPE: Machine
+#@NAME: Crystalfontz CFA-10036
+#@SOC: i.MX28
+#@DESCRIPTION: Machine configuration for CFA-10036
+
+include conf/machine/include/mxs-base.inc
+
+SOC_FAMILY = "mxs:mx28"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-cfa"
+PREFERRED_VERSION_imx-bootlets = "cfa"
+
+BAREBOX_MACHINE = "cfa10036_defconfig"
+IMAGE_BOOTLOADER = "barebox"
+BAREBOX_BINARY = "barebox"
+
+IMXBOOTLETS_MACHINE = "cfa10036"
+BOOT_SPACE="32768"
+
+KERNEL_IMAGETYPE = "zImage"
+KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx28-cfa10036.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10037.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10049.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10055.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10056.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10057.dts"
+KERNEL_DEVICETREE += "${S}/arch/arm/boot/dts/imx28-cfa10058.dts"
+
+#we need the kernel to be installed in the final image
+IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
+
+SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
+IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.sb sdcard"
+
+SERIAL_CONSOLE = "115200 ttyAMA0"
+
+MACHINE_FEATURES = "apm usbgadget usbhost vfat"
+
+# Gstreamer plugin
+MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin"