78 questions
0
votes
1
answer
83
views
dracut Warning: Duplicate address detected for 10.0.2.15 while doing dhcp. retrying
I'm trying to boot Linux from Google Drive as mentioned in the blog. so for that, I've compiled dracut and created initramfs in form of efi image as mentioned in the blog.
./dracut.sh --kver 6.9.6-...
0
votes
0
answers
431
views
How do I get dracut find/mount a squashfs directly from an iso media?
I am looking into using Dracut to create an initrd that can boot and transition to a squash filesystem that is pre-stored on the same iso media where the system is booted from.
However, dracut is ...
0
votes
0
answers
757
views
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 ...
1
vote
1
answer
202
views
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);
/*
...
-1
votes
1
answer
912
views
Execute an interactive script in systemd-based initramfs
I want to start an interactive script in a systemd-based initramfs. I use mkinitcpio with the systemd-hook to create it. My problem is, that there is no input supplied to the script started as a ...
2
votes
2
answers
2k
views
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 ...
1
vote
0
answers
3k
views
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, ...
1
vote
0
answers
269
views
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 ...
0
votes
1
answer
132
views
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/%...
0
votes
1
answer
632
views
Find location of GRUB2/Multiboot 'module' (aka initrd)
I am working on an OS, and need to load an INITRD (grub command "module") and can't find info on where (in RAM) the module is loaded to
Does grub have a way of telling me or is it a fixed ...
0
votes
1
answer
2k
views
Facing kernel panic issue with Yocto: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Scenario: I am working in Yocto linux project. I have created my own rootfs with tar.gz extension. And I have built linux kernel (using bitbake linux-kernel-rt). I am not able to load kernel and ...
0
votes
0
answers
889
views
How to create an initrd.img file for liveCD for a specific kernel version
I've created a LiveCD image (.iso) of CentOS 7.2 and it works fine with the initrd.img file that I took from the http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/
its boot up with a kernel ...
0
votes
0
answers
2k
views
Manually compiled kernel fails to boot: stuck in initramfs prompt
I am trying to compile a custom kernel for my old laptop (it's a Dell Inspiron 1525, with a Core 2 Duo processor, 2GB of memory and a HDD -- not SSD). In this computer I have 3 partitions, 2 small ...
0
votes
1
answer
1k
views
kernel not able to run /init in initramfs in linux android 10 kernel version 4.9
I have created a custom initramfs using the below command in my custom initramfs directory:
find . | cpio --quiet -H newc -o | gzip -9 -n > ../diaginitrd.img
Then I built a custom bootimage with the ...
0
votes
0
answers
1k
views
yocto Linux kernel build: vmlinux and initrd creation
With a Yocto kernel build, core-image-base, qemux86_64:
How do I get Yocto to generate the vmlinux (not vmlinuz) and initrd.
Where can I find these when using a automated script.
The script usage is ...
0
votes
1
answer
366
views
Adding to my Linux a new device driver and its effect on initrd
I'm a newbie in the Linux environment, and I came a cross two concepts, the vmlinuz and initrd.
What I understood that initrd determines which kernel-modules need to be loaded to support the current ...
1
vote
0
answers
940
views
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 ...
3
votes
1
answer
2k
views
Why is my initramfs script not being run?
Running Ubuntu 18.04 LTS. I've put a script in the following location:
/usr/share/initramfs-tools/scripts/init-bottom/dothis
dothis is set as +x. I've run sudo update-initramfs -u which appears to ...
1
vote
1
answer
1k
views
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 ...
0
votes
2
answers
1k
views
Is there a way to add kexec functionality to busybox initrd?
I have 3 MB of SPI flash on my board and I am able to pack the bzImage, busybox initrd and coreboot ROM into this SPI flash. I am also able to boot to the shell , all using the ROM kernel-as-...
1
vote
1
answer
1k
views
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 ...
1
vote
2
answers
6k
views
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 ...
0
votes
1
answer
3k
views
initramfs has no modules
I have proxmox containers. Host Debian 9, inside container Debian 8.
I made image to migrate into VMWare.
And now I need to build my initranfs. But if i run update-initranfs -u -v -k 4.9.0-0.bpo.8-...
-1
votes
2
answers
2k
views
How do I get an initrd made out of a cpio archive loaded as the root device by grub2 in a distro-agnostic way?
I'm building an LFS (Linux From Scratch) system in a VM and so far I've managed to get a workable, desktop system, booting from a known device, /dev/sda1 in my case. I'm now trying to make a live ...
4
votes
0
answers
219
views
Drawing an image on the screen during initramfs
I'm trying to draw an error image during initramfs on a base ubuntu 18.04 image.
My issue is that when I write the image directly into /dev/fb0 The card only appears to redraw areas of the screen the ...
1
vote
0
answers
68
views
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 ...
1
vote
0
answers
2k
views
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. ...
0
votes
1
answer
1k
views
cpio is not working properly in repacking initrd.lz for live
If I unpack initrd.lz and then repack it without making any changes, then replace it with my new initrd.lz in Casper directory for live CD. It is structed. While packing of initrd I got a warning ...
0
votes
0
answers
1k
views
Custom initrd fails to mount RAM disk image
I am trying to build a minimalistic kernel and initrd image which I want to use with qemu.
I am packing initrd image using cpio by,
find . | cpio -oHnewc | gzip > ../initrd.img
The kernel ...
1
vote
1
answer
953
views
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 ...
0
votes
0
answers
307
views
Error while Building initramfs on linux 4.4 on Amazon EC2 ubuntu instance
All,
I downloaded the kernel source tree 4.4.66(from kernel.org) and trying to build the kernel and initramfs from this. Kernel built fine but initramfs is not building properly.
By the I am ...
2
votes
1
answer
6k
views
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 ...
0
votes
0
answers
466
views
Mount mapped device on boot
I have a Linux system with 2.4 kernel version. I need to make a mapping device through device-mapper for root partition and mount to it at boot time.
I need to use special mapper type (not a standart ...
1
vote
1
answer
122
views
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.
0
votes
1
answer
3k
views
How to enable udev package in yocto recipe for initramfs build
How to enable udev package in yocto recipe for initramfs build?
Please provide sample yocto bb file.
Thanks
6
votes
1
answer
2k
views
When is it necessary to rebuild the initrd (Linux initial ramdisk)?
Background: I'm developing a DKMS package for my kernel module. The DKMS manpage contains the following sentence:
REMAKE_INITRD =
This directive specifies whether your initrd should be remade ...
1
vote
1
answer
2k
views
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 ...
1
vote
0
answers
3k
views
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....
1
vote
0
answers
284
views
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 ...
3
votes
1
answer
2k
views
ARM stucks at "Starting kernel image ..." sometimes [closed]
At the beginning I'd like to announce that it is partially a success story. :-)
Context: Just for personal self-development, I had got an idea to complete semi-LFS procedure to build Linux for my ARM ...
2
votes
1
answer
640
views
What is `hooker script` actually in `scripts/init-top/all_generic_ide`?
I'm studying init in Ubuntu's ramdisk.
In scripts/init-bottom/udev I saw this code snippets:
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
...
0
votes
1
answer
2k
views
Change ownership in cpio archive without root
I need to add files to an initramfs file(I own the file as this is for some other device), however I do not have root permissions on my development machine. The usual way would be to unpack the ...
0
votes
0
answers
1k
views
init process dies on linux kernel start
I am trying to bringup kernel on a custom p2020 board. The kernel crashes with below exception.
init[1]: unhandled signal 4 at 4801b9dc nip 4801b9dc lr 48002b08 code 3000
It is dying in the same ...
0
votes
2
answers
1k
views
How to find all initrd.img* files on a system
Been working on some custom ISO for Ubuntu, so I have lots of different mounts, etc. I wanted to scan across everything to find all of the initrd.img* files, but I'm getting clocked by "features" in ...
2
votes
1
answer
2k
views
Unpacking / Packing AOSP recovery image using abootimg fails to boot
I built a recovery.img (using flo lunch setup) for my Nexus 7 device using AOSP source code. I can use it like:
$ adb reboot bootloader
$ fastboot boot recovery.img
However, when I unpack and re-...
2
votes
0
answers
4k
views
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, ...
3
votes
3
answers
2k
views
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 ...
1
vote
0
answers
69
views
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 ...
6
votes
1
answer
3k
views
Running a script just before installation of Debian finishes using preseed
I am trying to run a script just before the installation of Debian Wheezy finishes. I am aware of "d-i preseed/late-command", viz. used run commands before the installation finishes. But I am facing a ...
6
votes
2
answers
3k
views
reboot within an initrd image
I am looking for a method to restart/reset my linux system from within an init-bottom script*. At the time my script is executed the system is found under /root and I have access to a busybox.
But ...