Questions tagged [ubifs]

ubifs (unsorted block image filesystem) is a file system for use with raw flash memory media.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

ubifs error 9 (not enough good pebs)

Recently I started a project involving a at91sam9261ek and samsung K9F2G08U0M nand flash (256mb) (http://ww1.microchip.com/downloads/en/AppNotes/doc6255.pdf). I used buildroot to build bootstrap, ...
1
vote
0answers
66 views

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the ...
1
vote
1answer
49 views

Can a UBIFS be set as ACL?

Running Debian Buster on Kernel 4.20.17 with systemd 241: +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 ...
0
votes
0answers
74 views

Relation of max LEB count and vol_size in UBI tools

When creating a UBI image there are two times you can specify the size of your UBIFS volume. Once in 'mkfs.ubifs -c max-leb-cnt' and once in the ubinize config file, vol_size. If I have a LEB size of ...
3
votes
1answer
225 views

How do you completely switch the root files system on Linux?

I am running my rootfs on a flash device (MTD device with UBIFS) - Note: it's a bitbake system so its not full-blown ubuntu or anything. I want to be able to format that device and write a new rootfs ...
2
votes
1answer
1k views

Using squashfs on top of ubi as root file system

I'm trying to use a compressed squashfs ubi volume as my root file system. The idea is to have two ubi volumes. Volume one contains a read-only squashfs file system. Volume two is re-sizable and uses ...
1
vote
0answers
122 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
7
votes
3answers
758 views

Linux: Alternative to UBIFS on MLC NAND

The status of UBIFS in Linux on top of MLC NAND has never been exactly perfect. And while this entry has now been removed from the FAQ nowadays, the support for UBIFS on top of MLC NAND has now been ...
0
votes
1answer
65 views

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 ...
0
votes
1answer
240 views

How to use ubifs image with modprobe? To extract ubifs image

I try to do something like this - link. All examples in the web are not working at all. modprobe ubi mtd=0 modprobe: module ubi not found in modules.dep modprobe ubi modprobe: module ubi not found ...
0
votes
1answer
323 views

Read-only filesystem - Considerations and Loss of Functionality

I'm creating an embedded system using Buildroot. Currently, my Buildroot configuration ensures the rootfs is remounted as read/write during startup. However I would like to remove this feature and ...
2
votes
1answer
3k views

How can I change a single file from an UBI image

I have an ubi image file (.ubi) and I want to change a single file from that image (/etc/network/interfaces to be precise). How can I change a single file from that ubi image? I'm using OS X but I ...
0
votes
1answer
216 views

Opening raw UBI partition for writing on Linux if it's mounted and used by init

I need to update a raw UBI partition with a new UBIFS image from Linux userspace with superuser rights, however I'm getting EBUSY (Device or resource busy) error whenever I'm trying to open my ...
0
votes
0answers
294 views

UBIFS going into Read only mode

I have a customer unit having UBIFS file system on it. Unit is up and running fine. The unit under goes a test of power cycling (AC mode-Battery mode- AC mode). At some point of time the unit(UBIFS ...
0
votes
1answer
1k views

How to get the exact file size in linux? [duplicate]

I would like to get individual file size, all used file size in the disk and usable the maximum file size in the disk. In linux, commands for checking file sizes such as "du", "df", "ls -l" are ...
1
vote
2answers
250 views

Persistent systemd machine-id in a stateless (UBI/UBIFS) embedded linux environment

I have an embedded linux machine which has a read-only root filesystem which is loaded from a UBI/UBIFS. Every time the device boots it creates a new systemd machine-id which I understand from ...
0
votes
2answers
613 views

UBI file system Error -16

During bootup, the storage partition is getting loaded. However I see this error message. What is this error 16 represents? UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16 I ...
1
vote
0answers
326 views

Using busybox with UBI files system on an MTD flash device, du and df commands give incorrect values

I have mounted a UBIFS on my MTD partition which is 191.9MB in size. When I run mtdinfo -a the partition shows: mtd6 Name: data2fs Type: nor Eraseblock size: 65536 (64KB) Amount of Erase Blocks: ...
3
votes
1answer
3k views

u-boot how to mark bad blocks

While in U-boot in an arm based board (wb45n), I manually erase and then mark a block bad. U-Boot> nand erase 0x00720000 20000 NAND erase: device 0 offset 0x00720000, size 0x20000 Erasing at ...
1
vote
1answer
885 views

Does it make sense to have separate ubi volumes for safety with ubifs?

In the pre-ubifs days it was common practice in embedded systems to setup several (MTD) partitions in flash for protection. For example, a partition containing a read-only file system could be mounted ...
1
vote
1answer
453 views

Programming NAND with generated UBI binary

Our system generates a UBI partition that is being created in NAND on first boot. The system is able to read and write files there. I'm trying to create a binary file that we can use for a NAND 'gang' ...
4
votes
1answer
1k views

Surprisingly big overhead when creating small ubifs volume

On an mtd partition with 39 erase blocks (= 4.9 MiB), I tried to format a ubifs. The resulting file system has free space of 2.2M uncompressed data when reserved blocks are reduced to the minimum ...
0
votes
1answer
168 views

rootfs.ubi doesn't allow login to shell

I have built rootfs.ubi using buildroot 2012.11. On boot I'm not able to login to buildroot login prompt also. Linux is built with UBI and UBIFS support. Earlier I encountered this behaviour if ...
2
votes
1answer
371 views

UBI is “pausing” before boot

I have installed a ubifs image on my embedded board, but at boot time, when I turn on my board, the boot is paused for a few seconds (approx. 10 seconds) with this output: Booting from nand ... NAND ...
2
votes
0answers
526 views

How to check UBIFS for errors?

My ARM system uses NANDFlash and UBIFS. IS there a command that will let me check the filesystem, report any errors or warnings, and also report the current compression level?
1
vote
2answers
1k views

Could not mount UBIFS on SD card

I guess this is not a big problem, still I can't see what's the matter. I'm building Images for an Embedded Linux (2.6.39) ARM9 System with Buildroot 2013.11, which is booting from an SD card. I was ...
5
votes
2answers
4k views

Backup of a ubi file system with dd?

A have a root file system (file system - image containinf folder structure and content) on a flash drive. The flash drive uses UBI as the underlying file system file system - the way the data blocks ...