On 01.02.19 04:58, [email protected] wrote:
Jan,

Thanks for the advice.

I went and downloaded Linux 4.14.73 and recompiled with CONFIG_UIO=y and 
CONFIG_UIO_PCI_GENERIC=y (`make -j4`, `make modules_install`, and `make 
install`). I was then able to build uio_ivshmem.ko.

However, now when I build Jailhouse, I hit the following errors:
WARNING: "lapic_timer_frequency" [/root/jailhouse/driver/jailhouse.ko] 
undefined!
WARNING: "ioremap_page_range" [/root/jailhouse/driver/jailhouse.ko] undefined!

Somehow, I took a step backwards.

This thread (https://groups.google.com/forum/#!topic/jailhouse-dev/URt-HG36X1o) 
mentions that I should set CONFIG_KALLSYMS_ALL. I tried that, but after 
rebuilding and installing, I still get the above errors.

The kernel that came with Jailhouse Images didn't have CONFIG_KALLSYMS_ALL, and 
I was able to build Jailhouse just fine. Why is it complaining now, after 
setting CONFIG_UIO and recompiling?

You likely want https://github.com/siemens/linux/commits/jailhouse-enabling/4.14 or the 4.19-variant that is jailhouse-prepared. That's what jailhouse-images is building for you.


Do I need to also update the linux-headers package somehow? I tried `make 
headers_install` and `make headers_install_all`, but that didn't seem to do 
anything.

Or I need to do something like this? 
https://unix.stackexchange.com/questions/270123/how-to-create-usr-src-linux-headers-version-files


If you just rebuild the kernel that the original image was using, only adding UIO, you should be fine with keeping the jailhouse kernel package untouched. But the cleanest way is reproducing the image via jailhouse-images after adjusting the parameter you want to change (CONFIG_UIO, ROOTFS_EXTRA etc.).

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to