From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 05 Feb 2024 21:33:03 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rX5eH-004iGi-2L for lore@lore.pengutronix.de; Mon, 05 Feb 2024 21:33:02 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rX5eI-0005iZ-EF; Mon, 05 Feb 2024 21:33:02 +0100 Received: from mail-db3eur04on2132.outbound.protection.outlook.com ([40.107.6.132] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rX5e3-0005iQ-Sl for ptxdist@pengutronix.de; Mon, 05 Feb 2024 21:32:48 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nrvRhVgVwmCWSqMvHh0BlfiCgqCDULgeBm4LbnccHWNKzPkiEL2pnmzptfuAuXTcoCAesyDLS5J5A466HtONzxE+bTsQ+5NQvfO2ywCvUwHCGTbUbE6GQ0saQyud2VbUQP1WjGScvJXm74yEn/3W8e082WwJaY7X44tkoufNrKOW1hE80t7mvTQDNSg9DWj8U7cV8c5ji0oFWAzDs1y124E80sN7aII9ogf7CALomYAmn+j1hBCy5uH4klz0zqv26jLqAM2Dg3dZj680YChEOofIwsViUyUczU2jeXM6lSeuy4G1AA6UcYzXrAIHEBXC4rm4Jwqt5O5X268WPFcMEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zt24Qt5j1O6wcn2u3504Cd4lMGAKBj5mxKMp8H1yZGQ=; b=PQPQKmdJCeRiYEKkW4kFtRStcBGuKTKAomgNkvmnfdxo6SWG+fqm/odiBFyNyhnHuEzCG0DjBomvHgWZo54o0t8dFESuhs6qftsvTmxswadgY1eDW8FB/JmSoAHL6Ghe06w0mHaz4Emxx1s2O7o/YJsbFN6ID66A/XCHp4o2/A1eeILKZEy3hquThUmZv4iT/EcFB3kFNV6dOlM0QKRZ+xQdorgXZZM1BvNhV700PL+am+i3IpELHSkK56fFUmgEVTbpCS4MQTGgSNckbdwRQnskiJUPaPZDJ8H8aCIctNVE33odx8GxRjoBje3g6YK6TeSGq8YUiBCeb/DeEINfLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zt24Qt5j1O6wcn2u3504Cd4lMGAKBj5mxKMp8H1yZGQ=; b=PrjmHHPnpNkn+0vfXPKVvPI955TXg/+hPlGwItBTUzOk5TjlO8erDOtIhqIo8nukWgVmFjHcjNPSxjIaKZveD1UneC397iU45Bp6DI7fra1QTs/D31eVZWcVc4WXWJ7AwBpY9dYPZF9rdWFkzhCY2uDOf3/lZ5bfAfR75yLuN4c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) by DU0P251MB0628.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:341::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.34; Mon, 5 Feb 2024 20:32:45 +0000 Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::1398:9f4f:da3f:1862]) by DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::1398:9f4f:da3f:1862%3]) with mapi id 15.20.7249.032; Mon, 5 Feb 2024 20:32:44 +0000 Message-ID: Date: Mon, 5 Feb 2024 21:30:38 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sebastian Muxel References: <20240205201844.65771-2-sebastian.muxel@entner-electronics.com> From: Christian Melki In-Reply-To: <20240205201844.65771-2-sebastian.muxel@entner-electronics.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: GV3P280CA0052.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::6) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9P251MB0618:EE_|DU0P251MB0628:EE_ X-MS-Office365-Filtering-Correlation-Id: 396ff25b-c0a9-4151-0e21-08dc26899b88 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tp2+ePIBMapSOzHlObHlMpAeRdC+8w+j/Qev5NpyeiCCEovEtRC/12pG27hwaAjQ7dK7wqs5WT2Nmw0aOcclIjS+EL8VFF0GYX1R5AbtiuEmZTTjAepWhjxXXk4sF8KmG/VxfU3E/PiXfECTxFDfkhO091HCObHNfe83j5x4rSNBw65geTXvvKd47iFPnw7IprA6oKawOpAQ5ZULAeuTYr2/FIVvNOAMBIKftB/N9WknyeDmPiFtdm/9xTEeyM3VogFTduJb4MGfkbP5yFv5nlW7jSoAWaa8Uau6j86bzmD/FMNqzM97gMyCL/YXYe5cxamJcLVt8v7hs6boi8D0/MW8ogZgHQ4RsLgkNTtmRxOlG1k6wjUH+Km4oudoahFiQtKE3S/FkNbQKC5JOEetO78CDEPWgF3pFKAXT8ybJN+eW215nKBEuy3G0TppYd8dScr1lxKgvjLqlQWWOu3EEJsMBWTQZ6pZAX5Xp2MqAad3B2qg1tovv97GWrthxXgNcq1qfaZMJ9KuqXtZxGWlBWDGOzK/vhDRvnXaRLrJcH8upsCnB/FBMNpSgXWy75KQnnKH+UywOvZeskSO09TdSMlTHrKrqI/fm0091RMNMtSxh1FVMWFAqAp0SyfONaQZLXHdMyd5tkdc25KWBvwGoA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P251MB0618.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(366004)(376002)(39830400003)(346002)(396003)(136003)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(8676002)(8936002)(4326008)(31686004)(66946007)(6486002)(66556008)(966005)(44832011)(6916009)(66476007)(478600001)(316002)(6666004)(53546011)(6506007)(5660300002)(6512007)(2616005)(2906002)(3450700001)(36756003)(26005)(86362001)(41300700001)(83380400001)(38100700002)(31696002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Ty9INlI5S1VtcFFjNlZCWlUvdktwc1Rad3JWZUNLbDFPSmt4eG9LNHJjZkRH?= =?utf-8?B?VzB3S3BNRFJMUCsrUHRWWE1Ca2o3ME9DK1p2aUFOdXNMMGRiV2k1K0RhVmtH?= =?utf-8?B?NjdiMzVhNmlRR2RPbTF0MGQxYmJWTTJvUEE5NEVCREtUQTBJWS9XSkxXU3ZL?= =?utf-8?B?eWRDV21lLzhPdGhIZGpJUmZYNnNyeDBkSERxbkpYL1UwM3QzYTNZTFROTDFj?= =?utf-8?B?VFVSTi9VWEc1azcrWDVmZnVPUlpDcldsT0JZWmQ2V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B?V3FBWEZTOEhzWXdSaFlxSjBCOEhvV2Q4ZHVLK0tQWEJ6ODVRS0hHeUxvMEZz?= =?utf-8?B?VHpzVFByblMxSVd5d2dxZUFDdmgrMHdzUGU2N1F2N3h2bnJSK2RxNUpxNWJk?= =?utf-8?B?MVE9PQ==?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: 396ff25b-c0a9-4151-0e21-08dc26899b88 X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2024 20:32:44.2696 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zsS+tqqXkE8A9UgWXJcJmBj+b47R6lETsn0TpuhVPH6v/4AUQ94oUxjjDruFaLzTj//z39fBZl6Y6mUYfNJgqpa4PHr06eU2I+QRC9Ckyhs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P251MB0628 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] u-boot: Allow specification of padding byte for custom env images X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de, christian.melki@t2data.com Cc: "ptxdist@pengutronix.de" Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On 2/5/24 21:16, Sebastian Muxel wrote: > [Du får inte e-post ofta från sebastian.muxel@entner-electronics.com. Läs om varför det här är viktigt på https://aka.ms/LearnAboutSenderIdentification ] > > The env image is currently always padded with the default bytes 0xFF. > New configuration U_BOOT_ENV_IMAGE_CUSTOM_PADDING_BYTES is added > to allow specification for custom env images. > Hi. Just curious. In what situation would you need to alter the default padding bytes? 0xff suits most (if not all) NVM types. Flash transition layers usually just give an illusion of the traditional zero:ed block on flash to block translation? Regards, Christian > Signed-off-by: Sebastian Muxel > --- > platforms/u-boot.in | 9 +++++++++ > rules/u-boot.make | 1 + > 2 files changed, 10 insertions(+) > > diff --git a/platforms/u-boot.in b/platforms/u-boot.in > index 769237081..bcabc8b27 100644 > --- a/platforms/u-boot.in > +++ b/platforms/u-boot.in > @@ -131,6 +131,15 @@ config U_BOOT_ENV_IMAGE_CUSTOM_SOURCE > The file should have lines in the form var=value, one per line. > Blank lines and lines starting with a # are ignored. > > +config U_BOOT_ENV_IMAGE_CUSTOM_PADDING_BYTES > + prompt "Bytes used to pad environment image" > + hex > + default "0xFF" > + depends on U_BOOT_ENV_IMAGE_CUSTOM > + help > + Enter the byte used for padding the image to the specified > + U-Boot environment size. > + > if !U_BOOT_ENV_IMAGE_NONE > > config U_BOOT_ENV_IMAGE_SIZE > diff --git a/rules/u-boot.make b/rules/u-boot.make > index 4bc7f3f78..6ef657529 100644 > --- a/rules/u-boot.make > +++ b/rules/u-boot.make > @@ -123,6 +123,7 @@ ifdef PTXCONF_U_BOOT_ENV_IMAGE_CUSTOM > $(call ptx/ifdef,PTXCONF_U_BOOT_ENV_IMAGE_REDUNDANT,-r,) \ > -s $(PTXCONF_U_BOOT_ENV_IMAGE_SIZE) \ > -o $(U_BOOT_BUILD_DIR)/u-boot-env.img \ > + -p $(PTXCONF_U_BOOT_ENV_IMAGE_CUSTOM_PADDING_BYTES) \ > $(U_BOOT_ENV_IMAGE_CUSTOM_SRC) > endif > @$(call touch) > -- > 2.43.0 > >