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
0 answers

How to solve the differences in ls command behavior across different file system types?

My work environment is: Linux 3.2.0,ARMV7L,GNU/Linux; CPU is AM335x. Background: 1.The original file system in flash was UBIFS, but due to some reasons that I have not yet found, it was prone to corruption, so I replaced the file system format with…
Moran
  • 1
  • 1
0
votes
0 answers

Kernel panic after ubi rootfs size increased

I'm currently working with LTIB tool to generate linux kernel 3.0.25, with u-boot-2009-08, for iMX6 solo core board. I use mfg tool to flash. When I installed new packages, the rootfs size changed from 147 to 162MiB. Since then, I can't boot…
0
votes
0 answers

Copying NAND to MMC from u-boot to re-flash broken embedded linux box

I've 2 identical embedded Linux boards with: AM3354 SoC. MT29F2G08ABAEA (256MB) NAND flash IS43TR16640A (128MB) RAM SD card interface UART interface One of the boards failed to boot so I've tried to use NAND content of the working board to…
Wali
  • 1
  • 2
0
votes
0 answers

Uboot NAND flash or mtd partition auto-changes to ubi(?)

I am not sure whether the following situation is normal. I have the following command to boot to kernel from uboot: set mtdids nand0=pxa3xx_nand-0 set mtdparts mtdparts=pxa3xx_nand-0:0x600000(boot)ro,0x400000(kernel),-(rootfs) usb start fatload usb…
WillAi
  • 1
  • 1
0
votes
0 answers

how does UBIFS get starting point?

I know that UBIFS' superblock (starting point) is situated at LEB 0. but how does kernel (or U-boot) knows where to look at? I've heard that UBI volume maps PEB and LEB randomly, but I think user should know where physical entry point is located. I…
me in let
  • 13
  • 3
0
votes
1 answer

calculate ubinize and mkfs.ibifs options

I have a stm32 board with MT29F2G08ABAGAWP flash memory, I have a previous board with MT29F2G08ABAEAWP flash memory, the difference is in OOB, in the first OOB it is 64 bytes, in the second OOB it is 128 bytes, I can not find the formula anywhere…
Ivan Ivanovich
  • 880
  • 1
  • 6
  • 15
0
votes
0 answers

ubiattach failed with too many bad blocks

I was trying to read firmware from a NAND chip, and extract its program and data for analyse. From online I learned, you must create an UBI device with your image file write to it, then you can mount it to your system. Description First I read a bin…
0
votes
1 answer

How to install UBIFS filesystem for SSD flash drive?

I have SSD flash drive. So I want to make a new machine use UBIFS filesystem. How can I do that? With Ubuntu desktop 17.0 dont have options for this filesystem. And another question, with new filesystem, Could my machine run faster than ext2,…
Hai
  • 73
  • 1
  • 10
0
votes
1 answer

How to create a ubifs with version 5?

I want use the encrypt UBIFS which supported in the linux 4.10 and latter. And I use the linux 4.18.4 to do the test. I have done everything OK, and when I use the fscryptctl to set the encrypt policy, I get this error: fscryptctl set_policy…
Jimmy
  • 223
  • 1
  • 11
0
votes
1 answer

UBIFS: editted files are not saved. how to sync them to NAND?

I use UBIFS for rootfs on NAND. When I edited a file like /etc/rc.local with nano command and saveed it, "cat /etc/rc.local" shows the editted content, of course. However after removing power supply (without reboot or poweroff command) and supply…
user8257918
  • 55
  • 3
  • 13
0
votes
1 answer

Apply incremental patches on ubifs volume

To update a ubifs volume by replacing it with entirely new content, ubiupdatevol from mtd-utils can be used: ubiupdatevol /dev/ubiX_Y /path/to/ubifs.img Is there a way to apply patch on ubifs volume instead of relacing the complete content? For…
sg1993
  • 335
  • 2
  • 19
0
votes
1 answer

U-boot UBI Write Direct From Disk

I'm flashing a filesystem to nand from u-boot. I have the compressed filesystem stored in an mmc. Normally I'd do something like this: ext4load mmc mmcdev:mmcpart address path ... ubi write address name size The problem I have is that ext4load…
Luis
  • 3,451
  • 1
  • 27
  • 41
0
votes
1 answer

U-Boot: NOR+NAND: UBI Error:

In a particular scenario I'm using NOR + NAND configuration with U-Boot on NOR and ubi image(kernel+fs) on NAND. For the first time, U-boot(2016) can read the UBI image and loads the kernel successfully without any error as follows. ubi0: attaching…
0
votes
2 answers

Android editing ubi/ubfs system image

I have a ubifs system image (https://www.dropbox.com/s/txgye8mu5r3og5y/system.img?dl=0) for a mediatek tablet device and am trying to add and remove some files. I'm stuck trying to mount/extract files from the image. Here are the steps I have tried…
DrZaphod
  • 502
  • 1
  • 5
  • 18
0
votes
1 answer

Kernel panic during work on kernel

i have the following issue. I'm working w/ some Linux-based embedded system. i create an image w/ my linux, load it to device and run. Everything was pretty cool till i added some 3rd-party modules. After this the loading was failed w/ the…
user1053031
  • 727
  • 1
  • 11
  • 30