[meta-freescale] [meta-fsl-arm-extra][PATCH 3/3] colibri-vf: initial machine for Toradex Vybrid modules

Otavio Salvador otavio at ossystems.com.br
Mon Mar 9 06:23:16 PDT 2015


On Mon, Mar 9, 2015 at 10:20 AM, Stefan Agner <stefan.agner at toradex.com> wrote:
> Hi Otavio,
>
> On 09.03.2015 14:12, Otavio Salvador wrote:
>> On Mon, Mar 9, 2015 at 5:46 AM, Stefan Agner <stefan.agner at toradex.com> wrote:
>>> The two modules Colibri VF50 and Colibri VF61 are very similar,
>>> with this generic machine called "colibri-vf" both modules are
>>> supported. The bootloader default environment expects the Linux
>>> kernel zImage as well as the device tree files to be located in
>>> the /boot folder of the root file system. Use IMAGE_INSTALL on
>>> the machine level to install them into the root file system by
>>> default.
>>>
>>> Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
>>> ---
>>>  conf/machine/colibri-vf.conf | 36 ++++++++++++++++++++++++++++++++++++
>>>  1 file changed, 36 insertions(+)
>>>  create mode 100644 conf/machine/colibri-vf.conf
>>>
>>> diff --git a/conf/machine/colibri-vf.conf b/conf/machine/colibri-vf.conf
>>> new file mode 100644
>>> index 0000000..f84abbc
>>> --- /dev/null
>>> +++ b/conf/machine/colibri-vf.conf
>>> @@ -0,0 +1,36 @@
>>> +#@TYPE: Machine
>>> +#@NAME: Toradex Colibri VF50/VF61
>>> +#@SOC: VF500/VF610
>>> +#@DESCRIPTION: Machine configuration for Toradex Colibri VF50/VF61 powered by Freescale Vybrid SoC
>>> +#@MAINTAINER: Stefan Agner <stefan.agner at toradex.com>
>>> +
>>> +include conf/machine/include/imx-base.inc
>>> +include conf/machine/include/tune-cortexa5.inc
>>> +
>>> +SOC_FAMILY = "vf:vf50:vf60"
>> I agree with this however this imposes a change in imx-base.inc.
>> Please change the UBOOT_ENTRYPOINT for vf so it avoids the duplicated
>> definition. This also needs to add the vf in the SOC_FAMILY of Tower.
>
> Yep, makes sense, will include that change in v2.
>
>
>>> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-toradex"
>>> +KERNEL_IMAGETYPE = "zImage"
>>> +KERNEL_DEVICETREE += "vf500-colibri-eval-v3.dtb vf610-colibri-eval-v3.dtb"
>>> +
>>> +# U-Boot expects the kernel and device tree directly in /boot of the rootfs
>>> +IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
>> Please use:
>>
>> === MACHINE_EXTRA_RDEPENDS
>> A list of machine-specific packages to install as part of the image
>> being built that are not essential for the machine to boot. However,
>> the build process for more fully-featured images depends on the
>> packages being present.
>
> "not essential for the machine to boot", well, those are essential... At
> least for NAND/SD boot. Theoretically its optional since the
> kernel/device tree can also be fetched over the network, but that's not
> the common use case.

So:

=== MACHINE_ESSENTIAL_EXTRA_RDEPENDS
A list of required machine-specific packages to install as part of the
image being built. The build process depends on these packages being
present. Furthermore, because this is a "machine essential" variable,
the list of packages are essential for the machine to boot. The impact
of this variable affects images based on `packagegroup-core-boot`,
including the `core-image-minimal` image.

This variable is similar to the `MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`
variable with the exception that the image being built has a build
dependency on the variable's list of packages. In other words, the
image will not build if a file in this list is not found.

As an example, suppose the machine for which you are building requires
`example-init` to be run during boot to initialize the hardware. In
this case, you would use the following in the machine's `.conf`
configuration file:

     MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "example-init"

-- 
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


More information about the meta-freescale mailing list