Message ID | 20231017140657.95860-2-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBBVKXKUQMGQE4R2PGJI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=P1tPaSYh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::139; helo=mail-lf1-x139.google.com; envelope-from=swupdate+bncbaabbbvkxkuqmgqe4r2pgji@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x139.google.com (mail-lf1-x139.google.com [IPv6:2a00:1450:4864:20::139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S8wlc67gsz1ypX for <incoming@patchwork.ozlabs.org>; Wed, 18 Oct 2023 01:07:08 +1100 (AEDT) Received: by mail-lf1-x139.google.com with SMTP id 2adb3069b0e04-50483ed1172sf5608791e87.2 for <incoming@patchwork.ozlabs.org>; Tue, 17 Oct 2023 07:07:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697551623; cv=pass; d=google.com; s=arc-20160816; b=RsofweDoFN7MtxNNFmASsScEWHd7NlHVgbTDf66S5Hzzp5e6ijp4SJSxX5ilGp7xIg svduGqBiV3hOZc1v3YJ4NWVl0YkW2sVAU06N+uoMGYrBrrMPN6MHMloZN7Ty3cP9fNmL GOKaxZK+RyCkCAf2/c87HgPbTZTNEyv4SHVGb+NmAVO3+rCPhfUW6Wlr144BsJmiuU8E GmSTJJuVZ0+J8bZwiJNwwSS0Sha7oEbJnwdU6XBPrQKiAzyPeHvx4Enxnwp2Ph/WIfZQ FRWO7v3jSHLyWqA41x2YFTLDACtJMTnx6ml9n2LDp/09Ug83AbYoPRob10HINjJd7bjO nnoA== 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:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=rcIOE9cpDZ/vAGi0A8TD+TyIt7Dz6gnWcIYmzbksTVU=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=Y0ViSYY8VEi9TEyAAgB/jUj1kWwhy8dhIVY5bClfdAtzUMLw719C4OThhx2H7YlBUV BrI8GkuIIanDoTzn/dQJDLeTTOURRUSnXzYefBMXfbmMCTo8ET2Vx/X9ukGAfunQfdxt X6aYM+H141uic22c4DttB9/bfaWWAH11c3uXG4OMLNCOomp32YUmu6IVenGv/2av2kdN EQ7yKAy72fFTlnbwzIrIWb5HbajYAVsU/N5E/16soCmJNyBfDO9mpXdHXYiRzKGecexP c6ltaY/lWpiOHc996TW/NGBXpLR5TVNCr9EEpa0n5oxVgcfun0YbKuUD94e8EUbQHZjg LTng== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697551623; x=1698156423; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=rcIOE9cpDZ/vAGi0A8TD+TyIt7Dz6gnWcIYmzbksTVU=; b=P1tPaSYhNeAwysV3AMCr0dSpwyDijoroAxK/Pk9z4Brm3KLZrTU/roBSJLMTckf9bW U8bILImXS4LECDnp2jKcMUnkWJA+hc5g+chK/7D/vSM1LqVVup7MSzf8CHkDDMmZJGKS iKaVRbMMu/BBl9NyE7968RpD5sEAmiYG6iJlVZSX8/s7r5DbBdCMp2RL8DCFOJqf8L4+ bYQZIj/oOsKuXzqCSgbno6Y+GB7L3gNNZccaCQflOwMAsgPdnU4fQz7XFy1UljYLXjrO IWerH36++DoWqMMurqkwH3cYaAcewtMNXLzW1UjSInB01JJbrLSOjyyHRYmiiJ6wQn2t Sf+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697551623; x=1698156423; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=rcIOE9cpDZ/vAGi0A8TD+TyIt7Dz6gnWcIYmzbksTVU=; b=W2kt15O7/BvRaeDRrK09pPr82IB+IOr9RVWBaLVkEsU1zIkTqeW40Yasi2QTCwzzgp OWz2S/OjXZlL310rm85Ypk0po8RJvT17XAVOdSyJK2Va5VU/+zCBWiWXLLlzQQ3oB3jq 5n7OGiEGW9Oi1YppWWdEW+iwGa7HZRXuDzOp4Dk1zrk2YGq2qZDhDV0x4wMDIfaOprcl QmYPxOX8ipnPePzkywVsPf8VCf1fLX/WTBn81qdzyX5vuZt3Z/4GmB36hnxMfY+8iO82 xM4NuUR+gFAP4KmnxY517Qc7JOGkeKIJgfEJVWgXSD3s1zgUPqRdjMtF02SClSDXI+1g jxIg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YyAVwo90XDDHJldn+ipMffLuMCbbc8wm+sJCUNKpQ/s2cJWka+4 MCiESq32e3+B2yONBJKZLlE= X-Google-Smtp-Source: AGHT+IHUYtq/Lf93ElnMhqCI+vvKozW3kL7kot3X7Bp7IsFrzJQ4CSkX3tjIEl6y369szWBgtGF1Sw== X-Received: by 2002:ac2:5f54:0:b0:503:7dd:7ebd with SMTP id 20-20020ac25f54000000b0050307dd7ebdmr1658810lfz.24.1697551622689; Tue, 17 Oct 2023 07:07:02 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:490:b0:500:7f17:b77d with SMTP id v16-20020a056512049000b005007f17b77dls117124lfq.2.-pod-prod-01-eu; Tue, 17 Oct 2023 07:07:00 -0700 (PDT) X-Received: by 2002:ac2:484c:0:b0:503:2dce:4544 with SMTP id 12-20020ac2484c000000b005032dce4544mr1918349lfy.59.1697551620844; Tue, 17 Oct 2023 07:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551620; cv=none; d=google.com; s=arc-20160816; b=RrTg1Fre5BwNOg73+j+R3iEzbmqF9WxN4R/n+TPhZcoZeVi3rFpWM3uldZELer6Qhb 6Qu87av08MZZlv+LFgloaixbbEkpR2SSS9KP/q22s6eNSuR8sdCpWDM1t9nlULBS8+Un cjnwhmSXm6eO6k5zcvPz69d6yBfSX10GF3aG6isNPuVHyifTPizuMBu7bvJC9+E8ihgA yz+oHEcdJYgHK8xjQzgcC4LTMlo3bCGs7OfJKLieDfcR9Yr6A2tR9m0Dau/FkEg/hQfu H7ejOt2x3+CzNduecUc1+O4c/ktfCifRWXj2HXWW2VTaw8/1vYTYOY4xqXptiN0Y6V9z 05yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=KVihscVSQwx+e7bXIjoECK7teIS4UyRxaB46QHN6KC0=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=KmEnbOnLMEY7h/zcCAQQ8FcYhbqAHzzYI2VIdA8JjqIOw+R1SUwjHdE5SSvE6t3WHc bnY2LMHPdKqcG6nSlIp9DuHwLgzKXTrek4DEZuCDtE/LMrlp3DM72o79+mKdvFgSFe3p QaN8MHUqRJ7jrnRxyIjgwLUc0uAAv9RIEgzmKQtw2LbwHuIWHh3Eob/5ekNW56oEmNxP mphblKNbxct8J7ugaQ1Y2IKlC7rzvmpb/80KRVCIx2DPEhPQUaMUNCUHezBArkW8Q20F ISXiCRjNNmpgtBQfI7i2q/HKLDGbW1Cs66+wIpsQb37cbWDdnge5F1m54kENkuoGBITf rapA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.10]) by gmr-mx.google.com with ESMTPS id h34-20020a0565123ca200b004fe3e3471c8si62944lfv.10.2023.10.17.07.07.00 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:07:00 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) client-ip=212.227.17.10; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N9Mh8-1rdzjb3pDQ-015KFf; Tue, 17 Oct 2023 16:06:59 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH V2 01/11] IPC: add SET_SWUPDATE_VARS and GET_SWUPDATE_VARS Date: Tue, 17 Oct 2023 16:06:47 +0200 Message-Id: <20231017140657.95860-2-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017140657.95860-1-stefano.babic@swupdate.org> References: <20231017140657.95860-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Prov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GVZPkR0q9fA2qrkFWbsitkSInA QnEXLwJGdaPTKg60aweDnUvBaiTq41/S5foE/ckmqBG+kU0zavLotuc8mea0jB5+u6p4eWLOV aQiC4bdOA/DA53gYmEa6z98Nbr1cMFxyy9xU= X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Handle Hawkbit action_id and on the fly updates
|
expand
|
diff --git a/include/network_ipc.h b/include/network_ipc.h index e0ef14a3..4d41b7b4 100644 --- a/include/network_ipc.h +++ b/include/network_ipc.h @@ -37,7 +37,9 @@ typedef enum { REQ_INSTALL_EXT, SET_VERSIONS_RANGE, NOTIFY_STREAM, - GET_HW_REVISION + GET_HW_REVISION, + SET_SWUPDATE_VARS, + GET_SWUPDATE_VARS, } msgtype; /* @@ -119,6 +121,11 @@ typedef union { char boardname[256]; char revision[256]; } revisions; + struct { + char varnamespace[256]; + char varname[256]; + char varvalue[256]; + } vars; } msgdata; typedef struct {
Add setter / getter via IPC for not-bootloader variables, that are used for general purposes or to store variables evaluated by SWUpdate but not by the bootloader. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- include/network_ipc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)