[Fuego] Error while running a test on target connected to serial interface
dhinakar.k at gmail.com
Wed Jun 14 04:22:12 UTC 2017
Thanks for your response.
Please see my comments inline.
On Jun 14, 2017 5:59 AM, "Bird, Timothy" <Tim.Bird at sony.com> wrote:
> -----Original Message-----
> From: dhinakar k on Monday, June 12, 2017 1:14 PM
> I downloaded serlogin from https://GitHub.com/tbird20d/
> and copied it to the /usr/local/bin folder inside the container.
Very good! Sorry you had to figure this out on your own.
It's in the Dockerfile in the next branch. I'm guessing
you are still running with an older docker container (based
on v1.1). We really should write a script to move test results
data from an old docker container to the next one, to avoid
people being reluctant to upgrade their containers. Sorry
for the extra pain this has caused you.
#### No problems. Infact I moved 'fuego' also to 'next' branch but somehow
it is stuck at the last stage where it has to start the Jenkins ci server,
threw some error, I will reproduce and let you know the error in another
thread. So I couldn't try it out.
> But now I get 'could not open port ttyUSB0: [Error2] No such file or
> directory:'ttyUSB0' even though it was available (I manually checked it)
It probably needs /dev/ttyUSB0, or there is a permission problem.
Did you build the docker container with 'docker-create-usb-privileged-
Are you using
in your board file?
I think serlogin requires the latter format. This needs to be documented.
Is using SERIAL=/dev/ttyUSB0
Permissions have been given to /dev/ttyUSB0 , so I think no issue there.
> At the prompt inside container I tried 'serlogin -d /dev/ttyUSB0 root'
> 'warning: could not verify shell status' error. I manually checked on the
> via minicom, the shell was pointing to 'bash' shell.
To verify that we are sitting at a shell prompt, serlogin does the following
ls / | grep ^sb.*n
This does a directory listing of the root directory, then pipes the results
to grep, looking for the pattern '^sb.*n'. If we're at a shell prompt and
we have a normal root filesystem that has /sbin as a directory, then
this should output '/sbin'.
#### ls / | grep ^sb.*n on target board returns 'sbin'
I thought serlogin will login to target by itself? Should I keep my target
logged in? I think I have tried that as well...
So either 1) we're not really at a shell prompt where we can execute
or 2) /sbin is missing, or 3) there is some permission problem doing 'ls
4) something is eating input so that serlogin is not seeing 'sbin' in the
Can you execute the above command manually at your shell prompt, and see
if you see 'sbin' among the strings in the listing? Also, make sure that
not have a terminal on the serial port at the same time that fuego (and
are trying to use the serial port to talk to the target board.
Let me know what you find out.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Fuego