*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
actually i do have a "TEST" config file after i did a "cp GENERIC TEST". the handbook nor the FAQ doesn't tell what's needed to compile a kernel like should i install **all** the developer packages (from sysinstall) in order for "make" to run.
yes i'm in the "/usr/src" directory when i run that command and that directory has several subdirectories among them is "i386/conf" where i made a copy GENERIC to TEST. there are also "Makefile" in these subdirectories.
this may sound silly but i did a minimal install since i installed via ftp. after which i did a "/usr/sbin/sysinstall" and selected the base, developer, ports, and then sys for the kernel source. doing it this way is my freebsd install complete as in ready for kernel compiles?
joroxx, I can't tell what's the problem. The config should be in /usr/src/sys/i386/conf. I updated my source and built a kernel the other day... so... at this point I'm at a loss. You may have already, but read through this and see if you see something.
Originally posted by joroxx yes i'm in the "/usr/src" directory when i run that command and that directory has several subdirectories among them is "i386/conf" where i made a copy GENERIC to TEST. there are also "Makefile" in these subdirectories.
/usr/src is the directory you need to be in (I point this out as /usr/src does not have a i386/conf directory), and it should contain something like this:
Code:
COPYRIGHT UPDATING games libexec sys
MAINTAINERS bin gnu release tools
Makefile contrib include sbin usr.bin
Makefile.inc1 crypto kerberos5 secure usr.sbin
README etc lib share
with /usr/src/sys being essential. You also must have a Makefile and a Makefile.incl. If all of these conditions are met, you may want to update your source tree and try again.
finally was able to compile the kernel. apparently freebsd has two ways to compile the kernel - normal and buildworld. i was doing a buildworld where i only want is to compile a customised kernel!
Originally posted by joroxx apparently freebsd has two ways to compile the kernel - normal and buildworld.
Nope. 'buildworld' rebuilds the system binaries, libraries, docs, man pages, etc ... basically everything except the kernel. 'installworld' installs the things that buildworld builds.
Kernel building has three targets. 'buildkernel', which builds the kernel but doesn't install it, 'installkernel' which installs the built kernel and 'kernel' which builds *and* installs the kernel. Have a look in /usr/src/Makefile for more information. It's heavily commented.
Glad to hear you got it going though! Don't give up on BSD. It's a great system.
I've used it several times and I know it is also used by the FreeSBIE project as the way to get the kernel compile for the live cd without making a mistake and blowing away a normal kernel.
I mean... it is easier to just use the new way. But that depends on having a populated /usr/obj/ and other "world" related issues.
> Indeed, but no one uses config on the Free side of the fence anymore. Do they?
Funnily enough, I used the "old" method for the first six months or so that I used FreeBSD. For some reason I couldn't get my head around the buildkernel/installkernel method. Mind you, I never really thought about it until the day I sat down to learn the buildworld process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.