Hi Pavan,

if there's really no difference, then you are not using the correct string. Is the prompt really "press enter", or might it be that it is like "Press ENTER to activate this console" or "Please press Enter to activate this console"? That's a difference. You need to use a string that your device really displays on console.

Regards
Stefan

On 2023-05-18 07:30, pawanKumar wrote:
Hi Stefan,

Did you mean 
auto_login:
login_prompt: "press enter"

I tried it but there is no difference, it results in the same error.
Any suggestions?

Best Regards
Pavan Kumar


On Wed, May 17, 2023 at 10:58 AM Stefan <lists.lavasoftware.org_23@green-sparklet.de> wrote:
Hi Pavan,

what happens if you set the 'login_prompt' to (parts of) that "press enter" string?
Sure it doesn't work currently, because the string you configured doesn't get displayed

Stefan


Am 17. Mai 2023 07:00:31 MESZ schrieb pawanKumar <pawan4749@gmail.com>:
Hi

The auto-login feature is not working here, job is failing with "wait for Prompt timed out".
As I mentioned in a previous email, after completion the log login prompt is not displayed automatically and you need to press enter key to see the login prompt.

Below is the definition I'm using:

device_type: DEVICE-TYPE1
job_name: boot the device
timeouts:
  job:
    minutes: 15
  action:
    minutes: 10
  connection:
    minutes: 5
visibility: public
actions:
- command:
     name: relay_pwr_on
     timeout:
        minutes: 1
- boot:
    method: u-boot
    commands:
       - boot
    auto_login:
      login_prompt: 'rezi-703683 login:'
      username: root
      login_commands:
      - touch /home/root/test_file
      - ifconfig band0
      - cat /etc/os-release
    prompts:
    - 'root@rezi'
    - '#'
prompt-timeout.PNG
Best Regards
Pavan Kumar


On Tue, May 16, 2023 at 12:53 PM Remi Duraffort <remi.duraffort@linaro.org> wrote:


Le lun. 15 mai 2023 à 11:32, pawanKumar <pawan4749@gmail.com> a écrit :
Hi Stefan,

It means after the boot process completion, i should press "enter" then only it displays a login prompt to pass username then enters into the system.

As answered by stefan, using auto-login feature should work.
 

Please check the attachment.


Best Regards
Pavan Kumar


On Mon, May 15, 2023 at 1:22 PM Stefan <lists.lavasoftware.org_23@green-sparklet.de> wrote:
Hey Pavan kumar,

what do mean by "after U-Boot process completion"? What does your config look like? Are you still in U-Boot, or did you already boot up your system?

For the first one, it would help to modify |'||base_uboot_bootcmd' which can be overridden in your device template.

If your system is already booted up, it would be up to auto_login <https://docs.lavasoftware.org/lava/actions-boot.html#auto-login> to be configured properly and take over.

Regards
Stefan
|
On 5/15/2023 9:29 AM, pawanKumar wrote:
> Hello Team,
>
> Good Day to you!
>
> I have a requirement to pass "enter" key after u-boot process completion, to enter into the system.
> Without pressing any key cannot enter into prompt and it stays stagnant.
>
> Please let me know how to pass "enter" press key at the end of u-boot log.
>
>
> Thanks
> Pavan kumar 
>
> _______________________________________________
> Lava-users mailing list -- lava-users@lists.lavasoftware.org
> To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

_______________________________________________
Lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
Lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


--
Rémi Duraffort
Principal Tech Lead
Automation Software Team
Linaro
_______________________________________________
Lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

_______________________________________________
Lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s