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 20th May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default FreeBSD6.3 upgrade to FreeBSD7.0

Typed make update in /usr/src to have cvsup update the directory, .. i copied the GENERIC kernel file to a new one and edited that, .. then i typed config <kernelfile> ..? Weird no such command .. checked /usr/sbin config was there though only rw mode chmod +x .. didn't work checked what was in the config file apparently it was some script so: "cd /usr/src/usr.sbin/config && make install"

Code:
ERROR: version of config(8) does not match kernel!
config version = 600003, version required = 600004

Make sure that /usr/src/usr.sbin/config is in sync
with your /usr/src/sys and install a new config binary
before trying this again.

If running the new config fails check your config
file against the GENERIC or LINT config files for
changes in config syntax, or option/device naming
conventions

Figured it's due the freebsd7 source tree, so i downloaded with cvsup freebsd6.3 source tree still the same, how can i fix this ?

I have noticed that i still can compile when the configuration and src tree is FreeBSD6, though after reinstalling world and upgrading the kernel to 6.3p2 i still have this issue with config, when i try to compile a freebsd7 kernel, i've tried building world before using config without any effects ..
Reply With Quote
  #2   (View Single Post)  
Old 20th May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

You have to do a full buildworld cycle to upgrade between versions. You can't just compile the kernel.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 21st May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

I will try to do make buildworld again if that's what you mean though I have already tried this.. once before, or how do you suggest i do this ?
Reply With Quote
  #4   (View Single Post)  
Old 21st May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Clean out the /usr/obj directory:
Code:
# cd /usr/src
# make cleanworld
Update to the FreeBSD 7.0 source tree by setting tag=RELENG_7_0 in your supfile, then run:
Code:
# csup /path/to/supfile
Build the new world:
Code:
# cd /usr/src
# make -j2 buildworld
(Change the 2 to 1 more than the number of CPUs you have.)

Build a new GENERIC kernel:
Code:
# make buildkernel
Install the new GENERIC kernel:
Code:
# make installkernel
Reboot. If it boots correctly, then you can proceed to install the world:
Code:
# cd /usr/src
# make installworld
Then run mergemaster (be sure to only install files you haven't edited, and to merge files you have edited, like passwd and group):
Code:
# mergemaster -iU
Then reboot once more to load the new world. And then rebuild all your ports. If everything is working correctly, then you can edit your kernel config file, and build your custom kernel:
Code:
# cd /usr/src
# make KERNCONF=MYKERNEL buildkernel
# make KERNCONF=MYKERNEL installkernel
(where MYKERNEL is whatever your kernel config file is called)
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5   (View Single Post)  
Old 22nd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

hmm, I havn't tried it yet with a GENERIC kernel though, .. but i get a lot of this

Code:
kldxref: file isn't dynamically-linked
I'll give it a try with a GENERIC kernel and let you know what happens..
Reply With Quote
  #6   (View Single Post)  
Old 22nd May 2008
tonywob tonywob is offline
Real Name: Tony
New User
 
Join Date: May 2008
Location: United Kingdom
Posts: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by phoenix View Post
Reboot. If it boots correctly, then you can proceed to install the world:
Code:
# cd /usr/src
# make installworld
It is recommended that you boot into single user mode to run "make installworld" and run mergemaster. After that, you can continue.
Reply With Quote
  #7   (View Single Post)  
Old 22nd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

hmm but isn't "kldxref: file isn't dynamically-linked" a problem i get a lot of those on the end .. after running make installkernel (KERNCONF is defined in make.conf)
Reply With Quote
  #8   (View Single Post)  
Old 22nd May 2008
erno erno is offline
Port Guard
 
Join Date: May 2008
Location: Finland
Posts: 12
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Ofloo View Post
hmm but isn't "kldxref: file isn't dynamically-linked" a problem i get a lot of those on the end .. after running make installkernel (KERNCONF is defined in make.conf)
Just ignore it. http://lists.freebsd.org/pipermail/f...ay/072805.html
Reply With Quote
  #9   (View Single Post)  
Old 22nd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

Apparently it worked by just ignoring it so far it works just fine, ..

Thanks for all the replay's it really helped.
Reply With Quote
Old 22nd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

Oh one more thing can I run make check-old && make delete-old after a successful upgrade ?

EDIT:

also i've noticed pkgdb is acting weird, ..

Code:
# pkgdb -F
--->  Checking the package registry database
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... - 56 packages found (-0 +56) ........................................................ done]
Stale dependency: BitchX-1.1.0.1_1 -> perl-5.8.8_1 (lang/perl5.8):
Install stale dependency? ([y]es/[n]o/[a]ll) [yes]

...

# pwd
/var/db/pkg
# ls | grep perl
perl-5.8.8_1/
# perl -v

This is perl, v5.8.8 built for i386-freebsd-64int
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Last edited by Ofloo; 22nd May 2008 at 11:51 PM.
Reply With Quote
Old 23rd May 2008
KernelPanic KernelPanic is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Thanked 0 Times in 0 Posts
Default

There are some major library changes between 6.3 and 7.0.

You will need to reinstall most (if not all) of your ports so that they are linked to the correct ones.
Reply With Quote
Old 17th July 2008
tofumaster tofumaster is offline
New User
 
Join Date: Jul 2008
Posts: 1
Thanked 0 Times in 0 Posts
Default

So, if I've been installing my ports via the packages most of the time, do I still have to reinstall all my ports?

Looking at the ports-supfile, it doesn't seem like it makes a distinction between 6.x and 7.x.

Also, is there a command that I could use to "force refresh" install of all the ports?

(Just wondering how painful this might be...)

Thanks!
Reply With Quote
Old 17th July 2008
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

check portmaster port, read man
Reply With Quote
Old 23rd December 2008
qsecofr qsecofr is offline
Port Guard
 
Join Date: May 2008
Location: Portland
Posts: 18
Thanked 0 Times in 0 Posts
Default upgrade 6.x to 7.x .. KERNCONF=GENERIC ?

Hi,

I Will at some point shortly upgrade from 6.4 to 7.1 release. I've been reasonably OK doing source upgrades using pretty much the same steps as Phoenix detailed - from 4.3 to 4.11 and 6.1 to 6.4. My question is in regards to generic kernel. Was it an outright recommendation to install a generic kernel when first building 7.0 release?

I've seen a couple other recommendations - specifically one describing a binary upgrade - state that the GENERIC kernel in 7.x has SMP by default. And for that reason users should build & install GENERIC first.

But i've got a custom kernel including dummynet for ipfw among a few other options. And if possible I would prefer to upgrade to 7.x with my custom kernel, without having to first build & install GENERIC first.

Can I ask what reasons exist for building/installing GENERIC first?

Thanks!
Reply With Quote
Old 23rd December 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

To make sure that the system works. If you can't run GENERIC, you probably can't run FreeBSD. So you do upgrades using GENERIC. If it doesn't work, you put back the old kernel. If it does work, then you build a new custom kernel. This also avoids the "that option no longer exists" and "we've changed the defaults, so now your custom kernel is missing things" traps.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 23rd December 2008
qsecofr qsecofr is offline
Port Guard
 
Join Date: May 2008
Location: Portland
Posts: 18
Thanked 0 Times in 0 Posts
Default upgrade 6.x to 7.x

got it. Thanks!
Reply With Quote
Old 21st February 2009
qsecofr qsecofr is offline
Port Guard
 
Join Date: May 2008
Location: Portland
Posts: 18
Thanked 0 Times in 0 Posts
Default FreeBSD6.3 upgrade to FreeBSD7.0 - ports

Hi,
Am in the process of rebuilding all ports after upgrading from 6.4 to 7.1. So far have built/installed world & kernel (both generic & custom kernels install and run). Am running custom kernel now w/o any noticeable problems.

After all ports are rebuilt should I

Code:
cd /usr/src
make delete-old-libs
Is it safe to answer 'y' to each prompt? Should I check each first to verify that I'm not removing the highest numbered lib?

Last edited by qsecofr; 23rd February 2009 at 10:03 PM. Reason: got fftw3 installed. libopensync may not have been required as a dependecny by any other port. I deinstalled it.
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
Upgrade FreeBSD7.0 to 7.1 Ofloo FreeBSD Installation and Upgrading 2 10th October 2008 03:24 AM
How do I upgrade? wubrgamer FreeBSD Ports and Packages 2 27th August 2008 07:18 PM
GNOME/FreeBSD6 gr1M FreeBSD Installation and Upgrading 3 25th July 2008 07:12 AM
raw disk access on FreeBSD6 & 7 SimonSync FreeBSD General 1 15th July 2008 03:00 PM
Guide: Atheros ar5007 wifi cards in freebsd7 Dazhelpwiz FreeBSD Installation and Upgrading 3 16th June 2008 02:23 AM


All times are GMT. The time now is 12:45 PM.


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