[U-Boot-Users] 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

In message 40924100.9000800@intracom.gr you wrote:
In the attached patch you can see the progress of my work in the NAND rewrite.
...
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
participants (2)
-
Pantelis Antoniou
-
Wolfgang Denk