Skip to contentSkip to conversation

ubifs

DISCUSSION Erwin Rol 2 participants 5 messages Dec 3, 2018

lore
Share & tools
lore

Erwin Rol

author
#0 lore raw

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi Erwin,

Quoted 8 lines · Erwin Rol

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

Quoted 6 lines

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
author
#2 lore raw
Quoted 13 lines · Sascha Hauer

Hi Erwin,

Quoted 10 lines · Erwin Rol

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) .... ????

Quoted 8 lines
Quoted 4 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
Quoted 17 lines · Erwin Rol
Quoted 16 lines · Sascha Hauer

Hi Erwin,

Quoted 13 lines · Erwin Rol

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/

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
author
#4 lore raw
Quoted 20 lines · Sascha Hauer
Quoted 19 lines · Erwin Rol
Quoted 18 lines · Sascha Hauer

Hi Erwin,

Quoted 14 lines · Erwin Rol

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?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox