public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* How to access cfi_intelext_read_fact_prot_reg
@ 2002-12-02 18:06 Stefan Thomasson
  0 siblings, 0 replies; only message in thread
From: Stefan Thomasson @ 2002-12-02 18:06 UTC (permalink / raw)
  To: linux-mtd

Hi,

I am having trouble using cfi_intelext_read_fact_prot_reg 

So far the only thing I have succeeded to do is getting a
Unable to handle kernel NULL pointer dereference at virtual address 
00000040.

This occurs  as far as I can tell when the function
tries to setup map, cfi or cfi_pri_intelext.
mtd->priv seem to be uninitialized and this will result in the NULL ptr.

So, the question is where is mtd->priv setup?

I have tried to follow how its done when erasing a block in mtdchar 
ioctl without success. 

In mtd_ioctl
printk(KERN_NOTICE "mtd  = %p .\n",mtd );
printk(KERN_NOTICE "priv  = %p .\n",mtd->priv );

Results in 
mtd  = c0467260 .
priv  = 00000000 .

and later on in cfi_intelext_erase_varsize

printk(KERN_NOTICE "MMmtd  = %x .\n",mtd );
printk(KERN_NOTICE "MMpriv  = %x .\n",mtd->priv );
 MMmtd  = c0467060 .
 MMpriv  = c036b738 .

Running 2.4.18-rmk5-pxa1.

Regards
Stefan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-02 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 18:06 How to access cfi_intelext_read_fact_prot_reg Stefan Thomasson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox