mtd support for large NAND
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
Quoted 4 lines · Charles Manning
Last I looked (2.6.23),
mtd_infois 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.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)
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
Quoted 17 lines · Artem Bityutskiy
Quoted 4 lines · Charles Manning
Last I looked (2.6.23),
mtd_infois 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/
Signature · 2 lines
Regards Falls Huang
Quoted 4 lines · 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).
Quoted 19 lines · Artem Bityutskiy
Quoted 17 lines · Charles Manning
Quoted 5 lines
Last I looked (2.6.23),
mtd_infois 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/
Quoted 9 lines · Charles Manning
Quoted 4 lines · 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 4GThere are a few problems you face here. Firstly, mtd does not support >4G which will need fixing.
Quoted 7 lines
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.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)
Quoted 3 lines · falls huang
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
Signature · 3 lines
When you close your hand, you own nothing. When you open it up, you own the whole world. -- Li Mu Bai in Tiger & Dragon
Quoted 4 lines · On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
Quoted 2 lines · falls huang
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
Quoted 8 lines
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
Quoted 7 lines · Charles Manning
Quoted 6 lines · On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
Quoted 2 lines · falls huang
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 4GSomething like this would work:
Quoted 8 lines
Quoted 6 lines
$ 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=5368709119Plus 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
Signature · 3 lines
Linux [...] existed just for discussion between people who wanted to show off how geeky they were. -- Rob Enderle
Quoted 12 lines · On Wednesday 17 October 2007 08:55:22 Jörn Engel wrote:
Quoted 11 lines · Charles Manning
Quoted 10 lines · On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
Quoted 2 lines · falls huang
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 4GSomething 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"
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Instead of truncate you can also use dd:
$ dd if=/dev/zero of=foo bs=1 seek=5368709119Plus 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
[ Someone removed me from Cc:. Please don't. ]
Quoted 3 lines · Charles Manning
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
Signature · 3 lines
The grand essentials of happiness are: something to do, something to love, and something to hope for. -- Allan K. Chalmers
Quoted 7 lines · On Wednesday 17 October 2007 09:42:11 Jörn Engel wrote:
[ Someone removed me from Cc:. Please don't. ]
Quoted 2 lines · Charles Manning
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