LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   different kernel version number after compilation in raspberry PI (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/different-kernel-version-number-after-compilation-in-raspberry-pi-4175492771/)

golden_boy615 01-27-2014 01:03 PM

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?

business_kid 01-27-2014 01:35 PM

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.

golden_boy615 01-29-2014 12:25 AM

thanks but can you guide me where is my problem to solve it? I have to say in raspberry there is no grub .

business_kid 01-30-2014 03:21 AM

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.

golden_boy615 02-09-2014 12:10 AM

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)


All times are GMT -5. The time now is 04:53 AM.