how to use amd_flash.c
Jonas Holmberg
jonas.holmberg at axis.com
Thu Apr 4 03:07:14 EST 2002
On Thu, 2002-04-04 at 09:41, Steve Tsai wrote:
> Hi Jonas,
>
> Thanks. I know how to add codes to amd_flash.c, but I can not make kernel
> run amd_flash_probe(). I used jffs1 and flash.c on my board from AXIS before
> and it works fine. Now I want ot port uClinux 2.4.17 to my board and I plan
> to use jffs2 and mtd, but I found it is more complicated. The flash I use
> is not CFI compliance, so I am not sure I can use jedec_probe + CFI-driver.
The jedec_probe sets things up so that the CFI-drivers can be used with
non-CFI chips.
> I modified amd_flash.c already, but the kernal can not probe the flash at
> start time. Should I call do_map_probe in somewhere to find out the flash?
Yes, you need to write a map driver that calls do_map_probe. You can
look at arch/cris/drivers/axisflashmap.c for inspiration.
/Jonas
More information about the linux-mtd
mailing list