lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20141021180103.37ca7357@bbrezillon>
Date:	Tue, 21 Oct 2014 18:01:03 +0200
From:	Boris Brezillon <boris.brezillon@...e-electrons.com>
To:	Ezaul Zillmer <ezaulzillmer@...il.com>
Cc:	linux-sunxi@...glegroups.com, computersforpeace@...il.com,
	dwmw2@...radead.org, linux-mtd@...ts.infradead.org,
	robh+dt@...nel.org, pawel.moll@....com, mark.rutland@....com,
	ijc+devicetree@...lion.org.uk, galak@...eaurora.org,
	devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org, yassinjaffer@...il.com,
	maxime.ripard@...e-electrons.com
Subject: Re: [PATCH v6 2/2] mtd: nand: add sunxi NFC dt bindings doc

On Tue, 21 Oct 2014 08:03:57 -0700 (PDT)
Ezaul Zillmer <ezaulzillmer@...il.com> wrote:

> results 
> {"K9GBG08U0A 32G 3.3V 8-bit",
> { .id = {0xec, 0xd7, 0x94, 0x7a, 0x54, 0x43} },
>   SZ_8K, SZ_4K, SZ_1M, 0, 6, 640, NAND_ECC_INFO(24, SZ_1K) },
> 
> 
> Start this in the attached image
> ..................................................................
> 
> [   20.127045] Bad eraseblock 2900 at 0x0000b54fe000
> [   20.134025] Bad eraseblock 2901 at 0x0000b55fe000
> [   20.140993] Bad eraseblock 2902 at 0x0000b56fe000
> [   20.147973] Bad eraseblock 2903 at 0x0000b57fe000
> [   20.154952] Bad eraseblock 2904 at 0x0000b58fe000
> [   20.161932] Bad eraseblock 2905 at 0x0000b59fe000
> [   20.168900] Bad eraseblock 2906 at 0x0000b5afe000
> [   20.175878] Bad eraseblock 2907 at 0x0000b5bfe000
> [   20.182861] Bad eraseblock 2908 at 0x0000b5cfe000
> [   20.189828] Bad eraseblock 2909 at 0x0000b5dfe000
> [   20.196810] Bad eraseblock 2910 at 0x0000b5efe000
> [   20.203790] Bad eraseblock 2911 at 0x0000b5ffe000
> [   20.210758] Bad eraseblock 2912 at 0x0000b60fe000
> [   20.217742] Bad eraseblock 2913 at 0x0000b61fe000
> [   20.224723] Bad eraseblock 2914 at 0x0000b62fe000
> [   20.231702] Bad eraseblock 2915 at 0x0000b63fe000
> [   20.238669] Bad eraseblock 2916 at 0x0000b64fe000
> [   20.245649] Bad eraseblock 2917 at 0x0000b65fe000
> [   20.252618] Bad eraseblock 2918 at 0x0000b66fe000
> [   20.259585] Bad eraseblock 2919 at 0x0000b67fe000
> [   20.266565] Bad eraseblock 2920 at 0x0000b68fe000
> [   20.273546] Bad eraseblock 2921 at 0x0000b69fe000
> [   20.280512] Bad eraseblock 2922 at 0x0000b6afe000
> [   20.287490] Bad eraseblock 2923 at 0x0000b6bfe000
> [   20.294468] Bad eraseblock 2924 at 0x0000b6cfe000
> [   20.301437] Bad eraseblock 2925 at 0x0000b6dfe000
> [   20.312741] Bad eraseblock 2928 at 0x000. ok
> 
> 
> I thought this docs of this samsung nand "K9GBG08U0A" that talves be useful 
> since you have more knowledge about it! so I can help you make the tests of 
> your support in nand cubieboard2.


You have to force bad block erasure to get rid of AW's libnand layout
(which is overriding bad block markers).

Please follow these steps:
1) apply this patch [1]
2) boot on your new kernel and launch
$ flash_erase /dev/mtd0 0 0
3) revert the patch
4) Boot on your new kernel

Most of your bad blocks should be gone after that...

[1]http://code.bulix.org/k2v1hx-87237


-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ