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 3rd September 2008
daemonFromHeaven daemonFromHeaven is offline
Port Guard
 
Join Date: May 2008
Posts: 31
Thanked 0 Times in 0 Posts
Default FreeBSD 7.0 kernel building...

Hi!

I was gone for a while, but now I'm back. I reinstalled my FreeBSD 7.0 system and compiled a custom kernel using the handbook. Everything went fine, but here's what I've noticed after a reboot.

I installed my new kernel like this (sources for everything are already installed on my system):

Code:
# mkdir /root/kernels
# cd /usr/src/sys/i386/conf/ 
# cp GENERIC /root/kernels/TSUNAMI_i386
# ln -s /root/kernels/TSUNAMI_i386
--- edited my TSUNAMI_i386 config file here ---
# cd /usr/src
# make buildkernel KERNCONF=TSUNAMI_i386
# make installkernel KERNCONF=TSUNAMI_i386
After a reboot I've noticed that my FreeBSD 7.0 system is using my new kernel, which I've just built (/usr/obj/usr/src/sys/TSUNAMI_i386), but dmesg shows that /usr/obj/usr/src/sys/GENERIC is being used.. Is this normal? On my other system with compiled custom kernel dmesg shows my custom kernel..

Why is that? Any ideas?

Thanks in advance!
Reply With Quote
  #2   (View Single Post)  
Old 3rd September 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by daemonFromHeaven View Post
After a reboot I've noticed that my FreeBSD 7.0 system is using my new kernel, which I've just built (/usr/obj/usr/src/sys/TSUNAMI_i386), but dmesg shows that /usr/obj/usr/src/sys/GENERIC is being used.. Is this normal?
You have compiled just a kernel, so uname -a will show you newer kernel, but userland is still "old" and dmesg is part of FreeBSD's base system userland.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 3rd September 2008
daemonFromHeaven daemonFromHeaven is offline
Port Guard
 
Join Date: May 2008
Posts: 31
Thanked 0 Times in 0 Posts
Default

Thanks for your reply, vermaden!

Yes, uname -a shows my new kernel. And is it ok that dmesg shows GENERIC? And how to fix it so dmesg shows my new kernel?

Thanks again.
Reply With Quote
  #4   (View Single Post)  
Old 3rd September 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Do also make buildworld and make installworld steps according to FreeBSD Handbook.

I generally do it that way:
Code:
# cd /usr/src
# make buildworld
# make kernel KODIR=/boot/testing
# nextboot -k testing
# reboot
---
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
# make delete-old (optional)
# make delete-old-libs (optional)
# cd /boot
# mv kernel old
# mv testing kernel
# reboot
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 3rd September 2008
daemonFromHeaven daemonFromHeaven is offline
Port Guard
 
Join Date: May 2008
Posts: 31
Thanked 0 Times in 0 Posts
Default

Thanks! Now everything is fine!
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
FreeBSD Kernel Optimization komodo FreeBSD General 5 22nd June 2009 07:15 AM
Building a Server with FreeBSD 7 anomie Book reviews 10 16th April 2009 01:13 PM
Updating FreeBSD and Building a Custom Kernel bsdforlife FreeBSD Installation and Upgrading 8 16th August 2008 02:45 AM
Understanding the FreeBSD kernel TomAmundsen FreeBSD General 3 7th July 2008 02:48 PM
Building Mozilla Firefox 3 Beta 5 on FreeBSD vi5in FreeBSD General 6 12th May 2008 11:25 PM


All times are GMT. The time now is 05:37 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