How to enable a debug print option

Warner Losh imp at bsdimp.com
Wed Sep 3 20:54:37 UTC 2014


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe at freebsd.org"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-drivers/attachments/20140903/f5b34a38/attachment.sig>


More information about the freebsd-drivers mailing list