New NAND code draft
Hi there
In the attached patch you can see the progress of my work in the NAND rewrite.
This is not suitable for inclusion yet.
Things that work now:
1. Correct handling of bad blocks.
2. NAND boot works
3. Updated to latest MTD snapshot.
4. Direct to NAND tftp/nfs support.
Things that are probably borked:
1. Multiple chip support (I don't have such hardware available and the previous code was kinda of unclear.
2. Since there is DOC support in u-boot that utilizes the old code and definitions I left the linux/mtd/nand.h header in place, and created a new mtd_nand.h header for the new stuff.
3. JFFS2 support although there is probably b0rken.
4. The read.xxx/write.xxx support is just not there yet.
I would appreciate it if you could take a look and report back to me.
Regards
Pantelis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nand-new.diff.bz2
Type: application/x-bzip2
Size: 19019 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040430/2caf7fd7/attachment.bin
Quoted 3 lines · In message <[email protected]> you wrote:
In the attached patch you can see the progress of my work in the NAND rewrite.
...
Quoted 2 lines
I would appreciate it if you could take a look and report back to me.
It doesn't even compile for me:
-> MAKEALL PPChameleonEVB_MODEL_ME
... MEDIUM model
Configuring for PPChameleonEVB board...cmd_nand.c: In function `nand_write_page_oob':
cmd_nand.c:974: warning: unused variable `i'cmd_nand.c: In function `nand_erase':
cmd_nand.c:1233: warning: implicit declaration of function `nand_mark_bad_sector'cmd_nand.c: At top level:
cmd_nand.c:863: warning: nand_write_page' defined but not used common/libcommon.a(cmd_nand.o)(.text+0x1c7c): In function nand_erase':/tmp/u-boot/common/cmd_nand.c:1243: undefined reference to nand_mark_bad_sector' common/libcommon.a(cmd_nand.o)(.text+0x1f90): In function nand_write_ecc':/tmp/u-boot/common/cmd_nand.c:1407: undefined reference to nand_mark_bad_sector' common/libcommon.a(cmd_nand.o)(.text+0x1fec):/tmp/u-boot/common/cmd_nand.c:1380: undefined reference to nand_mark_bad_sector'
make: *** [u-boot] Error 1
ppc_8xx-size: u-boot: No such file or directory
->
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de When all is said and done, more is said than done.