Date: Wed, 3 Sep 2014 14:54:38 -0600 From: Warner Losh <imp@bsdimp.com> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-drivers@freebsd.org Subject: Re: How to enable a debug print option Message-ID: <E5CC951A-42CE-4D2C-BE93-8659EF8352C7@bsdimp.com> In-Reply-To: <20472808.lRnG8xA50K@ralph.baldwin.cx> References: <3cc81e2896e3413a9a9a613c5ff16fd5@BY1PR0301MB0902.namprd03.prod.outlook.com> <20472808.lRnG8xA50K@ralph.baldwin.cx>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] For this, it might be easier to do: # cd sys/amd64/conf # cat << EOF > MYKERNEL include “GENERIC” options CAMDBEUG EOF # cd ../../.. # <rest as below> That is, create a file that include GENERIC and adds the options this way. Warner On Sep 3, 2014, at 2:06 PM, John Baldwin <jhb@freebsd.org> wrote: > 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 > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUB4AOAAoJEGwc0Sh9sBEAovsQAKjbOdwPzF3j865usrmZuCHE jRyioZbkIjBt6OSW38h+ivlCHS64tfD3tOS3lfso/9UnZQ/imdDtn+b13tqgfgrn pUqG6/e/5P/Tbl+WRLyLgwk5aW1TS+6R6OAowepHCbrW1p1KB55K7czKfHyT9xpa +PXXJfvoMYv5eURNCClr2shsXyzL04O1l/hLfrmrSL2rk6ZHKFVW9ekf2NgL7p6S K5TYeOn8bgJQQgWTzYgMT4Od594q3P/Xa4hYL7757u1MFgPlErtSBNM4eqyyM3vY ctS1yXYdle6HzqOwSX31FlN+E7ma2914kCH6B/C5bvo6JC5awJBmbJoIQqPxV9la aWKqGVPFY5iPiVQsaDLgDgt3Hj9sR0x6D+OIzcqAsI0IHZAvBV/0X+eV9VfxoHm1 qITTue1DMAqdsF1CFXwlDbiSjX5Ht9MTT6kkfoXMxSP9K6eJN1yfuidDAfLUZRDZ HTXOt/Z+0SN+CJNsVygPKoYq8nA86DXS4qgZGkLETmzQd/9RcljSuDpJ5X5KJb0s SB+lBsZMy+3YvzxBzxz90p7WQ+CFjvWG0mPXR24SFw0DJUgZdhwLnzofK11bgMQi YZq5YBtOLb1KQbrSiDcOYHj5lmIfr0eZ5VfL6PvL4UHaX+146IvqF1ah7rK7quUX 1l2TJAu/wbezDn//i3hw =MOJV -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5CC951A-42CE-4D2C-BE93-8659EF8352C7>
