From patchwork Mon Jun 10 19:35:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1113298 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nlikcI4y"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45N3Jm1gvpz9s6w for ; Tue, 11 Jun 2019 05:35:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 495E720443; Mon, 10 Jun 2019 19:35:48 +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 MtsO7KBra04v; Mon, 10 Jun 2019 19:35:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id BFD982041E; Mon, 10 Jun 2019 19:35:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 57FDF1BF47D for ; Mon, 10 Jun 2019 19:35:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5504185EE8 for ; Mon, 10 Jun 2019 19:35:45 +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 lmd2z2orEwKW for ; Mon, 10 Jun 2019 19:35:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8264E85E0D for ; Mon, 10 Jun 2019 19:35:44 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v19so467036wmj.5 for ; Mon, 10 Jun 2019 12:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=RkWpAzThnJyMB+bDaGOR5paq1l9UaTe8qnbYuxkQmBk=; b=nlikcI4yNUJVA+vShoAgEsrtIjKA5MSrIRffbmarHEaIORZ7tEiizcCA8oNq4nTkgt 5OT6sm8ciXaTfAepdWteOkEp87ZLlHTXh70wduWUdZku9fjhUT+jkwhPQq/dXw7VQ5aa V0KoE8vqbAVJPIpO5Aa/VgxcfrEnoe9KCsRohf9k++QiFxLq9RhukphQslwuyHI5NYA/ JrprU99l4GzAqSqryY05bKRV3OWJyt53vg89LTuSlYWF3HA5Gy0t4pE9KGwfgW9/O5eM AR4Q/JXf99Kw2RNuHXymHinuwlcEY6EPgxuTIZdbQS/NULoCyM4GAbp9ib9XWily92bW tqEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RkWpAzThnJyMB+bDaGOR5paq1l9UaTe8qnbYuxkQmBk=; b=G2N0wtE/CUvuZZEtCeiBzTvbZ+R0v3EP/cTr5ms1zlpCQ9zWATAWL1OsW35JvK6btq acA9D2mNYF6CnDfKriDPTLsMOT5899WyeKs2i+j4Mh0gy/Pwd5ikbs0iQu2UvLKT5Od9 hUByHadIUWtnoCywXFZQE1o0JocvutJPD4dkw+7h5LZsG/85VGEfUyBzaxt+5y5fwKoE Y3walp2fX8EuocvCUDHlYy6JOtyUBVwIsyqCYyX+O8CtDXyX2XZ78W7jAVyANR66a4dk LaBF34gOzjyMm3Q1SJkoOvfmULM1fX7nEP0nwZN3CGGI/HYq14xXd3kwx2wMA2MJzigT 7ung== X-Gm-Message-State: APjAAAV0S2o7E1nNVGanot6QFR+XUB/HZaOuC29Uw3lQBlAr+nx8nv7L CRTLTV/ALYrCPvym4tCxFpbjK+01sTo= X-Google-Smtp-Source: APXvYqw1+dbcwa1u9+F9w4zll5QWaTmDPC3YE+gmIrwxd26rQg1krU3jn8XZRgqnvBnsmO4DqA7cbA== X-Received: by 2002:a1c:452:: with SMTP id 79mr15202873wme.149.1560195342768; Mon, 10 Jun 2019 12:35:42 -0700 (PDT) Received: from furher.home ([2a01:cb19:16b:9900:a924:2336:79a9:d19d]) by smtp.gmail.com with ESMTPSA id y133sm922035wmg.5.2019.06.10.12.35.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 12:35:42 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Mon, 10 Jun 2019 21:35:34 +0200 Message-Id: <20190610193540.25174-1-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/3] boards/freescale/common: Introduce template_no_boot_part_spl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , Joris Offouga MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This includes the no_boot_part_spl templates which use a /boot included in rootfs. Signed-off-by: Joris Offouga Signed-off-by: Pierre-Jean Texier Tested-by: Pierre-Jean Texier --- .../genimage.cfg.template_no_boot_part_spl | 30 +++++++++++++++++++ board/freescale/common/imx/post-image.sh | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl new file mode 100644 index 0000000000..9cdecc6ce0 --- /dev/null +++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl @@ -0,0 +1,30 @@ +# Minimal SD card image for the Freescale boards Template for SPL Boot +# +# We mimic the .sdcard Freescale's image format: +# * the SD card must have 1 kB free space at the beginning, +# * SPL is at the offset expected by ROM, +# * U-Boot is at the offset expected by SPL, +# * The first partition is expected to be an ext2 and have a /boot directory. +# + +image sdcard.img { + hdimage { + } + + partition spl { + in-partition-table = "no" + image = "SPL" + offset = 1024 + } + + partition u-boot-img { + in-partition-table = "no" + image = "u-boot.img" + offset = 69K + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +} diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index d07ad2ef5d..12756c63d5 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -38,6 +38,10 @@ genimage_type() echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" + elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then + if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then + echo "genimage.cfg.template_no_boot_part_spl" + fi elif grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_spl" else