Return-Path: Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 29F3AE007F3 for ; Wed, 18 Dec 2013 06:57:04 -0800 (PST) Received: by mail-ea0-f172.google.com with SMTP id q10so3076145ead.3 for ; Wed, 18 Dec 2013 06:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=2U60npIqSTYF90m7Y5qJ7BpnraQxlU+T9+jwm62vk2g=; b=i7sgCyoM3Aiww2m2p63hdjB2DhnBDVY+j9mQ7JUmqF0a/gqqOggz4pjKHcHVc6Ge0f D18zVf4xhRCbHNaAYWyK5mvS+V9VhrBg/8M8jKQUHmU2uYtRw5QrMtyzDsO+ou3iPh4o i+68sIAC85feXNThsHSavHszsqL7QaMPTrx1TV9PkqRTryQslE1//swVEkEL1FiayzDi EQo1087J0OCuaOpEKPzpqQt+a3jaI+jFZGbCUBwa6XkAzQD78lqhbbDbeP6xvcCaFcF4 IoUiAlumDEySBpd3P4eeGhN8TOBVVjH8yq+0PY2j0t5zFG4BnU+K2v8wQE4owAdMnOuF OIrw== X-Received: by 10.14.109.5 with SMTP id r5mr21274124eeg.110.1387378624176; Wed, 18 Dec 2013 06:57:04 -0800 (PST) Received: from piovra.ll-int (tmed.dinfo.unifi.it. [150.217.8.21]) by mx.google.com with ESMTPSA id m1sm760006eeg.0.2013.12.18.06.57.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Dec 2013 06:57:03 -0800 (PST) From: Luca Simone Ronga To: meta-freescale@yoctoproject.org Date: Wed, 18 Dec 2013 15:56:57 +0100 Message-Id: <1387378617-6147-1-git-send-email-luca.simone.ronga@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [meta-fsl-arm][PATCH v3 2/3] u-boot-udoo: add version Unico2013 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 14:57:09 -0000 Add recipe for u-boot bootloader from git repo maintained by UDOO board manufacturer release UBootUnico2013 Add patch to align with the oe image policy --- .../0001-modified-UDOO-conf-for-yocto-meta.patch | 49 ++++++++++++++++++++ recipes-bsp/u-boot/u-boot-udoo_2013.bb | 24 ++++++++++ 2 files changed, 73 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-udoo/0001-modified-UDOO-conf-for-yocto-meta.patch create mode 100644 recipes-bsp/u-boot/u-boot-udoo_2013.bb diff --git a/recipes-bsp/u-boot/u-boot-udoo/0001-modified-UDOO-conf-for-yocto-meta.patch b/recipes-bsp/u-boot/u-boot-udoo/0001-modified-UDOO-conf-for-yocto-meta.patch new file mode 100644 index 0000000..25c2886 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-udoo/0001-modified-UDOO-conf-for-yocto-meta.patch @@ -0,0 +1,49 @@ +From 0f536350a5add4ffa8d4ff874fca7bbccc57b63b Mon Sep 17 00:00:00 2001 +From: udoo +Date: Mon, 9 Dec 2013 12:38:44 +0100 +Subject: [PATCH] modified UDOO conf for yocto meta + +--- + include/configs/udoo.h | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/include/configs/udoo.h b/include/configs/udoo.h +index 7632bb7..394d0e7 100644 +--- a/include/configs/udoo.h ++++ b/include/configs/udoo.h +@@ -124,7 +124,7 @@ + + #define CONFIG_EXTRA_ENV_SETTINGS \ + "script=boot.scr\0" \ +- "uimage=/boot/uImage\0" \ ++ "uimage=uImage\0" \ + "console=ttymxc1\0" \ + "splashpos=m,m\0" \ + "fdt_high=0xffffffff\0" \ +@@ -136,7 +136,7 @@ + "hdmi_patch=\0" \ + "mmcdev=0\0" \ + "mmcpart=1\0" \ +- "mmcroot=/dev/mmcblk0p1 rootwait rw\0" \ ++ "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \ + "update_sd_firmware_filename=u-boot.imx\0" \ + "update_sd_firmware=" \ + "if test ${ip_dyn} = yes; then " \ +@@ -156,11 +156,11 @@ + "${hdmi_patch} " \ + "fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32\0" \ + "loadbootscript=" \ +- "ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ ++ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ + "bootscript=echo Running bootscript from mmc ...; " \ + "source\0" \ +- "loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ +- "loadfdt=ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ ++ "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ ++ "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ + "mmcboot=echo Booting from mmc ...; " \ + "run mmcargs; " \ + "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ +-- +1.7.9.5 + diff --git a/recipes-bsp/u-boot/u-boot-udoo_2013.bb b/recipes-bsp/u-boot/u-boot-udoo_2013.bb new file mode 100644 index 0000000..83cfbe9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-udoo_2013.bb @@ -0,0 +1,24 @@ +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=6bc50ecab884fce80cd3ef3da8852b08" + +SRC_URI[md5sum] = "c0f064a9e9d1eb3c91ab166a631af080" +SRC_URI[sha256sum] = "46273bb1da340814451ef781ee7fba50faf44541c694e2d333d5f351f691d6fa" + +COMPATIBLE_MACHINE = "(mx6)" +DEPENDS_mxs += "elftosb-native openssl-native" +PROVIDES += "u-boot" +PV="unico2013" + +SRCREV = "b48999bc21243676a80f94ff1d2cd78418aca013" +SRC_URI = "git://github.com/UDOOboard/U-Boot_Unico-2013.git \ + file://0001-modified-UDOO-conf-for-yocto-meta.patch" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ + HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ + HOSTSTRIP=true' + +PACKAGE_ARCH = "${MACHINE_ARCH}" -- 1.7.10.4