* Replacing "-custom" in my New Kernel development configuration
@ 2015-02-11 17:42 s.rawat
2015-02-11 17:48 ` Vinícius Tinti
0 siblings, 1 reply; 8+ messages in thread
From: s.rawat @ 2015-02-11 17:42 UTC (permalink / raw)
To: kernelnewbies
Hello,
I recently built the 3.18.5 kernel according to instruction on the
linuxkernel newbie page .I used /sbin/installkernel script to install the
modules and updated the grub.cnf.
On a reboot i get option 3.18.5[b]-custom[/b] and booted in.But now since I
am modifying the kernel and needed headers in /user/src for the same kernel
name i am using i.e 3.18.5 , but uname-r gives 3.18.5[b]-custom[/b].I can
still install headers with the name 3.18.5 and rename it to
3.18.5-custombut how is there any other way out to fix this.If I could
replace "-custom" in all the places or do I have to do it manually - in
grub, all all other places?I dont know how many places it has been
reference as "-custom".
I might have taken a wrong route i guess :S ! Have I??
Rgds,S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150211/7ec68328/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
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
0 siblings, 1 reply; 8+ messages in thread
From: Vinícius Tinti @ 2015-02-11 17:48 UTC (permalink / raw)
To: kernelnewbies
On Wed, Feb 11, 2015 at 3:42 PM, s.rawat <imsaurabhrawat@gmail.com> wrote:
> Hello,
> I recently built the 3.18.5 kernel according to instruction on the
> linuxkernel newbie page .I used /sbin/installkernel script to install the
> modules and updated the grub.cnf.
> On a reboot i get option 3.18.5[b]-custom[/b] and booted in.But now since I
> am modifying the kernel and needed headers in /user/src for the same kernel
> name i am using i.e 3.18.5 , but uname-r gives 3.18.5[b]-custom[/b].I can
> still install headers with the name 3.18.5 and rename it to 3.18.5-custombut
> how is there any other way out to fix this.If I could replace "-custom" in
> all the places or do I have to do it manually - in grub, all all other
> places?I dont know how many places it has been reference as "-custom".
> I might have taken a wrong route i guess :S ! Have I??
Take a look at CONFIG_LOCALVERSION option.
> Rgds,S
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Simplicity is the ultimate sophistication
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-11 17:48 ` Vinícius Tinti
@ 2015-02-11 18:07 ` Arshad Hussain
2015-02-12 6:37 ` s.rawat
0 siblings, 1 reply; 8+ messages in thread
From: Arshad Hussain @ 2015-02-11 18:07 UTC (permalink / raw)
To: kernelnewbies
On 11-Feb-2015, at 11:18 pm, Vin?cius Tinti <viniciustinti@gmail.com> wrote:
> On Wed, Feb 11, 2015 at 3:42 PM, s.rawat <imsaurabhrawat@gmail.com> wrote:
>> Hello,
>> I recently built the 3.18.5 kernel according to instruction on the
>> linuxkernel newbie page .I used /sbin/installkernel script to install the
>> modules and updated the grub.cnf.
>> On a reboot i get option 3.18.5[b]-custom[/b] and booted in.But now since I
>> am modifying the kernel and needed headers in /user/src for the same kernel
Your headers for ?-custom? kernel will be under the folder where you have downloaded 3.18.5 kernel.
>> name i am using i.e 3.18.5 , but uname-r gives 3.18.5[b]-custom[/b].I can
>> still install headers with the name 3.18.5 and rename it to 3.18.5-custombut
>> how is there any other way out to fix this.If I could replace "-custom" in
>> all the places or do I have to do it manually - in grub, all all other
>> places?I dont know how many places it has been reference as "-custom".
>> I might have taken a wrong route i guess :S ! Have I??
>
> Take a look at CONFIG_LOCALVERSION option.
>
>> Rgds,S
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
> --
> Simplicity is the ultimate sophistication
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-11 18:07 ` Arshad Hussain
@ 2015-02-12 6:37 ` s.rawat
2015-02-12 8:30 ` Paul Bolle
2015-02-12 8:34 ` Arshad Hussain
0 siblings, 2 replies; 8+ messages in thread
From: s.rawat @ 2015-02-12 6:37 UTC (permalink / raw)
To: kernelnewbies
Yes the headers are there in the sources of 3.18.5 kernel.But then I have
to change all the references to linux/<header_files.h> in my modules to the
path of <kernel_source>/include/linux/<header_files.h>.This could be
corrective action.I am looking for preventive action .
CONFIG_LOCALVERSION appends whatever name we want to append after the
kernel version.
I was looking for downloading the kernel headers for the custom kernel I
built whose name has been changed to 3.18.5-custom.
uname -r give => 3.18.5-custom. :( (cant use it sudo apt-get install
linux-header-$(uname-r) :(
"..pain is temporary.....quitting lasts forever....."
My Blog <http://techshek4u.blogspot.in/>"
On Wed, Feb 11, 2015 at 11:37 PM, Arshad Hussain <arshad.super@gmail.com>
wrote:
>
> On 11-Feb-2015, at 11:18 pm, Vin?cius Tinti <viniciustinti@gmail.com>
> wrote:
>
> > On Wed, Feb 11, 2015 at 3:42 PM, s.rawat <imsaurabhrawat@gmail.com>
> wrote:
> >> Hello,
> >> I recently built the 3.18.5 kernel according to instruction on the
> >> linuxkernel newbie page .I used /sbin/installkernel script to install
> the
> >> modules and updated the grub.cnf.
> >> On a reboot i get option 3.18.5[b]-custom[/b] and booted in.But now
> since I
> >> am modifying the kernel and needed headers in /user/src for the same
> kernel
>
> Your headers for ?-custom? kernel will be under the folder where you have
> downloaded 3.18.5 kernel.
>
>
> >> name i am using i.e 3.18.5 , but uname-r gives 3.18.5[b]-custom[/b].I
> can
> >> still install headers with the name 3.18.5 and rename it to
> 3.18.5-custombut
> >> how is there any other way out to fix this.If I could replace
> "-custom" in
> >> all the places or do I have to do it manually - in grub, all all other
> >> places?I dont know how many places it has been reference as "-custom".
> >> I might have taken a wrong route i guess :S ! Have I??
> >
> > Take a look at CONFIG_LOCALVERSION option.
> >
> >> Rgds,S
> >>
> >> _______________________________________________
> >> Kernelnewbies mailing list
> >> Kernelnewbies at kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
> >
> >
> > --
> > Simplicity is the ultimate sophistication
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150212/f4eae2b3/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-12 6:37 ` s.rawat
@ 2015-02-12 8:30 ` Paul Bolle
2015-02-12 16:31 ` s.rawat
2015-02-12 8:34 ` Arshad Hussain
1 sibling, 1 reply; 8+ messages in thread
From: Paul Bolle @ 2015-02-12 8:30 UTC (permalink / raw)
To: kernelnewbies
On Thu, 2015-02-12 at 12:07 +0530, s.rawat wrote:
> Yes the headers are there in the sources of 3.18.5 kernel.But then I
> have to change all the references to linux/<header_files.h> in my
> modules to the path of
> <kernel_source>/include/linux/<header_files.h>.This could be
> corrective action.I am looking for preventive action .
Changing those preprocessor include lines is certainly the wrong thing
to do.
> CONFIG_LOCALVERSION appends whatever name we want to append after the
> kernel version.
> I was looking for downloading the kernel headers for the custom kernel
> I built whose name has been changed to 3.18.5-custom.
> uname -r give => 3.18.5-custom. :( (cant use it sudo apt-get install
> linux-header-$(uname-r) :(
What exactly are you trying to achieve? Looking at your original
question it seems this is about the headers in /usr/src/kernels/$(uname
-r). (That is the location used in Fedora.)
But why do you need those headers? See, these headers in that directory
are for building external modules. Ie, modules not already installed
in /lib/modules/$(uname -r). But that would be easier to do from within
the directory in your home directory where you downloaded the kernel's
source code.
And _please_ don't top post in your answer. That makes it even harder to
determine what it is you actually want to do.
Paul Bolle
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-12 8:30 ` Paul Bolle
@ 2015-02-12 16:31 ` s.rawat
2015-02-12 20:36 ` Paul Bolle
0 siblings, 1 reply; 8+ messages in thread
From: s.rawat @ 2015-02-12 16:31 UTC (permalink / raw)
To: kernelnewbies
On Thu, Feb 12, 2015 at 2:00 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
> On Thu, 2015-02-12 at 12:07 +0530, s.rawat wrote:
> > Yes the headers are there in the sources of 3.18.5 kernel.But then I
> > have to change all the references to linux/<header_files.h> in my
> > modules to the path of
> > <kernel_source>/include/linux/<header_files.h>.This could be
> > corrective action.I am looking for preventive action .
>
> Changing those preprocessor include lines is certainly the wrong thing
> to do.
>
> > CONFIG_LOCALVERSION appends whatever name we want to append after the
> > kernel version.
> > I was looking for downloading the kernel headers for the custom kernel
> > I built whose name has been changed to 3.18.5-custom.
> > uname -r give => 3.18.5-custom. :( (cant use it sudo apt-get install
> > linux-header-$(uname-r) :(
>
> What exactly are you trying to achieve? Looking at your original
> question it seems this is about the headers in /usr/src/kernels/$(uname
> -r). (That is the location used in Fedora.)
>
> But why do you need those headers? See, these headers in that directory
> are for building external modules. Ie, modules not already installed
> in /lib/modules/$(uname -r). But that would be easier to do from within
> the directory in your home directory where you downloaded the kernel's
> source code.
>> Yes I am building the external modules .The
headers(linux/<header_files>) I have included the way I have said above.
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 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.
>
> And _please_ don't top post in your answer. That makes it even harder to
> determine what it is you actually want to do.
>
>
> Paul Bolle
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150212/23556ae8/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-12 16:31 ` s.rawat
@ 2015-02-12 20:36 ` Paul Bolle
0 siblings, 0 replies; 8+ messages in thread
From: Paul Bolle @ 2015-02-12 20:36 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Replacing "-custom" in my New Kernel development configuration
2015-02-12 6:37 ` s.rawat
2015-02-12 8:30 ` Paul Bolle
@ 2015-02-12 8:34 ` Arshad Hussain
1 sibling, 0 replies; 8+ messages in thread
From: Arshad Hussain @ 2015-02-12 8:34 UTC (permalink / raw)
To: kernelnewbies
On 12-Feb-2015, at 12:07 pm, s.rawat <imsaurabhrawat@gmail.com> wrote:
> Yes the headers are there in the sources of 3.18.5 kernel.But then I have to change all the references to linux/<header_files.h> in my modules to the path of
You have to Modify your Makefile (-C) to point to your source.
make -C $(kennel source) SUBDIRS=$(Your source code folder) modules
> <kernel_source>/include/linux/<header_files.h>.This could be corrective action.I am looking for preventive action .
> CONFIG_LOCALVERSION appends whatever name we want to append after the kernel version.
> I was looking for downloading the kernel headers for the custom kernel I built whose name has been changed to 3.18.5-custom.
> uname -r give => 3.18.5-custom. :( (cant use it sudo apt-get install linux-header-$(uname-r) :(
>
>
>
> "..pain is temporary.....quitting lasts forever....."
> My Blog"
>
> On Wed, Feb 11, 2015 at 11:37 PM, Arshad Hussain <arshad.super@gmail.com> wrote:
>
> On 11-Feb-2015, at 11:18 pm, Vin?cius Tinti <viniciustinti@gmail.com> wrote:
>
> > On Wed, Feb 11, 2015 at 3:42 PM, s.rawat <imsaurabhrawat@gmail.com> wrote:
> >> Hello,
> >> I recently built the 3.18.5 kernel according to instruction on the
> >> linuxkernel newbie page .I used /sbin/installkernel script to install the
> >> modules and updated the grub.cnf.
> >> On a reboot i get option 3.18.5[b]-custom[/b] and booted in.But now since I
> >> am modifying the kernel and needed headers in /user/src for the same kernel
>
> Your headers for ?-custom? kernel will be under the folder where you have downloaded 3.18.5 kernel.
>
>
> >> name i am using i.e 3.18.5 , but uname-r gives 3.18.5[b]-custom[/b].I can
> >> still install headers with the name 3.18.5 and rename it to 3.18.5-custombut
> >> how is there any other way out to fix this.If I could replace "-custom" in
> >> all the places or do I have to do it manually - in grub, all all other
> >> places?I dont know how many places it has been reference as "-custom".
> >> I might have taken a wrong route i guess :S ! Have I??
> >
> > Take a look at CONFIG_LOCALVERSION option.
> >
> >> Rgds,S
> >>
> >> _______________________________________________
> >> Kernelnewbies mailing list
> >> Kernelnewbies at kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
> >
> >
> > --
> > Simplicity is the ultimate sophistication
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-02-12 20:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-02-12 8:34 ` Arshad Hussain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).