DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default Custom kernel version vs newvers.sh mismatch?

I need altq so I compile my own kernel, but there's a patch mismatch. uname -a tells me:

Code:
FreeBSD server 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 17:08:02 CEST 2012     root@server:/usr/obj/usr/src/sys/BTSE-amd64  amd64
In newvers.sh I read:

Code:
BRANCH="RELEASE-p4"
I have recompiled this kernel, installed it, rebooted and expected 9.0-RELEASE-p4 to be printed and it doesn't. In the compile output I read:


Code:
--------------------------------------------------------------
>>> stage 2.1: cleaning up the object tree
--------------------------------------------------------------
...
cd /usr/obj/usr/src/sys/BTSE-amd64.conf; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr\
/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/\
share/tmac  _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp  VERSION="FreeBSD 9.0-RELEASE-p3 amd64 900044"  INSTALL="sh /usr/src/tools/install.sh"
...
What gives? I did try to ditch /usr/src to start over, no good.

Last edited by bsdperson; 9th November 2012 at 09:36 AM.
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2012
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Did you make installkernel?
Reply With Quote
  #3   (View Single Post)  
Old 6th November 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

Absolutely, but I suspect the problem is prior to that. The -p3 vs -p4 is between the file newvers.sh and the output of make buildkernel ... prior to installkernel
Reply With Quote
  #4   (View Single Post)  
Old 7th November 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

Running strings on /usr/obj/usr/src/sys/BTSE-amd64.conf/kernel gives me (last few lines):

Code:
amd64
v1.16
hptrr
RocketRAID 17xx/2xxx SATA controller driver
v1.2
@(#)FreeBSD 9.0-RELEASE-p4 #4: Wed Nov  7 08:40:03 CET 2012
FreeBSD 9.0-RELEASE-p4 #4: Wed Nov  7 08:40:03 CET 2012
    root@server:/usr/obj/usr/src/sys/BTSE-amd64.conf
FreeBSD
9.0-RELEASE-p4
BTSE
Strings on /boot/kernel/kernel also gives:

Code:
amd64
v1.16
hptrr
RocketRAID 17xx/2xxx SATA controller driver
v1.2
@(#)FreeBSD 9.0-RELEASE-p4 #4: Wed Nov  7 08:40:03 CET 2012
FreeBSD 9.0-RELEASE-p4 #4: Wed Nov  7 08:40:03 CET 2012
    root@server:/usr/obj/usr/src/sys/BTSE-amd64.conf
FreeBSD
9.0-RELEASE-p4
BTSE
But uname -a says:

Code:
FreeBSD server 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 17:08:02 CEST 2012     root@server:/usr/obj/usr/src/sys/BTSE-amd64  amd64
This means that the kernel in /boot/kernel/kernel isn't running? I also tried nextboot -k kernel but still it says -p3...?

Last edited by bsdperson; 9th November 2012 at 09:35 AM.
Reply With Quote
  #5   (View Single Post)  
Old 7th November 2012
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Exclamation

Solved: installkernel as well as nextboot and others relate to /boot, whereas the actual booting is from /boot-mount/boot/kernel regardless. Very confusing. Up to -p3 this seemed to work as expected. A simple copy of the kernel+modules fixed this. Note to self: after installkernel, cp -r /boot/kernel-btse /boot-mount/boot/kernel, then reboot. Case closed.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom kernel problem pahel0 FreeBSD General 8 15th February 2010 11:13 PM
kernel version 0?? Stellar OpenBSD General 5 30th August 2009 11:07 PM
Updating FreeBSD and Building a Custom Kernel bsdforlife FreeBSD Installation and Upgrading 8 16th August 2008 02:45 AM
Unable to build custom kernel [Wrong configuration?] jrick FreeBSD General 3 31st July 2008 01:53 PM
gem Collisions, duplex mismatch? tad1214 FreeBSD General 1 8th July 2008 02:32 AM


All times are GMT. The time now is 03:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick