Message ID | 20210106153233.2843-1-Gireesh.Hiremath@in.bosch.com |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=in.bosch.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=key2-intmail header.b=WexQwaKO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D9vfn3cjdz9sVk for <incoming@patchwork.ozlabs.org>; Thu, 7 Jan 2021 03:18:08 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C68AC8279A; Wed, 6 Jan 2021 17:15:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="WexQwaKO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F212826CF; Wed, 6 Jan 2021 16:32:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from de-out1.bosch-org.com (de-out1.bosch-org.com [139.15.230.186]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 15294825C4 for <u-boot@lists.denx.de>; Wed, 6 Jan 2021 16:32:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com Received: from fe0vm1649.rbesz01.com (lb41g3-ha-dmz-psi-sl1-mailout.fe.ssn.bosch.com [139.15.230.188]) by fe0vms0187.rbdmz01.com (Postfix) with ESMTPS id 4D9tfQ64Fkz1XLDQs; Wed, 6 Jan 2021 16:32:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=in.bosch.com; s=key2-intmail; t=1609947166; bh=6fpWpkFc7jzpZRNXYDyHBuNEiuJWZJIJiVXj4p17DYI=; l=10; h=From:Subject:From:Reply-To:Sender; b=WexQwaKO9uV8xXRgIKvKgIYj9CiDAY27FZh8lhy2TdH0bmCtgAVvo2fD1KiNPgKXb kptAla7H7jJp627npEjFohDCVSZUAyqUZnJTr0Bz/Ec/R+kQkEAdNdU+MFteeas7Rf 70heaBlScxYHNKSg0OTHvBaDoLHVkUhF9mnhxuEE= Received: from si0vm4642.rbesz01.com (unknown [10.58.172.176]) by fe0vm1649.rbesz01.com (Postfix) with ESMTPS id 4D9tfQ5nycz2J1; Wed, 6 Jan 2021 16:32:46 +0100 (CET) X-AuditID: 0a3aad12-f1dff700000020f1-7a-5ff5d81e792c Received: from fe0vm1651.rbesz01.com ( [10.58.173.29]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by si0vm4642.rbesz01.com (SMG Outbound) with SMTP id 85.37.08433.E18D5FF5; Wed, 6 Jan 2021 16:32:46 +0100 (CET) Received: from SI-HUB2000.de.bosch.com (si-hub2000.de.bosch.com [10.4.103.108]) by fe0vm1651.rbesz01.com (Postfix) with ESMTPS id 4D9tfQ549Nz11ZL; Wed, 6 Jan 2021 16:32:46 +0100 (CET) Received: from localhost.localdomain (10.142.201.46) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2106.2; Wed, 6 Jan 2021 16:32:44 +0100 From: <Gireesh.Hiremath@in.bosch.com> To: <u-boot@lists.denx.de>, <Gireesh.Hiremath@in.bosch.com>, <trini@konsulko.com> CC: <sjoerd.simons@collabora.co.uk>, <VinayKumar.Shettar@in.bosch.com>, <Govindaraji.Sivanantham@in.bosch.com> Subject: [PATCH 0/1] Add update available flag along with bootcount Date: Wed, 6 Jan 2021 15:32:32 +0000 Message-ID: <20210106153233.2843-1-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.142.201.46] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrELMWRmVeSWpSXmKPExsXCZbVWVlfuxtd4gz1P9S2mH3/LajF10mZ2 i7d7O9kdmD3+Pr/O4vHqwCp2j7N3djAGMEdx2aSk5mSWpRbp2yVwZaw49YytoIWzov2OXgPj cvYuRk4OCQETiS1XGthAbCGB6UwSG894djFyAdl7GCWmzvrJCpFYwyjR0RDZxcjBwSagKrF6 YQ2IKSIQLLH6iBpIBbNAgcS+q6eYQWxhAWeJrv49jCA2i4CKxKFdC8DG8wo4SjQc3AS1Vl7i fO86doi4oMTJmU9YIObISzRvnc0MYUtIHHzxghmiXlHiz/GVjBMY+WchaZmFpGUWkpYFjMyr GEWLMw3Kck3MTIz0ipJSi6sMDPWS83M3MUKCUWgH46+OD3qHGJk4GA8xSnAwK4nwWhz7Ei/E m5JYWZValB9fVJqTWnyIUZqDRUmcV4VnY5yQQHpiSWp2ampBahFMlomDU6qBycjH8WLt1hb1 6Mnfnzz/oMvDd9WcPbFMb81fY33Vln0VC3uiHrbsP2+VwaW6Tm2Zm/6J3urFkxUUrmrdyk+7 vvnSMqtPBfqS+d+NM65vWbz69J0ErvVlMY59c6MWrTZncSh0y+vWndG/djrXj+fpX17NDL2c l7D7mcDhYG/+462SmbkTVGUvduxYltz7QuDgX54vBy1T3P5tlCr4cnelSd+5PUuvOSpt7Jum 2OvFzcO/x/Nv0ImM871//y+zf6K478LK7J8N/MFXk4vv1HRdquF4GvZ6XfqtdplHGvKKUQfP q/4oef5V0EHi5YlrGaJhn7+sWG2Ve1Rm73K/U5/klp3x05my4ebj4K8xXzMfvFRiKc5INNRi LipOBABCoXXztQIAAA== X-Mailman-Approved-At: Wed, 06 Jan 2021 17:14:49 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add update available flag along with bootcount
|
expand
|
From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com> By adding update_avalibale flag we wanted control the increment of bootcount, update_available flag is set from user space when there is upgrade in software which allow to increment of bootcount, otherwise no increment in the bootcount. Update_available and bootcount will be cleared after every successful boot from user space version byte to handle the version number. to provide backward compatibility initial version number is 2. RTC second scratch register[32-bit]: -zero byte hold boot count value -first byte hold update available state -second byte hold version -third byte hold magic number Gireesh Hiremath (1): am335x, guardian: software update available status is stored in AM3352 RTC scracth register configs/am335x_guardian_defconfig | 1 + drivers/bootcount/Kconfig | 27 ++++++++++++-- drivers/bootcount/Makefile | 1 + drivers/bootcount/bootcount_nvmem.c | 57 +++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 drivers/bootcount/bootcount_nvmem.c