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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_D7BE4DE4-A308-47D5-8ECC-45939C0A3456 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 For this, it might be easier to do: # cd sys/amd64/conf # cat << EOF > MYKERNEL include =93GENERIC=94 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. >>=20 >> Also how can I know if this flag has been enabled or not? >=20 > # cd /sys/amd64/conf > # cp GENERIC MYKERNEL >=20 > - edit MYKERNEL and add a line containing 'options CAMDEBUG' >=20 > # cd /usr/src > # make buildkernel KERNCONF=3DMYKERNEL > # make installkernel KERNCONF=3DMYKERNEL INSTKERNNAME=3Dtest > # nextboot -k test > # shutdown -r now >=20 > This creates a kernel config file named 'MYKERNEL', adds CAMDEBUG to = it, and=20 > then builds a kernel from that configuration. It installs it to = /boot/test=20 > and arranges for the next boot to use /boot/test/kernel instead of=20 > /boot/kernel/kernel. (The second boot will revert back to=20 > /boot/kernel/kernel.) >=20 > --=20 > 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" --Apple-Mail=_D7BE4DE4-A308-47D5-8ECC-45939C0A3456 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_D7BE4DE4-A308-47D5-8ECC-45939C0A3456--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5CC951A-42CE-4D2C-BE93-8659EF8352C7>