* Ubifs
@ 2008-12-10 9:02 Жека
2008-12-10 11:04 ` Ubifs Artem Bityutskiy
0 siblings, 1 reply; 14+ messages in thread
From: Жека @ 2008-12-10 9:02 UTC (permalink / raw)
To: linux-mtd
Hi all,
I wanna have a try ubifs on nand, and do as written on
http://www.linux-mtd.infradead.org/faq/ubifs.html
1. compile, install and boot the kernel (2.6.26-rc3)
the configuration option for ubi and nand is default on as module.
2. make the mtd-utils.
3. create a ubi when I got the error
# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (31457280 bytes, 30.0 MiB), available
2024
LEBs (31088640 bytes, 29.6 MiB), LEB size 15360 bytes (15.0 KiB)
# ubinfo
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:63
Present UBI devices: ubi0
# ubimkvol /dev/ubi0 -N test -s 30MiB
ubimkvol: error!: "/dev/ubi0" is not an UBI device node
I did miss any step installation mtd-tools or create UBI device...
Thanks!!!
best regards, Evgeny
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Ubifs
2008-12-10 9:02 Ubifs Жека
@ 2008-12-10 11:04 ` Artem Bityutskiy
0 siblings, 0 replies; 14+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 11:04 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
On Wed, 2008-12-10 at 11:02 +0200, Жека wrote:
> Hi all,
> I wanna have a try ubifs on nand, and do as written on
> http://www.linux-mtd.infradead.org/faq/ubifs.html
> 1. compile, install and boot the kernel (2.6.26-rc3)
> the configuration option for ubi and nand is default on as module.
> 2. make the mtd-utils.
> 3. create a ubi when I got the error
>
> # ubiattach /dev/ubi_ctrl -m 0
> UBI device number 0, total 2048 LEBs (31457280 bytes, 30.0 MiB), available
> 2024
> LEBs (31088640 bytes, 29.6 MiB), LEB size 15360 bytes (15.0 KiB)
> # ubinfo
> UBI version: 1
> Count of UBI devices: 1
> UBI control device major/minor: 10:63
> Present UBI devices: ubi0
> # ubimkvol /dev/ubi0 -N test -s 30MiB
> ubimkvol: error!: "/dev/ubi0" is not an UBI device node
Hi, please check this:
cat /sys/class/ubi/ubi0_0/dev
and
ls -l /dev/ubi0_0
Major/minor should match. E.g., on my system I have:
[dedekind@gollum /]$ cat /sys/class/ubi/ubi0_0/dev
252:1
[dedekind@gollum /]$ ls -l /dev/ubi0_0
crw-rw---- 1 root root 252, 1 2008-12-08 17:11 /dev/ubi0_0
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Ubifs
@ 2008-12-10 11:44 Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
0 siblings, 2 replies; 14+ messages in thread
From: Жека @ 2008-12-10 11:44 UTC (permalink / raw)
To: linux-mtd
Hi Artem!!!
On my system after create UBI device /dev/ubi0_0 it was not created...
I did check... here is a result
# cat /sys/class/ubi/ubi0/dev
253:0
# ls -l /dev/ubi0
brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
best regards, Evgeny
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Ubifs
2008-12-10 11:44 Ubifs Жека
@ 2008-12-10 11:55 ` Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
1 sibling, 0 replies; 14+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 11:55 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
Hi,
On Wed, 2008-12-10 at 13:44 +0200, Жека wrote:
> Hi Artem!!!
> On my system after create UBI device /dev/ubi0_0 it was not created...
Err, sorry, I confused you because in my reply I used UBI _volume_
nodes, not UBI device nodes.
/dev/ubiX are UBI device nodes.
/dev/ubiX_Y are UBI volume nodes - volume Y on device X.
So I think when you successfully create the volume, you'll get the
volume device.
But you got it right, judging from your response.
> I did check... here is a result
>
> # cat /sys/class/ubi/ubi0/dev
> 253:0
> # ls -l /dev/ubi0
> brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
It should be character device, not block device, i.e. use
mknod /dev/ubi0 c 253 0
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Ubifs
2008-12-10 11:44 Ubifs Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
@ 2008-12-10 12:51 ` Artem Bityutskiy
1 sibling, 0 replies; 14+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 12:51 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
On Wed, 2008-12-10 at 13:44 +0200, Жека wrote:
> Hi Artem!!!
> On my system after create UBI device /dev/ubi0_0 it was not created...
> I did check... here is a result
>
> # cat /sys/class/ubi/ubi0/dev
> 253:0
> # ls -l /dev/ubi0
> brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
Just pushed a fix which makes ubi utilities to be more verbose about
errors.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Ubifs
@ 2008-12-10 13:50 Жека
0 siblings, 0 replies; 14+ messages in thread
From: Жека @ 2008-12-10 13:50 UTC (permalink / raw)
To: linux-mtd
thank you for a prompt, a problem is decided!!!
# mknod /dev/ubi0 c 253 0
# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (31457280 bytes, 30.0 MiB), available
2024
LEBs (31088640 bytes, 29.6 MiB), LEB size 15360 bytes (15.0 KiB)
# ubimkvol /dev/ubi0 -N test -s 29MiB
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
Volume ID 0, size 1980 LEBs (30412800 bytes, 29.0 MiB), LEB size 15360 bytes
(15.0 KiB), dynamic, name "test", alignment 1
best regards, Evgeny
^ permalink raw reply [flat|nested] 14+ messages in thread
* ubifs
@ 2011-09-28 15:27 Renaud Barbier
2011-09-29 10:18 ` ubifs Sascha Hauer
0 siblings, 1 reply; 14+ messages in thread
From: Renaud Barbier @ 2011-09-28 15:27 UTC (permalink / raw)
To: barebox
I see that there is no ubifs support in barebox.
Is there any plan to support ubifs in the near future?
Else how much effort do you think it will take to port it
I never ported a fs so if you have any advices, I will
be glad to read them.
Cheers.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ubifs
2011-09-28 15:27 ubifs Renaud Barbier
@ 2011-09-29 10:18 ` Sascha Hauer
0 siblings, 0 replies; 14+ messages in thread
From: Sascha Hauer @ 2011-09-29 10:18 UTC (permalink / raw)
To: Renaud Barbier; +Cc: barebox
On Wed, Sep 28, 2011 at 04:27:31PM +0100, Renaud Barbier wrote:
> I see that there is no ubifs support in barebox.
>
> Is there any plan to support ubifs in the near future?
No, not that I heard of.
>
> Else how much effort do you think it will take to port it
>
> I never ported a fs so if you have any advices, I will
> be glad to read them.
Probably the U-Boot ubifs code is a useful template for
porting ubifs to barebox. It shouldn't be too hard to get
something working by looking at the current filesystems
in barebox.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* ubifs
@ 2013-06-18 15:47 Aidan Totterdell
0 siblings, 0 replies; 14+ messages in thread
From: Aidan Totterdell @ 2013-06-18 15:47 UTC (permalink / raw)
To: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 694 bytes --]
Hi,
I am very interested in using dm-verity in an up coming embedded project on
a "secure" device using NAND flash. I see an email in the June archives
asking the question about what file systems can dm-verity be used with.
The response was "any file system". The question mentioned ubifs
specifically which is not a block based file system. Can ubifs be made to
look like a block device? Is there an example of dm-verity on a ubifs file
system?
I think it would be possible to create a jffs2 file system over ubi using
"gluebi" module. This would then appear as a block device but it would be
great if it would work with ubifs/ubi as is.
Any help would be much appreciated.
Thanks,
Aidan
[-- Attachment #1.2: Type: text/html, Size: 869 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* ubifs
@ 2018-12-03 12:42 Erwin Rol
2018-12-03 12:58 ` ubifs Sascha Hauer
0 siblings, 1 reply; 14+ messages in thread
From: Erwin Rol @ 2018-12-03 12:42 UTC (permalink / raw)
To: Barebox List
Hallo all,
I want to create empty ubifs volumes, like this;
1) ubiformat -y -q /dev/nand0.system
2) ubiattach /dev/nand0.system
3) ubimkvol -t dynamic /dev/nand0.system.ubi system 0
4) .... ????
5) mount -t ubifs -o rw /dev/nand0.system.ubi.system /mnt/system/
Is this possible with barebox?
- Erwin
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ubifs
2018-12-03 12:42 ubifs Erwin Rol
@ 2018-12-03 12:58 ` Sascha Hauer
2018-12-03 13:06 ` ubifs Erwin Rol
0 siblings, 1 reply; 14+ messages in thread
From: Sascha Hauer @ 2018-12-03 12:58 UTC (permalink / raw)
To: Erwin Rol; +Cc: Barebox List
Hi Erwin,
On Mon, Dec 03, 2018 at 01:42:11PM +0100, Erwin Rol wrote:
> Hallo all,
>
> I want to create empty ubifs volumes, like this;
>
> 1) ubiformat -y -q /dev/nand0.system
> 2) ubiattach /dev/nand0.system
> 3) ubimkvol -t dynamic /dev/nand0.system.ubi system 0
>
> 4) .... ????
>
> 5) mount -t ubifs -o rw /dev/nand0.system.ubi.system /mnt/system/
>
>
> Is this possible with barebox?
It depends on what you do in step 4. Should be something like
'ubiupdatevol' or cp /some/image /dev/nand0.system.ubi.system. But then,
yes, this works.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ubifs
2018-12-03 12:58 ` ubifs Sascha Hauer
@ 2018-12-03 13:06 ` Erwin Rol
2018-12-03 13:26 ` ubifs Sascha Hauer
0 siblings, 1 reply; 14+ messages in thread
From: Erwin Rol @ 2018-12-03 13:06 UTC (permalink / raw)
To: Sascha Hauer; +Cc: Barebox List
On Mon, 2018-12-03 at 13:58 +0100, Sascha Hauer wrote:
> Hi Erwin,
>
> On Mon, Dec 03, 2018 at 01:42:11PM +0100, Erwin Rol wrote:
> > Hallo all,
> >
> > I want to create empty ubifs volumes, like this;
> >
> > 1) ubiformat -y -q /dev/nand0.system
> > 2) ubiattach /dev/nand0.system
> > 3) ubimkvol -t dynamic /dev/nand0.system.ubi system 0
> >
> > 4) .... ????
> >
> > 5) mount -t ubifs -o rw /dev/nand0.system.ubi.system /mnt/system/
> >
> >
> > Is this possible with barebox?
>
> It depends on what you do in step 4. Should be something like
> 'ubiupdatevol' or cp /some/image /dev/nand0.system.ubi.system. But then,
> yes, this works
But I need some sort of image, I can not create an empty ubifs volume
and mount it with just barebox tools ?
- Erwin
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ubifs
2018-12-03 13:06 ` ubifs Erwin Rol
@ 2018-12-03 13:26 ` Sascha Hauer
2018-12-03 13:35 ` ubifs Erwin Rol
0 siblings, 1 reply; 14+ messages in thread
From: Sascha Hauer @ 2018-12-03 13:26 UTC (permalink / raw)
To: Erwin Rol; +Cc: Barebox List
On Mon, Dec 03, 2018 at 02:06:21PM +0100, Erwin Rol wrote:
> On Mon, 2018-12-03 at 13:58 +0100, Sascha Hauer wrote:
> > Hi Erwin,
> >
> > On Mon, Dec 03, 2018 at 01:42:11PM +0100, Erwin Rol wrote:
> > > Hallo all,
> > >
> > > I want to create empty ubifs volumes, like this;
> > >
> > > 1) ubiformat -y -q /dev/nand0.system
> > > 2) ubiattach /dev/nand0.system
> > > 3) ubimkvol -t dynamic /dev/nand0.system.ubi system 0
> > >
> > > 4) .... ????
> > >
> > > 5) mount -t ubifs -o rw /dev/nand0.system.ubi.system /mnt/system/
> > >
> > >
> > > Is this possible with barebox?
> >
> > It depends on what you do in step 4. Should be something like
> > 'ubiupdatevol' or cp /some/image /dev/nand0.system.ubi.system. But then,
> > yes, this works
>
> But I need some sort of image, I can not create an empty ubifs volume
> and mount it with just barebox tools ?
Nope, because we only have a readonly UBIFS implementation.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ubifs
2018-12-03 13:26 ` ubifs Sascha Hauer
@ 2018-12-03 13:35 ` Erwin Rol
0 siblings, 0 replies; 14+ messages in thread
From: Erwin Rol @ 2018-12-03 13:35 UTC (permalink / raw)
To: Sascha Hauer; +Cc: Barebox List
On Mon, 2018-12-03 at 14:26 +0100, Sascha Hauer wrote:
> On Mon, Dec 03, 2018 at 02:06:21PM +0100, Erwin Rol wrote:
> > On Mon, 2018-12-03 at 13:58 +0100, Sascha Hauer wrote:
> > > Hi Erwin,
> > >
> > > On Mon, Dec 03, 2018 at 01:42:11PM +0100, Erwin Rol wrote:
> > > > Hallo all,
> > > >
> > > > I want to create empty ubifs volumes, like this;
> > > >
> > > > 1) ubiformat -y -q /dev/nand0.system
> > > > 2) ubiattach /dev/nand0.system
> > > > 3) ubimkvol -t dynamic /dev/nand0.system.ubi system 0
> > > >
> > > > 4) .... ????
> > > >
> > > > 5) mount -t ubifs -o rw /dev/nand0.system.ubi.system /mnt/system/
> > > >
> > > >
> > > > Is this possible with barebox?
> > >
> > > It depends on what you do in step 4. Should be something like
> > > 'ubiupdatevol' or cp /some/image /dev/nand0.system.ubi.system. But then,
> > > yes, this works
> >
> > But I need some sort of image, I can not create an empty ubifs volume
> > and mount it with just barebox tools ?
>
> Nope, because we only have a readonly UBIFS implementation.
So that means I can not add files to a ubifs ? That would seriously
suck :-(
- Erwin
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-12-03 13:35 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 15:27 ubifs Renaud Barbier
2011-09-29 10:18 ` ubifs Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2018-12-03 12:42 ubifs Erwin Rol
2018-12-03 12:58 ` ubifs Sascha Hauer
2018-12-03 13:06 ` ubifs Erwin Rol
2018-12-03 13:26 ` ubifs Sascha Hauer
2018-12-03 13:35 ` ubifs Erwin Rol
2013-06-18 15:47 ubifs Aidan Totterdell
2008-12-10 13:50 Ubifs Жека
2008-12-10 11:44 Ubifs Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
2008-12-10 9:02 Ubifs Жека
2008-12-10 11:04 ` Ubifs Artem Bityutskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.