Skip to contentSkip to conversation

QEMU console

Qemu-devel Wesley Wu 1 participant 1 message Mar 18, 2007

lore
Share & tools
lore

Wesley Wu

author
#0 lore raw

Hi all,

I'm running QEMU 0.9.0 under RHEL 4 (I SSH'ed to the Linux machine).

If I issue the following command, it boots up but it won't show the command line prompt.

qemu-system-sparc -L ..*/qemu/pc-bios/* -kernel ../qemu/sparc-test/vmlinux- 2.6.11+tcx -initrd ../qemu/sparc-test/linux.img -append "root=/dev/ram console=ttyS0 video=tcxfb:off" -nographic

The last line showed is "Freeing unused kernel memory: 156k freed". I had to kill the qemu
session from another terminal. But I did see the following lines during its boot-up:

Console: ttyS0 (SunZilog zs0)
ttyS0 at MMIO 0x0 (irq = 44) is a SunZilog
ttyS1 at MMIO 0x0 (irq = 44) is a SunZilog

However, if I remove "console=ttyS0" from the qemu command line, it boots up and I can get the command line prompt as follows (I got the same "Console:
ttyS0 (SunZilog zs0)" message (listed above)):

...
Freeing unused kernel memory: 156k freed
sh: can't access tty; job control turned off

# ls /dev
console  ttyS0    ttyS1    ttyS2    ttyS3
#

Can someone tell me the reason?
Also how do I get rid of the message "sh: can't access tty; job control turned off" (and what it means?) ?

Thanks in advance!
Wesley

P.S. Please reply me directly as I am not in the alias.