Return-Path: Received: from mail-gg0-f176.google.com (mail-gg0-f176.google.com [209.85.161.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D8988E00777 for ; Tue, 11 Dec 2012 13:48:17 -0800 (PST) Received: by mail-gg0-f176.google.com with SMTP id h3so866870gge.35 for ; Tue, 11 Dec 2012 13:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=yHJI16BqOEuTJxqmre8Nv0t4Q9BvkgNwDmwzZ+cO7VE=; b=X6PajRsK1aHMo+EjsrN+be33qG1aIABdWZdjGsK27V+7flkzrp3zUGXJUrIgft0NLp CCXxSL8CApuJAsP/RqD74ouZo4nD+4YU32UiMsU63TcT9KbbcGU2yAo1LKbyEhi/gDOl UO+2xJz1yrNJMkh9iTE/UW1XAXPbEotlOyRw51Op78bSPXpRd7PwgsSFR6WATjYk0LJm WM1OSgQ/ApQAFsFfiRvn2gHveDZ4tMyXbIAxrPwdVL2aApLhmWlMWGx6DFCovPk5BLX4 dJvgNuKmsyizGlw/cQoTtGZIfMYwIvy5vmHk2JW6hyrc37g5k2Y54acfZBHgIhOoMdmO srWQ== Received: by 10.236.71.197 with SMTP id r45mr29882787yhd.113.1355262497228; Tue, 11 Dec 2012 13:48:17 -0800 (PST) Received: from nano.lab.ossystems.com.br ([177.213.146.163]) by mx.google.com with ESMTPS id u22sm32129879yhl.2.2012.12.11.13.48.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Dec 2012 13:48:16 -0800 (PST) Sender: Otavio Salvador From: Otavio Salvador To: meta-freescale@yoctoproject.org Date: Tue, 11 Dec 2012 19:50:31 -0200 Message-Id: <1355262632-19265-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1355262632-19265-1-git-send-email-otavio@ossystems.com.br> References: <1355262632-19265-1-git-send-email-otavio@ossystems.com.br> Cc: Otavio Salvador Subject: [meta-fsl-arm-extra][PATCH v3 2/3] u-boot-script-boundary: Add recipe to deploy the boot scripts 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: Tue, 11 Dec 2012 21:48:18 -0000 The recipe deploys the scripts used by Boundary Devices to detect and choose video output, load kernel and etc... Change-Id: Ic4685c60ba1470a1548629e294ea8aa48473cd0e Signed-off-by: Otavio Salvador --- ...-bootscript-modify-for-use-with-the-Yocto.patch | 34 ++++++++++++++ recipes-bsp/u-boot/u-boot-script-boundary_git.bb | 47 ++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb diff --git a/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch b/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch new file mode 100644 index 0000000..d2fbb87 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch @@ -0,0 +1,34 @@ +From a0739ed017cd097817d227e98848f66c8e5d666e Mon Sep 17 00:00:00 2001 +From: Eric Nelson +Date: Tue, 11 Dec 2012 11:59:47 -0700 +Subject: [PATCH] nitrogen6x bootscript: modify for use with the Yocto Project + +Change 6x_bootscript to match the partitioning scheme currently in +use by meta-fsl-arm: + + - Set root filesystem to partition 2 (/dev/mmcblk0p2) + - Load kernel from root of partition 1 + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Eric Nelson +--- + board/boundary/nitrogen6x/6x_bootscript.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/board/boundary/nitrogen6x/6x_bootscript.txt b/board/boundary/nitrogen6x/6x_bootscript.txt +index fe75976..1d766ca 100644 +--- a/board/boundary/nitrogen6x/6x_bootscript.txt ++++ b/board/boundary/nitrogen6x/6x_bootscript.txt +@@ -53,6 +53,6 @@ done + + setenv bootargs $bootargs $fbmem + +-setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p1 rootwait consoleblank=0 ; +-${fs}load mmc ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; echo "Error loading kernel image" ++setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p2 rootwait consoleblank=0 ; ++${fs}load mmc ${disk}:1 10800000 uImage && bootm 10800000 ; echo "Error loading kernel image" + +-- +1.7.10.4 + diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb new file mode 100644 index 0000000..4d5e7db --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb @@ -0,0 +1,47 @@ +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" +COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x)" +DEPENDS = "u-boot-mkimage-native" + +PV = "v2013.01+git${SRCPV}" + +SRCREV = "d6b05d35b8b29392e71fdd8fa43d5cb8bd4fe276" +SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git \ + file://nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch" + +S = "${WORKDIR}/git" + +inherit deploy + +do_mkimage () { + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \ + board/boundary/${MACHINE}/6x_bootscript + + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \ + board/boundary/${MACHINE}/6x_upgrade +} + +addtask mkimage after do_compile before do_install + +do_deploy () { + install -d ${DEPLOYDIR} + install ${S}/board/boundary/${MACHINE}/6x_bootscript \ + ${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR} + install ${S}/board/boundary/${MACHINE}/6x_upgrade \ + ${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR} + + cd ${DEPLOYDIR} + rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE} + ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE} + ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE} +} + +addtask deploy after do_install before do_build + +do_compile[noexec] = "1" +do_install[noexec] = "1" +do_populate_sysroot[noexec] = "1" + +PACKAGE_ARCH = "${MACHINE_ARCH}" -- 1.7.10.4