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

How to load kernel modules in initramfs

I have a block device module that has to be loaded before the file system. I'm told that I have include the module into an initramfs and boot from it. Then I've created my own initramfs width dracut, put my .ko file into /user/lib, I've also…
vesontio
  • 381
  • 1
  • 7
  • 19
2
votes
3 answers

Kernel does not call /init script on initrd

everyone. I'm working on my first embedded Linux and I would like to have a nice bootsplash. I've decided to use an initrd to get it up as early as possible, but it looks like the kernel is not calling the /init script. It mounts my ram disk and…
Leonardo
  • 124
  • 1
  • 8
2
votes
1 answer

Modify/Set root device in initramfs script

I want to modify the root device node as a part of a script in initramfs. I don't want to execute switch_root myself (unless I have to). I would like to add in a script which can change the root device if certain conditions are met. I tried various…
Vivek
  • 89
  • 1
  • 4
2
votes
3 answers

why not just plain files instead of initramfs or initrd?

The linux kernel uses a kind of ram disk to access modules at an early boot stage. Out of curiosity I want to understand I have a question: The file containing the initramfs/initrd must be accessible for the kernel at this stage. This means the…
Thomas Koch
  • 2,833
  • 2
  • 28
  • 36
2
votes
1 answer

Using ncurses with initrd(linux mint 13 - default kernel)

I am trying to modify Mint 13(ubuntu derivative)'s initrd. The main idea is for a program I am making to be run by the local-top script. That is - when the kernel is started and loads the initrd, my program has to be in that initrd and run before…
M. Ivanov
  • 283
  • 1
  • 2
  • 13
1
vote
1 answer

Linux initrd optimization

I am investigating Linux initrd mechanism. I learned the following code: bool __init initrd_load(void) { if (mount_initrd) { create_dev("/dev/ram", Root_RAM0); /* * Load the initrd data into /dev/ram0. Execute it as…
1
vote
1 answer

What is contained in Android's init on initrd.img?

I unpacked the initrd.img with cat initrd.img | gunzip | cpio -vid and then there's an executable called init which I think is the first thing the kernel runs. However, what does it do? Is there an example of one that I can look on google AOSP…
Guerlando OCs
  • 1,886
  • 9
  • 61
  • 150
1
vote
2 answers

How do I mount a Ubuntu initrd.img?

There is a bug with Ubuntu 10.04 Kernel updates (-31,-32) and I want to mount the initrd.img so I can compare the kernel images and see which modules are missing. I have already tried -o loop with no success. Anyone have any advice?
MBguitarburst
  • 267
  • 1
  • 7
  • 21
1
vote
0 answers

U-Boot debug diagnose why stuck after dtb device tree loaded and kernel not booting in Qemu kvm

=> bootm 0x1000000 - 0x6000000 ## Booting kernel from Legacy Image at 01000000 ... Image Name: Linux-2.6.32.42 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3523176 Bytes = 3.4 MiB Load Address: 00000000 Entry Point: …
htfree
  • 331
  • 1
  • 15
1
vote
1 answer

Is there a way to create a VM from a kernel and an initrd, using virt-manager?

Until now I used QEMU\KVM and was able to start a VM from a kernel image and an initrd file (skipping the bootloader). I want to start using virt-manager to manage my VMs, but it looks like there is no option to use this method anymore but only to…
idow09
  • 504
  • 1
  • 5
  • 15
1
vote
1 answer

QEMU networking and getty issues

I'm trying to create a minimalist setup for an ARM based virtual machine using qemu. I am following the following guide to do so. I am running QEMU with the following command qemu-system-arm -M vexpress-a9 -dtb…
AjB
  • 890
  • 13
  • 34
1
vote
2 answers

Generate custom initramfs image with additional configuration files

I would like to create an initramfs image for Debian Stretch which includes additional configuration files (say /etc/a.conf). What do I have to do prior to running mkinitramfs -o initrd.img in order for the image to include such files?
rookie099
  • 2,201
  • 2
  • 26
  • 52
1
vote
0 answers

docker-save from HUB without dockerd running

As SystemImager developper, I'd like to mange images using docker (instead of using a simple directory on the image server). On the image server I would have docker running and I could start container to update content (yum update, change configs,…
1
vote
0 answers

Accessing initramfs-tools features in Yocto generated initramfs image

I would like to load a few kernel modules, and activate framebuffer access prior to Plymouth launch. This is normally done using /etc/initramfs-tools directory provided with the initramfs-tools. However, when building an initramfs image with Yocto,…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
1
vote
1 answer

How to convert a sequence of bits (bitmask) into the corresponding hex number

Let's say I have the bitmask 1000000000. I would like to convert it to its equivalent hexadecimal number, i.e. 0x200 (specifically, I only want the 200 part, but that's easy to take care of) I know I can do this in Python or using various bash…