Re: Starting Xen guest on Raspberry-Pi4. #meta-virtualization #yocto


Siddhartha V
 
Edited

Hi sir,

 I tried to do some work on patch you suggested but sadly I didn't get how to download the  patches from the https://github.com/dozylynx/meta-virtualization      I tried a lot and also googled to get some knowledge but that also didn't help me. So I directly downloaded the raspberry-pi4-xen-series branch from https://github.com/dozylynx/meta-virtualization and tried to build the image. But I got stuck with below error :
####
ERROR: linux-raspberrypi-1_5.4.40+gitAUTOINC+aafb8f095e_machine-r0 do_fetch: Fetcher failure for URL: 'git://github.com/raspberrypi/linux.git;branch=rpi-5.4.y'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/siddhu/Documents/yocto/zindagi/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.4.40+gitAUTOINC+aafb8f095e_machine-r0/temp/log.do_fetch.3928
ERROR: Task (/home/siddhu/Documents/yocto/zindagi/sources/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.4.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3957 tasks of which 3949 didn't need to be rerun and 1 failed.
####
 
The other layers I was using along with the aspberry-pi4-xen-series branch from https://github.com/dozylynx/meta-virtualization  are as below:

git://git.yoctoproject.org/poky
  18b6b2ae819cbf0ef3858944b4cd02ab74df6607
git://git.openembedded.org/meta-openembedded
  463f9a3ef0935d772a0be0437a8c09df64ed2f07
git://git.yoctoproject.org/meta-raspberrypi
  e589e0f3fda8f15f1093909328605e0bb6516d94

Even earlier when I started this work, I got this error but later when Christopher sir suggested the commit no's this got resolved.I think now also I am missing some important points.



 Later I read the https://lists.yoctoproject.org/g/meta-virtualization/message/5464    there Christopher sir told we should checkout the meta-raspberrypi: 5576a22061864bc451ec4fcacb7d830bf76b7ebd and meta-virtualization: d75bc448866d2b36779251efb1310d0234ece30b, plus this patch series applied on top, or clone the raspberry-pi4-xen-series branch from his repository.

As I didn't know how to download the patches, I cloned the above through below commands:

1. git clone git://git.yoctoproject.org/meta-raspberrypi
cd meta-raspberrypi
git checkout 5576a22061864bc451ec4fcacb7d830bf76b7ebd

2.git clone https://github.com/dozylynx/meta-virtualization  -b  raspberry-pi4-xen-series

And I have below lines in my local.conf:

MACHINE = "raspberrypi4-64"
DISTRO_FEATURES_append = " xen virtualization"
QEMU_TARGETS = "i386 x86_64 aarch64 arm"
PACKAGECONFIG_pn-qemu += " xen fdt"
PACKAGECONFIG_remove_pn-qemu += " sdl"
IMAGE_FSTYPES = "tar.xz tar.bz2 ext3 rpi-sdimg"

Is this ok sir? I have not built yet but before I start building I wanted to know If I am on right path. Why I doubt here is I am didn't get the proper grip on yocto yet.

Can I build the image by " $ bitbake -k xen-image-minimal " ?


--
Best Regards,
Siddhartha V

Join {meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.