Hi there,
I seem to be the only one who tries to install a new kernel in GhostBSD; except from this I find it a very good BSD.
I tried PC-BSD, but the project got bloated with their own packaging system.
So please, could someone from the admins of this site help me to compile a new kernel?
Thank you in advance
Antonio
Once again: Kernel
Re: Once again: Kernel
Assuming you are using one of the lastest beta, based on FreeBSD-10.1 and amd64 arch:
start downloading the source, if not already done (these are src for kernel and world):
unpack the tarball, starting from '/', src should go in /usr/src
then update your system, using (be sure your /etc/freebsd-update.conf include kernel world and "src" too:
now goto the kernel / world src directory:
Read the Makefile ,,, lot of info there, read the 'build' man page too
basically you can build the GENERIC kernel using
and you can build the world using
so far you will get the same kernel as already deployed with OSes base on FreeBSD-10.1, but inclusive of latest patches.
To make your own version, copy the config file:
now customize your configuration as you see fit your needs, when done use the following commands:
FreeBSD handbook may provide additional details.
Feel free to join us on IRC at #ghostbsd
Good luck!
start downloading the source, if not already done (these are src for kernel and world):
Code: Select all
ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/10.1-RELEASE/src.txz
then update your system, using (be sure your /etc/freebsd-update.conf include kernel world and "src" too:
Code: Select all
freebsd-update fetch install
Code: Select all
cd /usr/src
basically you can build the GENERIC kernel using
Code: Select all
make buildkernel
make installkernel
Code: Select all
make buildworld
make installworld
To make your own version, copy the config file:
Code: Select all
cp /usr/src/sys/amd64/conf/GENERIC /usr/src/sys/amd64/conf/MY_OWN_KERNEL
Code: Select all
make buildkernel KERNCONF=MY_OWN_KERNEL
make installkernel KERNCONF=MY_OWN_KERNEL
Feel free to join us on IRC at #ghostbsd
Good luck!
-
- Posts: 6
- Joined: Mon Jul 06, 2015 12:29 pm
Re: Once again: Kernel
Hello ASX
thanks to your help I managed to install my new slim kernel, many thanks.
Would you encourage me to rebuild world to, or should I do a portmaster -af for updating everything?
Greetings,
Antonio
thanks to your help I managed to install my new slim kernel, many thanks.
Would you encourage me to rebuild world to, or should I do a portmaster -af for updating everything?
Greetings,
Antonio
Re: Once again: Kernel
do a buildworld without fear, it will be no much different than a kernel build.
Additionally, if you read the docs, you will find that it is always suggested to build both, they need to be always at the same version otherwise you will find that some utility doesn't work as expected.
return the version of the installed kernel
return the version of the installed world
Additionally, if you read the docs, you will find that it is always suggested to build both, they need to be always at the same version otherwise you will find that some utility doesn't work as expected.
Code: Select all
freebsd-version -k
Code: Select all
freebsd-version -u