[tbot] [PATCH] tbot: Provide login_delay parameter for Linux board
hs at denx.de
Wed Mar 6 07:16:35 UTC 2019
Am 05.03.2019 um 11:16 schrieb Stefano Babic:
> Hallo Harald,
> On 05/03/19 07:29, Harald Seiler wrote:
>> Hello Lukasz,
>> thank you for your patches! The first one is perfect, I'll apply it asap.
>> With the second one I'm not quite happy: I tried to keep the use of timeouts
>> to an absolute minimum in tbot to A) make it as fast as possible and B) as
>> robust as possible. Timeouts introduce unnecessary delays and can break easily
>> if they were not set with enough tolerance (which makes things very sloow).
> Well, they should just be configurable and skipped if not required.
>> Now I am completely aware of the issue you try to solve here as I have fought
>> this exact problem myself in the past. My current best bet for a solution would
>> be calling `sysctl kernel.printk 1 1 1 1` at the start of each board session to
>> at least keep the kernel from clobbering the console.
> This is not a generic solution - it changes the product and it is a fix
> just in case output is coming from kernel. There are a lot of cases
> where customer's application is just printing to the console at the
> start up. A delay lets us to configure it on project basis, and dropping
> kernel output does not help.
Hmm... I do not like delays ... in my old version of tbot this caused
just trouble ...
If the output is on every boot the same, may we make it possible to
configure a string/regular expression we expect, before loging in ?
If you have random output on your hardware this will make it not easy
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the tbot