mtd

hong zhang henryzhang62 at yahoo.com
Fri Jan 28 12:04:45 EST 2011


Paul,

root at ti8168-evm:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00001000 "U-Boot"
mtd1: 00002000 00001000 "U-Boot Env"
mtd2: 00280000 00001000 "Kernel"
mtd3: 0013e000 00001000 "File System"
mtd4: 00260000 00020000 "U-Boot"
mtd5: 00020000 00020000 "U-Boot Env"
mtd6: 00440000 00020000 "Kernel"
mtd7: 0c820000 00020000 "File System"
mtd8: 03120000 00020000 "Reserved"

File System sits in mtd3 and mtd7. But only one of them can be used. In my case mtd7 is used when SPI is enabled or mtd3 is used w/o SPI. I do not know why.

---henry

--- On Fri, 1/28/11, Paulius Zaleckas <paulius.zaleckas at gmail.com> wrote:

> From: Paulius Zaleckas <paulius.zaleckas at gmail.com>
> Subject: Re: mtd
> To: "hong zhang" <henryzhang62 at yahoo.com>
> Cc: linux-arm at lists.infradead.org
> Date: Friday, January 28, 2011, 2:11 AM
> On 01/28/2011 01:35 AM, hong zhang
> wrote:
> > List,
> >
> > On my TI board, default NAND MTD partition for file
> system is mtdblock7.
> > If SPI is not enabled, MTD partition has to be set to
> mtdblock3.
> >
> > May I get this kind of information from MTD driver?
> 
> cat /proc/mtd
> Is this what you are looking for?
> 


      



More information about the linux-arm mailing list