Hi,
I have a board here that doesn't boot to a prompt, it boots, but you don't get a prompt until you hit enter. At that point it is the most basic sh prompt (# ). I am hoping to get the developer to get it to a prompt, but until then it would be good to work around that if I can.
I imagine LAVA uses a regexp to detect when a board has booted, but I can't find it in the source. Is it waiting for the command prompt or can I apply some expect style scripting? Do I need a prompt in a specific form for testing? I have seen LAVA with the return code of the previous command in the prompt before, but don't know if I need to get images set up to do that or if I can script setting that up as part of a test or boot process.
Thanks,
On Tue, 23 Jul 2013 18:38:04 +0100 James Tunnicliffe james.tunnicliffe@linaro.org wrote:
I have a board here that doesn't boot to a prompt, it boots, but you don't get a prompt until you hit enter. At that point it is the most basic sh prompt (# ).
If you export PS1, do you get a usable prompt then? LAVA will overlay that support in the test image to a predictable prompt, the same on all boards.
Equally, there is support for sending a blank line over the serial link.
I imagine LAVA uses a regexp to detect when a board has booted, but I can't find it in the source.
lava-dispatcher - target.py which can be overridden for particular board types if you need something specific. (lava_dispatcher/device/)
Is it waiting for the command prompt or can I apply some expect style scripting? Do I need a prompt in a specific form for testing? I have seen LAVA with the return code of the previous command in the prompt before, but don't know if I need to get images set up to do that or if I can script setting that up as part of a test or boot process.
lava_test_shell will provide that scripting. (MultiNode extends that support to add more stuff).
linaro-validation@lists.linaro.org