Hi,
On Thu, 4 Nov 2021 at 09:49, Davis Roman davis.roman84@gmail.com wrote:
Hi Milosz,
Your feedback on the raspberry pi was insightful. Thank you.
I'm intrigued about your comment regarding "flasher" deployment as we also use CI to build and store uuu packages to artifactory so it would be nice to provide lava with a simple script that:
a) pulls specific uuu package from artifactory b) runs: uuu <path to uuu package>
I can see that the lava does have a uuu deployment target however I am required to specify a path to the bootloader and system image separately:
- deploy: to: uuu images: boot: url: https://.../imx-boot-sd.bin-flash system: url: https://../imx-image-multimedia.rootfs.wic
I'm unable to find the flasher deployment action in the lava docs (https://docs.lavasoftware.org/lava/actions-deploy.html?highlight=deploy). Was this feature removed?
No, this feature is there and used with several devices. You can see the flasher deploy method here: https://git.lavasoftware.org/lava/lava/blob/master/lava_dispatcher/actions/d...
Unfortunately, it isn't well documented.
Thank you,
Davis
On Wed, Nov 3, 2021 at 5:32 AM Milosz Wasilewski milosz.wasilewski@foundries.io wrote:
Davis,
I tried uuu on RPi4 (64bit version) and it kinda works. However due to USB stack issues on RPi you won't be able to use it as a dispatcher for imx8m board. I tried this, spent 3 days trying to fix the issues and gave up. I ended up with a cheap NUC as a dispatcher. Mind you, I'm using 'flasher' deployment with a simple script as our CI produces multiple binaries to flash and requires a .uuu script to handle them properly.
Best Regards, MIlosz
On Wed, Nov 3, 2021 at 9:18 AM Davis Roman davis.roman84@gmail.com wrote:
Sorry, in my previous email, I mean to say "raspberry pi"
On Mon, Nov 1, 2021 at 10:28 PM Davis Roman davis.roman84@gmail.com wrote:
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://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}
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
Cheers,