Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2018 15:52:56 +0200
From:      Alexander Lochmann <alexander.lochmann@tu-dortmund.de>
To:        freebsd-stable@freebsd.org
Subject:   FreeBSD blocks on BOCHS serial port
Message-ID:  <e0c6883a-ed3c-c48e-6821-05d0aa3eb034@tu-dortmund.de>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--hR5zCl3P5QsggdgZxGqCfWS66AwlESf8q
Content-Type: multipart/mixed; boundary="Sz4hhFX5TJxKBL3BtVOesFw3xC7UQEjl9";
 protected-headers="v1"
From: Alexander Lochmann <alexander.lochmann@tu-dortmund.de>
To: freebsd-stable@freebsd.org
Message-ID: <e0c6883a-ed3c-c48e-6821-05d0aa3eb034@tu-dortmund.de>
Subject: FreeBSD blocks on BOCHS serial port

--Sz4hhFX5TJxKBL3BtVOesFw3xC7UQEjl9
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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 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

--=20
Technische Universit=C3=A4t 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


--Sz4hhFX5TJxKBL3BtVOesFw3xC7UQEjl9--

--hR5zCl3P5QsggdgZxGqCfWS66AwlESf8q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEElhZsUHzVP0dbkjCRWT7tBbw+9v0FAltxjTgACgkQWT7tBbw+
9v0zrg/8CSX2VNEwbE4d15xUT6AdSRNK55yDDStN87XOG/FToeh7Wv9GlyC8Xdmf
mTFirRyLV+GZHn2BvBgzma0eRT8yfTmfSIhrzlgIKCoUDxqKdAElg62C65cXGdE5
dcIThtZoiFgouJyVSNNrQ1AR0dH6nM+20pbKbwTmf2Qh1R+dk6x7q8lpmJBywKCX
PtbiMvnOKrUAap6CJAi94704WACk4phemmyCdOUGA5gQYAFXQYwe0+9AQIkJgAUN
jtlojbKGsgu5bqRmEXA44AikhhFNb3I7ppfMjbFFaug/w3a5WwC7/v9tkVIsk5J9
YTCuJjQTTW3tJ/JtqfFIPmUITlUyiT+SfAPfBqATXGI9U0IRcAwisDwzQs9Q8V06
bC+2vWaTMsKc/M9sw4SWs3ruW+okHv1ri2vVH7B+Y+ESjccbAFerURYps4SPQkpb
VzaiB+m2FtvY5+r0yvcCIYy/pUOExlD0C3Mpo7MmEJcpDYs05b9chLRo+jkDhjZt
4XK+wOYZxz8gBJGvpcNPpP457XjZma78iBZwX6Uqo3rFi3VruHtcZsqeb2Aj6IfT
BTktEqVjmff9HvqZLLBQUDyDw0CYVdLMgSX+qwsDKYnj9GVy7Li9E7+oWpoVINDZ
XrE//G4Yjz1wnVzbPOJgCWEZmW0c5BObVRVCi8QkLEborJOhLXU=
=O1Ll
-----END PGP SIGNATURE-----

--hR5zCl3P5QsggdgZxGqCfWS66AwlESf8q--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e0c6883a-ed3c-c48e-6821-05d0aa3eb034>