Trouble indetifying FLASH part

David Woodhouse dwmw2 at
Thu May 16 10:15:21 EDT 2002

hchan at said:
> I tried printk("HKC: Raw output of flash address =0x%x\n", *(unsigned
> int*)0x8000000) but resulted in kernel panic. I'm starting to think
> this is a virtual memory problem. Do I need a TLB entry for the
> device?

Yes. That's what ioremap() does for you. But the map driver will already be
setting that up -- just call the map->copy_from function in the chip probe,
to read the first 0x40-odd bytes into a buffer, and then print them and
compare with what you expected to see.


More information about the linux-mtd mailing list