Module develop issue
Hi teams
I try to develop own module. I try copy poky/meta-skeleton/recipes-kernel/hello-mod to my machine. I run the command “bitbake hello-mod”, but it is failed.
The error message is “needed by Module.symvers” , “kernel-source/Makefile:1665: recipe for target 'modules' failed”.
Please give me some suggestions!.
BR
Paul
Hi teams
Today, I try to install SDK, I can build and run "hello world”, but I still can’t build the hello-mod module. Please give me some suggestions. Many thanks!
BR
Paul
Quoted 13 lines
吳秉昌 <[email protected]> 於 2021年7月30日 下午6:40 寫道:
Hi teams
I try to develop own module. I try copy poky/meta-skeleton/recipes-kernel/hello-mod to my machine. I run the command “bitbake hello-mod”, but it is failed.
The error message is “needed by Module.symvers” , “kernel-source/Makefile:1665: recipe for target 'modules' failed”.
Please give me some suggestions!.
BR
Paul
Quoted 5 lines · 吳秉昌
Hi teams
Today, I try to install SDK, I can build and run "hello world”, but I still can’t build the hello-mod module.
Please give me some suggestions. Many thanks!
I'm not aware of anyone else in the OpenBMC community developing kernel modules this way, which might be why you haven't got many responses.
My approach is just to work on the kernel directly (i.e. clone the kernel sources and add your code to the appropriate locations). Is this something that you can try?
Andrew
Hi Andrew
Thanks you response! I already fixed the issue.
I download the linux source code form "https://github.com/openbmc/linux <https://github.com/openbmc/linux>”, and replace the kernel path on file "meta-aspeed/recipes-kernel/linux/linux-aspeed.inc”. Now I can build the out of tree module and install to my machine.
BR
Paul
Quoted 19 lines
Andrew Jeffery <[email protected]> 於 2021年8月3日 下午7:42 寫道:
Quoted 5 lines · 吳秉昌
Hi teams
Today, I try to install SDK, I can build and run "hello world”, but I still can’t build the hello-mod module.
Please give me some suggestions. Many thanks!I'm not aware of anyone else in the OpenBMC community developing kernel modules this way, which might be why you haven't got many responses.
My approach is just to work on the kernel directly (i.e. clone the kernel sources and add your code to the appropriate locations). Is this something that you can try?
Andrew