Questions tagged [initrd]

The initrd (Initial RAM Disk) is used to load a temporary filesystem into memory in the boot process of a linux kernel.

77 questions
1
vote
1 answer

Qemu fails to load when my initrd (cpio) is large ~80 mb

I am new to qemu and am trying to learn kernel programming, I create an initrd which has busy box, but when I add a big tarbal ~80Mb in the cpio qemu fails to load. I wanted to include golang in intrd, so that i could test the new kernel. This is…
mfrw
  • 99
  • 1
  • 11
1
vote
1 answer

Can I run a Qt application in initrd when the linux startup?

I wonder that if I can run a Qt application in initrd between the grub and the real os startup. And stop when the Qt application run.
GLaDOS
  • 11
  • 2
1
vote
1 answer

Why can't I specify my rootfs with PARTUUID when I use initramfs?

I have an embedded ARM board and am experimenting with initramfs. Since my root filesystem is EXT4 and the EXT4 driver is built into the kernel (not compiled as a module), I can directly boot the kernel and mount the root filesystem, no initramfs…
Timo
  • 73
  • 8
1
vote
0 answers

embedded linux, initramfs with buildroot

in my embedded system I'd like to use initramfs to perform some special operation. Someone managed to make initramfs work? I'm using buildroot 2016.2, the kernel is from my provider and we are at 3.0.x. I've enabled initramfs, so I just have to pass…
JosephITA
  • 502
  • 2
  • 11
  • 21
1
vote
0 answers

getaddrinfo() fails in homemade initrd. How do I debug the bootprocess?

I'm trying to secure the bootprocess of my workstation with a self-written version of something like Anti-Evil-Maid, but I'm unable to get the TPM daemon running. The problem appears to be, that TCSD fails, as soon as an .getaddrinfo() call is…
1
vote
0 answers

Initramdisk init script - catch invalid kernel driver load

Recently I added new drivers to my initrd image, to be able to run under VMware and Hyper-v platform as well. My question is, how can I catch failure during driver loading? If insmod fails while hv_vmbus insertion I want to skip 5 additional drivers…
1
vote
2 answers

Do initrd really reduce kernel image size in case of Bootpimage?

According to Wikipedia in article about initrd "Many Linux distributions ship a single, generic kernel image - one that the distribution's developers intend will boot on as wide a variety of hardware as possible. The device drivers for this generic…
Waqas
  • 191
  • 3
  • 4
  • 13
1
vote
2 answers

How to get working rootfs (initrd) on an ARM board?

I'm trying to make work an embedded linux on a CSB337 board with AT91RM9200 (ARM920T). I compile the kernel 3.2.63 using at91rm9200_defconfig. I see the kernel booting but I have a problem with rootfs (initrd). I will try to explain the context but…
tuppi-ovh
  • 33
  • 1
  • 1
  • 7
1
vote
2 answers

Mount usbfs on linux 3.10 kernel

I did upgrade linux kernel from 2.6 to 3.10 version In init nn 2.6 I did mount usbfs mount -t usbfs usbfs /proc/bus/usb -onodev,nosuid,noexec To enable usbfs I did CONFIG_USB_DEVICEFS=y and CONFIG_USB_DEVICE_CLASS=y in kernel's config but they are…
Torrius
  • 737
  • 3
  • 12
  • 20
1
vote
0 answers

what happens when "Loading vmlinuz" while installaling linux

While installing a linux distro (say centos), the following messages appear on console: Loading vmlinuz.... Loading initrd.imag ....... These files (vmlinuz and initrd.imag) are located under isolinux/ directory inside the ISO. It is clear that…
kee
  • 46
  • 2
  • 10
0
votes
0 answers

Trouble Booting Custom Kernel with QEMU: dracut-initqueue timeout waiting for /dev/sysvg/root

I am trying to boot a custom Linux kernel using QEMU and encountering an issue where the boot process hangs with a dracut-initqueue timeout. I compiled the kernel using a .config file from a Fedora VM and also copied the initrd.img from the same…
0
votes
0 answers

How do I best instrument the Linux kernel to log early boot file open/read requests?

I'm looking for a relatively quick and straightforward way to have the Linux kernel print to console/serial (via printk - I can find a way to capture the output) any meaningful I/O requests on the early (rootfs/tmpfs/initramfs) filesystem.…
user3325588
  • 151
  • 1
  • 4
0
votes
0 answers

Kernel panic - not syncing: Requested init /init failed (error -2)

Attaching a bit more of the boot log. HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages HugeTLB registered 64.0 KiB…
rish_1n4
  • 21
  • 3
0
votes
0 answers

Understand apparently duplicated initrd of an embedded system

I'm trying to analyze and understand an embedded system that runs linux. I'm pretty new to linux boot process, embedded linux etc, so I have to learn a lot but prefer learning by doing. So analyzing a system is the way I try to understand all…
Phela
  • 1
  • 2
0
votes
1 answer

aurel32 qemu images arm vs mips

I am currently learning how to emulate both mips(el) and arm architecture using Qemu. The images which I used for both architecture is by aurel32 from this website, https://people.debian.org/%7Eaurel32/qemu/ I noticed that the mips images does not…
Kris
  • 61
  • 1
  • 2