Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2071FC4167B for ; Mon, 4 Dec 2023 14:39:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4700E870D4; Mon, 4 Dec 2023 15:39:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gnudd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 513CE876A3; Mon, 4 Dec 2023 09:09:29 +0100 (CET) Received: from mail.gnudd.com (mail.gnudd.com [93.91.132.248]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8CF9B8779B for ; Mon, 4 Dec 2023 09:09:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gnudd.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=rubini@arcana.gnudd.com Received: from rubini by mail.gnudd.com with local (Exim 4.94.2) (envelope-from ) id 1rA416-0001K9-FU; Mon, 04 Dec 2023 09:09:24 +0100 Date: Mon, 4 Dec 2023 09:09:24 +0100 From: Alessandro Rubini To: marex@denx.de Cc: festevam@gmail.com, u-boot@lists.denx.de, rogan@dawes.za.net Subject: Re: [PATCH] tools: mxsboot: pre-fill buffer with 0xff, not 0 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: GnuDD, Device Drivers, Embedded Systems, Courses In-Reply-To: References: X-Mailman-Approved-At: Mon, 04 Dec 2023 15:39:38 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hello. >>> pre-filling with 0xff creates a proper boot loader image, but no >>> bad-block marker is there when written to flash. > Isn't there some kobs-ng or whatever tool it was to properly initialize > the NAND on MXS ? I didn't know. I used what u-boot offers, which works for me without vendor tools -- and dare I say I trust u-boot tools more than vendor tools?. The default environment even has the rule to reflash from any u-boot.nand you manage to put into RAM. The only issue is that u-boot.nand, as created, marks good blocks as bad by prefilling with zeores. thanks /alessandro