PDA

View Full Version : upgrade a custom kernel ?


smooth
November 27th, 2008, 11:32
how can i upgrade my FreeBSD if i have a custom kernel ?

Andrius
November 27th, 2008, 11:57
By reading the handbook. It's there for a reason.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html

SirDice
November 27th, 2008, 14:25
Yes, just make sure you buildkernel and installkernel both with KERNCONF=MYKERNEL

Carpetsmoker
November 27th, 2008, 15:02
Whenever I make/upgrade a custom kernel configuration, I copy the kernel configuration and GENERIC kernel configuration to a seperate directory (i.e. /root/KERNEL/), this way you can diff the GENERIC config file and see any changes/additions.

SirDice
November 27th, 2008, 16:32
I also add KERNCONF=MYKERNEL to /etc/make.conf. That way it'll always build/install that kernel config.

kasse
November 27th, 2008, 17:58
I was just wondering if regular hobbyists are allowed to use csup to upgrade to RELENG_7 via the stable-supfile, in the sense that we are stealing bandwidth?

Djn
November 27th, 2008, 18:05
Knock yourself out, it's why it's there.
I'd change the server to something more local to you, though - pick one from here (http://www.freebsd.org/doc/en/books/handbook/cvsup.html#CVSUP-MIRRORS).

kasse
November 27th, 2008, 18:11
Of course a local server, but from what I understand, in Michael Lucas Absolute freebsd 2ed p387, he mentions that it is rude to the mirror maintainers to download the sources, you should preferably use cd's.

danger@
November 28th, 2008, 01:27
downloading sources is perfectly fine, do not worry about it.

RudiK
November 28th, 2008, 06:52
Of course a local server, but from what I understand, in Michael Lucas Absolute freebsd 2ed p387, he mentions that it is rude to the mirror maintainers to download the sources, you should preferably use cd's.

I normally install the source from the cd and then use csup to update it to the latest version. It's not only polite ;) but you save on time and bandwidth.

komeylian
December 2nd, 2008, 09:20
hi smooth

it's so simple to have your own custome kernel by any upgrade, after update your source by csup or cvsup compile source and kernel step by step alike below:

# cd /usr/src
# make buildworld
# make buildkernel KERNCONF="your custom kernel name"
# make installkernel KERNCONF="your custom kernel name"
# nextboot -o "-s" -k kernel
# reboot

# fsck -p
# mount -a

# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster –Ui
# reboot

and have fun.