Building xen-image-minmal for raspberrypi3-64: kernel-module-xen-* not being built
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
I made some progress on this today. After running “bitbake -c menuconfig virtual/kernel“ and searching for the config parameters that xen.cfg was supposed to set, it was obvious that they were in fact not set, as the mailing list reply I mentioned earlier suggested. By manually setting them, I managed to build the kernel modules and boot.
I don’t know if this is a bug in meta-virtualization or in meta-raspberrypi, or if this is expected behavior? If it is expected, it is not documented.
It also turns out that the “unbootable image” I mentioned previously was probably a console or display problem instead, because I have the same problem with the now succeeding xen-image-minimal build, but I figured out that I can ssh into it.
Unfortunately /proc/xen still does not exist, and xl still complains “cannot init xl context”, but that is a separate issue.
Best regards,
Aljoscha
Quoted 10 lines · Aljoscha Lautenbach
Hi,
I made some progress on this today. After running “bitbake -c menuconfig virtual/kernel“ and searching for the config parameters that xen.cfg was supposed to set, it was obvious that they were in fact not set, as the mailing list reply I mentioned earlier suggested. By manually setting them, I managed to build the kernel modules and boot.
Quoted 3 lines
I don’t know if this is a bug in meta-virtualization or in meta-raspberrypi, or if this is expected behavior? If it is expected, it is not documented.
You'd be better off asking these questions on the meta-virtualization mailing list. That's where you'll find the Xen folks.
But as for the kernel options, it depends on what kernel you are using, release, etc. Last I checked, the raspberrypi wouldn't directly use the fragments from meta-virt, so yes, you'd need to ensure they are set in your own layer/defconfig.
Bruce
Quoted 11 lines
It also turns out that the “unbootable image” I mentioned previously was probably a console or display problem instead, because I have the same problem with the now succeeding xen-image-minimal build, but I figured out that I can ssh into it.
Unfortunately/proc/xenstill does not exist, and xl still complains “cannot init xl context”, but that is a separate issue.Best regards,
Aljoscha
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi,
Quoted 2 lines
You'd be better off asking these questions on the meta-virtualization mailing list. That's where you'll find the Xen folks.
Thanks, I'll direct any follow-up questions regarding Xen there.
Quoted 4 lines
But as for the kernel options, it depends on what kernel you are using, release, etc. Last I checked, the raspberrypi wouldn't directly use the fragments from meta-virt, so yes, you'd need to ensure they are set in your own layer/defconfig.
Ahh, thank you, you managed to switch on the light bulb! :) Checking the kernel recipes I see now that meta-virt has a linux-yocto_4.19.bbappend file, whereas meta-raspberrypi uses linux-raspberrypi_4.19.bb; so as you said, the meta-virt configuration is never applied due to different versions. Being new to yocto I did not make that connection immediately, I guess I did miss the obvious. ;)
If I understand you correctly, I need to add a linux-raspberrypi_4.19.bbappend file in my own layer that applies the Xen configuration fragments.
That makes sense, thanks again!
Best regards,
Aljoscha