FreeBSD blocks on BOCHS serial port

Alexander Lochmann <[email protected]> Mon, 13 Aug 2018 15:52:58 +0200
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <[email protected]>
Hi folks!

We are doing some automatic experiments using FreeBSD running in a
virtual machine.
To control the experiment from the outside, we use serial ports to
communicate with an userspace program.
The communication via serial does work with QEMU. However, it does not
work with BOCHS which is our desired emulator.
Even simple operations like 'echo FOO | tee /dev/ttyu1' or 'cat
/dev/ttyu1' do not work. Both commands block 'forever'.
It does not matter whether we use ttyu0 (file backend) or ttyu1 (tcp
socket).
I put some debug output in <freebsd>/sys/dev/uart/uart_dev_ns8250.c. The
output suggests that the driver more or less reads and writes to the
serial ports. At least it does something...

Do you have any hints how we can further analyze this problem?
Did anyone came across a similar problem?

Thank you!

Regards,
Alex
-- 
Technische Universität Dortmund
Alexander Lochmann                PGP key: 0xBC3EF6FD
Otto-Hahn-Str. 16                 phone:  +49.231.7556141
D-44227 Dortmund                  fax:    +49.231.7556116
http://ess.cs.tu-dortmund.de/Staff/al

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
bochs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bochs-developers
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEElhZsUHzVP0dbkjCRWT7tBbw+9v0FAltxjTsACgkQWT7tBbw+
9v25iBAAjxb8Xu7xcTEGLE32KmeRsuBolqAkCAl1ObAPAJQ+u1VddNs6pz6qTyAx
UKXH8XmskjLvHQ3IsJ6Olb0U9kqc1qQTgPPpMaEZHbCSgD5AZ4WTRgl/1zDl04Yb
b+kSC0ZO8eRayYXROSy0oMUtxMBhtrLf8W2ERd6c95eOV8DjFyiYjV/lOlT6X8pJ
UxVFxNW64PBqh8clUPk6evQmhEoaBNrX9TTmVd3CRDTXzEcYddbjrY+LslvhyRaG
267UmMv5hOjjrkV+mI79Rm+YeIkMb2Rdex93yAwjW4yn79ipG18SbOquUxEjt/Oi
PEPvY+8jDE9njmbAToqei+SvpEH8mnigkPUFJnIpnjTSdWgAOfLK2KwmuGU6ZAFC
pLLsaXwvLgUNlLIl8DXFzuWGJET/DEEevnIc/wKWRjvE6g/QL2PjzijI+6DdMFgW
Y7u283aijGJ/Ms7z7nFJMcukQWYRGmgRrvJ5vrf6ta5gQQeo1VVUGZV/JMAcv2oB
fhqEkG67Op1Ro01dfL2B+SVZCCsHXc9/We6mlsd3y2tHeT6y9YK75+Uf4ZpbIkc1
K4tXneY1kLM2D0fPzjekpv7n2duDGx1CsfE7t+dVY9FQLkXrqyYP63djq/TCTXKz
exuFxph6jVeu8obApZakXciqtrXsxgrOsg5W2+h7aUJD5ro/Mho=
=OEME
-----END PGP SIGNATURE-----