Skip to contentSkip to conversation

Linux 2.6.10 ?

Qemu-devel Der Herr Hofrat 5 participants 12 messages May 8, 2005 – May 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

(qemu)

thats it - the 2.6.10 is compiled as generic 686 and works fine on the box

thx !

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

#1 lore raw

it's ok with me on a XP host and running linux 2.6.10 with either -kernel option (remember you need an -hda too) and inside an iso.

It also works inside a -fda too.

What is your exact cmd line ?

Christian

Quoted 25 lines · Der Herr Hofrat

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

(qemu)

thats it - the 2.6.10 is compiled as generic 686 and works fine on the box

thx !

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 1 line
Christian
#2 lore raw
Quoted 7 lines

it's ok with me on a XP host and running linux 2.6.10 with either -kernel option (remember you need an -hda too) and inside an iso.

It also works inside a -fda too.

What is your exact cmd line ?

qemu -nographic \
	-hda linux.img \
	-kernel bzImage \
	-append "root=/dev/hda mem=64M"

The same kernel boots on the system without any problem - in fact it was running whyle trying to run qemu - so I guess its not a basic config problem of the kernel. There is absolutely no output from the boot process what so ever though.

thx !

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

#3 lore raw
Quoted 5 lines · Der Herr Hofrat
Quoted 5 lines

it's ok with me on a XP host and running linux 2.6.10 with either -kernel option (remember you need an -hda too) and inside an iso.

It also works inside a -fda too.

Quoted 7 lines
Quoted 2 lines

What is your exact cmd line ?

qemu -nographic \
	-hda linux.img \
	-kernel bzImage \
	-append "root=/dev/hda mem=64M"

Eh? -nographic but you didn't tell the kernel to use the serial port as console? Where is the kernel output supposed to go here?

-append "root=/dev/hda mem=64M console=ttyS0"

should work better.

Regards
Henrik

#4 lore raw
Quoted 15 lines · Der Herr Hofrat
Quoted 6 lines
Quoted 6 lines

it's ok with me on a XP host and running linux 2.6.10 with either -kernel option (remember you need an -hda too) and inside an iso.

It also works inside a -fda too.

Quoted 7 lines
Quoted 2 lines

What is your exact cmd line ?

qemu -nographic \
	-hda linux.img \
	-kernel bzImage \
	-append "root=/dev/hda mem=64M"
Quoted 7 lines

Eh? -nographic but you didn't tell the kernel to use the serial port as console? Where is the kernel output supposed to go here?

-append "root=/dev/hda mem=64M console=ttyS0"

should work better.

console= only would influence the output of init and beond atleast up to the attempt to open the console
the kernel messages should appear any way.
as they do with 2.4.21. I'l give it a shot with a setup from scratch - as this is my first attempt at qemu I might have doene something very basic wrong.

thanks!

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

#5 lore raw

@Nicholas

Just to make sure, I'll be sending you off-list a "tiny" 2.6.10 kernel with a minimalistic embedded initramfs. It's quite small (<600k), just to check qemu is working fine.

To use it, just do (tested with mingw/qemu-0.7.0):
qemu-img create -f qcow hda.img 32M
qemu -L . -hda hda.img -kernel tiny

This kernel is self-sufficient, and only needs "-kernel" to boot. :)

Christian

#6 lore raw
In reply to Der Herr Hofrat
Quoted 4 lines · Der Herr Hofrat

console= only would influence the output of init and beond atleast up to the attempt to open the console
the kernel messages should appear any way.
as they do with 2.4.21.

You don't get any kenel console output in Linux-2.4 or Linux-2.6 if console= is not specified and -nographic is used. This because the VGA controller is still precent according to the PCI BIOS, just not emulated. Because the Linux kernel finds the VGA controller it automatically selects this as the kernel console.

If you compile your kernel without VGA console support then specifying console= is not required, as the kernel will then automatically select the serial console as this is the first available console device the kernel knows about.

Regards
Henrik

#7 lore raw
In reply to Der Herr Hofrat
Quoted 6 lines · Der Herr Hofrat

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

(qemu)

You need to make sure you have the sdl development headers and libraries installed when you compile qemu. Otherwise all graphical output will be disabled.

Check that configure says "SDL support yes"

The other alternative is to configure your guest to communicate over the serial port.

Paul

#8 lore raw
Quoted 8 lines · Der Herr Hofrat
Quoted 6 lines

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

(qemu)

Quoted 9 lines

You need to make sure you have the sdl development headers and libraries installed when you compile qemu. Otherwise all graphical output will be disabled.

Check that configure says "SDL support yes"

The other alternative is to configure your guest to communicate over the serial port.

I checked that by using the 2.4.21 that came packaged in the linux-test - that boots up without any problems - 2.4.26 (Slackware default kernel) also worked so I assumed its really related to 2.6.X.

SDL support is set to yes - but boot tests were done with -nographic .

thx!

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

#9 lore raw
In reply to Der Herr Hofrat
Quoted 5 lines · Der Herr Hofrat

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

works fine here with and without graphical output for using qemu-fast x86/x86 you might want to look at the following patches/configs:

http://vserver.13thfloor.at/Stuff/QEMU/

HTH,
Herbert

Quoted 19 lines

(qemu)

thats it - the 2.6.10 is compiled as generic 686 and works fine on the box

thx !

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#10 lore raw
Quoted 13 lines · Der Herr Hofrat
Quoted 5 lines

Hi !

does anybody have a 2.6.X (preferably 2.6.10) running under qemu ? trying to launch it (passed with -kernel) fails - it simply gives me

works fine here with and without graphical output for using qemu-fast x86/x86 you might want to look at the following patches/configs:

http://vserver.13thfloor.at/Stuff/QEMU/

just grabed the bzImage from your web-page and checked what it does - same behavior the only output is a single line:

(qemu)

I noticed that you had a number of patches in that directory and had mirrors of qemu up to 0.6.1 - I'm trying this with 0.6.2 - so did you have to apply any of those patches in there to get it to work with 0.6.1 ?

thx !

Nicholas Mc Guire                               e-mail: [email protected]
OpenTech EDV-Research GmbH                      Embedded GNU/Linux/RTLinux
Lichtenstein Str. 31 2130 Mistelbach            web   :http://www.opentech.at/
phone :+43 2572 201082                          fax   :+43 2572 201084

news: 7th Real Time Linux Workshop, 2-4 Nov 2004, Lille France - details at
http://www.realtimelinuxfoundation.org/events/events.html soon

#11 lore raw

for me it's working on a XP host with qemu 0.7.0.
I can see the ouput errors on the serial console of qemu. Neat :) I just miss a initrd...

I've been compiling 2.6.x guests since qemu 0.6.0, and the only pb I have are regarding stable framebuffer switching. It works on the host but not always inside qemu :(

Christian

Quoted 13 lines · Der Herr Hofrat
Quoted 3 lines

http://vserver.13thfloor.at/Stuff/QEMU/

just grabed the bzImage from your web-page and checked what it does - same behavior the only output is a single line:

(qemu)

I noticed that you had a number of patches in that directory and had mirrors of qemu up to 0.6.1 - I'm trying this with 0.6.2 - so did you have to apply any of those patches in there to get it to work with 0.6.1 ?

thx !