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?