mkfs.ubifs: device table support
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
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Hi,
Quoted 2 lines · Hamish Moffatt
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.
Quoted 1 line
Otherwise the image must be made as root or using fakeroot I think.
Yeah, we usually generate rootfs images as root.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)
Hi,
Quoted 5 lines · Artem Bityutskiy
Quoted 2 lines · Hamish Moffatt
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.
Quoted 2 lines
I glanced at
mkfs.jffs2.cit 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
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
Hi Hamish,
Quoted 4 lines · Hamish Moffatt
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.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)