DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd May 2008
itti itti is offline
New User
 
Join Date: May 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default track current kernel

Hi,
I am a long time linux user and i figure out i should give netbsd a
try. I downloaded NetBSD 4.0 installed it on my system. I read
http://www.netbsd.org/docs/current/
but it's not so well structured for my taste I just can't figure out a
few things.

I want to test the latest kernel (current) so i get it through anoncvs
(equivalent as taking the linux source with git i'm not lost here
:P). Now do I have to get anything else on a fresh installed NetBSD4.0
to compile and use the current kernel just for testing?
There are a lot of informations on that site i just can't figure out
which one to follow.

I don't want my whole system current just want to get the current
kernel compile it and put it along with the one i have so i can chose
to run it.

So please help a confused young netbsd user.
Thanks
Reply With Quote
  #2   (View Single Post)  
Old 3rd May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by itti View Post
I don't want my whole system current just want to get the current
kernel compile it and put it along with the one i have so i can chose
to run it.
My suggestion would be:
  • Install 4.0 according to information found in Section II of The NetBSD Guide:

    http://netbsd.org/docs/guide/en/
  • Download the source to -current, & build & install the new kernel.
Unlike Linux which is a kernel with a userland slapped on top, each of the *BSD's are more tightly integrated -- meaning that the kernel & userland may not have as much latitude in being out of sync. I haven't tried what you are attempting, but you are free to experiment. It might work, but I can't promise that you will be successful.

Last edited by ocicat; 3rd May 2008 at 05:59 AM.
Reply With Quote
  #3   (View Single Post)  
Old 4th May 2008
marcolino's Avatar
marcolino marcolino is offline
Real Name: Mark
Custom Title Maker
 
Join Date: May 2008
Location: At the Mountains of Madness
Posts: 112
Thanked 0 Times in 0 Posts
Default

Hi itti,

Might I suggest, if you are just looking to experiment with NetBSD itself, and not involve yourself in cutting-edge development, that you stick with the -release and -stable branches. The -current branch is more for developers and beta/alpha-testers. If you are looking to get a taste of NetBSD, you would be better served to avoid the -current branch.

Last edited by marcolino; 5th May 2008 at 03:55 PM.
Reply With Quote
  #4   (View Single Post)  
Old 4th May 2008
itti itti is offline
New User
 
Join Date: May 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default

Well correct me if i'm wrong because i tried it 6 times and it always
fails and it takes a hell lot of time.

One clean install of NetBSD 4.0
#cd /usr
#mkdir src objdir tooldir
#chown someuser src/ objdir/ tooldir/

as someuser:

$export CVSROOT=anoncvs@anoncvs.se,NetBSD.org:/cvsroot
$export CVS_RSH=ssh
$cvs checkout -PA src

also today to make sure i'm up to date:
----------------------------
$cd /usr/src
$cvs -q -d $CVSROOT update -dP
#chown -R someuser:wsrc /usr/src
#chmod -R u=rwx,g=rwx /usr/src
------------------------------

$cd /usr/src
$./build.sh -O ../objdir -T ../tooldir -U -u tools
$./build.sh -O ../objdir -T ../tooldir -U -u distribution (also
tried release)

well this is where it fails miserably with release or distribution
So please HELP because this trial && error process is taking a
painfull amount of time.

Thanks.
Reply With Quote
  #5   (View Single Post)  
Old 6th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

I feel the best advice you can receive at this point is to indicate that there is a mailing list specific to discussions about -current called current-users@. You can find information on subscribing at the following:

http://netbsd.org/mailinglists/#current-users

I suspect a number of people are apprehensive on discussing this matter further publicly due to the fact that you intentionally want to maintain a very distinct difference between the kernel's version & userland. As mentioned before, this may be acceptable in the Linux world, but in the *BSD world the two are much more tightly integrated. Most people are very carefully about making sure that the two are synchronized.
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

For those interested, the OP did post this question over on netbsd-users@, & the thread can be found at the following:

http://marc.info/?t=120977126300001&r=1&w=2

The moral of the story is that 4.0 & -current have diverged too much for this to work. I suspected this, but didn't know definitively...
Reply With Quote
  #7   (View Single Post)  
Old 10th May 2008
replaced replaced is offline
Real Name: Adam Hoka
New User
 
Join Date: May 2008
Posts: 8
Thanked 0 Times in 0 Posts
Exclamation

To track the current kernel you will also need a current userland (it wont work correctly with 4.0 userland) so install a current snapshot install cd (you can find it on ftp or just build it yourself).
To track the development you will only need cvs and build.sh.
Reply With Quote
  #8   (View Single Post)  
Old 30th June 2008
tonyex's Avatar
tonyex tonyex is offline
Real Name: Anton
Port Guard
 
Join Date: May 2008
Location: Sweden
Posts: 14
Thanked 0 Times in 0 Posts
Default

I used to play with --current some years ago, because of a feature that i wanted and even the machine itself worked nicely , sometimes compiling the the --current failed badly.
U should use --current "if u have to" or if u want to play or test the hard way, otherwise use some stable source.
Reg /T
Reply With Quote
  #9   (View Single Post)  
Old 11th December 2008
knf knf is offline
New User
 
Join Date: Dec 2008
Posts: 1
Thanked 0 Times in 0 Posts
Default Using Xen to track -current

Hi there.

When I wanted to start tracking -current, I investigated Xen. You may want to set up a virtual machine just for that. That way, in case of a blow up, your main installation is probably safe.
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
NetBSD New kernel modules in NetBSD-CURRENT (instead LKM) vermaden News 0 5th October 2009 05:28 PM
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
pf: Does pf have the ability to src-track created/established connections? gen2ly OpenBSD Security 3 27th February 2009 03:10 PM
Looks like -CURRENT has a new toy.. BSDfan666 OpenBSD General 21 27th October 2008 06:36 PM


All times are GMT. The time now is 07:16 AM.


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