MTD partitioning for AMD flash chips

Navin Boppuri navin.boppuri at
Thu Jan 24 19:13:32 EST 2002

I wanted to start off with the first option. I did not want to use
physmap.c and decided to create a file exactly similar to physmap.c and
created the necessary CONFIG options. I hardcoded the WINDOW_SIZE and
WINDOW_ADDR parameters in this file. Everything else is exactly similar
to the physmap file ( I looked at the example for the rpxlite board
support in the drivers/mtd directory). I started off without any
partitions. But when I did try booting the kernel, cfi_probe came back
without detecting the flash device. 

If I use physmap directly, cfi_probe detects my flash without any
problem. What do I need to do to get the basic stuff working without
directly using the physmap file? I want to start off without partitions
and then start adding partitions to it. 

Thanks a lot for ur input.

Navin Boppuri

-----Original Message-----
From: Jörn Engel [mailto:joern at]
Sent: Thursday, January 24, 2002 4:46 AM
To: Navin Boppuri
Cc: linux-mtd at
Subject: Re: MTD partitioning for AMD flash chips


> I am new the MTD mailing lists. I have two AM29LV641D( 4M X 16) flash
> chips connected to a 32 bit bus.(sector size is 128k). I  would like
> partion this device so that I may mount a JFFS2 flash file system on
> of the partitions and use the rest of the device for raw data.  I do
> some examples to do this for some intel chips in drivers/mtd but I
> see anything for the AMD chips. Is the interface similar for the AMD
> chips?

You have two options:
1. Writing your own driver for this flash type, hardcoding the
partitioning. Try physmap first and hardcode the flash size, mapping
and pertitioning, once it works.

2. Using an existing one (physmap ought to work) and using one of the
existing partition parsers. The ones in the stock kernel are all
specific to a certain bootloader, I wrote an independent one but there
is no good howto for it (yet). See if you are interested.


Often, the most striking and innovative solutions come from realizing
that your concept of the problem was wrong.
-- Eric Raymond in "The cathedral and the bazaar"

More information about the linux-mtd mailing list