|
Re: Yaffs and MTD: msg#00041linux.file-systems.yaffs
My kernel can cope with both 512 and 2k page NAND. It uses nand_ecc for 2k and yaffs_ecc for 512 for legacy reasons. So I add after #ifndef CONFIG_YAFFS_DOES_ECC .. #endif /* NCB force NANDECC if yaffs2 */ if (yaffsVersion == 2) dev->useNANDECC = 1; Better to use a specific CONFIG option probably. NB to all 2.4.x backporters: I note that the new yaffs_mtdif2.c computes an address to pass to mtd->block_isbad and mtd->block_markbad rather than a block index. This breaks by old 2.4.25 port. Use an if (LINUX_VERSION_CODE ...) round the relevant places and use mtd->block_xxxbad(mtd,blockNo) instead. Nick |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Yaffs and MTD: 00041, Ian McDonnell |
|---|---|
| Next by Date: | Re: Yaffs and MTD: 00041, Charles Manning |
| Previous by Thread: | Re: Yaffs and MTDi: 00041, Ian McDonnell |
| Next by Thread: | Re: Yaffs and MTD: 00041, Charles Manning |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |