The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 kernel compile help?
Author: bb 
Date:   10-12-02 20:10

ok so this all started when i decided i need a port update

found out about the portupgrade

found the port was not present in my collection so i decided to do a cvsup (had done this b4 but not on this machine) everything went smoothly there

so the next step was to re-compile the kernel using the new method here's where the problems began


wait hold up stop the press

looks like its all ok? for some reason i was getting an error about the miibus file not being present

uncommenting that line in my current kernel and recompiling with the KERNEL opt instead of the KERNELCONF

looks to have fixed it

but i was gettin a lil antsy? it being my main webserver and all

thanx for nothing ;)

bb

Reply To This Message
 
 Re: kernel compile help?
Author: Dan Langille 
Date:   10-12-02 20:18

I am assuming you have read "Building and Installing a Custom Kernel" (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html) and tried the "new" method listed there.

About half way down that page you will find this:

"You must now compile the source code for the kernel. There are two procedures you can use to do this, and the one you will use depends on why you are rebuilding the kernel, and the version of FreeBSD you are running."

Perhaps a slow read will help.

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 20:27

i am a skimer what can i say

here's the line i missed:

Note: In FreeBSD 4.2 and older you must replace KERNCONF= with KERNEL=. 4.2-STABLE that was fetched after Feb 2nd, 2001 does recognize KERNCONF=.

i totally forgot this system is 4.2 i thought for sure it was 4.4 at least

its kinda tough to get a full five minutes of my attention here at work with all the annoying windows problems i have to deal with

sa da te

Reply To This Message
 
 Re: kernel compile help?
Author: .daniel.schrock 
Date:   10-12-02 20:34

hrmm... cvsuping the ports is not related to cvsuping src.

are you trying to upgrade FreeBSD or your ports collection??

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 20:39

right but my ports collect was so out of date that i didnt have /usr/ports/sysutils/portupgrade

which is the package i wanted to install as layed out here http://www.onlamp.com/lpt/a/1385

so cvsup-ing to 4.7 i should get an updated ports collection (right?)

if not ill chalk it up as another learning experience and move on

Reply To This Message
 
 Re: kernel compile help?
Author: .daniel.schrock 
Date:   10-12-02 20:50

no... cvsuping to 4.7 will give you FreeBSD 4.7, but it won't touch the ports collection.


see /usr/share/examples/cvsup/ports-supfile <- this is what you want...

you may need to update freebsd for some ports (bison-1.75 refused to install in FreeBSD 4.6.2 but had no problems with 4.7-stable) but for the most part, the OS version is irrelevant to the ports-collection...

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 21:18

yeah just finished the kern compile

and was disappointed by this

# cd /usr/ports/sysutils/port*
/usr/ports/sysutils/port*: No match.

will have to try your sugestion manyana

thanx

dan(s)

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 21:24

ok that dont look too bad?

one ? if i do that and just update parts of my ports collection (omitting the jp and ru sections and some others)

will i need to do anohter kernel recompile?

thanx again

bb

Reply To This Message
 
 Re: kernel compile help?
Author: .daniel.schrock 
Date:   10-12-02 21:36

no... you are talking about 2 completely separate things here... kernels only need to be compiled if you are going from one version of freebsd to another...

ports are just applications... but instead of having to hunt down everything needed to install something, you just type make in the port you want and it builds everything it needs for you...

do not get system upgrades confused with the ports collection/ports upgrades... they both use the same methods of updating (cvsup) but they are totally unrelated in every other aspect...

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 21:39

i know all about ports and kernels

just needed to know if another recompile of the kernel was needed after updating the ports system (i was leaning towards no :) )

the ports collection is being updated as we speak

im definately not a rookie more like an amateur

thanx again for filling in the blanks where needed

bb

Reply To This Message
 
 Re: kernel compile help?
Author: .daniel.schrock 
Date:   10-12-02 22:04

kewl!

just a word of warning... if you have a lot of ports installed and then install portupgrade, it will take you a while to get pkgdb -F cleaned up. On the past 2 systems i've used it on, i found it easier to remove all of the old ports and start over.
i actually did this today, due to a totally messed up installation of gnome2...

i went from 198 ports to 8...now pkgdb is happy, but is making me work a bit harder...

my big complaint with portupgrade is that it is not very good at dealing with old/retired ports... its ok, but not great... if it can't a good dependancy match, it will pull the next closest thing... which is usually WAY off...


gl... let us know how it goes...


btw...once the ports are cvsup'd, you can use them... no need to reboot or anything... you probably knew that though...

Reply To This Message
 
 Re: kernel compile help?
Author: bb 
Date:   10-12-02 22:08

cvsup-ing the ports just finished sucessfully

i learned alot today now i remember why i used to hang out here alot more

yeah i got the jist of it being slow the first time around from the lucas article (i like him getting his book for xmas anyonelse have it)

anyhoot its 5pm est and i got tapes to change before i can make my way to the good ole nj cash cow i mean parkway

one more time

thanx dan!

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org