Skip to content

Conversation

@singalsu
Copy link
Collaborator

The build of template component as module fails because of wrong and missing file names for needed source files for build.

The build of template component as module fails because of
wrong and missing file names for needed source files for
build.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the template_add_missing_sources branch from 9f0ccec to 912c245 Compare August 18, 2025 14:12
@singalsu
Copy link
Collaborator Author

@lgirdwood I'm maybe missing still something. This component still fails to load in my MTL laptop if I set CONFIG_COMP_TEMPLATE_COMP=m.

[  847.335788] <err> ipc: ipc4_get_comp_drv: Error: Couldn't find loadable module with id 4096.
[  847.335798] <err> ipc: ipc4_init_module_instance: error: failed to init module 1000 : 0
[  847.335801] <err> ipc: ipc_cmd: ipc4: MODULE_MSG failed with err 104

Same topology works if the kconfig is in normal =y setting.

@singalsu singalsu marked this pull request as ready for review August 19, 2025 10:26
Copilot AI review requested due to automatic review settings August 19, 2025 10:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the build configuration for the template audio component when built as a loadable module (llext). The CMakeLists.txt file was referencing incorrect source file names that prevented successful module compilation.

  • Updated source file references from incorrect template_comp.c to the correct filenames
  • Added missing source files template-generic.c and template-ipc4.c required for the build

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lgirdwood
Copy link
Member

@lgirdwood I'm maybe missing still something. This component still fails to load in my MTL laptop if I set CONFIG_COMP_TEMPLATE_COMP=m.

[  847.335788] <err> ipc: ipc4_get_comp_drv: Error: Couldn't find loadable module with id 4096.
[  847.335798] <err> ipc: ipc4_init_module_instance: error: failed to init module 1000 : 0
[  847.335801] <err> ipc: ipc_cmd: ipc4: MODULE_MSG failed with err 104

Same topology works if the kconfig is in normal =y setting.

This could mean the kernel is not loading the module, can you turn on kernel IPC logging and see if kernel loads the module from file system to IMR.

@kv2019i kv2019i merged commit c241b74 into thesofproject:main Aug 22, 2025
39 of 45 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.

4 participants