You should first register in https://lists.lavasoftware.org/mailman/listinfo/lava-users before ask questions I guess. Otherwise, the maillist can't receive your question, see this: https://lists.lavasoftware.org/pipermail/lava-users/2021-October/thread.html
Back to your question, I guess you define a customized "imx8m" device type, what we used is e.g. imx8mp-ab2 or others: https://git.lavasoftware.org/lava/lava/-/blob/master/etc/dispatcher-config/d...
It extends from imx8m-common, and finally extends from base-uboot.jinja2: https://git.lavasoftware.org/lava/lava/-/blob/master/etc/dispatcher-config/d..., in this file, we define "uuu" keyword.
So if you want to define your own devicetypes, you will have to somehow define your own device types extends from "base-uboot.jinja2", or try to use NXP upstreamed device types.
Regards, Larry
-----Original Message----- From: Davis Roman davis.roman84@gmail.com Sent: Monday, November 1, 2021 9:13 AM To: Larry Shen larry.shen@nxp.com; lava-users@lists.lavasoftware.org Subject: [EXT] using 'uuu' boot action results in KeyError: 'uuu' on v2021.09
Caution: EXT Email
Hello,
I received an error message when using the 'uuu' boot action on v2021.09. I tried poking around through the lava source but I'm still fairly new to the repo so I'm a bit stumped. Any comments or suggestions would be greatly appreciated.
Thank you,
Davis
Traceback (most recent call last): File "/bin/lava-run", line 240, in main job = parse_job_file(logger, options) File "/bin/lava-run", line 151, in parse_job_file env_dut=env_dut, File "/usr/lib/python3/dist-packages/lava_dispatcher/parser.py", line 163, in parse test_counts[namespace], File "/usr/lib/python3/dist-packages/lava_dispatcher/parser.py", line 47, in parse_action cls = Boot.select(device, parameters) File "/usr/lib/python3/dist-packages/lava_dispatcher/logical.py", line 276, in select res = c.accepts(device, parameters) File "/usr/lib/python3/dist-packages/lava_dispatcher/actions/boot/uuu.py", line 119, in accepts params = device["actions"]["boot"]["methods"]["uuu"]["options"] KeyError: 'uuu' LAVABug: This is probably a bug in LAVA, please report it.
---------------------------------------------------------------------------------------------------------------------------
device_type: imx8m
job_name: flash with uuu timeouts: job: minutes: 10 action: minutes: 10 connection: minutes: 5
visibility: public actions: - deploy: to: uuu images: boot: url: file:///home/davis/uuu/imx-boot-64.bin system : url: file:///home/davis/uuu/sd.img
- boot: method: uuu commands : - uuu: -b emmc_all {boot} {system}