[Buildroot] /dev/ttyS0 in filesystem created by Buildroot can't be opened in Qemu
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jul 13 21:03:04 UTC 2012
Le Tue, 10 Jul 2012 17:13:16 +0200,
Mihajlo Jovanović <jovanovic.mihajlo at gmail.com> a écrit :
> However, just for testing purposes, I have launched qemu with
> "console=tty1" and then I got correct output in terminal window, whereas in
> Qemu window there was Tux and outputs were finished with "Starting
> network...". Probably the reason for that is discrepancy between specifying
> "tty1" in Qemu invocation, and at the same time selecting "ttyAMA0" in
> menuconfig
You're confusing two different things:
(1) The console=ttyXX kernel parameter. This tells the kernel were to
output its messages, i.e all the messages displayed by kernel
drivers and subsystems.
(2) The ttyXX on which the getty program is run. getty is the userspace
program that implements the login prompt. In Buildroot, it is
started directly by Busybox init, as specified in the /etc/inittab
file. The option in System configuration -> Port to run getty on
adjust this tty.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list