From patchwork Wed Oct 21 08:57:06 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: 533685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 68412140DAF for ; Wed, 21 Oct 2015 19:57:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 92CCD3320A; Wed, 21 Oct 2015 08:57:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p7xeLpmgOTfx; Wed, 21 Oct 2015 08:57:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 15DB32D0A8; Wed, 21 Oct 2015 08:57:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 20C261C44AF for ; Wed, 21 Oct 2015 08:57:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1C79F8C4DB for ; Wed, 21 Oct 2015 08:57:28 +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 GU0kdYaXOmMx for ; Wed, 21 Oct 2015 08:57:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0106.outbound.protection.outlook.com [65.55.169.106]) by whitealder.osuosl.org (Postfix) with ESMTPS id CCA888D530 for ; Wed, 21 Oct 2015 08:57:26 +0000 (UTC) Received: from BLUPR0301CA0037.namprd03.prod.outlook.com (10.162.113.175) by BY1PR0301MB1303.namprd03.prod.outlook.com (10.161.206.152) with Microsoft SMTP Server (TLS) id 15.1.300.14; Wed, 21 Oct 2015 08:57:23 +0000 Received: from BN1BFFO11FD022.protection.gbl (2a01:111:f400:7c10::1:146) by BLUPR0301CA0037.outlook.office365.com (2a01:111:e400:5259::47) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Wed, 21 Oct 2015 08:57:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; boundarydevices.com; dkim=none (message not signed) header.d=none;boundarydevices.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (TLS) id 15.1.300.4 via Frontend Transport; Wed, 21 Oct 2015 08:57:22 +0000 Received: from laptop-vstehle (laptop-vstehle.ea.freescale.net [10.161.68.165]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t9L8vI5m023731; Wed, 21 Oct 2015 01:57:18 -0700 Received: from vstehle by laptop-vstehle with local (Exim 4.86) (envelope-from ) id 1ZopCv-0002hf-LQ; Wed, 21 Oct 2015 10:57:17 +0200 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: Date: Wed, 21 Oct 2015 10:57:06 +0200 Message-ID: <1445417826-9634-1-git-send-email-vincent.stehle@freescale.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:FocR0gDkUxCa/TQNV1nUNwqvl5wQCsujdqX6b/7+GI06Eu8ImK90MYlMxrCpV4jDIBdLcXllsnG5h86Fsh7avBXlfSF8789js/SVrTkWhdTCvPG9vWNeNTaquoV89vFu0CxwCe+hg8fl6oG4HW5+j4a71FOXmyR/hOuIgWwJ/BEJ1bgY173/4cePvLwtHmLPECoMpYKnPyEqrh0VwUE6Gxy8dSvSYHjPZrCPi2BU0urU1Ft57HlmkVnJuE6SZ1mjimRt6r06WN2oug9YrogV9zRGj9Dq4A08V5uuHFF2nur/KWNuj1Y5AHwTcqQOWdyXaHqrmE3/eIlUuMGsgVxFqEmiP5lg/Za0q5pNo3toqtOXN84SIoK7W/38iMQ+EzwoZcldGX9XNAPNeJJ/QWzwPQ== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(47776003)(2950100001)(6806005)(92566002)(19580405001)(50466002)(50986999)(76176999)(11100500001)(46656002)(561944003)(69596002)(19580395003)(64706001)(97736004)(81156007)(5008740100001)(23676002)(5820100001)(105606002)(106466001)(86362001)(50226001)(5007970100001)(57986006)(83796002)(229853001)(2351001)(33646002)(16796002)(189998001)(5001960100002)(230783001)(85426001)(46102003)(36756003)(110136002)(87936001)(70036007); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB1303; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1303; 2:Q/wZ864dPT/4mSZdreRumhtiRzUSdL4hHD7YjeTxY8GVSCtKEVz92JqpaCm4ikUaOmWtP+VPYAJI+HbChc8hVSijqOZavx3YcpmtspQLV3HZjM81rU3/M9Tmh3R7krd2NovHXJcxUPghabF9q6p/ugs+gDLd9dE4waH8uRlm9rk=; 3:1j5T+j7HkcCZIJbn4U+ES2A/dbQVKUURq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T7wdnav9eRcbiEKUsraRaw1qVJSR9Svdtz9uTBvWPP/PvGkdBnk/324PMfq2LI9yJsxl2Y3yS5RtZZj21TDWv83EbXfEN2d5OBXT/Q8rRrzOSBlIkooaWNHA79wfAat+h2FB1F7+tL2vfeP+uEhFA8lXpSnNNteDd31P64zqS6Q53587DPBJH8Tg6JrHiStDPJQKKjyrxKN5ZX9ifpSPxWDA5izYlGPJXbK/6IfmeH5GtLFW1pzbOP6qyV8klgoCY9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(102115026); SRVR:BY1PR0301MB1303; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB1303; X-Forefront-PRVS: 073631BD3D X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjAzMDFNQjEzMDM7MjM6azV3Z2JTdWhxYUdiQk1LU2hyMUZvWjdh?= =?utf-8?B?cW8vZE84VU04bTVUbmc0NGV3QWh1dEczVHBnVk9XNlFjWWNzOGsxME15Q1dB?= =?utf-8?B?azZUa0hMMmZqcGVNb1VuVnRnQlRrcG9JOExVOUE0ZDN3cjVnSitXZ29BS2VM?= =?utf-8?B?QmJYWkJOeVh6SE0yU21kSWg3bXdRdHlaYVlqbGMva0gvb3d0Z3UyWld6TFBY?= =?utf-8?B?RVZITFlScDcyMkxDMkNIOEtGNU1wQkcxWVJ1VjY5aVFWT01aS0kvUWdLZXln?= =?utf-8?B?aTk4T2EwdFJCR0EzTGFWQnNrRG8va2tIWTRtSnBLR3FBTnJodGhjS0RHbTZP?= =?utf-8?B?QUFlczVYL1J2end5L1pHSmRaZjdzZXRaaWowY3FtMlJ2NG5ISFlUbHVEVXJw?= =?utf-8?B?ZGpCcDEvaW9FNldIb1c3UXhrVWd6NVg3cGdQN0NlOHQxMHhkSzdPK2NXWm1J?= =?utf-8?B?YTJLa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8?B?SzZPRHg3MmFSUy9BTTU5SWVtbVBJcUZLUkJDSE1RTmdpL2sxd3VaUG1QTjdm?= =?utf-8?B?OGs4dGoyTlh4S0dKUUZDaWpibzI5TXp2UkJmclZVa1oxNlUxUmN6MksvNzht?= =?utf-8?B?dUJVcVU5SisvSVZEc2hzRmtqK1phckI5b3ZLT0RUcldhVzFCZGttNHVnMVJq?= =?utf-8?B?RXVvVHdFdDZ4RUMxYjgvVUw4dDRZVFlsQkNoZElNTVdSdGYzWUNkUm56VWNp?= =?utf-8?Q?VkZLXt50ha4xWFjtLwuUX6?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1303; 5:GlKdkC0PgbOgm8HcbH2cMynPOa5MqvTn+47Q3GjnOeL3m7ElaJ0209xOeLGsDUZ14jNekxQLlohP4fAT+006Ay3RALspGTH8/lFA7ZaoUANcNgeHXbTyaRlh+smTAWpEr0pkBtIcx6jgnH3HI87eNg==; 24:cZSwYbbGVYWzapzlkdGsI5G7n4/BdjsqrIetSt9ajLW+UWiYUCTEJ5uHBYamIzWrKKv6VTU4IArcWhrKCZ/vcyaOZ+HeD3+Q8PQ4fIrwksk=; 20:8l4zezpqBp3fLb9dBCVoK/8pfjW9JIxarisPNML4AqrRWxEiJ0jFm8t/OHrYkgKU8R2fR2cckYuhC/y4kWFkwg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2015 08:57:22.1618 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1303 Cc: Luca Ceresoli , =?UTF-8?q?Vincent=20Stehl=C3=A9?= Subject: [Buildroot] [PATCH v2] board/freescale: switch create-boot-sd.sh to parted 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" Starting with version 2.26, sfdisk defaults to a unit of 512 B sectors. With those recent versions of sfdisk, the create-boot-sd.sh script ends up creating a boot partition of 240 KB, which is too small to contain a Linux kernel. As it is difficult to address both pre and post v2.26 sfdisk versions in a single command, we change the create-boot-sd.sh script to use parted instead. While at it, we set the boot partition size to 64 MB, which should be enough for everyone. Signed-off-by: Vincent Stehlé Cc: Luca Ceresoli Cc: Gary Bisson --- Hi, This is a second proposal, using parted this time. Even with sfdisk `--unit' parameter, I could not find an eleguant solution to support all versions of sfdisk, sorry. Please let me know if you find switching to parted acceptable. This is tested on Sabre AI with an i.MX6 Quad. Best regards, V. Changes in v2 ------------- - Switch to parted, as advised by Gary. - Fix spelling in commit message, spotted by Luca. board/freescale/create-boot-sd.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/board/freescale/create-boot-sd.sh b/board/freescale/create-boot-sd.sh index af45115..d80bd52 100755 --- a/board/freescale/create-boot-sd.sh +++ b/board/freescale/create-boot-sd.sh @@ -59,10 +59,12 @@ sync # - Bootloader at offset 1024 # - FAT partition starting at 1MB offset, containing uImage and *.dtb # - ext2/3 partition formatted as ext2 or ext3, containing the root filesystem. -sfdisk ${DEV} <