From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 05 Feb 2024 22:10:23 +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 1rX6EQ-004kbB-19 for lore@lore.pengutronix.de; Mon, 05 Feb 2024 22:10:23 +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 1rX6ER-0008QJ-BH; Mon, 05 Feb 2024 22:10:23 +0100 Received: from mail-he1eur04on2132.outbound.protection.outlook.com ([40.107.7.132] helo=EUR04-HE1-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 1rX6E6-0008Pw-JU for ptxdist@pengutronix.de; Mon, 05 Feb 2024 22:10:04 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TckjpeG5eOgNx/cmWamDLT4Nc/bxtBFj+rme1IYNz1WcKt/coveGdIhFj5jRBqrOBlsfmNgg2KBfzm6tb2HUBGgw/d+i+nz8uunWbjLHbCCkZc/TWOe7AgdLoKPedGkk9vGSEKavgUgQng1NdkjZvbP4szBJQ62EAcCJUdP5lvf/szmsrI0wKfCDemOo9ho+rR/gmcvNptabB53Gkm1jphodQSKiccDvp1lb2xfKjq1O6OLtk4sBr3XBlqtkJ03UkY5IJK5id2ds5c+1ZhLBqrorwzBIPxZdfwvQE5suSRC+F3LLUhAawgRfnw8+UDQCO5L3fzeNiJ1ebTYAzLB79g== 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=gmDw7Xq7AK3WotmZEg6U3RUHS3Hec3lX+9k4vrxoPvo=; b=cuQXfJmwT7VHrpAB5E3wWeq2w5Tulw2Ft+sQ9C0BPKee3jcKIwBDiTMNqw375wF9wTi+gq9D8uQJ4hdfTIciOTmD3BkBZMjPDZYhPGmTrLrvu7DiOFlYJZYivkZ1Vx848oFt6kDcquZX421TZdWMl+W7ErykG6EGDeMoC9wPDR1mcrDokDFTkYXQxUpopluP/pJEFWGiuHnlB+IkEnZ1mvbS0OhSB0BQxgWXy3hrFQkR2Kvt1UlvbQ6FAN9qy2KKFKdpd94SSmtpTIw3SoX0xcj7XsjV231W+3Q0TtJjjTZDk+WzRK9xok6dsj8Qj9eaQhasjVw+8/B4Sv0xrJC3Jw== 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=gmDw7Xq7AK3WotmZEg6U3RUHS3Hec3lX+9k4vrxoPvo=; b=grhvR0QcX7nZWl4+7odEPNgrRLqYHLSmnlOaJyZ3TWT9P6umeV8K2eOOnQf8J82QYmq16+k+16bshnDNT9jCm8ke9nY8PMLv0ZkNxgh6nffmdFx8BjTUcHLUf/DjlkSiFwdESRrhL5dOe3OeBcKSGTdfNX9/bfabp2Q/XJW6tLc= 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 PAXP251MB0671.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:284::10) 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 21:09:58 +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 21:09:58 +0000 Message-ID: <0e17d7b2-1397-4d8b-93fc-55d50cd64f1f@t2data.com> Date: Mon, 5 Feb 2024 22:07:52 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sebastian Muxel , ptxdist@pengutronix.de References: <20240205201844.65771-2-sebastian.muxel@entner-electronics.com> <3zf2idbmoykcvgqcjdd25hq3q43uui2teou6naqpwxqgxhogn2@lbpoiotzoupu> From: Christian Melki In-Reply-To: <3zf2idbmoykcvgqcjdd25hq3q43uui2teou6naqpwxqgxhogn2@lbpoiotzoupu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: GVYP280CA0007.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:fa::27) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9P251MB0618:EE_|PAXP251MB0671:EE_ X-MS-Office365-Filtering-Correlation-Id: fbf44a9c-7785-4e6b-87f8-08dc268ecf4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZQVWOfsUoNa0QGwTaf4piiRQ5FWco+uICFelbOTjmEY23LsQd29N3A8oV/70/ZcLW0Kmr/kc2hIcgUhz4tIX8iOYnQZt5v5iU0idpa7dfJ5Yhl1tWS3aZ4dM8oYrJVd9agrj5oYUfWgp9BhqtXpwlXkldJVGLbHD33DYdDAVq/pRGOpFNiMLHoBtaj2f9c0fAn8qQTg50FW+vzBMUaRS6t8lzv2BuJGn8FmhIY5c1bMS/M75n6PO+jZX74pf2NE2E8PhujO27ZGADoeFbkcaIQk3TsmXFe27vfFYhf3XI1eBQu8UxwV8R7pn+be1jtqqjq9yQWvfZ8JVKN8k1wwM00zZmBA8IQ0mfoYAozCGDOTJQPTt9F0RoZe5oNkZ6slbIg0/FkjlWGvSoQgE+Z6EnsW+pQdAIKJ9LsziXqA/Ys31oRqVc6t3eDYAejW3JxC88KBgxLy5aiJCYJYjzCqE9i0dnCA4zBPTZ5VJDQt1KWFSZzGD7xcGq/dnhbJ/61gS0Dm//cgmoTKKESsYZqsITz8H3feURDOSiM3d2waed0qVeEVcMSNF1I/GJ4kobq7pkifXEbz75ewe1czAPipwHs1RnRr26ohNJXa5wySVhtZt2DAplS7pvKBrt8ad0G/xx+dVsvyj3utjTVMQ36nCeQ== 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)(346002)(39830400003)(136003)(376002)(366004)(396003)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(66476007)(66556008)(8936002)(5660300002)(8676002)(3450700001)(44832011)(2906002)(86362001)(316002)(66946007)(31696002)(966005)(6486002)(36756003)(38100700002)(478600001)(6506007)(6512007)(53546011)(6666004)(83380400001)(26005)(2616005)(41300700001)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q0RZMk02SGRCdkRUNkxQcG5pd0h4V3BwMW8vc1VvRWM3ZFdPRmdBSzVrSXhH?= =?utf-8?B?VlFxOUVVbjJRR2x0OFJHRVNCRk83UzAvYlB4ajJDS095RnFzbXAzVFFxYTJj?= =?utf-8?B?WTQrSXFKd3F6Q0J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Y3JCcUFpUnNmbm1QV1Fx?= =?utf-8?B?Qm1wUnNhLzNPOVBjVXhVcDdxYU94Qk1MQWp2S1Q1RkMyTFFLZ01scmxudlJ3?= =?utf-8?B?Q1phL1E5VXlhYVJCeFZITzNrK05jZDNVQlFBT0diSFBVUUhxUDRpaHhteFV1?= =?utf-8?B?N2Y3NVBQbERmbzRaSUxZZTdxSUJwUTF5TVFiSGdXYlJLVmg0M3hjV2l0aUt5?= =?utf-8?B?TkFsZ3Y5VnZqQSt1VjlTRHJrK1lMaUNsUHBTa21kUVBSaXFKMkpoUkFoWGpy?= =?utf-8?B?NUE9PQ==?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf44a9c-7785-4e6b-87f8-08dc268ecf4f X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2024 21:09:58.6084 (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: iRpVxXUykoXnuX5zMlJH4XNcHnrH3X/ng+HPO3Fj5NDSD1P0iD+ZJT7MT10bhSgkl/FUJVmSv1j0f4wJB/SNd96wO+ImJlURQwAxAidbCPE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXP251MB0671 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 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:49, 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 ] > > Hello > >> 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? > > I had to tweak it to 0x00 after noticing that the env image generated by > our vendor supplied SDK has specified it in it's make process. Keeping > it at 0xFF wouldn't allow me to generate a firmware image. It could likely > be that it's a hard requirement of their image generation/flashing tool? > I honestly haven't put much further thought into it and assumed it's due > to the way NAND erasure works > 0x0 looks wrong to me w.r.t most flash media. Also not sure I understand why 0xff would stop anything from generating a firmware image? That said, I don't think it matters a lot. It just risks excessive erases the first time a block is written on media that hasn't got a smart(er) FTL. It's really not a common thing to want to change, hence the question. :) For me it's usually the opposite. I want to make sure I don't get fills with anything else than 0xff. > Regards, > Sebastian