Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1927745pxb; Mon, 23 Aug 2021 07:56:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdBDcsm/v7pjaTfnJ0jiasKsW8rA+9/Iyp0YjzSUnpRP1k+59MpcGI3h1+vbBwhoHlvInI X-Received: by 2002:a17:906:3e58:: with SMTP id t24mr14369330eji.502.1629730578860; Mon, 23 Aug 2021 07:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629730578; cv=none; d=google.com; s=arc-20160816; b=dVURDD6FsUsGcTueNYucyDA6LRV1xbeTwTMmd5M1IkUMqzahOPPwGzA5p7G2NWPP92 MQq9VcA2yWOu1aZnVqwDTVyJSZCp/LXIEiT2OFZKUuE+kRwkIlOnVWnHER+IXatlbsgQ odLKaYXFLV9BK2jh1XnCgeUA41kpMRz7Fm3Orb1nOgiKZdGUJKmn/D+iBL6brHzqUf8U ZXpXkwYsjvgyLtEJQ2adxUVDYLryL9NJ7rHcjyXJxi0hOm9vZXgQlOZ8HT3lYElJffOy w56KP8Xc1nLqeyYS2MYpT10hf/U3YMvAnC8nq2FS0qFNC51FJQk3a3hBEOyTOQ93Zov9 13bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QRsqCUdecIQyDUmdzjm00knX5936yTUE08R3WGJ50zU=; b=gTALBsQAhA++EezlWRPlp23ZpGrwv9mmx7Mwd5mt0aL2EXJMtRLfDmpXfwKYqWc9Nz 1voJDN6PLRKVHbYKG6nm6DMXrPiNcGvayrFEVLLi++Y2vpXuRVGK3Z5K5POriy9gWcl8 53lUQ1zI8his13dt2GFmIkzq/kvWUOO6kz0x9E1xSsb3kw37lrQmKTUFNIkgUKWT/jt6 utx/hSpfbVZiS0BFjnW63r1D5KsK0iCfnzoQGTOGUxTYsjig6sPDPxkv1jJWBDSzMk4p 8qH7ulTs4PJ6OnIcrPOWktXjyvFzbFYTk3ukJBpKTD0NwtPlifsHdYIu34rWQE+tZMQH vqzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b="gE3OLw/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si15094053ejh.638.2021.08.23.07.55.54; Mon, 23 Aug 2021 07:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b="gE3OLw/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbhHWOwb (ORCPT + 99 others); Mon, 23 Aug 2021 10:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbhHWOw3 (ORCPT ); Mon, 23 Aug 2021 10:52:29 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 358F3C061575 for ; Mon, 23 Aug 2021 07:51:47 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id jv8so9809891qvb.3 for ; Mon, 23 Aug 2021 07:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QRsqCUdecIQyDUmdzjm00knX5936yTUE08R3WGJ50zU=; b=gE3OLw/FMkFXWrFW7TDrZ+BRstLICt7d2B7vDHSSmf1v59iAIPWcMq7tOS2CcLZhPr BFaKRhzxHcs7Jl101MQY2WAl2h3kOQJmk+mMy3Deo9q32iPKhswhomaeGnPg3ChDozKq F+ktlwZn8TpcpnGLdFwxcrUCLGiNuDmsKwOZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QRsqCUdecIQyDUmdzjm00knX5936yTUE08R3WGJ50zU=; b=a03XFfO78vkJLbqmd7kSs9IxCGlsIsaUYPCP4K/tfug45dbGuT0C0Z/b/rgSdD2KUq KEhHks8wNoApdYOTLMZFvWIl+2GqKpKGuHcUmJoCrkRIpePVACFFDM/0WXPaZ850ex5j RI6YYRxj2P4B5hJUM8o22UKCq0/Gd2GqAkmN+YJQYGH3OIlIsfDXptHsb7NmUIszI0E2 2cPJZOcFDtdAeyLhFtD0sev3H8HfaiAFlVOq/yauoFWbw78JZlNqvhhITLdYGsN9yjyv hFOx0w0RufsY9NDNIgcYkHukZya6l7Bv8l/ComRC5D9esoVRi4G9NR3fpC1teZlzR2M2 Wnzg== X-Gm-Message-State: AOAM530x+F5coTvFr803sjNfIWcXcXobkJzagqdkHnJAChXGXdLuGJmF LOcMgB41R+ZkfGciqCQns18H32+Yx/Vo3VXp6wZLuA== X-Received: by 2002:ad4:4533:: with SMTP id l19mr14988168qvu.55.1629730306163; Mon, 23 Aug 2021 07:51:46 -0700 (PDT) MIME-Version: 1.0 References: <20210811084924.52293-1-daniel@0x0f.com> <20210816101143.2a64d7b9@xps13> <20210823162148.35a24183@xps13> In-Reply-To: <20210823162148.35a24183@xps13> From: Daniel Palmer Date: Mon, 23 Aug 2021 23:54:20 +0900 Message-ID: Subject: Re: [PATCH v3] mtd: spinand: add support for Foresee FS35ND0*G parts To: Miquel Raynal Cc: linux-mtd@lists.infradead.org, richard@nod.at, Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, On Mon, 23 Aug 2021 at 23:21, Miquel Raynal wrote: > I am not sure to follow, above the software says "3 corrected bf" while Due to the status being "between 0 and 3 bitflips" I think it'll basically report 3 most of the time. As a refresher we seem to have a status for 0 - 3 flips but ok, 4 bit flips but ok, and >4 flips no go. In most cases (0 - 3) the driver is reporting 3. > I thought the problem was when getting 4 bf, but the dump show many > more. Can you show me how it behaves: > * erase (like you did) > * insert {1, 2, 3, 4, 5} bf and show the dump each time? Here's a complete log of erasing the page then flipping all the bits in the first byte. # flash_erase /dev/mtd0 0x8000000 1 Erasing 128 Kibyte @ 8000000 -- 100 % complete # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6249 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 0@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6252 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 1@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6255 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: fc ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 2@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6258 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 3@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6261 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 4@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6264 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 5@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6267 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 6@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6270 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: 80 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandflipbits /dev/mtd0 7@0x8000000 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6273 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # For completeness logs of what nandbiterrs does: # flash_erase /dev/mtd0 0x8000000 1 Erasing 128 Kibyte @ 8000000 -- 100 % complete # nandbiterrs -i ^C 1024 /dev/mtd0 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6478 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandbiterrs -i -b 1024 /dev/mtd0 incremental biterrors test Read reported 3 corrected bit errors Successfully corrected 0 bit errors per subpage Inserted biterror @ 0/5 Read reported 4 corrected bit errors ECC failure, invalid data despite read success # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6488 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 4 corrected bitflip(s) at offset 0x08000000 0x08000000: 05 a5 65 e5 05 85 45 c5 b5 35 f5 75 95 15 d5 55 |..e...E..5.u...U| 0x08000010: 6d ed 2d ad 4d cd 0d 8d fd 7d bd 3d dd 5d 9d 1d |m.-.M....}.=.]..| 0x08000020: 81 01 c1 41 a1 21 e1 61 11 91 51 d1 31 b1 71 f1 |...A.!.a..Q.1.q.| 0x08000030: c9 49 89 09 e9 69 a9 29 59 d9 19 99 79 f9 39 b9 |.I...i.)Y...y.9.| 0x08000040: 77 d7 37 b7 57 d7 17 97 e7 67 a7 27 c7 47 87 07 |w.7.W....g.'.G..| 0x08000050: 3f bf 7f ff 1f 9f 5f df af 2f ef 6f 8f 0f cf 4f |?....._../.o...O| 0x08000060: d3 53 93 13 f3 73 b3 33 43 c3 03 83 63 e3 23 a3 |.S...s.3C...c.#.| 0x08000070: 9b 1b db 5b bb 3b fb 7b 0b 8b 4b cb 2b ab 6b eb |...[.;.{..K.+.k.| 0x08000080: 0c 8c 4c cc 2c ac 6c ec 9c 1c dc 5c bc 3c fc 7c |..L.,.l....\.<.|| 0x08000090: 44 c4 04 84 64 e4 24 a4 d4 54 94 14 f4 74 b4 34 |D...d.$..T...t.4| # # flash_erase /dev/mtd0 0x8000000 1 Erasing 128 Kibyte @ 8000000 -- 100 % complete # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 0 ECC corrected: 6492 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| # nandbiterrs -o -b 1024 /dev/mtd0 overwrite biterrors test Read reported 3 corrected bit errors Read reported 4 corrected bit errors Failed to recover 1 bitflips Bit error histogram (873 operations total): Page reads with 0 corrected bit errors: 0 Page reads with 1 corrected bit errors: 0 Page reads with 2 corrected bit errors: 0 Page reads with 3 corrected bit errors: 785 # nanddump --bb=dumpbad -s 0x8000000 -l 1 -c -p /dev/mtd0 | head -n 10 ECC failed: 1 ECC corrected: 9202 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x08000000 and ending at 0x08000001... ECC: 3 corrected bitflip(s) at offset 0x08000000 0x08000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 0x08000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| Cheers, Daniel