Rémi,
On 10 Jan 2019, at 08:53, Remi Duraffort remi.duraffort@linaro.org wrote:
Hello Diego,
I came up with another solution which I did try manually and it works. I need to check if this can be done via LAVA (and here I need your experience). This is the worflow:
On the LAVA worker:
- Download the wic.gz image
- Uncompress the image
- Split the image in chunks of 800M (anyway less than 1GB
- Start tftp server serving those chunks of data
On the RPI3:
- boot at uboot and initialise network
- tftp the first chunk
- write the chunk to mmc
- tftp the second chunk
- write the chunk to mmc
… x) reboot the board
Few things to note:
- our image has u-boot in it
Now I have few questions:
- Can such workflow be implemented in LAVA?
This looks possible yes.
I’m glad this is possible! Are you able to give me pointers (e.g.: examples) on how to do that?
Where is uboot stored? On the mmc or on another media? Because you should avoid touching the default uboot.
u-boot is stored on mmc and we re-flash it every time. We use Trusted firmware boot flow (https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/firmwa...) and we know we can corrupt it (as any other component of the boot flow).
- How can I achieve the multiple calls of tftp on the RPI3 in order to be dynamic (e.g.: image size changes)?
You will have to add some code in LAVA in order to send the right commands. So LAVA will know the addresses and can send the right strings.
Also here any help would be more than welcome!
Thanks!
-- Rémi Duraffort LAVA Team
-- Diego Russo | Staff Software Engineer | Mbed Linux OS ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom http://www.diegor.co.uk - https://os.mbed.com/linux-os/
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.