On Wed, 26 Sep 2018 at 15:28, Oana Ercus <oana.ercus@linaro.org> wrote:
Hi everyone,

I'm a newbie to LAVA, so this may be a stupid question, but I have no idea how to fix this issue.
I am using a device for which I enabled the usage of the second serial port as described in the example beaglebone-black job with a second serial port - it seems that the configuration works fine, I was able to enable the secondary connection.

But *why* are you trying to use this support? Just because it exists, does not mean it can be used for something radically different. Multiple serial port support exists to solve problems with interleaved kernel messages. It is not about multiple, incompatible, shells.

What are you trying to execute on this RTOS shell?

The problem is the following: the second serial port connects to a different shell, which at this moment is used for freeRTOS application, and its prompt ("SHELL>>") is different of the primary connection prompt  which is used for Linux("root@imx8mqevk").  When trying to actually run some commands on freeRTOS, I get timeout error and I have no idea how to fix it. 

Support for multiple serial ports in LAVA still relies on the other serial ports behaving as POSIX shells. Your RTOS shell is not POSIX, it fails to accept a command to repeat the prompt.

- {"dt": "2018-09-26T09:52:44.645577", "lvl": "target", "msg": "Incorrect command parameter(s).  Enter \\\"help\\\" to view a list of available commands."}

That is not POSIX behaviour.

Equally, I'm not sure why you are trying to access the second serial port on this device, the primary serial port works fine without interleaved kernel messages. Don't abuse the support for multiple serial ports when what you've actually got is multiple and incompatible shells, effectively a separate operating system.

I attached to this e-mail my test job definition, together with the log and the snip from my web.

In future, please just attach the job_log plain as a YAML file, it is much easier to read than a screenshot of the UI. which just wastes space.


Thanks in advance for your support,


Lava-users mailing list