Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compile.h and uname -a shows different kernel compiled date.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 453
Location: India

PostPosted: Mon Sep 05, 2016 8:03 am    Post subject: compile.h and uname -a shows different kernel compiled date. Reply with quote

Hi Experts,

I am completely out of ideas and need your expert advice on the same.

Code:
cat /usr/src/linux-4.4.6-gentoo/include/generated/compile.h
and
Code:
uname -a
are showing 2 different compile dates for kernel.

cat /usr/src/linux-4.4.6-gentoo/include/generated/compile.h
/* This file is auto generated, version 8 */
/* SMP */
#define UTS_MACHINE "x86_64"
#define UTS_VERSION "#8 SMP Mon Sep 5 13:18:27 IST 2016"
#define LINUX_COMPILE_BY "root"
#define LINUX_COMPILE_HOST "livecd"
#define LINUX_COMPILER "gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4) "


# uname -a
Linux laxmi.optionfintech.com 4.4.6-gentoo #3 SMP Sun Jul 31 23:07:38 IST 2016 x86_64 Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz GenuineIntel GNU/Linux


Why is this difference ? /usr/src/linux-4.4.6-gentoo/include/generated/compile.h shows the correct date since I compiled this yesterday only. I even tried rebuilding the kernel using lived but no go.

Appreciate your help on this.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Mon Sep 05, 2016 11:01 am    Post subject: Reply with quote

manu_leo,

Code:
uname -a
is from your running kernel. You may well have made your kernel on Mon Sep 5 13:18:27 IST 2016 but for some reason you are not using it.

Further, its not the first time.
uname -a says 4.4.6-gentoo #3. that's the 3rd build of 4.4.6-gentoo actually running. Yesterday, you had UTS_VERSION "#8 ..." that's the 8th build.

Did you forget to mount /boot for the kernel install?
That's a popular one. There are other kernel install issues.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 453
Location: India

PostPosted: Mon Sep 05, 2016 11:55 am    Post subject: Reply with quote

Thanks Neddy. I do not have a separate partition for /boot. I do have it under / . The mounts points I am using are as below :-

/dev/sda1 --> /
/dev/sda3 --> /var
/dev/sda4 --> /home and
/dev/sda2 --> swap

I do have all of the above mounted.

I have no intention of NOT using the 4.4.6 kernel, please suggest how I can use it. I want to use the #8 VERSION.

Appreciate all your help.
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 453
Location: India

PostPosted: Mon Sep 05, 2016 11:57 am    Post subject: Reply with quote

Code:
# mount | grep /dev/sda
/dev/sda1 on / type ext4 (rw,noatime,data=ordered)
/dev/sda3 on /var type ext4 (rw,noatime,data=ordered)
/dev/sda4 on /home type ext4 (rw,noatime,data=ordered)



Under /boot, I see all the entries for Jul 31.

Quote:
/boot # ls -lth
total 19M
drwxr-xr-x 6 root root 4.0K Sep 5 17:17 grub
-rw-r--r-- 1 root root 102K Jul 31 23:08 config-4.4.6-gentoo
-rw-r--r-- 1 root root 3.3M Jul 31 23:08 System.map-4.4.6-gentoo
-rw-r--r-- 1 root root 6.0M Jul 31 23:08 vmlinuz-4.4.6-gentoo
-rw-r--r-- 1 root root 3.3M Jul 31 16:15 System.map-4.4.6-gentoo.old
-rw-r--r-- 1 root root 102K Jul 31 16:15 config-4.4.6-gentoo.old
-rw-r--r-- 1 root root 6.0M Jul 31 16:15 vmlinuz-4.4.6-gentoo.old


Why these are not getting updated when I have re-compiled the kernel only yesterday. Completely out of ideas.

Appreciate all your help guys.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Mon Sep 05, 2016 1:38 pm    Post subject: Reply with quote

because recompiling a kernel is not installing a kernel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Mon Sep 05, 2016 1:52 pm    Post subject: Reply with quote

manu_leo,

How do you make and install your kernel?
What commands did you use?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 453
Location: India

PostPosted: Mon Sep 05, 2016 2:00 pm    Post subject: Reply with quote

Hi Krinn and Neddy, this is what I use to recompile and rebuild the kernel :-

make menuconfig
make -j56 && make -j56 modules_install
make install

grub2-mkconfig -o /boot/grub/grub.cfg
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Mon Sep 05, 2016 2:21 pm    Post subject: Reply with quote

manu_leo,

That should work unless the build process failed.

In your kernel tree does the file arch/x86/boot/bzImage exist?
If not the build failed and you didn't notice, possibly due to the -j56. The error message scrolled off the screen.

If you don't have a bzImage, run the build with a plain make It will only build one file at a time and stop immediately on fail, so you can see and post the failure message.

grub2-mkconfig -o /boot/grub/grub.cfg
Looks in /boot for kernels and writes /boot/grub/grub.cfg using what it found.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum