Hi, Davis,
I received internal mail about "uuu can now burn emmc/sd by only use one wic image" just last month. With current lava integration method, the answer is NO, we need that separate " imx-boot-64.bin" to detect if board is in "serial download mode" or not, unless later we find efficiency way to extract that from wic.
For UUU raspberry version, I'm not sure, you'd better directly consult at https://github.com/NXPmicro/mfgtools
-----Original Message----- From: Davis Roman davis.roman84@gmail.com Sent: Tuesday, November 2, 2021 10:28 AM To: Larry Shen larry.shen@nxp.com Cc: lava-users@lists.lavasoftware.org Subject: Re: [EXT] using 'uuu' boot action results in KeyError: 'uuu' on v2021.09
Caution: EXT Email
Hi Larry,
Using your suggestions I was able to get uuu up and running. Thank you!
I have a follow question. The uuu tool accepts a url to a uuu package hosted on a remote server.
Can I use a single url to a uuu package in my job description yaml file instead of having to individually describe the files? (As shown below)
- deploy: to: uuu images: boot: url: file:///home/davis/uuu/imx-boot-64.bin system : url: file:///home/davis/uuu/sd.img
Secondly, I wish to use a raspberry as a lava dispatcher so I was wondering if a cross compiled version of uuu for armhf is available?
Thanks,
Davis
On Sun, Oct 31, 2021 at 9:40 PM Larry Shen larry.shen@nxp.com wrote:
You should first register in https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=04%7C01% 7Clarry.shen%40nxp.com%7Cc7860dea2d7443bb749b08d99da87339%7C686ea1d3bc 2b4c6fa92cd99c5c301635%7C0%7C1%7C637714169083103824%7CUnknown%7CTWFpbG Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0% 3D%7C3000&sdata=CjPyIcS0desqygNi9Jl5uZwxPuqazi89cfSzDudCh1g%3D& ;reserved=0 before ask questions I guess. Otherwise, the maillist can't receive your question, see this: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist s.lavasoftware.org%2Fpipermail%2Flava-users%2F2021-October%2Fthread.ht ml&data=04%7C01%7Clarry.shen%40nxp.com%7Cc7860dea2d7443bb749b08d99 da87339%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63771416908311378 3%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6 Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=K8cf0j3LhMlzzLjMeXj4QjfdK5CpkI %2FpvOEVfnIH6C8%3D&reserved=0
Back to your question, I guess you define a customized "imx8m" device type, what we used is e.g. imx8mp-ab2 or others: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit. lavasoftware.org%2Flava%2Flava%2F-%2Fblob%2Fmaster%2Fetc%2Fdispatcher- config%2Fdevice-types%2Fimx8mp-ab2.jinja2&data=04%7C01%7Clarry.she n%40nxp.com%7Cc7860dea2d7443bb749b08d99da87339%7C686ea1d3bc2b4c6fa92cd 99c5c301635%7C0%7C1%7C637714169083113783%7CUnknown%7CTWFpbGZsb3d8eyJWI joiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&a mp;sdata=VgqbjxggoLzKP21UKQtUGeDHLECROvEAyCNPfqjWR00%3D&reserved=0
It extends from imx8m-common, and finally extends from base-uboot.jinja2: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.lavaso..., 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}