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.

101 questions
2
votes
1 answer

Confused about install -m and install -d using Yocto

I have taken over a Yocto project, and inside a .bb recipe file, I see the following lines to install new directories in the image: do_install() { install -m 0755 -d ${DEPLOY_DIR_IMAGE}/app install -m 0755 -d ${DEPLOY_DIR_IMAGE}/app/apiary install…
Engineer999
  • 3,061
  • 4
  • 19
  • 43
2
votes
1 answer

yocto project - missing dependencies in recipe-sysroot

As probably all yocto people know the sysrootfs policy changed in yocto rocko 2.4+. So I have the following issue: I try to make a recipe for a shared library with makefile. The recipe is below (I don't claim it is complete. I simply cannot pass…
Georgi
  • 43
  • 1
  • 7
2
votes
1 answer

Keeping rootfs with Inheriting rm_work in yocto

To save disk space, I have added INHERIT += "rm_work" I don't want it to delete root file system folder, so I added the following line in local.conf. RM_WORK_EXCLUDE += "rootfs" I ran the following command to get the location of root file…
md.jamal
  • 3,061
  • 3
  • 25
  • 58
2
votes
0 answers

fakeroot/proot hangs during rootfs generation

I am trying to build a Debian Stretch-based armhf filesystem using multistrap, fakeroot and proot. I can create the rootfs using multistrap: fakeroot /usr/sbin/multistrap -f multistrap.conf Then I copy the fakeroot libraries into the rootfs…
Borkhuis
  • 121
  • 2
  • 10
2
votes
1 answer

Read only Initramfs Linux system

I have an embedded board which I am running Linux on it. Linux is booted via uboot. The full Linux image is build as Initramfs. When the system is booted I find that the root FS is read write. My understanding is that the Initramfs should be by…
silentnights
  • 693
  • 1
  • 7
  • 19
2
votes
1 answer

switch_root busybox init problems?

I'm in an embedded linux environment with busybox. I've read through several posts trying to learn how to use switch_root. I tried this: exec switch_root -c /dev/console /mnt/newroot /bin/busybox init The switch_root help prints and I am presented…
dtmland
  • 1,893
  • 3
  • 19
  • 42
2
votes
1 answer

Using a statically compiled C file as rootfs

I want to boot my imx53-qsb board using not a normal rootfs but a statically compiled hello_world.c file in other words a hello_world_static.out. To achieve that, I wrote a hello_world.c file cross compiled it statically and I put it in my mmcblk0p1…
EngineerN
  • 133
  • 1
  • 11
2
votes
1 answer

Embedded Linux Newbie Questions

So I am on the quest of learning embedded Linux and have a few questions that I cannot seem to find an answer for. 1) Does the kernel depend on the dtb/dts files when compiling? I thought that the kernel only needs to know the chip architecture…
user2205930
  • 990
  • 7
  • 24
2
votes
1 answer

How to prepare new SD card for iMX6 sabre lite board for running linux

I recently bought i.MX6 Sabrelite board and I'm learning kernel cross compilation and board bring-up. The u-boot is already there in flash and it is configured to load the kernel from SD card. I tried some prebuilt images and the board boots…
androidFan
  • 571
  • 1
  • 16
  • 31
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
  • 10
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,112
  • 4
  • 16
  • 23
2
votes
1 answer

How Do I run ulimit -c unlimited automatically

I am trying to provide support for coredump file generation from my rootfs ,I have modified /etc/limits file with "ulimit -c unlimited" command and "* hard core -1" ,Now when I give kill -6 $$ ,expecting core file generation but to get this core…
Amit Singh Tomar
  • 7,814
  • 24
  • 103
  • 182
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
  • 468
  • 1
  • 6
  • 22
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
  • 701
  • 1
  • 3
  • 10