qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] How do I redirect console IO for script use?


From: Alexei Colin
Subject: Re: [Qemu-discuss] How do I redirect console IO for script use?
Date: Mon, 4 Mar 2019 09:39:26 -0500
User-agent: Mutt/1.11.2 (2019-01-07)

> If you're running Linux in the target, configure to run a getty on that
> serial port, with /etc/inittab or with systemd address@hidden

I should add that if you want Linux kernel log to go to a serial
port, you have to arrange that through the kernel boot argument
(how else will the kernel know to do it?), like 
    console=ttyS0,115200n8 earlycon=ttyS0,115200n8 loglevel=8
where ttyS0 name and the baudrate arguments will depend on the emulated
UART hardware model.

I mostly do this on ARM targets, so if there's something special about
serial ports on x86 targets somebody here will probably speak up.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]