LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 01-27-2014, 01:03 PM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Rep: Reputation: 17
different kernel version number after compilation in raspberry PI


Hi
I made a linux image with buildroot 2013.11 and with costum e kernel 3.10.20 but when I boot up with my created image in RPI I see that my kernel version in not what I introduced to buildtoot:
Quote:
# uname -a
Linux buildroot 3.10.18+ #587 Sun Nov 10 15:30:45 GMT 2013 armv6l GNU/Linux
# modprobe -l
modprobe: can't change directory to '3.10.18+': No such file or directory
# ls /lib/modules/
3.10.20
as you can see my compiled linux version is different from its lib directory and what I introduced to buildroot, which modprob has problem with it too.
why this is happened and how can I solve it?
 
Old 01-27-2014, 01:35 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,131

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
In the guts of the kernel is the version number. That is what make modules_install installs the modules to. I would run with that if possible. grub will call a specific kernel, but if there is more than one kernel lying around, it will want System.map-version, 'version being the exact number. The buildroot scripts probably have an error somewhere.
 
Old 01-29-2014, 12:25 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
thanks but can you guide me where is my problem to solve it? I have to say in raspberry there is no grub .
 
Old 01-30-2014, 03:21 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,131

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Your problem seems to be that a kernel you have as one version thinks it is another version. That's the problem you outlined. Renaming may fix it. either that or the 'make modules_install" failed in the kernel.
 
Old 02-09-2014, 12:10 AM   #5
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
I have found the solution. I was copying kernel.img instead of zImage so all of my problems was because of this. (damn bad howtos)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
version control system for my kernel compilation kushalkoolwal Linux - Kernel 4 08-03-2009 05:37 PM
reg. Kernel Version Number nilathinesh Linux - Kernel 5 05-28-2009 06:09 AM
take out number after kernel version pauledwards03 Linux - Kernel 5 09-18-2008 09:30 AM
kernel version mixup for driver compilation takatam Mandriva 3 01-17-2005 04:48 AM
GCC version in kernel compilation Alpha_Beta Linux - Newbie 3 09-29-2003 11:39 PM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration