From patchwork Wed Mar 18 18:06:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 451565 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id F01DF140082 for ; Thu, 19 Mar 2015 05:06:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 639F388BB9; Wed, 18 Mar 2015 18:06:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0YPPipnJqzcO; Wed, 18 Mar 2015 18:06:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 90A1988273; Wed, 18 Mar 2015 18:06:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D903B1C25FB for ; Wed, 18 Mar 2015 18:06:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D43CE91B7E for ; Wed, 18 Mar 2015 18:06:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xz5TR-HJJ8i4 for ; Wed, 18 Mar 2015 18:06:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0102.outbound.protection.outlook.com [207.46.100.102]) by whitealder.osuosl.org (Postfix) with ESMTPS id 663BE91B1B for ; Wed, 18 Mar 2015 18:06:31 +0000 (UTC) Received: from CH1PR03CA002.namprd03.prod.outlook.com (10.255.156.147) by BN3PR0301MB1299.namprd03.prod.outlook.com (25.161.210.154) with Microsoft SMTP Server (TLS) id 15.1.112.19; Wed, 18 Mar 2015 18:06:29 +0000 Received: from BL2FFO11OLC004.protection.gbl (10.255.156.132) by CH1PR03CA002.outlook.office365.com (10.255.156.147) with Microsoft SMTP Server (TLS) id 15.1.112.16 via Frontend Transport; Wed, 18 Mar 2015 18:06:28 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC004.mail.protection.outlook.com (10.173.161.188) with Microsoft SMTP Server (TLS) id 15.1.125.13 via Frontend Transport; Wed, 18 Mar 2015 18:06:28 +0000 Received: from laptop-vstehle (laptop-vstehle.ea.freescale.net [10.161.64.51]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t2II6QBq009330; Wed, 18 Mar 2015 11:06:27 -0700 Received: from vstehle by laptop-vstehle with local (Exim 4.84) (envelope-from ) id 1YYIMK-0000gv-Qe; Wed, 18 Mar 2015 19:06:24 +0100 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: Date: Wed, 18 Mar 2015 19:06:00 +0100 Message-ID: <1426701961-2619-1-git-send-email-vincent.stehle@freescale.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=vincent.stehle@freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(189002)(199003)(19580395003)(19580405001)(46102003)(86362001)(5820100001)(47776003)(105606002)(50226001)(46656002)(6806004)(106466001)(2351001)(229853001)(110136001)(36756003)(50986999)(92566002)(87936001)(23676002)(50466002)(450100001)(85426001)(16796002)(33646002)(62966003)(77156002)(57986006)(83796002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1299; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1299; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:BN3PR0301MB1299; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1299; X-Forefront-PRVS: 051900244E X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2015 18:06:28.5771 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1299 Subject: [Buildroot] [PATCH 1/2] boot/uboot: add support for i.MX28 SD format X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for booting from an SD card. U-boot includes an mxsboot tool to generate this format, starting from v2011.12. See u-boot doc/README.mxs. Signed-off-by: Vincent Stehlé Tested-by: Jörg Krause --- boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 03e6acc..cea993a 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -117,6 +117,18 @@ config BR2_TARGET_UBOOT_FORMAT_SB depends on BR2_arm bool "u-boot.sb" +config BR2_TARGET_UBOOT_FORMAT_SD + depends on BR2_arm + bool "u-boot.sd" + help + This is Freescale i.MX28 SB format, with a header for booting from an + SD card. + + U-boot includes an mxsboot tool to generate this format, starting + from v2011.12. + + See doc/README.mxs. + config BR2_TARGET_UBOOT_FORMAT_CUSTOM bool "Custom (specify below)" help diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index a9ba054..8fad5b4 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -49,6 +49,9 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y) UBOOT_BIN = u-boot.sb UBOOT_MAKE_TARGET = $(UBOOT_BIN) UBOOT_DEPENDENCIES += host-elftosb +else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y) +UBOOT_BIN = u-boot.sd +UBOOT_MAKE_TARGET = u-boot.sb else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y) UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME)) else @@ -116,6 +119,8 @@ define UBOOT_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) \ $(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \ $(UBOOT_MAKE_TARGET) + $(if $(BR2_TARGET_UBOOT_FORMAT_SD), + $(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd) endef define UBOOT_BUILD_OMAP_IFT