Questions tagged [ubifs]

Concerning the Linux UBI and UbiFs layer for NAND and NOR flash chips.

Ubifs is a flash file system which support raw flash devices like NOR and SLC/MLC NAND flash. It does not support flash cards, like compact flash, MMC, SD, etc. which typically have built-in controllers. Ubifs was introduce to Linux in version 2.6.27 circa 2008.

UbiFs is layer upon UBI or the Unsorted block image layer. In turn UBI is on top of an MTD (media technology driver) which is basically a Linux flash driver.

  • The MTD is a combination of the flash chip and a CPU interface to that chip; the flash controller.
  • UBI provides wear leveling and volume management.
  • UbiFs implements the actual filesystem and is simplified, compared to JFFS2, as it doesn't have to deal with wear leveling*. UbiFs uses many data structures, such as wandering trees, a tree node cache, B-trees, Journals, etc.

UbiFs was originally named JFFS3. However, as the design and compatibilty completely diverged in it's development, the name was changed to UbiFs.

References,

50 questions
0
votes
1 answer

How to get a backup of embedded Linux rootfs?

I have an embedded Linux environment working well and want save the rootfs part, then to flash others new board with empty nand. So, what I tried. From barebox (before boot of the kernell), I put /dev/nand0.root.bb to the tftp server of my PC. Then…
vincenet
  • 41
  • 6
0
votes
0 answers

How do I corrupt the master node on a UBI device?

I have an nand flash that appears as mtd and is attached to UBI and has 2 volumes and I want to know how to corrupt the master node in the UBI device. Is it possible? The documentation says the master nodes are on LEBS 1 and 2 but I dont know how…
Toshiro
  • 345
  • 2
  • 5
  • 14
0
votes
1 answer

How to mount ubifs filesystem on android emulator?

I want to test the functionality of a custom ubifs filesystem on an android emulator (avd- Nexus 5). I have compiled and deployed a goldfish kernel(3.4) with ubifs support. But not finding the correct steps to mount a ubifs onto the emulator. I have…
AvK
  • 75
  • 1
  • 9
0
votes
1 answer

Dynamically creating the volume based on the size of ubifs image size

I have a requirement to create a new volume (it can be static) based on the size of the ubifs image (say rootfs.ubifs) which I am going to write into that volume. The aim is to create the volume with the minimum possible size required to write…
Sibin K C
  • 1
  • 2
0
votes
1 answer

Ubifs sync option in OpenWRT

I have a system which works on openWRT ; bootloader is uboot. I have UBI file system on my NAND device . The linux kernel used is 3.4.18 and the image boots fine and the filesystem also comes up fine. one issue is that when ftp happens and then the…
lxusr
  • 987
  • 3
  • 16
  • 28
1 2 3
4