[PATCH] u-boot from nand and skip bad block

Andy Green andy at openmoko.com
Sun Apr 13 23:02:41 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Hi,
|
| For s3c2410 the code use the 0x50 command for read the extra byte and
| the 5 byte is the code to read (0xf mask is for 16 byte of extra byte)
|
| For s3c2442 the read is on the 2048 as reported by documentation:
| "All device locations are erased(FFh) except locations where the initial
| invalid block(s)
| information is written prior to shipping. The
| initial invalid block(s) status is defined by the 1st byte in the spare
| area.
| Samsung makes sure that either the 1st or 2nd page of every
| initial invalid block has non-FFh data at the column address of 2048."
| It is correct to use the page size. If you see at the code for the
| s3c2410 the command
| is different. I think that the test is corrent. So the test is done on
| first page (addr)
| and second page (addr + PAGE_SIZE)

OK, thanks for going to the trouble to check and explain it.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgCdOoACgkQOjLpvpq7dMpPqACcCIcMix9xy56V+EMv97OKmNiR
uRMAnj/kfJNRf2j/bBjZpOHXpQgi29Gv
=ZouH
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list