public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd support for large NAND
@ 2007-10-10 20:11 Charles Manning
  2007-10-11  7:22 ` Artem Bityutskiy
  0 siblings, 1 reply; 11+ messages in thread
From: Charles Manning @ 2007-10-10 20:11 UTC (permalink / raw)
  To: linux-mtd


Last I looked (2.6.23), mtd_info is limited by a u32 size field to 4Gbytes of 
flash. That's no longer very large and is limiting some applications.

Is anyone working on this?

-- Charles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-10 20:11 mtd support for large NAND Charles Manning
@ 2007-10-11  7:22 ` Artem Bityutskiy
  2007-10-12  8:36   ` falls huang
  0 siblings, 1 reply; 11+ messages in thread
From: Artem Bityutskiy @ 2007-10-11  7:22 UTC (permalink / raw)
  To: Charles Manning; +Cc: linux-mtd

On Thu, 2007-10-11 at 09:11 +1300, Charles Manning wrote:
> Last I looked (2.6.23), mtd_info is limited by a u32 size field to 4Gbytes of 
> flash. That's no longer very large and is limiting some applications.
> 
> Is anyone working on this?

Yeah, the problem is known, but nobody is working on the fix AFAIK.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-11  7:22 ` Artem Bityutskiy
@ 2007-10-12  8:36   ` falls huang
  2007-10-16  0:27     ` Charles Manning
  2007-10-16 10:47     ` Jörn Engel
  0 siblings, 2 replies; 11+ messages in thread
From: falls huang @ 2007-10-12  8:36 UTC (permalink / raw)
  To: linux-mtd

Hello !

  How can I simulate a large nandflash(>4G) in linux PC ? I want to
take a look at it, but I don't have any develop-board that has 4G

On 10/11/07, Artem Bityutskiy <dedekind@infradead.org> wrote:
> On Thu, 2007-10-11 at 09:11 +1300, Charles Manning wrote:
> > Last I looked (2.6.23), mtd_info is limited by a u32 size field to 4Gbytes of
> > flash. That's no longer very large and is limiting some applications.
> >
> > Is anyone working on this?
>
> Yeah, the problem is known, but nobody is working on the fix AFAIK.
>
> --
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>


-- 
Regards
Falls Huang

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-12  8:36   ` falls huang
@ 2007-10-16  0:27     ` Charles Manning
  2007-10-16  7:27       ` Artem Bityutskiy
  2007-10-16 10:47     ` Jörn Engel
  1 sibling, 1 reply; 11+ messages in thread
From: Charles Manning @ 2007-10-16  0:27 UTC (permalink / raw)
  To: linux-mtd

On Friday 12 October 2007 21:36:09 falls huang wrote:
> Hello !
>
>   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> take a look at it, but I don't have any develop-board that has 4G

There are a few problems you face here. Firstly, mtd does not support >4G 
which will need fixing.

Secondly, even if your system has > 4G it might not be all simultaneously 
accessible and you will need to use highmem as a way to do temporary mappings 
to access this memory.

I might be tempted to try do this using some sort of userspace driver then 
just backing the driver with regular files (eg. 8x1G files to simulate 8G of 
NAND).


>
> On 10/11/07, Artem Bityutskiy <dedekind@infradead.org> wrote:
> > On Thu, 2007-10-11 at 09:11 +1300, Charles Manning wrote:
> > > Last I looked (2.6.23), mtd_info is limited by a u32 size field to
> > > 4Gbytes of flash. That's no longer very large and is limiting some
> > > applications.
> > >
> > > Is anyone working on this?
> >
> > Yeah, the problem is known, but nobody is working on the fix AFAIK.
> >
> > --
> > Best regards,
> > Artem Bityutskiy (Битюцкий Артём)
> >
> >
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16  0:27     ` Charles Manning
@ 2007-10-16  7:27       ` Artem Bityutskiy
  0 siblings, 0 replies; 11+ messages in thread
From: Artem Bityutskiy @ 2007-10-16  7:27 UTC (permalink / raw)
  To: Charles Manning; +Cc: linux-mtd

On Tue, 2007-10-16 at 13:27 +1300, Charles Manning wrote:
> On Friday 12 October 2007 21:36:09 falls huang wrote:
> > Hello !
> >
> >   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> > take a look at it, but I don't have any develop-board that has 4G
> 
> There are a few problems you face here. Firstly, mtd does not support >4G 
> which will need fixing.
> 
> Secondly, even if your system has > 4G it might not be all simultaneously 
> accessible and you will need to use highmem as a way to do temporary mappings 
> to access this memory.
> 
> I might be tempted to try do this using some sort of userspace driver then 
> just backing the driver with regular files (eg. 8x1G files to simulate 8G of 
> NAND).

Or create something like blk2mtd.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-12  8:36   ` falls huang
  2007-10-16  0:27     ` Charles Manning
@ 2007-10-16 10:47     ` Jörn Engel
  2007-10-16 19:47       ` Charles Manning
  1 sibling, 1 reply; 11+ messages in thread
From: Jörn Engel @ 2007-10-16 10:47 UTC (permalink / raw)
  To: falls huang; +Cc: linux-mtd

On Fri, 12 October 2007 16:36:09 +0800, falls huang wrote:
> 
>   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> take a look at it, but I don't have any develop-board that has 4G

Something like this would work:

$ truncate 5GiB foo
$ qemu -s -no-kqemu -hda rootfs -hdb foo -kernel arch/i386/boot/bzImage \
       -append "ro root=/dev/hda block2mtd.block2mtd=/dev/hdb"

Instead of truncate you can also use dd:
$ dd if=/dev/zero of=foo bs=1 seek=5368709119

Jörn

-- 
When you close your hand, you own nothing. When you open it up, you
own the whole world.
-- Li Mu Bai in Tiger & Dragon

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16 10:47     ` Jörn Engel
@ 2007-10-16 19:47       ` Charles Manning
  2007-10-16 19:55         ` Jörn Engel
  0 siblings, 1 reply; 11+ messages in thread
From: Charles Manning @ 2007-10-16 19:47 UTC (permalink / raw)
  To: linux-mtd; +Cc: falls huang, Jörn Engel

On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
> On Fri, 12 October 2007 16:36:09 +0800, falls huang wrote:
> >   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> > take a look at it, but I don't have any develop-board that has 4G
>
> Something like this would work:
>
> $ truncate 5GiB foo
> $ qemu -s -no-kqemu -hda rootfs -hdb foo -kernel arch/i386/boot/bzImage \
>        -append "ro root=/dev/hda block2mtd.block2mtd=/dev/hdb"
>
> Instead of truncate you can also use dd:
> $ dd if=/dev/zero of=foo bs=1 seek=5368709119

Plus modifying mtd to handle partitions greater than the u32 size limit.

-- Charles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16 19:47       ` Charles Manning
@ 2007-10-16 19:55         ` Jörn Engel
  2007-10-16 20:12           ` Charles Manning
  0 siblings, 1 reply; 11+ messages in thread
From: Jörn Engel @ 2007-10-16 19:55 UTC (permalink / raw)
  To: Charles Manning; +Cc: falls huang, Jörn Engel, linux-mtd

On Wed, 17 October 2007 08:47:46 +1300, Charles Manning wrote:
> On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
> > On Fri, 12 October 2007 16:36:09 +0800, falls huang wrote:
> > >   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> > > take a look at it, but I don't have any develop-board that has 4G
> >
> > Something like this would work:
> >
> > $ truncate 5GiB foo
> > $ qemu -s -no-kqemu -hda rootfs -hdb foo -kernel arch/i386/boot/bzImage \
> >        -append "ro root=/dev/hda block2mtd.block2mtd=/dev/hdb"
> >
> > Instead of truncate you can also use dd:
> > $ dd if=/dev/zero of=foo bs=1 seek=5368709119
> 
> Plus modifying mtd to handle partitions greater than the u32 size limit.

I believe Falls Huang wanted to do just that and needed a test setup.
But I may be wrong.

Jörn

-- 
Linux [...] existed just for discussion between people who wanted
to show off how geeky they were.
-- Rob Enderle

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16 19:55         ` Jörn Engel
@ 2007-10-16 20:12           ` Charles Manning
  2007-10-16 20:42             ` Jörn Engel
  0 siblings, 1 reply; 11+ messages in thread
From: Charles Manning @ 2007-10-16 20:12 UTC (permalink / raw)
  To: linux-mtd

On Wednesday 17 October 2007 08:55:22 Jörn Engel wrote:
> On Wed, 17 October 2007 08:47:46 +1300, Charles Manning wrote:
> > On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
> > > On Fri, 12 October 2007 16:36:09 +0800, falls huang wrote:
> > > >   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> > > > take a look at it, but I don't have any develop-board that has 4G
> > >
> > > Something like this would work:
> > >
> > > $ truncate 5GiB foo
> > > $ qemu -s -no-kqemu -hda rootfs -hdb foo -kernel arch/i386/boot/bzImage
> > > \ -append "ro root=/dev/hda block2mtd.block2mtd=/dev/hdb"
> > >
> > > Instead of truncate you can also use dd:
> > > $ dd if=/dev/zero of=foo bs=1 seek=5368709119
> >
> > Plus modifying mtd to handle partitions greater than the u32 size limit.
>
> I believe Falls Huang wanted to do just that and needed a test setup.
> But I may be wrong.

Does block2mtd simulate spare/oob areas too? Depending on what is being tested 
that might or might not be important.


-- Charles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16 20:12           ` Charles Manning
@ 2007-10-16 20:42             ` Jörn Engel
  2007-10-16 21:16               ` Charles Manning
  0 siblings, 1 reply; 11+ messages in thread
From: Jörn Engel @ 2007-10-16 20:42 UTC (permalink / raw)
  To: Charles Manning; +Cc: linux-mtd

[ Someone removed me from Cc:.  Please don't. ]

On Wed, 17 October 2007 09:12:09 +1300, Charles Manning wrote:
> 
> Does block2mtd simulate spare/oob areas too? Depending on what is being tested 
> that might or might not be important.

It doesn't.  If you care enough, send a patch.

Jörn

-- 
The grand essentials of happiness are: something to do, something to
love, and something to hope for.
-- Allan K. Chalmers

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: mtd support for large NAND
  2007-10-16 20:42             ` Jörn Engel
@ 2007-10-16 21:16               ` Charles Manning
  0 siblings, 0 replies; 11+ messages in thread
From: Charles Manning @ 2007-10-16 21:16 UTC (permalink / raw)
  To: linux-mtd; +Cc: Jörn Engel

On Wednesday 17 October 2007 09:42:11 Jörn Engel wrote:
> [ Someone removed me from Cc:.  Please don't. ]
>
> On Wed, 17 October 2007 09:12:09 +1300, Charles Manning wrote:
> > Does block2mtd simulate spare/oob areas too? Depending on what is being
> > tested that might or might not be important.
>
> It doesn't.  If you care enough, send a patch.

I don't use block2mtd so I don't really care for my own purposes. I just 
wanted to make this point clear for those that might be expecting an easy 
ride.

-- CHarles

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-10-16 21:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 20:11 mtd support for large NAND Charles Manning
2007-10-11  7:22 ` Artem Bityutskiy
2007-10-12  8:36   ` falls huang
2007-10-16  0:27     ` Charles Manning
2007-10-16  7:27       ` Artem Bityutskiy
2007-10-16 10:47     ` Jörn Engel
2007-10-16 19:47       ` Charles Manning
2007-10-16 19:55         ` Jörn Engel
2007-10-16 20:12           ` Charles Manning
2007-10-16 20:42             ` Jörn Engel
2007-10-16 21:16               ` Charles Manning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox