Discussion:
[Qemu-discuss] Problem with qemu-system-mips. Only got a black screen
Jaime
2012-10-03 20:57:57 UTC
Permalink
Hello,

I'm trying to use qemu-system-mips with no results, nothing but a black
screen appears.
I've used both qemu package from ubuntu 12.04 (1.0.50) and local
version compiled (1.2.0 and 1.2.50) with same results.
Here is the configure:
./configure --target-list=mips-softmmu,mips-linux-user
make

It compiles without problem. But when running:

mips-softmmu/qemu-system-mips -kernel
~/Descargas/mips-test/vmlinux-2.6.18-3-qemu -initrd
~/Descargas/mips-test/initrd.gz --append "console=/dev/ttyS0,init=/bin/bash"

this shows a black screen, anything else, no messages in the window nor
in the console.
I downloaded mips-test image from http://wiki.qemu.org/Testing but also
I've tested other (which is the one I'm interested on, using OpenWrt)
with same results.

Any idea what's going on?

Thanks!

Jaime
Mike Lovell
2012-10-04 18:02:25 UTC
Permalink
Post by Jaime
Hello,
I'm trying to use qemu-system-mips with no results, nothing but a
black screen appears.
I've used both qemu package from ubuntu 12.04 (1.0.50) and local
version compiled (1.2.0 and 1.2.50) with same results.
./configure --target-list=mips-softmmu,mips-linux-user
make
mips-softmmu/qemu-system-mips -kernel
~/Descargas/mips-test/vmlinux-2.6.18-3-qemu -initrd
~/Descargas/mips-test/initrd.gz --append
"console=/dev/ttyS0,init=/bin/bash"
this shows a black screen, anything else, no messages in the window
nor in the console.
I downloaded mips-test image from http://wiki.qemu.org/Testing but
also I've tested other (which is the one I'm interested on, using
OpenWrt) with same results.
Any idea what's going on?
Thanks!
Jaime
the window that opens when you run qemu-system-* is the graphical
console output of the guest. pressing ctrl-alt-1 will change to the
console for the qemu monitor. pressing ctrl-alt-2 will change to a
console for a serial port to the guest. the "console=/dev/ttyS0" option
on --append tells the kernel to use a serial console for its output
which should show up when you change to the serial console by pressing
ctrl-alt-2.

mike
Jaime
2012-10-04 19:21:30 UTC
Permalink
Post by Mike Lovell
Post by Jaime
Hello,
I'm trying to use qemu-system-mips with no results, nothing but a
black screen appears.
I've used both qemu package from ubuntu 12.04 (1.0.50) and local
version compiled (1.2.0 and 1.2.50) with same results.
./configure --target-list=mips-softmmu,mips-linux-user
make
mips-softmmu/qemu-system-mips -kernel
~/Descargas/mips-test/vmlinux-2.6.18-3-qemu -initrd
~/Descargas/mips-test/initrd.gz --append
"console=/dev/ttyS0,init=/bin/bash"
this shows a black screen, anything else, no messages in the window
nor in the console.
I downloaded mips-test image from http://wiki.qemu.org/Testing but
also I've tested other (which is the one I'm interested on, using
OpenWrt) with same results.
Any idea what's going on?
Thanks!
Jaime
the window that opens when you run qemu-system-* is the graphical
console output of the guest. pressing ctrl-alt-1 will change to the
console for the qemu monitor. pressing ctrl-alt-2 will change to a
console for a serial port to the guest. the "console=/dev/ttyS0"
option on --append tells the kernel to use a serial console for its
output which should show up when you change to the serial console by
pressing ctrl-alt-2.
mike
I've checked both graphical output and console (with ctr-alt-1 and
ctrl-alt-3) but they're empty. I get a "normal" behaviour if I test
qemu-system-i386, the console starts to print a lot of information.
Regardless something is wrong with initrd or append parameters, at least
you will see some output sent by the emulated kernel. This isn't
happening when executing qemu-system-mips, nothing appears to run
(except for the fact that the process is consuming 99% of cpu
resources), the console doesn't even show an error message.
I've tested also other "--append" and -nographic combinations with the
same result.

This is my cpu:

vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl
vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm dtherm tpr_shadow vnmi
flexpriority
bogomips : 4987.51
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual

Could it be some cpu, or libraries issue?

Thanks

Jaime
Jaime
2012-10-09 20:00:54 UTC
Permalink
Does qemu-system-mips works for anyone?
If affirmative could him please tell me what system is he using?
I'm getting out of ideas..
Post by Jaime
Post by Mike Lovell
Post by Jaime
Hello,
I'm trying to use qemu-system-mips with no results, nothing but a
black screen appears.
I've used both qemu package from ubuntu 12.04 (1.0.50) and local
version compiled (1.2.0 and 1.2.50) with same results.
./configure --target-list=mips-softmmu,mips-linux-user
make
mips-softmmu/qemu-system-mips -kernel
~/Descargas/mips-test/vmlinux-2.6.18-3-qemu -initrd
~/Descargas/mips-test/initrd.gz --append
"console=/dev/ttyS0,init=/bin/bash"
this shows a black screen, anything else, no messages in the window
nor in the console.
I downloaded mips-test image from http://wiki.qemu.org/Testing but
also I've tested other (which is the one I'm interested on, using
OpenWrt) with same results.
Any idea what's going on?
Thanks!
Jaime
the window that opens when you run qemu-system-* is the graphical
console output of the guest. pressing ctrl-alt-1 will change to the
console for the qemu monitor. pressing ctrl-alt-2 will change to a
console for a serial port to the guest. the "console=/dev/ttyS0"
option on --append tells the kernel to use a serial console for its
output which should show up when you change to the serial console by
pressing ctrl-alt-2.
mike
I've checked both graphical output and console (with ctr-alt-1 and
ctrl-alt-3) but they're empty. I get a "normal" behaviour if I test
qemu-system-i386, the console starts to print a lot of information.
Regardless something is wrong with initrd or append parameters, at
least you will see some output sent by the emulated kernel. This isn't
happening when executing qemu-system-mips, nothing appears to run
(except for the fact that the process is consuming 99% of cpu
resources), the console doesn't even show an error message.
I've tested also other "--append" and -nographic combinations with the
same result.
vendor_id : GenuineIntel
cpu family : 6
model : 23
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor
ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm dtherm
tpr_shadow vnmi flexpriority
bogomips : 4987.51
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
Could it be some cpu, or libraries issue?
Thanks
Jaime
Loading...