Trouble indetifying FLASH part

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


hchan at wavesat.com 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.

--
dwmw2






More information about the linux-mtd mailing list