Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camkes-vm-linux solution, out-of-the-box: module "poke" is not loading #80

Open
malus-brandywine opened this issue Nov 19, 2021 · 0 comments
Labels

Comments

@malus-brandywine
Copy link
Contributor

In out-of-the-box camkes-vm-linux solution, "poke" module is not loading because of vermagic mismatch between the pre-built kernel and the module.

insmod /lib/modules/4.8.16/kernel/drivers/vmm/poke.ko
[ 30.023396] poke: version magic '4.8.16 SMP mod_unload 686 ' should be '4.8.16 mod_unload 686 '


The fast solution (until the issue has been solved) is to use config.backup-singlecore to build the module. To do it one needs just replace

set(linux_config "${CAMKES_VM_LINUX_DIR}/linux_configs/${linux_major}.${linux_minor}/32/config")

with

set(linux_config "${CAMKES_VM_LINUX_DIR}/linux_configs/${linux_major}.${linux_minor}/32/config.backup-singlecore")

in file CMakeList.txt (directory camkes-vm-linuxyyy).

All I can do is just report this. Its up to maintainers to either re-build the kernel or patch the tutorial.md, because I don't know reasoning behind keeping 2 configs and pre-built non-SMP kernel image.

Thanks!

malus-brandywine added a commit to malus-brandywine/sel4-tutorials that referenced this issue Nov 21, 2021
"poke" module should be build with correct Linux configuration to
match the pre-built kernel version. (Tutorial issue seL4#80)

Signed-off-by: Nataliya Korovkina <[email protected]>
@axel-h axel-h added the bug label Mar 21, 2022
lsf37 pushed a commit that referenced this issue Jun 17, 2024
"poke" module should be build with correct Linux configuration to
match the pre-built kernel version. (Tutorial issue #80)

Signed-off-by: Nataliya Korovkina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants