BNAND Media Header not found

Kalev Lember kalev at colleduc.ee
Mon Oct 11 09:16:57 EDT 2004


On Mon, 11 Oct 2004, Dmitry Skorinko wrote:

> 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?

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.

> 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.

-- 
Best regards,
Kalev Lember
-------------- next part --------------
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.38
diff -u -r1.38 diskonchip.c
--- diskonchip.c	5 Oct 2004 22:11:46 -0000	1.38
+++ diskonchip.c	11 Oct 2004 12:58:01 -0000
@@ -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;


More information about the linux-mtd mailing list