Hi LAVA users,
I have set-up a LAVA server, dispatcher and connected my device (banana-pi) board serially via UART to host machine on which dispatcher is running. I have defined a job which uses deploy "tmpfs" to download .itb file from local file server. After that, under "boot" action, i am using u-boot method to boot the device. Output: 1. deploy images section runs successfully 2. uboot action starts 3. After connecting to device using telnet, device is reset(pdu-reboot). 4. Device enters in Y modem state waiting for image to get transferred. 5. After some time, "CCC CCCCCCC[ 99.943] spl: ymodem err - Timed out"
Issue/Question: 6. At this stage, i want LAVA dispatcher(HOST machine) to send .itb file over UART using Ymodem to device. 7. But LAVA is unable to execute this command "sz -Y --ymodem /uboot-opensbi.itb < /dev/ttyUSB0 > /dev/ttyUSB0" to transfer opensbi.itb file to device. 8. I need to know what am i missing in writing job definition for this case. 9. Which device template should i use and how it should be extended. 10. is there any job definition syntax to fulfill my requirement?
Regards,
On Thu, Jun 19, 2025 at 6:37 AM hina.hafeez@10xengineers.ai wrote:
Hi LAVA users,
I have set-up a LAVA server, dispatcher and connected my device (banana-pi) board serially via UART to host machine on which dispatcher is running. I have defined a job which uses deploy "tmpfs" to download .itb file from local file server. After that, under "boot" action, i am using u-boot method to boot the device. Output:
- deploy images section runs successfully
- uboot action starts
- After connecting to device using telnet, device is reset(pdu-reboot).
- Device enters in Y modem state waiting for image to get transferred.
- After some time, "CCC CCCCCCC [ 99.943] spl: ymodem err - Timed out"
Issue/Question: 6. At this stage, i want LAVA dispatcher(HOST machine) to send .itb file over UART using Ymodem to device. 7. But LAVA is unable to execute this command "sz -Y --ymodem /uboot-opensbi.itb < /dev/ttyUSB0 > /dev/ttyUSB0" to transfer opensbi.itb file to device. 8. I need to know what am i missing in writing job definition for this case. 9. Which device template should i use and how it should be extended. 10. is there any job definition syntax to fulfill my requirement?
It would be easier to answer if you shared the job definition and your device dictionary.
I think you might need another "deploy" section at this point. There is no native ymodem deployment but you can use deploy-to-flasher. I have a similar job for TI am64 which sends u-boot binaries over xmodem: https://lava.infra.foundries.io/scheduler/job/79774#L357 am64-uart-flash.sh is not part of LAVA. It's a custom script that is called as part of the deployment process. You can see how it's done in the device dictionary: https://lava.infra.foundries.io/scheduler/device/am64xx-evm-01/devicedict#de...
Hope this helps.
Best Regards, Milosz
Thanks for your email and response. Let me share my job definition and device dictionary
Job definition: https://kernelci-1.cloud-v.co/scheduler/job/150
Device Dictionary: https://kernelci-1.cloud-v.co/scheduler/device/bpi-f3/devicedict
Regards, Hina Hafeez
On Thu, Jun 19, 2025 at 12:35 PM Milosz Wasilewski < milosz.wasilewski@foundries.io> wrote:
On Thu, Jun 19, 2025 at 6:37 AM hina.hafeez@10xengineers.ai wrote:
Hi LAVA users,
I have set-up a LAVA server, dispatcher and connected my device
(banana-pi) board serially via UART to host machine on which dispatcher is running.
I have defined a job which uses deploy "tmpfs" to download .itb file
from local file server. After that, under "boot" action, i am using u-boot method to boot the device.
Output:
- deploy images section runs successfully
- uboot action starts
- After connecting to device using telnet, device is reset(pdu-reboot).
- Device enters in Y modem state waiting for image to get transferred.
- After some time, "CCC CCCCCCC [ 99.943] spl: ymodem err -
Timed out"
Issue/Question: 6. At this stage, i want LAVA dispatcher(HOST machine) to send .itb file
over UART using Ymodem to device.
- But LAVA is unable to execute this command "sz -Y --ymodem
/uboot-opensbi.itb < /dev/ttyUSB0 > /dev/ttyUSB0" to transfer opensbi.itb file to device.
- I need to know what am i missing in writing job definition for this
case.
- Which device template should i use and how it should be extended.
- is there any job definition syntax to fulfill my requirement?
It would be easier to answer if you shared the job definition and your device dictionary.
I think you might need another "deploy" section at this point. There is no native ymodem deployment but you can use deploy-to-flasher. I have a similar job for TI am64 which sends u-boot binaries over xmodem: https://lava.infra.foundries.io/scheduler/job/79774#L357 am64-uart-flash.sh is not part of LAVA. It's a custom script that is called as part of the deployment process. You can see how it's done in the device dictionary:
https://lava.infra.foundries.io/scheduler/device/am64xx-evm-01/devicedict#de...
Hope this helps.
Best Regards, Milosz
On Thu, Jun 19, 2025 at 10:27 AM Hina Hafeez hina.hafeez@10xengineers.ai wrote:
Thanks for your email and response. Let me share my job definition and device dictionary
Job definition: https://kernelci-1.cloud-v.co/scheduler/job/150
Device Dictionary: https://kernelci-1.cloud-v.co/scheduler/device/bpi-f3/devicedict
There is a lot to unpack here. I guess you tried to run the ymodem everywhere :) What is the actual goal here? Are you only testing loading through ymodem? Are you testing boot to console and it loading with ymodem is just to transfer your bootloader to the board?
Best Regards, Milosz
lava-users@lists.lavasoftware.org