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