{Linux Kernel + Ramfs}ISOImage on VirtualBox Howto?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to learn details of Linux kernel using virtualbox. 


I have compiled my kernel for i386_defconfig and with the following values set,

(*) CONFIG_BLK_DEV_INITRD=y

(*) CONFIG_INITRAMFS_SOURCE="/workspace/tmp/initramfs"


My basic filesystem with busybox utility is created under "/workspace/tmp/initramfs" which is given as the value for CONFIG_INITRAMFS_SOURCE.



Later I created an isoimage of this set to boot through the virtualbox using 'make isoimage' command in the linux kernel,

$make isoimage FDARGS="init=/sbin/init root=/dev/ram0 console=ttyS0 console=tty0 ignore_loglevel"


When I boot the virtualbox using the the generated isoimage, I see linux kernel booting, but dont see the rootfs being mounted;  and a kernel panic at that stage.


Are we supposed to set some extra bootargs specific for the x86 platform when using ramdisk - like ramdisk_image, ramdisk_size, etc.???


To solve this, I am trying to understand the details about Linux boot protocol (Documentation/x86/boot.txt),  but some pointers along this area would be helpful.

Also If I am missing some basic points while generating the isoimage, please do not hesitate to correct me.



Regards,

SubbuI am trying to learn details of Linux kernel using virtualbox. 


I have compiled my kernel for i386_defconfig and with the following values set,

(*) CONFIG_BLK_DEV_INITRD=y

(*) CONFIG_INITRAMFS_SOURCE="/workspace/tmp/initramfs"


My basic filesystem with busybox utility is created under "/workspace/tmp/initramfs" which is given as the value for CONFIG_INITRAMFS_SOURCE.



Later I created an isoimage of this set to boot through the virtualbox using 'make isoimage' command in the linux kernel,

$make isoimage FDARGS="init=/sbin/init root=/dev/ram0 console=ttyS0 console=tty0 ignore_loglevel"


When I boot the virtualbox using the the generated isoimage, I see linux kernel booting, but dont see the rootfs being mounted;  and a kernel panic at that stage.


Are we supposed to set some extra bootargs specific for the x86 platform when using ramdisk - like ramdisk_image, ramdisk_size, etc.???


To solve this, I am trying to understand the details about Linux boot protocol (Documentation/x86/boot.txt),  but some pointers along this area would be helpful.

Also If I am missing some basic points while generating the isoimage, please do not hesitate to correct me.



Regards,

Subbu


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux