All of lore.kernel.org
 help / color / mirror / Atom feed
* Module develop issue
@ 2021-07-30 10:40 吳秉昌
  2021-08-02 10:01 ` 吳秉昌
  0 siblings, 1 reply; 4+ messages in thread
From: 吳秉昌 @ 2021-07-30 10:40 UTC (permalink / raw)
  To: openbmc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module develop issue
  2021-07-30 10:40 Module develop issue 吳秉昌
@ 2021-08-02 10:01 ` 吳秉昌
  2021-08-03 11:42   ` Andrew Jeffery
  0 siblings, 1 reply; 4+ messages in thread
From: 吳秉昌 @ 2021-08-02 10:01 UTC (permalink / raw)
  To: openbmc

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

> 吳秉昌 <wh800805@gmail.com> 於 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module develop issue
  2021-08-02 10:01 ` 吳秉昌
@ 2021-08-03 11:42   ` Andrew Jeffery
  2021-08-05  8:07     ` 吳秉昌
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Jeffery @ 2021-08-03 11:42 UTC (permalink / raw)
  To: 吳秉昌, openbmc



On Mon, 2 Aug 2021, at 19:31, 吳秉昌 wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Module develop issue
  2021-08-03 11:42   ` Andrew Jeffery
@ 2021-08-05  8:07     ` 吳秉昌
  0 siblings, 0 replies; 4+ messages in thread
From: 吳秉昌 @ 2021-08-05  8:07 UTC (permalink / raw)
  To: Andrew Jeffery; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

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


> Andrew Jeffery <andrew@aj.id.au> 於 2021年8月3日 下午7:42 寫道:
> 
> 
> 
> On Mon, 2 Aug 2021, at 19:31, 吳秉昌 wrote:
>> 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


[-- Attachment #2: Type: text/html, Size: 1835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-05  8:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 10:40 Module develop issue 吳秉昌
2021-08-02 10:01 ` 吳秉昌
2021-08-03 11:42   ` Andrew Jeffery
2021-08-05  8:07     ` 吳秉昌

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.