* mkfs.ubifs: device table support
@ 2008-03-28 6:24 Hamish Moffatt
2008-03-28 6:42 ` Artem Bityutskiy
2008-04-02 13:46 ` Artem Bityutskiy
0 siblings, 2 replies; 4+ messages in thread
From: Hamish Moffatt @ 2008-03-28 6:24 UTC (permalink / raw)
To: linux-mtd
Hi Artem and all,
Are there any plans to add support for a device table in mkfs.ubifs,
similar to mkfs.jffs2, genext2fs etc?
Otherwise the image must be made as root or using fakeroot I think.
Thanks
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mkfs.ubifs: device table support
2008-03-28 6:24 mkfs.ubifs: device table support Hamish Moffatt
@ 2008-03-28 6:42 ` Artem Bityutskiy
2008-03-28 7:07 ` Hamish Moffatt
2008-04-02 13:46 ` Artem Bityutskiy
1 sibling, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2008-03-28 6:42 UTC (permalink / raw)
To: Hamish Moffatt; +Cc: linux-mtd
Hi,
On Fri, 2008-03-28 at 17:24 +1100, Hamish Moffatt wrote:
> Are there any plans to add support for a device table in mkfs.ubifs,
> similar to mkfs.jffs2, genext2fs etc?
Not sure what is this for actually :-) Could you please elaborate?
I glanced at mkfs.jffs2.c it does not look difficult, so we may
implement it if you need - no problem.
> Otherwise the image must be made as root or using fakeroot I think.
Yeah, we usually generate rootfs images as root.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mkfs.ubifs: device table support
2008-03-28 6:42 ` Artem Bityutskiy
@ 2008-03-28 7:07 ` Hamish Moffatt
0 siblings, 0 replies; 4+ messages in thread
From: Hamish Moffatt @ 2008-03-28 7:07 UTC (permalink / raw)
To: Artem Bityutskiy; +Cc: linux-mtd
Hi,
On Fri, Mar 28, 2008 at 08:42:54AM +0200, Artem Bityutskiy wrote:
> On Fri, 2008-03-28 at 17:24 +1100, Hamish Moffatt wrote:
> > Are there any plans to add support for a device table in mkfs.ubifs,
> > similar to mkfs.jffs2, genext2fs etc?
>
> Not sure what is this for actually :-) Could you please elaborate?
You provide a list of device nodes that you want to be included in the
created image, but you don't need to actually create them on your host
file system so you don't need to be root. They are just added to the
image automatically by mkfs.jffs2 etc.
Here's an example table from buildroot:
# Normal system devices
#<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
/dev/mem c 640 0 0 1 1 0 0 -
/dev/kmem c 640 0 0 1 2 0 0 -
/dev/null c 666 0 0 1 3 0 0 -
/dev/zero c 666 0 0 1 5 0 0 -
/dev/random c 666 0 0 1 8 0 0 -
/dev/urandom c 666 0 0 1 9 0 0 -
/dev/ram b 640 0 0 1 1 0 0 -
/dev/ram b 640 0 0 1 0 0 1 4
/dev/loop b 640 0 0 7 0 0 1 2
[snip]
The last entry for example creates /dev/loop0 through /dev/loop7.
> I glanced at mkfs.jffs2.c it does not look difficult, so we may
> implement it if you need - no problem.
That would be very useful for me and for buildroot, which uses that option
on genext2fs and mkfs.jffs2.
thanks,
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mkfs.ubifs: device table support
2008-03-28 6:24 mkfs.ubifs: device table support Hamish Moffatt
2008-03-28 6:42 ` Artem Bityutskiy
@ 2008-04-02 13:46 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2008-04-02 13:46 UTC (permalink / raw)
To: Hamish Moffatt; +Cc: linux-mtd
Hi Hamish,
On Fri, 2008-03-28 at 17:24 +1100, Hamish Moffatt wrote:
> Are there any plans to add support for a device table in mkfs.ubifs,
> similar to mkfs.jffs2, genext2fs etc?
>
> Otherwise the image must be made as root or using fakeroot I think.
This is now implemented. Update your mkfs.ubifs and, enjoy.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-02 13:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 6:24 mkfs.ubifs: device table support Hamish Moffatt
2008-03-28 6:42 ` Artem Bityutskiy
2008-03-28 7:07 ` Hamish Moffatt
2008-04-02 13:46 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).