Skip to contentSkip to conversation

FreeBSD-amd64 guest, monitor does not respond

Qemu-devel Juergen Lock 2 participants 3 messages Jan 16, 2005 – Jan 17, 2005

lore
Share & tools
lore
#0 lore raw

I was curious today and tried the FreeBSD-amd64 install iso in qemu,

	qemu-system-x86_64 -m 256 -monitor stdio -cdrom 5.3-RELEASE-amd64-bootonly.iso -boot d

and, (actually i tried miniinst first, but bootonly is smaller and shows the same result) qemu hangs when starting the kernel, the monitor does not respond, all I can do is ^c it. (the started kernel is supposed to print messages starting with the copyright but it doesnt even get to that.)

So, question: what does it mean when the monitor doesnt respond?
infinite loop in the translated code?

Well, i just tried it in gdb and this is what i get when ^c'ing it:

Program received signal SIGINT, Interrupt.
[Switching to Thread 1077076096 (LWP 18901)] 0x080f00ee in do_interrupt64 (intno=13, is_int=0, error_code=0,

    next_eip=4626569007820963840, is_hw=0) at softmmu_header.h:237
237     {
(gdb) bt
#0  0x080f00ee in do_interrupt64 (intno=13, is_int=0, error_code=0, 
    next_eip=4626569007820963840, is_hw=0) at softmmu_header.h:237
#1  0x080a85ae in cpu_x86_exec (env1=0x908b528)
    at /home/knoppix/qemu/qemu/cpu-exec.c:199
#2  0x0804e5f1 in main_loop () at /home/knoppix/qemu/qemu/vl.c:2675
#3  0x0804f5cc in main (argc=161702, argv=0x0)
    at /home/knoppix/qemu/qemu/vl.c:3671

(gdb)

so its processing interrupts apparently, but why does that `hang' qemu?

mirrors for bootonly and the other isos can be found here:
http://mirrorlist.freebsd.org/
for example:

	ftp://ftp.fr.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/5.3/

(bootonly is some 20M, the others are larger)

Cheers,
Juergen

#1 lore raw
Quoted 6 lines · Juergen Lock

I was curious today and tried the FreeBSD-amd64 install iso in qemu,

	qemu-system-x86_64 -m 256 -monitor stdio -cdrom 5.3-RELEASE-amd64-bootonly.iso -boot d

and, (actually i tried miniinst first, but bootonly is smaller and shows the same result) qemu hangs when starting the kernel, the monitor does not respond, all I can do is ^c it. (the started kernel is supposed to print messages starting with the copyright but it doesnt even get to that.)

With my last patch the FreeBSD kernel boots, but user mode apps seem to have problems.

Fabrice.

#2 lore raw

In article <[email protected]> you write:

Quoted 10 lines
Quoted 6 lines · Juergen Lock

I was curious today and tried the FreeBSD-amd64 install iso in qemu,

	qemu-system-x86_64 -m 256 -monitor stdio -cdrom 5.3-RELEASE-amd64-bootonly.iso -boot d

and, (actually i tried miniinst first, but bootonly is smaller and shows the same result) qemu hangs when starting the kernel, the monitor does not respond, all I can do is ^c it. (the started kernel is supposed to print messages starting with the copyright but it doesnt even get to that.)

With my last patch the FreeBSD kernel boots, but user mode apps seem to have problems.

Seems to be some tty problem: ^t says sysinstall is sleeping in ttyin, if i hit return it comes up, but with garbled formatting. I can even start a shell on ttyv4 (cursor right and return for no to the load kernel modules question, return until the (also misformatted) main menu appears, f' and return for fixit, 4' and return for shell, then sendkey alt-f4' in the monitor.) The shell misses its prompt but other than that it seems to work, at least I can do things like pwd', echo *', or find .'

So apparently some bug in qemu makes the tty code misbehave...

Juergen