-
2. Using netconsole to get remote trace message
-
-
2.1. Configure debug target
-
Add below alias to .bashrc, please use appropriate value according your env.
- alias cnetcon='modprobe netconsole netconsole=@/eth0,9999@10.21.5.67/00:27:13:67:e7:3d'
- alias shbr='nc -l -p 6777 -c "hcidump -i hci0 -X"'
- alias sham='nc -l -p 6888 -c "hcidump -i hci1 -X"'
-
Add below alias to .bashrc, please use appropriate value according your env.
-
-
2.2. Configure debug client
-
Add below alias to .bashrc, please change appropriate value according your env.
- alias ldmp='nc 192.168.0.101 6888 | tee - amp'
- alias cbt='nc 192.168.0.101 6777 | tee - bt'
- alias camp='nc -u -l -p 9999 | tee - dump'
-
Add below alias to .bashrc, please change appropriate value according your env.
-
-
2.3. Usage Procedure
-
2.3.1. Get BT APP data:
-
Debug target:
- $shbr
-
Debug client:
- $cbt
-
Debug target:
-
2.3.2. Get AMP data:
-
Debug target:
- $sham
-
Debug client:
- $ldmp
-
Debug target:
-
2.3.3. Get Syslog:
-
Debug client:
- $camp
-
Debug target:
- $cnetcon
-
Debug client:
-
2.3.1. Get BT APP data: