BNAND Media Header not found
first, sorry for my English
2.6.8.1 kernel
pc104 system with DiskOnChip 2000 256MB
After nftl_format I start modules and have:
DiskOnChip BNAND Media Header not found
and diskonchip don't find my flash :(/proc/mtd and /dev/mtd0 is empty....
How I can return this header?
second question:
when I had working system (hehe), there was note:
DiskOnChip 2000 (INFTL model) during modules were loading
^^^^^^^
I tried "insmod" inftl.ko but I had kernel panic with it.... and I "insmod" nftl.ko...
where is problem?
I'm only starting work with flash and study all these drivers and i'm sorry for silly questions...
Dmitry
Quoted 5 lines · Dmitry Skorinko
After
nftl_formatI start modules and have:
DiskOnChip BNAND Media Header not found
and diskonchip don't find my flash :(/proc/mtdand/dev/mtd0is empty....
How I can return this header?
If you apply the attached patch to drivers/mtd/nand/diskonchip.c, you should be able to use the whole-device partition.
Provided that you have another Diskonchip 2000, you can try dumping the other one with nanddump and then writing the image using nandwrite to the non-working part.
This should restore the BNAND header.
Quoted 8 lines
second question:
when I had working system (hehe), there was note:
DiskOnChip 2000 (INFTL model) during modules were loading^^^^^^^I tried "insmod" inftl.ko but I had kernel panic with it.... and I "insmod" nftl.ko...
where is problem?
You should post the panic here.
Signature · 2 lines
Best regards, Kalev Lember
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v retrieving revision 1.38
diskonchip.c +1 -5
@@ -1409,13 +1409,9 @@return ret;memset ((char *) parts,0 ,sizeof (parts)); numparts =inftl_partscan (mtd, parts); -/* At least for now, require the INFTL Media Header. We could probably -do without it for non-INFTL use, since all it gives us is -autopartitioning, but I want to give it more thought. */ -if (!numparts)return -EIO ;add_mtd_device (mtd);#ifdef CONFIG_MTD_PARTITIONS -if (!no_autopart) +if (!no_autopart && numparts >0 )add_mtd_partitions (mtd, parts, numparts);#endif return 0 ;