Larry,

I created an issue to track it: https://git.lavasoftware.org/lava/lava/issues/344
I don't know why the new char needs to be sent. Most likely there was a case like this in the past.

milosz

On Thu, 7 Nov 2019 at 09:22, Larry Shen <larry.shen@nxp.com> wrote:

Guys,

 

We have a problem as next:

 

 

The story is we have kernel exception when device boot, then per next code:

 

if index == cls.TRACE or index == cls.EXCEPTION:

                res = "fail"

                if action:

                    action.logger.warning(

                        "%s: %s" % (action.name, cls.MESSAGE_CHOICES[index][2])

                    )

                # TRACE may need a newline to force a prompt

                connection.sendline(connection.check_char)

 

It will send a “#” to device, but unfortunately, the exception time is too close the final login, then the “#” was sent to user login as next:

Imx8qxpmek login: #

 

Then when we send “root”, it definitely cannot login, how to resolve?

More, why lava send “#” to device when kernel have exception?

_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users