rtems-test with serial device and run.cfg
Jan.Sommer at dlr.de
Jan.Sommer at dlr.de
Tue Apr 7 13:37:09 UTC 2020
Hello,
I have trouble figuring out how to run rtems-test with a custom command where the output is captured through a serial console.
In my ini-file I used
bsp_tty_dev = /dev/ttyUSB2
tester = %{_rtscripts}/run.cfg
bsp_run_cmd = i386-run
target_off_command = i386-stop
We have a custom command which prepares the target device.
The device is connected to the development machine (running Linux) via a serial connection.
Now, the above did not work, since the run.cfg ignores the "bsp_tty_dev" setting and always assumes results via stdout.
When I change that, rtems-test tries to open the /dev/ttyUSB2 device, but fails to do so with:
error: opening tty dev: /dev/ttyUSB2: unknown
Which seems to be caused by this:
Traceback (most recent call last):
File "stty.py", line 77, in __init__
self.fd = open(dev, 'rw')
ValueError: must have exactly one of create/read/write/append mode
I am not that familiar with the rtems-test internals. Do I need a different kind of configuration?
How do others use the "bsp_tty_dev" option (e.g. in the tftp tester)?
Best regards,
Jan
Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
German Aerospace Center
Simulation and Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
Jan Sommer
Telephone +49 531 295-2494 | Telefax 0531 295-2767 | jan.sommer at dlr.de
DLR.de/SC
More information about the users
mailing list