From patchwork Tue Jan 12 10:51:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 1425147 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=none (p=none dis=none) header.from=walle.cc Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.a=rsa-sha256 header.s=mail2016061301 header.b=T4fv3ZJ8; 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 4DFS8K6F6fz9sf9 for ; Tue, 12 Jan 2021 21:52:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F3A63204D3; Tue, 12 Jan 2021 10:52:29 +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 ZZI35KWRWH+B; Tue, 12 Jan 2021 10:52:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C0618204C1; Tue, 12 Jan 2021 10:52:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4C1AF1BF23C for ; Tue, 12 Jan 2021 10:52:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 40A16203E7 for ; Tue, 12 Jan 2021 10:52:21 +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 Rh3azxK1zbrC for ; Tue, 12 Jan 2021 10:52:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by silver.osuosl.org (Postfix) with ESMTPS id 44102204BA for ; Tue, 12 Jan 2021 10:52:19 +0000 (UTC) Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id A484823E5D; Tue, 12 Jan 2021 11:52:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1610448737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZVo7IVs8k/EUNwsYx9qLs4WhbvbsDghmi2BURxjjP9Q=; b=T4fv3ZJ8RfwCNzihs/tpISYV8lZNYieUyxrJOBHfKxaKa26+3jqvxzl6xSVYfOaYY/kMRp 5ngoYrIrFoKDePNB2HKJ/YzXhC5R/TMTia2ozHcmkLOAyC62qH9ed3FjnK0KENwtaAsZ3f Sw82yg8J5DS9TW6BYipwrVvjZLnpKcI= From: Michael Walle To: buildroot@buildroot.org Date: Tue, 12 Jan 2021 11:51:54 +0100 Message-Id: <20210112105154.31531-3-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210112105154.31531-1-michael@walle.cc> References: <20210112105154.31531-1-michael@walle.cc> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] configs/kontron_smarc_sal28: integrate RCW into rootfs image 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: Michael Walle Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Integrate the RCW into the storage device image, so the image can also be used a boot source. The SoC expects the RCW at offset 4096 of the SD card or eMMC. Signed-off-by: Michael Walle --- board/kontron/smarc-sal28/genimage.cfg | 6 ++++++ configs/kontron_smarc_sal28_defconfig | 1 + 2 files changed, 7 insertions(+) diff --git a/board/kontron/smarc-sal28/genimage.cfg b/board/kontron/smarc-sal28/genimage.cfg index d75234d997..f3fb77e00a 100644 --- a/board/kontron/smarc-sal28/genimage.cfg +++ b/board/kontron/smarc-sal28/genimage.cfg @@ -3,6 +3,12 @@ image sdcard-emmc.img { gpt = true } + partition rcw { + offset = 4k + in-partition-table = "no" + image = "rcw.bin" + } + partition u-boot { offset = 1M in-partition-table = "no" diff --git a/configs/kontron_smarc_sal28_defconfig b/configs/kontron_smarc_sal28_defconfig index 767858f601..ddc7022886 100644 --- a/configs/kontron_smarc_sal28_defconfig +++ b/configs/kontron_smarc_sal28_defconfig @@ -16,6 +16,7 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-kontron-sl28 freescale/f BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_RCW_SMARC_SAL28=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="128M"