[LITMUS^RT] [NOOB] Cannot boot using "default" compiled kernel
Björn Brandenburg
bbb at mpi-sws.org
Thu Aug 9 14:46:25 CEST 2012
On Aug 9, 2012, at 2:28 PM, John Gamboa wrote:
> Hello,
>
> I've compiled the Linux kernel using the instructions provided in [1]. Instead of running "make menuconfig", I've copied the "sample 64-bit configuration" file (provided in [1]) and renamed it to ".config", so it could work as the configuration file used by make. It also didn't compile any modules, since, as far as I understood, the "sample 64-bit configuration" file is configured not to allow any module. I managed to get the bzImage file as expected.
>
> While I want to use qemu, I'm using "aqemu" to configure it (it seemed a good graphical user interface). I created a new virtual machine and the command line produced by the configurations I defined is the following (aqemu allows me to access it):
>
> /usr/bin/qemu-system-x86_64
> -monitor stdio
> -soundhw es1370
> -vga std
> -m 256
> -localtime
> -hda /home/gamboa/test
> -boot c
> -net nic,vlan=0
> -net user,vlan=0
> -kernel /home/gamboa/Documents/litmus/litmus-patch/bzImage.default_without_modules
> -initrd /home/gamboa/Documents/litmus/initrd/initrd.img-3.0.0-litmus-litmus2011.2
> -name "test"
>
> As you can see, it is passing the -kernel option using the bzImage created (I put it in another place to make sure I wouldn't lose it when compiling the kernel again) and the -initrd option. To create the "initrd.img-3.0.0-litmus-litmus2011.2" file, I used the following command:
>
> $ mkinitramfs -o initrd.img-3.0.0-litmus-litmus2011.2 3.0.0-litmus-litmus2011.2
>
> In the first time, the mkinitramfs complained, saying that the "/lib/modules/3.0.0-litmus-litmus2011.2" folder didn't exist. I created an empty folder and it stopped complaining (I hope to have done the right thing).
>
> When trying to run the virtual machine with these commands, I'm getting a kernel panic with the following error message:
This is probably not a LITMUS^RT problem. When compiling without modules you don't need an initrd. Everything needed to boot the kernel is already included. Try booting without the -initrd parameter.
For reference, here's what I use to boot kernels in KVM.
kvm -gdb tcp::$SOME_FREE_PORT -smp 4 -hda /path/to/litmus-rt.img -m 2048 -net nic,model=e1000 -net user -k en-us -kernel /path/to/litmus-rt/arch/x86/boot/bzImage -append console=ttyS0 ro root=/dev/hda1 no_timer_check -nographic -redir tcp:$SOME_OTHER_FREE_PORT::22
- Björn
More information about the litmus-dev
mailing list