Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2006, 10:16 AM
BlueScreenTT BlueScreenTT is offline
Junior Member
 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custom Kernel
Hi !

normaly i would go in to /usr/src/sys/i386/conf to copy GENERIC to a custom file so i can compile a new kernel !
but hhmm where is the GENERIC file ?? the lib is empty !
i cant locate it
have run cvsup ! but that just updates ports :-)

any hints or ideas ?

Greets
Thomas
Reply With Quote
  #2  
Old 07-04-2006, 10:28 AM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Custom Kernel
Originally Posted by BlueScreenTT
Hi !

normaly i would go in to /usr/src/sys/i386/conf to copy GENERIC to a custom file so i can compile a new kernel !
but hhmm where is the GENERIC file ?? the lib is empty !
i cant locate it
have run cvsup ! but that just updates ports :-)

any hints or ideas ?

Greets
Thomas
Code:
# cvsup /root/standard-supfile
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #3  
Old 07-04-2006, 11:33 AM
BlueScreenTT BlueScreenTT is offline
Junior Member
 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
ARRGGHH forget it !

i forgot to use my normal guide ! :-( i linked to the wrong file !

used this one !
Works everytime !

All Credit goes to to the dudes at mostgraveconcern


Create the /usr/local/etc/cvsup/sup directory tree:

# mkdir -p /usr/local/etc/cvsup/sup


Create /usr/local/etc/cvsup/sup/supfile:

*default host=cvsup11.FreeBSD.org (Pick a mirror near you—see the list here)
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_6 (Use "RELENG_6_0" for 6.0-RELEASE)
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=.


Create the refuse file /usr/local/etc/cvsup/sup/refuse if you don't have a lot of disk space to spend on language-specific collections. See the FreeBSD Handbook article for more information about the refuse file.


Install the portupgrade utility suite to make managing ports easier:

# cd /usr/ports/sysutils/portupgrade
# make && make install && make clean

Once installed. portupgrade, portinstall, and portversion can make short work of keeping your system up to date. See the portupgrade and portversion man pages for additional information.


Create /usr/local/bin/cvsrun to automate the CVSup session:

#! /bin/sh
# cvsrun - Weekly CVSup Run

echo "Subject: `hostname` weekly cvsup run"
/usr/local/bin/cvsup -g -L 2 /usr/local/etc/cvsup/sup/supfile
echo ""
if [ $# -eq 1 ] ; then
if [ $1 = "-i" ] ; then
/usr/local/sbin/portsdb -Uu 2>&1
echo
fi
fi
echo ""
echo "cvsrun done."

The '-i' flag tells the script to update the ports database. You can eliminate the 'if' statements and force a database update each time you run cvsrun, but if you're trying to update kernel or userland sources so that you can do a 'make world' or 'make kernel', the database update can take an unbearably long time...

Make the script executable by root only:

# chmod 0700 /usr/local/bin/cvsrun


Create /usr/local/bin/portreport to create a mailable port version report:

#! /bin/sh
#
# portreport - Port Version Report

echo Subject: `hostname` port version report
echo Content-type: text/html
echo
echo
echo "<PRE>"
portversion -v
echo
echo End of Report.
echo "</PRE>"

Make the script executable by root only:

# chmod 0700 /usr/local/bin/portreport

Edit /etc/crontab to run CVSup every Friday night:

# Run cvsup every Friday night at 10:00 pm.
0 22 * * 5 root /usr/local/bin/cvsrun -i | sendmail root; /usr/local/bin/portreport | sendmail root

# /usr/local/bin/cvsrun -i
Reply With Quote
  #4  
Old 07-11-2006, 11:05 PM
boudi boudi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Custom Kernel
Quote:
Code:
# cvsup /root/standard-supfile
Is there anyway to get the default Kernel config that is used for PCBSD. I would really like to start with that instead of the GENERIC kernel config.

Thanks for a great workstation.
J
Reply With Quote
  #5  
Old 07-12-2006, 06:06 AM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Custom Kernel
Originally Posted by boudi
Quote:
Code:
# cvsup /root/standard-supfile
Is there anyway to get the default Kernel config that is used for PCBSD. I would really like to start with that instead of the GENERIC kernel config.

Thanks for a great workstation.
J
Look at /PCBSD/config/PCBSDv1.2 file.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #6  
Old 07-14-2006, 12:38 AM
boudi boudi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Custom Kernel
Quote:
Look at /PCBSD/config/PCBSDv1.2 file.
Thanks. That was just what I was looking for. -J
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? [SOLVED] cklester FreeBSD Help 5 02-23-2008 03:38 AM
Compiling a custom Kernel? Is this possible with PCBSD? DanFromWinterpeg Usage Bug Reports (read-only) 8 10-15-2007 10:29 PM
installed Kernel / Custom Kernel BlueScreenTT FreeBSD Help 6 07-04-2006 02:07 PM
Custom kernel config. nb_double_d General Questions 14 01-23-2006 04:27 AM
custom kernel KJ General Questions 2 01-19-2006 07:42 AM


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.