?

Log in

No account? Create an account

Previous Entry Share Next Entry
must recompile kernel!
hand
pogocochran wrote in netbsd
Im just curious, Ive been playing with my NetBSD installation for a bit, and I havent gotten all the src packages that would allow me to recompile kernel. How much like the FreeBSD is it?

(and yes I notice no one is talking in this community, thought I would post to one of the few BSD communities though)

  • 1
yeah, this forum tends to be quiet..

There are some marked differences between NetBSD and FreeBSD. The best thing is to start at http://www.netbsd.org/Documentation/

Also there is a forum at http://www.kordula.de/forum/

to complile a kernel you must have installed all base comp and maybe text. Then all you need is to obtain the kernel source which can be checked out via annonymous cvs with the following command:

cvs -d annoncvs@annoncvs.netbsd.org co -P src/sys

once checked out create a temporary directory, configure the kernel and build e.g.

create a place to build the kernel
mkdir /tmp/foo && cd /tmp/foo

configure the kernel -b specifies your build dir, -s specifies the root of your kernel source and /usr/src/sys/arch/i386/conf/GENERIC specifies the location of your kernel config file as well as your machine (architecture)
config -b /tmp/foo -s /usr/src/sys /usr/src/sys/arch/i386/conf/GENERIC

once configure just run make depend && make from /tmp/foo the resulting kernel will end up as /tmp/foo/netbsd

Note: if config fails for some reason it's highly likely your config is out of date. If the kernel build fails it's likely it's just broken in tree. Finally you may not want -current kernel source in that case use -r to get kernel source desired.

i think there's nothing more to explain :)
but i recommend you a *read* throught the FAQ

  • 1