Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2015 15:34:59 -0700
From:      Waitman Gobble <gobble.wa@gmail.com>
To:        "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org>
Subject:   Re: troubleshooting "btsockstat: kvm_nlist: no namelist"
Message-ID:  <CAFuo_fwLwjQo4Wc5RgvSOruSZxq%2BrrSgzqLc7CVM0oKfLXVi%2BA@mail.gmail.com>
In-Reply-To: <CAFuo_fxw5R3EaApm758%2BfmsUQh6Yygni%2BPg_NkYz2BW8_rdBgA@mail.gmail.com>
References:  <CAFuo_fxxWRgo9MBULhfbuSrO=UQB3uMgoO2r-a6_UguaXDU0PQ@mail.gmail.com> <CAFuo_fxw5R3EaApm758%2BfmsUQh6Yygni%2BPg_NkYz2BW8_rdBgA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 5, 2015 at 3:31 PM, Waitman Gobble <gobble.wa@gmail.com> wrote:
> On Sun, Apr 5, 2015 at 3:17 PM, Waitman Gobble <gobble.wa@gmail.com> wrote:
>> Hi,
>>
>> Does anyone know the reason(s) or circumstances I might receive the
>> error message "no namelist" from kvm_list?
>>
>> ie,
>>
>> # btsockstat
>> btsockstat: kvm_nlist: no namelist
>>
>>
>> ...
>> kvm_nlist(kvmd, nl);
>> nl[0].n_name is "_ng_btsocket_hci_raw_sockets"
>> nl[0].n_type is 0, which causes the error message to be displayed.
>> should be something like 4 i think.
>>
>>
>>
>> # hccontrol inquiry
>> shows list of devices
>>
>> # sdpcontrol -l browse
>> shows service records
>>
>>
>> i am seeing some errors in dmesg,
>>
>> ubt0: ubt_bulk_read_callback:977: bulk-in transfer failed: USB_ERR_IOERROR
>> ubt0: ubt_intr_read_callback:878: interrupt transfer failed: USB_ERR_IOERROR
>>
>>
>> Thank you,
>>
>>
>> --
>> Waitman Gobble
>> Los Atlos California USA
>> 510-830-7975
>
>
> I do receive some USB_ERR_IOERROR messages on working machines, so I
> don't think it's actually related to the namelist condition.
>
> Thanks,
>
> --
> Waitman Gobble
> Los Altos California USA
> 510-830-7975



I changed the code in btsockstat a little to print out error message
instead of "no namelist"


https://gist.github.com/waitman/f572053c0307a39f11e2

if (nl[0].n_type == 0) {
  printf("error: %s\n",kvm_geterr(kvmd));
}


The error reported is:
kvm_nlist: No such file or directory

So I'm supposing this is because there are no ng_btsocket defined.
_ng_btsocket_hci_raw_sockets

# sysctl -a | grep bt
dev.ubt.%parent:
dev.ubt.0.%desc: vendor 0x0a12 CSR8510 A10, class 224/1, rev 2.00/88.91, addr 7
dev.ubt.0.%driver: ubt
dev.ubt.0.%location: bus=0 hubaddr=4 port=5 devaddr=7 interface=0 ugen=ugen0.7
dev.ubt.0.%pnpinfo: vendor=0x0a12 product=0x0001 devclass=0xe0
devsubclass=0x01 sernum="" release=0x8891 mode=host intclass=0xe0
intsubclass=0x01 intprotocol=0x01
dev.ubt.0.%parent: uhub2

# sysctl -a | grep btsocket
(no results)

kldstat:
 5    1 0xc2ba0000 e000     ng_ubt.ko
 6    5 0xc2bb1000 14000    netgraph.ko
 7    1 0xc2bcb000 12000    ng_hci.ko
 8    3 0xc2bde000 a000     ng_bluetooth.ko
13    1 0xc2cc0000 16000    ng_l2cap.ko
14    1 0xc2cd8000 24000    ng_btsocket.ko
15    1 0xc2d05000 c000     ng_socket.ko


?? looks like these are set up in
/usr/src/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c

Any help appreciated.

Thanks,


-- 
Waitman Gobble
Los Altos California USA
510-830-7975



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fwLwjQo4Wc5RgvSOruSZxq%2BrrSgzqLc7CVM0oKfLXVi%2BA>