|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
build a kernel
Hi,
i've read many website about compile a kernel, this is that i anderstand. Code:
# fetch source: cd /usr; cvs -z3 -d anoncvs@anoncvs.se.netbsd.org:/cvsroot co -P src # everything goes into this directory mkdir /usr/obj # build tools (to build everything else), custom kernel, binary sets cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=H4KK1T modules distribution sets # install kernel: cd /usr/obj/sys/compile/arch/*/compile/H4KK1T; su root -c 'make install' # test kernel: su root -c 'shutdown -r now' # update userland: cd /usr/src; ./build.sh -O /usr/obj install=/ # follow printed instructions about "postinstall" # build CD image (omit "tools" if built already): cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools release iso-image have got issues : Quote:
Regards Philippe PS : i forgot the URL of NetBSD Users ! |
|
|||
Please try to upgrade your sources.
Quote:
__________________
the dogs bark, but the caravan goes on |
|
|||
Hi,
I've do this quote : Quote:
Regards philippe |
|
|||
ok !
The Hardware as an Bi quad cores opteron 2347 (amd64), totaly : 8 cores, 4 Go RAM, 1.250 tera |
|
|||
Quote:
Code:
./build.sh tools Code:
./build.sh kernel=GENERIC Code:
./build.sh modules Code:
./build.sh installmodules=/
__________________
the dogs bark, but the caravan goes on |
|
|||
Hi,
Can you tell me whitch directory i must apply your commands |
|
|||
All commands are for /usr/src
__________________
the dogs bark, but the caravan goes on |
|
|||
i've got errors at this command line :
>> cd /usr/src; ./build.sh -O /usr/obj -U -j 8 tools kernel=H4KK1T modules distribution sets --------------------------------------------------------------------------------------------------------------------- this is my out put : Quote:
Philippe |
|
|||
Quote:
Replace H4KK1T with GENERIC: >> cd /usr/src; ./build.sh -O /usr/obj/ -U -j 8 tools kernel=GENERIC modules distribution set |
|
|||
Hi,
i've build a generic kernel and it's work fine ! But now i want to can change parametres of kernel before compilation. Whitch file configuration can i apply my parametres ? it's GENERIC 's file ? Regards philippe |
|
||||
Quote:
So, the recommended way it to copy the GENERIC file in the usr/src/sys/arch/.../conf/ directory to another unique file in that directory, say, MY_KERNEL. Then make your changes to the new config file and compile with % ./build.sh ... kernel=MY_KERNEL Replacing MY_KERNEL with a more descriptive name would be wise. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Build kernel & userland as root? | hanzer | OpenBSD Installation and Upgrading | 5 | 24th July 2015 06:52 PM |
Guide to build a modular kernel. | tolstoi | NetBSD Installation and Upgrading | 0 | 4th February 2013 07:10 AM |
commands to build a kernel | desreguard | FreeBSD General | 2 | 4th June 2011 05:20 PM |
Problem during kernel-build for a 6.x-to-7 upgrade | clevershark | FreeBSD Installation and Upgrading | 2 | 1st February 2009 10:45 PM |
Unable to build custom kernel [Wrong configuration?] | jrick | FreeBSD General | 3 | 31st July 2008 01:53 PM |