Hello Milosz,

Thanks for helping me so far.  
I did the following to rule out the device dictionary issue. I re-enabled the linux version logs in my image and now using full welcome message. Now I am getting kernel parsing messages but my prompt is not getting matched

Job description:
- boot:
    timeout:
      minutes: 15
    method: qemu
    media: tmpfs
    prompts:
    - 'device-mgmt login:'
    - 'root@device-mgmt'
    - 'You are currently connected via: ttyS0 (115200)'
    auto_login:
      login_prompt: "device-mgmt login:"
      username: root
      password_prompt: "Password:"
      password: "root"

Attaching the job logs. I still think my welcome messages are doing the trick. Hope you can guide more .

Thanks,
Sweta

From: Milosz Wasilewski <milosz.wasilewski@foundries.io>
Sent: Wednesday, October 30, 2024 2:18 AM
To: Sweta Ghosh <sweta.ghosh@nagarro.com>
Cc: Stefan <lists.lavasoftware.org_23@green-sparklet.de>; lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
Subject: Re: [lava-users] Re: Auto login fails after adding banner message before login prompt
 
[Email from a non-Nagarro source: please exercise caution with links and attachments]


On Tue, Oct 29, 2024 at 3:55 PM Sweta Ghosh <sweta.ghosh@nagarro.com> wrote:
>
> Hello Milosz,
>
> I updated the job as suggested. But even though it is matching the prompt successfully the "kernel-messages" as passed. It stays in hung state and fails after timeout.
>
> - boot:
>     timeout:
>       minutes: 15
>     method: qemu
>     media: tmpfs
>     prompts:
>     - 'root@device-mgmt'
>     auto_login:
>       login_prompt: "device-mgmt login:"
>       username: root
>       password_prompt: "Password:"
>       password: "root"
>
> Please find the logs attched.

I don't think I can help here. There is something wrong in the device
dict, a job definition or both. The log shows this after matching the
login prompt:

Setting prompt string to ['\\r']

This is incorrect. It should have a list of prompts from the boot
action. My example below:

https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flava.infra.foundries.io%2Fscheduler%2Fjob%2F54821%23L1274&data=05%7C02%7Csweta.ghosh%40nagarro.com%7Ca9097c1bca024f86bb3b08dcf85b18b4%7Ca45fe71af4804e42ad5eaff33165aa35%7C0%7C0%7C638658317402016615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=GcgjdeEXCVGZtVZiPoG1Mxqwj8myVO%2FEksD0upLbESE%3D&reserved=0
Setting prompt string to ['fio@am62xx-evm', 'Password:', 'root@am62xx-evm']

It looks like you have a new line character somewhere and it's causing issues.

Best Regards,
Milosz