DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4 Weeks Ago
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 97
Question How to enable kernel options?

Hello,

Can anyone tell me how to check if the following options are enable:
Quote:
option COMPAT_LINUX
option EXEC_ELF64
and if they are not, how can I enable them?
Reply With Quote
  #2   (View Single Post)  
Old 4 Weeks Ago
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 882
Default

These kinds of options are set (or unset) at the time the kernel is compiled. Each kernel will have a specific configuration file that is used to set the desired options, and then the kernel will be built with reference to the desired configuration file. The configuration files are found in the source code tree, in the directory usr/src/sys/arch/amd64/conf/, for example. For i386 you would replace "amd64" with "i386".

For example, the generic kernel distributed with the system is configured by the file called GENERIC.

With that background, to answer your first question, you would look into the configuration file used to compile the binary kernel in question. If you're using a kernel supplied with the system this can be found on the web, e.g.,

http://ftp.netbsd.org/pub/NetBSD/Net...4/conf/GENERIC

For the second question: If you want to change option values, or enable/disable options, then you need to create a new configuration file with all the options you want in it. This would often be done by taking an existing config file, like GENERIC, and editing it a bit. Then you would compile a new kernel using the new configuration file.

To learn more about all this you can study the NetBSD Guide, Section 32 Compiling the kernel .

Hope that helps.

Last edited by IdOp; 4 Weeks Ago at 03:05 PM. Reason: pre-pend usr/ to directory; wording
Reply With Quote
  #3   (View Single Post)  
Old 4 Weeks Ago
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 97
Default

Thank you for the information.
Reply With Quote
  #4   (View Single Post)  
Old 4 Weeks Ago
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 882
Default

You're welcome. I wanted to add one other thing. The default configuration files are also found in the system source archive file syssrc.tgz . It's a pretty big file, so it may be easier just to look at the config file on the web as I suggested. But if you're compiling kernels, you already have it on your disk.
Reply With Quote
  #5   (View Single Post)  
Old 4 Weeks Ago
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 97
Default

I got it. Thanks.
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
enable php in apache2 MatthiasKoch OpenBSD Packages and Ports 2 30th September 2016 11:54 AM
OpenBSD 5.0 - How to enable dfs ? mayuka OpenBSD General 5 13th November 2011 07:09 AM
Enable SNMP? dzudja100 FreeBSD Ports and Packages 1 20th May 2010 05:52 PM
boot bug with USB enable nORKy FreeBSD Installation and Upgrading 5 12th June 2008 04:56 PM


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick