meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:bluetooth:kernel [2018/09/18 12:12] – created niziaklinux:bluetooth:kernel [2018/09/19 11:18] (current) niziak
Line 1: Line 1:
 +<code bash>
 mount -t debugfs none /sys/kernel/debug mount -t debugfs none /sys/kernel/debug
 +</code>
 +
 +<code bash>
 +echo "file net/bluetooth/* +pfl" > /sys/kernel/debug/dynamic_debug/control
 +</code>
 +
 +====== Enable pr_debug ======
 +
 +<file | linux-4.18.6/net/bluetooth/Makefile>
 +CFLAGS += -DDEBUG=1
 +</file>
 +
 +<code bash>
 +cp /lib/modules/$(uname -r)/build/.config .
 +cp /lib/modules/$(uname -r)/build/Module.symvers .
 +
 +make oldconfig
 +
 +#make EXTRAVERSION=-my modules_prepare
 +make modules_prepare
 +make M=net/bluetooth
 +
 +sudo cp net/bluetooth/bluetooth.ko /lib/modules/`uname -r`/updates
 +
 +depmod -a
 +sudo rmmod btusb btrtl btintel btbcm bnep btusb bluetooth
 +
 +modinfo bluetooth
 +filename:       /lib/modules/4.18.0-0.bpo.1-amd64/updates/bluetooth.ko
 +...
 +
 +sudo modprobe bluetooth
 +
 +</code>
 +