[meta-freescale] [PATCH 1/4] cubox-i: add u-boot fork for cubox-i machines

Otavio Salvador otavio at ossystems.com.br
Wed Jan 22 08:59:02 PST 2014


Hello Carlos,

On Wed, Jan 22, 2014 at 2:45 PM, Carlos Rafael Giani
<dv at pseudoterminal.org> wrote:
>
> This fork includes MXC SPL support for the SolidRun CuBox-i and
> HummingBoard devices
>
> Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
> ---
>  recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt   |  1 +
>  recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb | 28 ++++++++++++++++++++++++++++
>  2 files changed, 29 insertions(+)
>  create mode 100644 recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
>  create mode 100644 recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
>
> diff --git a/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt b/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
> new file mode 100644
> index 0000000..3ae0863
> --- /dev/null
> +++ b/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
> @@ -0,0 +1 @@
> +mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} video=mxcfb0:dev=hdmi,1920x1080M at 60,if=RGB24,bpp=32
> diff --git a/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
> new file mode 100644
> index 0000000..3191087
> --- /dev/null
> +++ b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
> @@ -0,0 +1,28 @@
> +require recipes-bsp/u-boot/u-boot.inc
> +
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://Licenses/README;md5=bc069111b5e5b1ed8bed98ae73b596ec"
> +COMPATIBLE_MACHINE = "cubox-i"
> +
> +PROVIDES += "u-boot"
> +
> +SRCREV = "920ea0f20276614e11961924b1990b6c922c8d0e"
> +
> +PV = "v2013.10+git${SRCPV}"
> +
> +SRC_URI = " \
> +    git://github.com/rabeeh/u-boot-imx6.git;branch=imx6 \
> +    file://uEnv.txt \
> +    "
> +
> +S = "${WORKDIR}/git"
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +deploy_uenv () {
> +    install -d ${DEPLOYDIR}
> +    install ${WORKDIR}/uEnv.txt ${DEPLOYDIR}/${UENV_FILENAME}
> +    install ${S}/SPL ${DEPLOYDIR}/${SPL_FILENAME}
> +}

UENV_FILENAME seems undefined.

Drop the manual installation of the SPL. The u-boot.inc file has
support for SPL so just set:

SPL_BINARY = "SPL"

in the machine .conf and it should do the trick.

> +do_deploy[postfuncs] += "deploy_uenv"

Good.

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