Skip to content

Support kernel build_module for arm32/64 raw disk images#154

Merged
lucas-akira merged 2 commits into
torizon:trixiefrom
jsrc27:TCB-867
Jul 13, 2026
Merged

Support kernel build_module for arm32/64 raw disk images#154
lucas-akira merged 2 commits into
torizon:trixiefrom
jsrc27:TCB-867

Conversation

@jsrc27

@jsrc27 jsrc27 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This allows the kernel build_module command 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.

Related-to: TCB-867

Signed-off-by: Jeremias Cordoba <jeremias.cordoba@toradex.com>
@jsrc27
jsrc27 requested a review from lucas-akira July 8, 2026 21:21
@jsrc27 jsrc27 self-assigned this Jul 8, 2026

@lucas-akira lucas-akira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/integration/testcases/wic/kernel.bats
Comment thread tests/integration/testcases/wic/kernel.bats Outdated
@jsrc27

jsrc27 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

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 lucas-akira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@jsrc27

jsrc27 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

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.

@lucas-akira

Copy link
Copy Markdown
Collaborator

Right, there's the 3.16.0 release process to do soon, but I guess we can merge this now.

@lucas-akira
lucas-akira merged commit 9deb20e into torizon:trixie Jul 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants