Hello,

you can have one job that will do: deploy, boot, deploy, boot.

The first and second deploy/boot can use different method. So maybe in your case, jlink and uboot?


Rgds

Le mar. 2 juin 2020 à 16:16, Nagendra Singamsetti <nag.singam91@gmail.com> a écrit :
Hi Andrei,
I would like share my thought's and results here :

I have created separate jobs . One for flashing with JLink and One for booting Using U-boot/minimal method(for auto login). 
And created 2 different device-type Jinja2 files for flashing/booting calling with 2 different device-dictionary files. 

In the real scenario 2 different device- dictionary files can work on same board.
I have mention same board-id, usb - id in two device dictionary files. Due to this reason worker is creating instance run flashing/booting on same board.

Finally i am able to flash and boot on same board by using different jobs.

Now i m trying with sequence.. Please let me know My procedure is acceptable or not.

Thanks for your good time!!

Regards
Nagendra S

On Fri, May 29, 2020 at 1:37 PM Andrei Gansari <andrei.gansari@nxp.com> wrote:

Hello Nagendra,

 

Not sure how you should go about this, I added JLink support to use on microcontrollers that after flashing start running.

There is another boot method for uboot, maybe create separate jobs for flashing and running uboot?

 

This means running multiple jobs on the same board in sequence, and I don’t have experience doing so.

 

 

Regards,

Andrei

 

From: Nagendra Singamsetti <nag.singam91@gmail.com>
Sent: Thursday, May 28, 2020 4:57 PM
To: lava-users@lists.lavasoftware.org
Cc: andrei.gansari@linaro.org; Andrei Gansari <andrei.gansari@nxp.com>
Subject: [EXT] Unable to run commands on U-boot on Renesas board Using LAVA

 

Caution: EXT Email

Hello Team,

 

With the existing JLink.py library i have modified and able to flash multiple *.bin files in single instance/Job. I have used method : Jlink in boot: 

 

But On the Renesas boards, After flash the binaries through Debugger Say JLink,

Will get U-boot prints at ttyACM0. I can see the prints through ser2net telnet host.

 

Q1. How to send command at uboot level while using JLink boot method. I need to send run xa_boot from uboot prompt: =>

Below is sample Job description :

- boot:
    method: jlink

    prompts: ["=>"]
    commands: ["run xa_boot"]

    timeout:

      minutes: 5

i am getting following error :

Invalid job definition:

extra keys not allowed @ data['actions[1]']['boot']['jlink']['prompts']

 

I tried with out prompts and commands key values in job description Job terminated once the flash has done.

Attached logs for reference:

 

Looking forward for your kind response

 

Thanks 

 

Regards

Nagendra S

 

_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Architect
Linaro