All of lore.kernel.org
 help / color / mirror / Atom feed
From: pebolle@tiscali.nl (Paul Bolle)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Replacing "-custom" in my New Kernel development configuration
Date: Thu, 12 Feb 2015 21:36:40 +0100	[thread overview]
Message-ID: <1423773400.6256.15.camel@tiscali.nl> (raw)
In-Reply-To: <CALwa49s85BgW-Q-ho6GwNALEFA=GvSCsoYsDp9gknhxCwYQUUg@mail.gmail.com>

s.rawat schreef op do 12-02-2015 om 22:01 [+0530]:
> Yes I am building the external modules .The
> headers(linux/<header_files>) I have included the way I have said above.

That is: in the way I called "certainly the wrong thing to do"?

> The reason i asked this is becuase  my driver modules compiles without
> any error except it gave warning that certain symbols (function_names_)
> are undefined in the .ko driver module .These function_names_symbols are
> declared in the header files I included in my driver code like i said
> above..

I guess section "6.3 Symbols From Another External Module" from
Documentation/kbuild/modules.txt contains possible solutions to that
problem.

> I compiled  did like this : 
> make -C <path to kernel sources (compiled kernel - does it matter
> compile or not compiled?)> SUBDIRS=<path to my driver code placed in
> my home directory (not inside the kernel sources) modules
> Compiled successfully except the warnings I stated above.That is the
> reason i asked to way to install the headers of my compiled kernel.

To get good answers it helps to quote the command you used and the
output (stderr and stdout) that this command generated.

Greg K-H wrote a booklet that explains most of the problems you've run
into in, I think, great detail: "Linux Kernel in a Nutshell". Perhaps it
is available for free on the interwebs (as its license allows that).

Anyhow, I'm running out of time here. I'll be glad to try to talk you
through setting up things properly (especially /usr/src/[...]
or /lib/modules/[...]/build), if still needed, next Monday.

Hope this helps,


Paul Bolle

  reply	other threads:[~2015-02-12 20:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11 17:42 Replacing "-custom" in my New Kernel development configuration s.rawat
2015-02-11 17:48 ` Vinícius Tinti
2015-02-11 18:07   ` Arshad Hussain
2015-02-12  6:37     ` s.rawat
2015-02-12  8:30       ` Paul Bolle
2015-02-12 16:31         ` s.rawat
2015-02-12 20:36           ` Paul Bolle [this message]
2015-02-12  8:34       ` Arshad Hussain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423773400.6256.15.camel@tiscali.nl \
    --to=pebolle@tiscali.nl \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.