From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.free-electrons.com ([88.190.12.23]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tin1r-0008Ie-7E for barebox@lists.infradead.org; Wed, 12 Dec 2012 14:11:19 +0000 From: Maxime Ripard Date: Wed, 12 Dec 2012 15:10:56 +0100 Message-Id: <1355321456-6334-4-git-send-email-maxime.ripard@free-electrons.com> In-Reply-To: <1355321456-6334-1-git-send-email-maxime.ripard@free-electrons.com> References: <1355321456-6334-1-git-send-email-maxime.ripard@free-electrons.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] ARM: cfa10036: Use the board variant to load a different device tree To: barebox@lists.infradead.org Cc: Brian Lilly The board variant found on the AT24 EEPROM holds the variant ID that we can use to identify which expansion board we are running on and thus which device tree to load and pass to the kernel. Signed-off-by: Maxime Ripard --- .../boards/crystalfontz-cfa10036/env/boot/mmc-ext3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/crystalfontz-cfa10036/env/boot/mmc-ext3 b/arch/arm/boards/crystalfontz-cfa10036/env/boot/mmc-ext3 index b2325af..78177cf 100644 --- a/arch/arm/boards/crystalfontz-cfa10036/env/boot/mmc-ext3 +++ b/arch/arm/boards/crystalfontz-cfa10036/env/boot/mmc-ext3 @@ -5,6 +5,6 @@ if [ "$1" = menu ]; then exit fi -global.bootm.image="/mnt/disk0.1/zImage-cfa10036" -global.bootm.oftree="/mnt/disk0.1/oftree-cfa10036" +global.bootm.image="/mnt/disk0.1/zImage-${global.hostname}" +global.bootm.oftree="/mnt/disk0.1/oftree-${cfa_variant}" global.linux.bootargs.dyn.root="root=/dev/mmcblk0p3 rootfstype=ext3 rootwait" -- 1.7.9.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox