Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] In Buildroot, how to compile kernel modules
@ 2014-02-25  9:04 Frank Ihle
  2014-02-25 10:23 ` Raúl Sánchez Siles
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Ihle @ 2014-02-25  9:04 UTC (permalink / raw)
  To: buildroot

Hi everyone,

the Internet and the buildroot manual couldn't help me out. I have a .c code which should be compiled to a .ko kernel module. Right now I'm doing this separately, the steps are: 

1. I run "make" of buildroot
2. Building the kernel module with the link to the linux kernel, that buildroot has downloaded.
3. After another make of buildroot, the .ko file is included via a fs-overlay and can be included with the "insmod" command

Usually this works, but often I get error messages which  tell me I'm using a different kernel version. So to avoid this I'd like to enqueue this .c code to the make process of buildroot. But I'm not sure how this is done. 

I actually just want to make changes on the Buildroot or Linux configuration and if Image is generated I'd still like to have a runnable kernel module. 

Can somebody tell me a hint about the steps, a manual or a tutorial ?

Kind Regards

Frank Ihle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140225/07161769/attachment.html>

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

end of thread, other threads:[~2014-02-28  8:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25  9:04 [Buildroot] In Buildroot, how to compile kernel modules Frank Ihle
2014-02-25 10:23 ` Raúl Sánchez Siles
2014-02-25 10:38   ` [Buildroot] Antw: " Frank Ihle
2014-02-25 20:40     ` Arnout Vandecappelle
2014-02-26  7:31       ` [Buildroot] " Frank Ihle
2014-02-26 17:32         ` Arnout Vandecappelle
2014-02-28  8:05           ` [Buildroot] Antw: " Frank Ihle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox