On Wed, 8 Aug 2018 at 14:39, Hussin, Mohamad Noor Alim < mohamad.noor.alim.hussin@intel.com> wrote:
Hi,
I using LAVA version 2018.5-post1 to boot from USB thumb drive using Yocto Project’s image. The LAVA job definition contain 2 deployments and booting actions. The first deployment is deploy the image to NFS server and boot using TFTP method. The second deployment is download an image to DUT and flash it on USB thumb drive. The DUT was able to download the image however it failed at flash to thumb drive. I’m use dd command as my tool to flash the image. Below is an example on lava-job definition and output message from LAVA. Due to this issue, I unable to boot from USB thumb drive. Did anyone know what is the problem?
Snipped code from lava-job definition to deploy on USB thumb drive
deploy:
timeout:
minutes: 30
to: usb
image:
url: file:///home/user/image/yocto-image.xz compression: xz root_partition: 1
device: 'boot'
download:
tool: '/usr/bin/wget' prompt: 'HTTP request sent, awaiting response...' options: '--S {DOWNLOAD_URL}'
os: oe
The command from LAVA
wget http://lavadisptcher.com/ http://lavadisptcher.com/tmp/storage/image/yocto-image.xz
Is that a typo? Have you simply put in a dummy command for what was actually used?
tmp/storage/image/yocto-image.xz http://lavadisptcher.com/tmp/storage/image/yocto-image.xz | dd of=/dev/disk/by-id/<myusbthumdriveid> bs=4M
This is the output message form LAVA after download flash the image
0+0 records in
0+0 records out
0 bytes copied
The "USB download" support was created for a very specialised use case and likely only works for that one - Juno. (The USB download in this case is a firmware update).
It is not recommended to transfer a single image with absolutely everything inside, it makes triage of failures MUCH harder because you need to be only changing one element at a time, not the entire stack.
I think you will need to do a full device integration for your DUT and probably modify some of the lava-dispatcher code (and submit that for code review) to integrate this device.