Replacing "-custom" in my New Kernel development configuration
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
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Simplicity is the ultimate sophistication
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Simplicity is the ultimate sophistication
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Simplicity is the ultimate sophistication
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/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
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
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
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Simplicity is the ultimate sophistication
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (4)
-
Arshad Hussain -
Paul Bolle -
s.rawat -
Vinícius Tinti