Skip to contentSkip to conversation

Building xen-image-minmal for raspberrypi3-64: kernel-module-xen-* not being built

yocto Aljoscha Lautenbach 2 participants 3 messages Mar 4, 2020 – Mar 9, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

#2 lore raw
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/xen still 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
#3 lore raw

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