How to install and rebuild the FreeBSD Kernel on a TrueNAS machine

Mike Katz

Dabbler
Joined
May 26, 2017
Messages
20
Would someone point me to the instructions for loading the FreeBSD Kernel source and recompiling it on a running TrueNAS server?

Thank you.
 

Mike Katz

Dabbler
Joined
May 26, 2017
Messages
20
I am not trying to rebuild TrueNAS, I want to rebuild only the FreeBSD Kernel

I have cloned the Truenas/OS repository.

However, it does not compile because cc is not installed.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
I am not trying to rebuild TrueNAS, I want to rebuild only the FreeBSD Kernel

I have cloned the Truenas/OS repository.

However, it does not compile because cc is not installed.

That's correct. TrueNAS is an appliance, and does not contain the tools to build kernels. End users are never expected to be engaging in this sort of activity. What exactly is your goal?

If you are a developer, you are expected to create a full build environment and create a release, which you can then upgrade to or install as though it was any other release.

If you are trying to add device drivers for unsupported devices or other misguided kernel modifications, it is probably best that you don't. These things often end in misadventures, and it is preferable to use devices that are known to work well on a TrueNAS system, rather than trying to add drivers for some dodgy kit.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Use a separate FreeBSD machine, in a VM if you prefer, to compile.
 
Top