* Making partitions questions.
@ 2001-06-28 15:45 Alexandr Andreev
2001-06-28 10:05 ` Abraham vd Merwe
0 siblings, 1 reply; 4+ messages in thread
From: Alexandr Andreev @ 2001-06-28 15:45 UTC (permalink / raw)
To: linux-mtd; +Cc: jffs-dev
Hi,
I have some questions about making partitions on Intel CFI chips.
1. I read mtd-jffs-HOWTO, and found that can't launch fdisk and create
partitions on my flash dynamically. It have to be created and compiled in a
lowlevel driver. What is the reason? Is anybody working at it?
2. I wish to have several partitions on my flash. Can i have partitions
with
different filesystems on it? I mean one partition with FTL & ext2 and other
with JFFS2 for example.
Thanks in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making partitions questions.
2001-06-28 15:45 Making partitions questions Alexandr Andreev
@ 2001-06-28 10:05 ` Abraham vd Merwe
2001-06-28 10:37 ` David Woodhouse
2001-06-28 21:08 ` Alexandr Andreev
0 siblings, 2 replies; 4+ messages in thread
From: Abraham vd Merwe @ 2001-06-28 10:05 UTC (permalink / raw)
To: Alexandr Andreev; +Cc: MTD for Linux
[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]
Hi Alexandr!
> 1. I read mtd-jffs-HOWTO, and found that can't launch fdisk and create
> partitions on my flash dynamically. It have to be created and compiled in a
> lowlevel driver. What is the reason? Is anybody working at it?
The reason why this have to be done is that the mtd partition driver needs
to know the partition information before it can register those partitions as
devices (it basically just goes and setup MTD structures for each partition
and register them the normal way).
In order to actually make a userland utility you'd have to implement a
system call to actually send the info to the partition driver which will
have to reregister the devices. Not all that difficult, but I don't think
anybody is working on it right now.
> 2. I wish to have several partitions on my flash. Can i have partitions
> with
> different filesystems on it? I mean one partition with FTL & ext2 and other
> with JFFS2 for example.
Yes. As long as you compile your kernel with MTD block device support it,
you can put anything on those block devices. I wouldn't use ext2 on flash
tho since it's not optimised for flash - jffs2 is definitely your best bet.
--
Regards
Abraham
Today is National Existential Ennui Awareness Day.
__________________________________________________________
Abraham vd Merwe - 2d3D, Inc.
Device Driver Development, Outsourcing, Embedded Systems
Cell: +27 82 565 4451 Snailmail:
Tel: +27 21 761 7549 Block C, Antree Park
Fax: +27 21 761 7648 Doncaster Road
Email: abraham@2d3d.co.za Kenilworth, 7700
Http: http://www.2d3d.com South Africa
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making partitions questions.
2001-06-28 10:05 ` Abraham vd Merwe
@ 2001-06-28 10:37 ` David Woodhouse
2001-06-28 21:08 ` Alexandr Andreev
1 sibling, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2001-06-28 10:37 UTC (permalink / raw)
To: Abraham vd Merwe; +Cc: Alexandr Andreev, MTD for Linux
abraham@2d3d.co.za said:
> In order to actually make a userland utility you'd have to implement
> a system call to actually send the info to the partition driver which
> will have to reregister the devices. Not all that difficult, but I
> don't think anybody is working on it right now.
You don't necessarily need to be able to change them at runtime. We already
support a few methods of storing partitioning information on the medium
rather than hard-coding it in the mapping driver. We can grok RedBoot FIS
tables, Compaq bootldr partitions, and also the ARM Firmware Suite layout.
abraham@2d3d.co.za said:
> Yes. As long as you compile your kernel with MTD block device support
> it, you can put anything on those block devices. I wouldn't use ext2
> on flash tho since it's not optimised for flash - jffs2 is definitely
> your best bet.
He said ext2 on FTL. That's sane, but possibly not legal, depending on
whether software patents are enforceable in your part of the world.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making partitions questions.
2001-06-28 10:05 ` Abraham vd Merwe
2001-06-28 10:37 ` David Woodhouse
@ 2001-06-28 21:08 ` Alexandr Andreev
1 sibling, 0 replies; 4+ messages in thread
From: Alexandr Andreev @ 2001-06-28 21:08 UTC (permalink / raw)
To: Abraham vd Merwe; +Cc: MTD for Linux, David Woodhouse
David Woodhouse wrote:
> You don't necessarily need to be able to change them at runtime. We already
> support a few methods of storing partitioning information on the medium
> rather than hard-coding it in the mapping driver. We can grok RedBoot FIS
> tables, Compaq bootldr partitions, and also the ARM Firmware Suite layout.
I need to be able to change it while development. I need to create and modify
partitions dynamically, because the size of partitions can be variable during
development stage. I want to have one partition for the kernel with no
filesystem on it at all, the second partition for ext2 filesystem with read
only accesses, and the third for the JFFS2 full functional filesystem.
Is there any common userland utils for creating RedBoot, Compaq or ARM
partitions?
Abraham vd Merwe wrote:
> The reason why this have to be done is that the mtd partition driver needs
> to know the partition information before it can register those partitions as
> devices (it basically just goes and setup MTD structures for each partition
> and register them the normal way).
Fine. But, why we can't just use MBR and common IDE partition table instead of
RedBoot, Compaq, ARM and other specific partitions?
> In order to actually make a userland utility you'd have to implement a
> system call to actually send the info to the partition driver which will
> have to reregister the devices. Not all that difficult, but I don't think
> anybody is working on it right now.
I guess, we can do the similar to IDE things. And it allows us to use
habitual
fdisk utility with flash. But it also means, that whole flash device
have to
be registered ( /dev/mtdblocka for example ). Is it worth while? Is this
work
usable?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-06-28 13:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 15:45 Making partitions questions Alexandr Andreev
2001-06-28 10:05 ` Abraham vd Merwe
2001-06-28 10:37 ` David Woodhouse
2001-06-28 21:08 ` Alexandr Andreev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox