Skip to contentSkip to conversation

Problems with NAND support

DISCUSSION Juan Ramon Jimenez 2 participants 2 messages Aug 6, 2001 – Aug 7, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw
Signature · 46 lines
   Hi all

    We are trying to compile a kernel with MTD support but we have
some problems to get it. We have probed with several kernel sources
(2.4.3, 2.4.6, 2.4.7) and with the same sources replacing the mtd
files with the cvs directory files from infredead.org. In both cases
we have the same results: We only can get a kernel image if we don't
enable NAND device support.  The problem is that we really need it. Do
you know why?

Also we have seen that we _must_ set a value for 'physical start
address of flash mapping' But we have read in 'mtd-jffs-HOWTO.txt':

   ' If you leave the address blank (or just don't enable the advanced 
     options), the code will *auto probe*. This works quite well (at 
     least for me). Try it first.'

What's the problem then?


   We have used  gcc 2.96 and egcs 2.91.66 with a Red Hat 7.0 (kernel
2.2.17-8)  

   Any comment or solution will be welcome. Thanks
   J


                                ///
                               (@ @)
 ------------------------oOO----(_)----OOo-------------------------

 - No comas todo lo que puedes, no gastes todo lo que tienes,
   no creas todo lo que oigas, no digas todo lo que sabes.
   - Proverbio chino.

 ------------------------------------------------------------------

 ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸

    Juan Ramón Jiménez García
    Hispafuentes
    Tfno 91 4575330
    [email protected]
    [email protected]

 ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸
#1 lore raw
Quoted 2 lines · [email protected] said:

We only can get a kernel image if we don't enable NAND device
support. The problem is that we really need it. Do you know why?

If you're using raw NAND chips you'll need a tiny board-specific glue driver like spia.c to let the generic nand code know how to access the chips.

You can't use FTL on it because that's for NOR flash. You can't use NFTL because that requires the DiskOnChip ECC hardware, and in many places both suffer from patent problems.

You can use JFFS on it, but JFFS2 hasn't yet been made to deal with NAND flash - I'm happy to give you pointers if you want to fix that.

I'd also like to see someone write a SmartMedia-compatible translation layer driver - that ought to be fairly simple to do too.

--
dwmw2