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}
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}
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}
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}
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
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?
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
On Wed, Nov 3, 2021 at 5:59 PM 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?
I don't think so, the code is there: https://git.lavasoftware.org/lava/lava/-/blob/master/lava_dispatcher/actions...
I guess just the docs are missing. What you need is to set "flasher_deploy_commands" in your device dictionary. It will call whatever commands you need on the dispatcher (it's a list). In this variable you can use the files from the deploy section. For example my imx8 flashing script call looks like this: 'flash-imx8.sh -i "{IMAGE}" -b "{BOOTLOADER}" -u "{UBOOT}" -s "{SITIMG}" -p "1:2"'
Variables in the curly brackets come from 'images' section of the deploy method. My deploy looks like this: - deploy: timeout: minutes: 10 to: flasher images: image: url: https://url.to/image-imx8mmevk.wic.gz compression: gz bootloader: url: https://url.to/imx-boot-imx8mmevk sitimg: url: https://url.to/sit-imx8mmevk.bin uboot: url: https://url.to/u-boot-imx8mmevk.itb
I store the pre-built mfgtools on the dispatcher (they don't change very often) so I can do the path substitution in the .uuu script. But you can also download your mfgtools package and pass it to the script. flash-imx8.sh is my custom script, doesn't come from LAVA.
One thing to remember here is that before running tests you need to download lava overlay with tests inside. LAVA will prepare it for you, but you need to deliver it to the device somehow. 'flasher' doesn't change the binaries/rootfs the way other deployments might.
- boot: .... method: minimal transfer_overlay: download_command: cd /home ; wget unpack_command: tar -C / -xzf
Best Regards, Milosz
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,
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}
lava-users@lists.lavasoftware.org