Questions tagged [rootfs]

A Rootfs is a directory structure suitable as an initial mount point for *nix systems. It always includes the binary and support files to run the init (or first) process.

A Rootfs is a directory structure suitable as an initial mount point for *nix systems. It always includes the binary and support files to run the init (or first) process.

It has a specific meaning for the Linux kernel, where a ramfs/tmpfs is populated with a compressed image and it is freed after the target/final file system is mounted. People using other OSes (and even Linux) may have alternate meanings.

111 questions
2
votes
1 answer

Root filesystem for ARM using Yocto (OpenEmbedded)

I need to build a 32 root filesystem for ARM. I've tried using busybox as well as buildroot and both work perfectly as they should. But the problem is I need to have gcc and few other packages as well as libraries in my root file system. ** Update…
kimi
  • 315
  • 3
  • 11
2
votes
1 answer

What is the boot sequence of kernel?

When booting, is the Linux Kernel first loaded to the memory or the first the root file system is mounted? I have this doubt because the compressed kernel image is usually located in /boot/vmlinuz. So, to access the kernel image the root file system…
Poojan
  • 3,312
  • 4
  • 20
  • 23
1
vote
0 answers

How to sign root file system and verify with FitImage

I am implementing secure boot for imx6ull.Barebox and Fitimage is signed and verified. But how to sign root file system and verify with Fitimage . I found some references like we can use dm-verity or dm-integrity kernel features. But I am not sure…
cherry411
  • 13
  • 7
1
vote
0 answers

Why can‘t I run riscv64 elf(compiled on host) in qemu-system-riscv64?

I compiled a #include int main() { printf("hello world\n"); return 0; } program with riscv64-unknown-linux-gnu-gcc ./test.c -o test on my x86_64-Ubuntu22.04 host, then I put this executable into the shared folder mnt. When I execute ./test…
beyond
  • 11
  • 2
1
vote
1 answer

Read-only file system issue when convert and copy file to a hard drive

I am using yocto to built .iso image for x86-64 target(laptop), my problem is that I can't write anything in the target, it's "Read-only file system". There is nothing provides the "read-only-rootfs" feature from yocto. When I test the same image…
A.A.
  • 125
  • 1
  • 11
1
vote
1 answer

Build a rootfs ext4 image from distroless image for firecracker

I need to use a debian based distro with firecracker, and I attempt to do something similar to what firecracker docs gave: here. I attempted to run this distroless image gcr.io/distroless/base-debian10 and install systemd and copy over the files to…
t348575
  • 674
  • 8
  • 19
1
vote
1 answer

Yocto - How do I change the rootfs file system type

I'm trying to build vdi image with squashfs rootfs, but cannot find where to change current ext4 fs into squash. Closest solutions I found is here: How do I change the rootfs file system type used for the sdcard image in yocto? But I don't feel like…
EatTheGiant
  • 13
  • 1
  • 3
1
vote
0 answers

kernel panic after addition of the "file" utility, resulting in bulky rootfs.cpio

I am using an Initramfs for a custom chip, currently on an FPGA platform. Before generating the linux image using make, I ran make menuconfig and added the 'file' utility. It increased the rootfs.cpio size by 3 times, while the vmlinux size was…
1
vote
1 answer

Is there any way in Linux to check if directory tree has changed?

I'm creating a QEMU startup script in which I compile a rootfs to cpio.gz each time I launch the env. This is fine for the moment, but when the rootfs gets bigger in size, it is going to be a problem. Is there any way to check if a given directory…
m.dorian
  • 489
  • 1
  • 6
  • 24
1
vote
0 answers

Unable to put lapack.so file inside rootfs

I'm trying to install lapack on my 64 bit ARMV8 board with yocto. I have lapack-3.9 bitbake recipe and it has been successfully built. It has successfully created libblas.so and liblapack.so inside image/usr/lib64 folder. I added lapack to my…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
1
vote
0 answers

how can we mount root file system in android10

I can able to mount system partition. I could not able to mount root partition. getting error like this : 1|console:/ # mount -o rw,remount / [ 3640.420613] EXT4-fs (dm-0): couldn't mount RDWR because of unsupported optional features (4000) […
GNK
  • 1,036
  • 2
  • 10
  • 29
1
vote
1 answer

Both libc.so.6 and libc.so exist in rootfs

I used Yocto to generated my rootfs, and a wired thing happened, both libc.so.6 and libc.so existing in my rootfs (/usr/lib/libc.so and /lib/libc.so.6). But they are different objects (not linking to a single object), that will cause my compiling…
Jade
  • 289
  • 4
  • 16
1
vote
0 answers

Creating BusyBox Image without Dockerfile

Any one please let me know how can I create busybox image from rootfs. I referred this link https://docs.docker.com/develop/develop-images/baseimages/ I want to create busybox parent image and using this script file…
afreen
  • 21
  • 2
1
vote
4 answers

How to overwrite linux system files into the yocto filesystem?

I am new, yocto build at imx6q embedded system. I want to overwrite linux system files after do_rootfs. For example, target system files are below. /etc/network/interface /etc/issue /etc/init.d/rcS /home/root/mytest.sh so, i made custom layer and…
dev j
  • 39
  • 3
  • 6
1
vote
1 answer

Cross-compile software for a root file system

I would like to cross-compile software (libdrm-armada) for an armhf architecture. I have the root file system (~/rootfs) which contains the shared objects needed. This file system will be flashed onto eMMC and runs on a custom device. Libdrm-armada…
Bayou
  • 3,293
  • 1
  • 9
  • 22