Support kernel build_module for arm32/64 raw disk images#154
Conversation
Related-to: TCB-867 Signed-off-by: Jeremias Cordoba <jeremias.cordoba@toradex.com>
lucas-akira
left a comment
There was a problem hiding this comment.
I tried running the new kernel tests for WIC images locally, but the Common Torizon images that I've used failed during make with the following message:
make[2]: *** No rule to make target 'arch/arm64/include/generated/uapi/asm/unistd_64.h', needed by 'all'. Stop.
I've tested the latest nightly images for supported TI boards: am62xx-evm, am62pxx-evm, am62lxx-evm and beagley-ai. All of them had the same error message.
I saw that you noticed a similar issue for the Luna SL1680 image as well, related to kernel versions equal or newer than 6.12: torizon/meta-toradex-torizon#568
All of the TI images mentioned above use kernel 6.12, so it's probably the same issue.
Thanks for checking, I wasn't sure what kernel version every common Torizon device was one. I'll just change the PR on the OS side to apply to all devices then. |
Only adding tests related to build_module sub-command for now. Related-to TCB-867 Signed-off-by: Jeremias Cordoba <jeremias.cordoba@toradex.com>
lucas-akira
left a comment
There was a problem hiding this comment.
Latest revision looks good to me. Should we merge this PR right now or after merging the required changes of the kernel source on the OS side?
Hmm I guess it doesn't matter if we merge now right? This goes into early-access first anyways, so it's not going to be available right away. If you wanna wait though for the other PR I'm okay with that too. |
|
Right, there's the 3.16.0 release process to do soon, but I guess we can merge this now. |
This allows the
kernel build_modulecommand to be used on WIC/raw disk images as long as the architecture of the image is either arm32 or arm64. Other architectures are still unsupported here.After some testing it appears that we can just reuse the same arm32 and arm64 cross-compile toolchains that we have been using for Toradex devices so far. This was tested on a Luna SL1680. I was able to build and load the simple "hello world" kernel module that we use for tests.
Finally, this also adds the corresponding tests on the WIC side.