Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Built-in initrd inside kernel

199 views
Skip to first unread message

Soham Sinha

unread,
Jul 10, 2019, 4:59:39 PM7/10/19
to Android-x86
I am configuring Linux kernel config (with menuconfig) to have initrd inside the kernel image. I change the CONFIG_INITRAMFS_SOURCE to a directory pointed by the initrd-content. I get the initrd-content by unzipping the initrd.img generated by Android_x86's $OUT directory. I use the following commands to create the initrd-content directory: mkdir initrd-content; cp initrd.img initrd-content/initrd.img.gz; cd initrd-content; gunzip -v initrd.img.gz; cpio -i < initrd.img

However, when I compile the iso_img, the Live Android is failed to work. It's giving me the following error:

Warning unable to open an initial console.
Kernel panic - not syncing Attempted to kill !init exit code=0x0000200
Kernel offset: .... 
 
How do I build the Android x86 iso_img with a built-in initrd in the kernel?

Chih-Wei Huang

unread,
Jul 10, 2019, 10:05:25 PM7/10/19
to Android-x86
Soham Sinha <soh...@bu.edu> 於 2019年7月11日 週四 上午4:59寫道:
Why did you want to do that?


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Soham Sinha

unread,
Jul 11, 2019, 11:52:14 AM7/11/19
to Android-x86
I was trying a different own bootloader which do not work well with external initrd. I finally got it to working. I needed to add a /dev folder inside the initrd-content folder add two nodes console and tty. Details are here: https://stackoverflow.com/questions/10437995/initramfs-built-into-custom-linux-kernel-is-not-running
Reply all
Reply to author
Forward
0 new messages