Initrd built into custom Linux kernel is not running

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Initrd built into custom Linux kernel is not running

392 Views
anjalinv8
Contributor I

Hello,

I am building a custom initrd image that I am building as a CPIO archive into the Linux kernel,The issue is  the kernel does not attempt to run from the initrd, and getting kernel panic  when booting from imx8qmmek.

The files I have in my CPIO archive:

cpio -ivt < initrd.cpio
drwx------ 1 root root 0 Jan 1 1970 /proc
drwx------ 1 root root 0 Jan 1 1970 /sys
dr-x-w-r-x 1 root root 0 Jan 1 1970 /mnt
dr-x-w-r-x 1 root root 0 Jan 1 1970 /idex
dr-x-w-r-x 1 root root 0 Jan 1 1970 /mnt/system
drwx------ 1 root root 0 Jan 1 1970 /etc
-r-x------ 1 root root 534376 Jan 1 1970 /init
-rwx------ 1 root root 460 Jan 1 1970 /etc/fstab
crwx------ 1 root root 5, 1 Jan 1 1970 /dev/console
1047 blocks
In the kernel .config I have :

CONFIG_INITRAMFS_SOURCE="../initramfs.cpio"

I have attached the bootlog below.

Any idea what might be wrong here or where I should start looking to debug?

 

0 Kudos
0 Replies