Re: Making partitions questions.

Abraham vd Merwe
2001-06-28T09:59:02Z

[-- 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 --]