Hi Cano Pablo,

If my understanding is correct, you may want to flash the images in boot action.

We can flash the same using the below boot action.

"
actions:
- deploy:
    timeout:
      minutes: 10
    to: flasher
    images:
      image:
        url: file: <firmware path>

- boot:
    method: bootloader
    bootloader: u-boot
    commands:
    - ' xxxxx'
    prompts:
    - 'xxxxx'
    timeout:
      minutes: 10

"

1.  Please provide your flash script under   /etc/lava-server/dispatcher-config/devices/<device.jinja2> file as mentioned below under "flasher_deploy_commands"
       Example:  (Note:  {IMAGE}  is the file mentioned in Deply action i.e  "url: file: <firmware path>"
           {% set flasher_deploy_commands = ['/1.py',
                                  'sleep 10',
                                  '/2.py',
                                  'sleep 10',
                                  '/flash.sh "{IMAGE}" &',
                                  'sleep 2',
                                  'sleep 2'] %}
2.  Please mention your bootmethod and bootloader as per your requirement.

Regards,
Koti

On Wed, 2 Feb 2022 at 05:30, <lava-users-request@lists.lavasoftware.org> wrote:
Send Lava-users mailing list submissions to
        lava-users@lists.lavasoftware.org

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        lava-users-request@lists.lavasoftware.org

You can reach the person managing the list at
        lava-users-owner@lists.lavasoftware.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Lava-users digest..."

Today's Topics:

   1. Flashrom (Cano, Pablo)


----------------------------------------------------------------------

Message: 1
Date: Tue, 1 Feb 2022 23:21:42 +0000
From: "Cano, Pablo" <Pablo.Cano@Resideo.com>
Subject: [Lava-users] Flashrom
To: "lava-users@lists.lavasoftware.org"
        <lava-users@lists.lavasoftware.org>
Message-ID:  <SN4PR22MB33174DEF13E85267D949A52B8B269@SN4PR22MB3317.nam
        prd22.prod.outlook.com>
Content-Type: multipart/alternative;    boundary="_000_SN4PR22MB33174D
        EF13E85267D949A52B8B269SN4PR22MB3317namp_"

Hi,
Someone knows how to implement flashrom in the booting action of the device type?
-------------- next part --------------
A message part incompatible with plain text digests has been removed ...
Name: not available
Type: text/html
Size: 529 bytes
Desc: not available

------------------------------

Subject: Digest Footer

_______________________________________________
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

------------------------------

End of Lava-users Digest, Vol 41, Issue 4
*****************************************