On 17/10/2023 09:48, Dave Marples wrote:
I'm building jailhouse on a arm64 linux 6.1 Debian bookworm system (imx8m, if it matters) using gcc 12.2.0...or, more specfically, failing to build. I get to the module install stage and then get;


ERROR: modpost: "__hyp_stub_vectors" [/root/jailhouse/driver/jailhouse.ko] undefined!
ERROR: modpost: "ioremap_page_range" [/root/jailhouse/driver/jailhouse.ko] undefined!
ERROR: modpost: "__get_vm_area_caller" [/root/jailhouse/driver/jailhouse.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:126: /root/jailhouse/Module.symvers] Error 1
make[1]: *** [Makefile:1989: modpost] Error 2
make: *** [Makefile:40: modules] Error 2



So far as I can tell I have all of the required KALLSYMS set, so wondered if anyone else had trouble with recent kernels or if I'm missing some magic somewhere?

Just to start the follow-up on this in case it's useful to anyone else in future; I figured out that I'd missed the stage of patching the kernel ( It might make sense to add a prod for this in the 'Build & Installation' instructions ... ) using the patch embedded in gen-kernel-build.sh and adjusting to suit my kernel..is there somewhere else I'm supposed to get that patch from in a cleaner way?

I'm now at the point where the thing will start, but pretty quickly falls over in a big heap;

# jailhouse enable imx8mm.cell
[   62.953888]  jailhouse: firmware: direct-loading firmware jailhouse.bin
[   62.961239] Unable to handle kernel execute from non-executable memory at virtual address ffff80000a004000
[   62.961239] Unable to handle kernel execute from non-executable memory at virtual address ffff80000a004000
[   62.961239] Unable to handle kernel execute from non-executable memory at virtual address ffff80000a004000
[   62.961239] Unable to handle kernel execute from non-executable memory at virtual address ffff80000a004000
[   62.961248] Mem abort info:
[   62.961248] Mem abort info:
[   62.961248] Mem abort info:
[   62.961249]   ESR = 0x000000008600000e
[   62.961250]   ESR = 0x000000008600000e

Help still appreciated...Can't help getting the feeling I'm missing a document somewhere whereby all this lot magically becomes easy...

--
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].
To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/4b8c293a-de5d-4ede-ab38-c42294ba3554%40marples.net.

Reply via email to