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 1 Week Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default [Solved] compile a kernel

hello, I'm trying to compile a kernel but nothing happens as I want I can compile a new kernel but the installation fails, here is my script :
Code:
cd /usr
cvs -z3 -d anoncvs@anoncvs.netbsd.org:/cvsroot checkout -P -rnetbsd-7 src
cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -P src
mkdir -p /usr/obj
cd src
# cd /
# tar zxf /path/to/syssrc.tgz
$ cd /usr/src/sys/arch/i386/conf/
$ ls
$ cp GENERIC MYKERNEL
$ vi MYKERNEL

$ config MYKERNEL
$ cd ../compile/MYKERNEL
$ make depend
$ make

$ cd /usr/src
$ ./build.sh kernel=MYKERNEL 
Quote:
hpc-raptor# ./build.sh -u kernel=PHIPO03KERNEL ERROR: usr.bin/make not found; build.sh must be run from the top level of source directory *** BUILD ABORTED *** hpc-raptor#
# mv /netbsd /netbsd.old # mv netbsd /

Last edited by philo_neo71; 1 Week Ago at 10:09 PM.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,066
Default

Quote:
$ config MYKERNEL
$ cd ../compile/MYKERNEL
$ make depend
$ make
After make successfully runs, you should have /usr/src/sys/arch/i386/compile/MYKERNEL/netbsd.

netbsd is the kernel. As root you can rename the old kernel, as a backup, and copy the new kernel into the root directory.

# mv /netbsd /netbsd.old
# cp /usr/src/sys/arch/i386/compile/MYKERNEL/netbsd /netbsd

See Compiling the kernel
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

yes I see ! but where declare the number of CPUs and make the kernel more aggressive, I mean real time
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,066
Default

Quote:
Originally Posted by philo_neo71 View Post
but where declare the number of CPUs and make the kernel more aggressive, I mean real time
FreeBSD and NetBSD will use multiple CPU cores by default. OpenBSD differs by having separate SP(Single Processor) and MP(Multi).

You can strip unused drivers out of a Kernel but it only makes it boot faster. It does not make a process intensive task run any faster.

It is possible to expand the amount of memory available, file descriptors in /etc/sysctl.conf
https://wiki.netbsd.org/tutorials/tu...r_performance/

I'm wondering if the Video problem you had in another thread was due to custom kernel that did not have the radeomdrm module?
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 239
Default

thanks you SHED !!

Thread/post SOLVED
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
How to cross-compile the kernel? Skinny OpenBSD General 11 26th November 2012 05:38 PM
Can't compile autoconf262 Sunsawe FreeBSD Ports and Packages 2 26th August 2008 07:53 PM
firefox3 will not compile map7 FreeBSD Ports and Packages 8 14th July 2008 11:23 PM
compile kernel error mfaridi FreeBSD Installation and Upgrading 9 14th July 2008 02:26 AM
gio-fam-backend will not compile map7 FreeBSD Ports and Packages 0 2nd July 2008 01:59 AM


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


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