From patchwork Thu Feb 11 10:38:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 1439388 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33c; helo=mail-wm1-x33c.google.com; envelope-from=swupdate+bncbda3zhwu2icrbfesssaqmgqegdjmimy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=ia7dlkXr; dkim-atps=neutral Received: from mail-wm1-x33c.google.com (mail-wm1-x33c.google.com [IPv6:2a00:1450:4864:20::33c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DbtQ15Vnmz9sSC for ; Thu, 11 Feb 2021 21:38:16 +1100 (AEDT) Received: by mail-wm1-x33c.google.com with SMTP id y9sf2325771wmj.7 for ; Thu, 11 Feb 2021 02:38:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613039893; cv=pass; d=google.com; s=arc-20160816; b=r0l2VdIxBCV5Yf+4IGIbR/KgYZH7Tyo76zsueVRmWaF7iiQOBTV14U67l9CFomUHmf ELp/sDWTNWgQtoSwBRPC2qQV+frwi+d/rImqyh3LswkLPJKfa5A54LW+cyM1rCU0srum SJRR5MT6y2Qe96VIjmEBkUeum2KOiVPL6XlsphGeHaLW8i3fQjBiNraWQM+dGccbJi/h 7LnPrYowXtWKv1tMcaZUDz8M162WNODU6yoiLqJamxKg9gOS6DY7moD6hOZbJ3IA1Vpb f4jrVFK1LGhfc5HQJpmJLMXtl20Mz/v4SJ7AUThoZtFgw3Gt9T8MjhgbPWmjq5R9UkrS NLRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:references:in-reply-to:message-id :date:subject:to:from:mime-version:sender:dkim-signature; bh=QeMTEEXkxNPAvYvhg7nk87p9FjtFSj2JqE/Nc214r+4=; b=uHV66Il4Gba+1UA0oTtH6waoGwArivTNr9n70KtXGrwAW0waduGCNGyomGvuR6m2Y/ GsLKIyGaFsQ7t1BuvrNUgRDumdEOPeZwOggnQnlQQtmes7VJ4ByzJZUJQ62lyJJ01i6c 6xuXgcaFLRVYGy0jYTQrqw9m3sBdhK95UBY5HTokSwM8W7TGPlUQxtRtLDanCutb+Xw2 2xhYAyCob7td1faD1Vlojpc9VSrUosQKwS+47X94Tm0YsWl/0lEdetadyqwrSEfJToVR 6MY83/dBG64EAd1HDCDvtoNiunrbegu49Z2y6q0R25grdZZ+Et8q13GD5Eo3OnNjY9yG 12cw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=QeMTEEXkxNPAvYvhg7nk87p9FjtFSj2JqE/Nc214r+4=; b=ia7dlkXrXohrPkbsHJvwyPN3HQq1haj5zuggHOX5WaxlShtGL9a+TA8kszNp2t+jrK BBIQcqbuydPU+1NSWBxCQumsLnAhRWOdsBNha98k67YXC+T+UZhEcvMJHD/MZbmOgfbG lDKWpoW+XKEE/X8G7LeJANzfitGQG96smjwYIFqbvAJNUi3Btk63Pa7necGyABVX3H+r 5RCxCOfjXor1Xo6PNpwTiv5FGjlwMWi0psxDU9b7QU9a/l1wHNg/guJqDEKb4t4kywSO wONFCGrLvIS7PS3Ys40shoNcMuAeqFQGWaRTkXDYnFlQzsUwa/9taX82zRa+uYjyWWdf M3kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=QeMTEEXkxNPAvYvhg7nk87p9FjtFSj2JqE/Nc214r+4=; b=Kmsl/Ay/SrKSwvPKDk5cIVeIVl2S/qgyJfTOVUG07rKTgYE8OvpabcXxOyPwwJ1X7q fPyKoxAIARFS1xE0ffIZP8weVM3T8NppfxdBIv0ZDayB+/RbJ1yS32QLwqYid9W2696H qiteuxht8SFTkM8+79eqFlUcsSoFVnK2xnDxI6XioN2aGtVryskN8eQpJ17hBb/b1xuZ NNi6++AqpTvSBeG8tdxbp03F50885+4OwVsJhyIq7y+XjUEPnqPS7qRb2DbMak0x/0AE wY0RyPJ/P/r3BBLNJ3cGfx2NaGbhRjjfBpKwF6H0h+BErgKya+J/LhkqFQkLWPO/pr1F F9Xw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM533SFr7h6QgsqHJUpG3QBERa8jKY5uj8PVpY25Lv2JpgCF7RjKhZ vpiP4fm+QSl9IH+t2Zbt33k= X-Google-Smtp-Source: ABdhPJxuaNSQbq+BuAbhht9q2gE4WNmANHEVcOcuXk274TcndKGlrsjBweEYNvL9wdREVB/lt/ZWkg== X-Received: by 2002:a5d:58c2:: with SMTP id o2mr5058068wrf.141.1613039892962; Thu, 11 Feb 2021 02:38:12 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:640a:: with SMTP id z10ls3856579wru.0.gmail; Thu, 11 Feb 2021 02:38:12 -0800 (PST) X-Received: by 2002:adf:ec89:: with SMTP id z9mr46661wrn.410.1613039892097; Thu, 11 Feb 2021 02:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613039892; cv=none; d=google.com; s=arc-20160816; b=vOz44Myqa+nU6spc4myvOTmxAGVvzYd+2w9s0YF3YdLMsRf7cm+WBnQ87vOBUb2Ye5 rVApQX0jOhfZkGfRuRYoQPQ3cp2BX2m3p1Pf1tU1WjybFLm6eEvCVeJTsz9rfR97KrWj lXTO6txAUucBEj4Kx96KSFSPt/NOZaELhbJgjAk/1kzfGnyYJdoPPNxjqBZs01ou/2Us CRyad+UuavaIVUVJbjBbgu8FHD84jH11U2rbQElHiD+BGGtx16ay5EjvzEWSX9MLJJyZ jJLq/95/q7kyj72nv4/MSFmBZizpGLXkYNqu99QbFuJukkPY3mxEBYGFxlxf0mwT6zIF 79Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from; bh=/9DrE4rk9jng+YcGgr2sS7uP4JlRZorJ1gvl8YObtp0=; b=m9e5peF1CFMi1RbJew7vF5WiI5/ngZ09WqrAjeyxuZlqnmYzVqhObawjb49df1a/s7 xvopk8iC8BClx+6B462ES9XiPtwZquN8iytZC6gdYEvZIWT9q4aG1hnxWC+mfykeP4Fr Lf0Tr/sgZ7H748Jp1i/KKNwTrdNXBFGDVUZRn1OG+AGWvhOrhy6JPBrbdxY74H6K+uIF P3tRzlDh2akACoz9+A6LB4vzvHDZdhbnNm7istKrAa1RTMpy38Jqfe6Dh4rTkwHr3K1L oahGOa6otTZVJ5j3oHgrExb9HKgMMEeRzyzIk0rWRFbo++IIrBr2qcQWjmDZmu9PmcYT WYHg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id 201si450647wmb.2.2021.02.11.02.38.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2021 02:38:12 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of agust@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DbtPv6784z1rtMh for ; Thu, 11 Feb 2021 11:38:11 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DbtPv5tc7z1qqkn for ; Thu, 11 Feb 2021 11:38:11 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id QkJCe3WSOTU0 for ; Thu, 11 Feb 2021 11:38:11 +0100 (CET) X-Auth-Info: XaP4Dl3L99Yz+xRv/jlZAAp0NmyX1BFvcpCMB+MbIm4= Received: from crub.agik.hopto.org (p5483356f.dip0.t-ipconnect.de [84.131.53.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Thu, 11 Feb 2021 11:38:11 +0100 (CET) From: Anatolij Gustschin To: swupdate@googlegroups.com Subject: [swupdate] [meta-swupdate][PATCH 4/4] core-image: add example for .swu image generation Date: Thu, 11 Feb 2021 11:38:07 +0100 Message-Id: <20210211103807.9022-5-agust@denx.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210211103807.9022-1-agust@denx.de> References: <20210211103807.9022-1-agust@denx.de> X-Original-Sender: agust@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Extend core-image-full-cmdline with options for building .swu images. Signed-off-by: Anatolij Gustschin --- .../images/core-image-full-cmdline.bbappend | 26 +++++++++++ .../wandboard/sw-description | 43 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 recipes-extended/images/core-image-full-cmdline.bbappend create mode 100644 recipes-extended/images/core-image-full-cmdline/wandboard/sw-description diff --git a/recipes-extended/images/core-image-full-cmdline.bbappend b/recipes-extended/images/core-image-full-cmdline.bbappend new file mode 100644 index 0000000..cbc59a6 --- /dev/null +++ b/recipes-extended/images/core-image-full-cmdline.bbappend @@ -0,0 +1,26 @@ +# Extensions for core-image-full-cmdline image recipe +# to generate .swu image using swupdate class + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +inherit swupdate + +SRC_URI = " \ + file://sw-description \ +" + +IMAGE_FSTYPES = "ext4.gz swu" + +# remove comment when configuring to generate ext4.gz.enc or +# ext4.gz.enc.swu images and add a key to the build directory +# as "conf/enc.key" +#SWUPDATE_AES_FILE = "${TOPDIR}/conf/enc.key" + +#SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = ".ext4.gz.enc" +SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = ".ext4.gz" + +# images to build before building swupdate image +IMAGE_DEPENDS = "core-image-full-cmdline" + +# images and files that will be included in the .swu image +SWUPDATE_IMAGES = "core-image-full-cmdline" diff --git a/recipes-extended/images/core-image-full-cmdline/wandboard/sw-description b/recipes-extended/images/core-image-full-cmdline/wandboard/sw-description new file mode 100644 index 0000000..3a372d9 --- /dev/null +++ b/recipes-extended/images/core-image-full-cmdline/wandboard/sw-description @@ -0,0 +1,43 @@ +software = +{ + version = "@@DISTRO_VERSION@@"; + + @@MACHINE@@ = { + hardware-compatibility: [ "revB", "revC", "revD"]; + stable : { + copy1 : { + images: ( + { + filename = "@@IMAGE_LINK_NAME@@.ext4.gz"; + type = "raw"; + compressed = true; + device = "/dev/mmcblk0p1"; + } + ); + uboot: ( + { + name = "rootpart"; + value = "1"; + } + ); + + }; + copy2 : { + images: ( + { + filename = "@@IMAGE_LINK_NAME@@.ext4.gz"; + type = "raw"; + compressed = true; + device = "/dev/mmcblk0p2"; + } + ); + uboot: ( + { + name = "rootpart"; + value = "2"; + } + ); + }; + }; + } +}