Date: Wed, 03 Sep 2014 16:06:13 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-drivers@freebsd.org Subject: Re: How to enable a debug print option Message-ID: <20472808.lRnG8xA50K@ralph.baldwin.cx> In-Reply-To: <3cc81e2896e3413a9a9a613c5ff16fd5@BY1PR0301MB0902.namprd03.prod.outlook.com> References: <3cc81e2896e3413a9a9a613c5ff16fd5@BY1PR0301MB0902.namprd03.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, September 03, 2014 05:40:07 AM Wei Hu wrote: > I am on head and want to enable CAMDEBUG so I can get more logging > information. This flag is in /usr/src/sys/conf/NOTES file. After reading > the manual of 'config' I still have no idea of how to do this. > > Also how can I know if this flag has been enabled or not? # cd /sys/amd64/conf # cp GENERIC MYKERNEL - edit MYKERNEL and add a line containing 'options CAMDEBUG' # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL INSTKERNNAME=test # nextboot -k test # shutdown -r now This creates a kernel config file named 'MYKERNEL', adds CAMDEBUG to it, and then builds a kernel from that configuration. It installs it to /boot/test and arranges for the next boot to use /boot/test/kernel instead of /boot/kernel/kernel. (The second boot will revert back to /boot/kernel/kernel.) -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20472808.lRnG8xA50K>