Patchwork [1/4] cubox-i: add u-boot fork for cubox-i machines

login
register
mail settings
Submitter Carlos Rafael Giani
Date Jan. 22, 2014, 4:45 p.m.
Message ID <1390409134-7450-2-git-send-email-dv@pseudoterminal.org>
Download mbox | patch
Permalink /patch/65563/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Carlos Rafael Giani - Jan. 22, 2014, 4:45 p.m.
This fork includes MXC SPL support for the SolidRun CuBox-i and
HummingBoard devices

Signed-off-by: Carlos Rafael Giani <dv@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
Otavio Salvador - Jan. 22, 2014, 4:59 p.m.
Hello Carlos,

On Wed, Jan 22, 2014 at 2:45 PM, Carlos Rafael Giani
<dv@pseudoterminal.org> wrote:
>
> This fork includes MXC SPL support for the SolidRun CuBox-i and
> HummingBoard devices
>
> Signed-off-by: Carlos Rafael Giani <dv@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@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.

Patch

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@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}
+}
+
+do_deploy[postfuncs] += "deploy_uenv"