Date: Tue, 22 Jul 2025 18:55:00 +0200 From: Lars Tunkrans <drsnx60@gmail.com> To: "Bjoern A. Zeeb" <bz@FreeBSD.org> Cc: freebsd-bluetooth@FreeBSD.org, freebsd-wireless@freebsd.org Subject: Re: Activating Bluetooth on intel AX200,AX201,AX210 modules Message-ID: <818de79a-7eba-464d-93f7-e9b3ee513532@gmail.com> In-Reply-To: <04de7d1f-6ebb-4d1a-99d7-3b6ab2b0c26f@gmail.com> References: <edea0872-244d-4a24-82f5-b600b16aa827@gmail.com> <30nnq627-nr7s-6623-3opp-n21p66ss1n57@SerrOFQ.bet> <048d304e-65d1-44c3-a137-562de6e5c9da@gmail.com> <d7b4dc50-6276-486d-b5fc-1476d72e6671@gmail.com> <50ro8345-8770-n078-r7nr-417r81598o18@SerrOFQ.bet> <09rq988q-1131-7rq9-601s-4qr0no45n4os@SerrOFQ.bet> <04de7d1f-6ebb-4d1a-99d7-3b6ab2b0c26f@gmail.com>
index | next in thread | previous in thread | raw e-mail
Hi, Additional discovery: the Blutooth stack appears to be loaded after system boot , without executing the #serivce bluetooth start ubt0 command mannually. Bluetooth_enable="YES" is not in rc.conf If I immediatly after boot execute: # ngctl show ubt0: Name: ubt0 Type: ubt ID: 00000001 Num hooks: 1 Local hook Peer name Peer type Peer ID Peer hook ---------- --------- --------- ------- --------- hook ubt0hci hci 00000009 drv Iget the above output. //Lars On 7/22/25 10:07 AM, Lars Tunkrans wrote: > > HI , > > the Shell trace i showed previously is not detailed enough. > > it is the hccontrol 'reset' command on line 130 of the > bluetooth start script that times out. > > being used to Solaris I created the attached TRUSS > trace which on line 3213 and above > > shows the failing hccontrol task. > > > After applying the provided Patch the bluetooth stack can be > setup and torn down. > > > root@h7510:/etc/rc.d # service bluetooth start ubt0 > /etc/rc.d/bluetooth: WARNING: Reset failed, retrying. > > root@h7510:/etc/rc.d # ngctl show ubt0: > Name: ubt0 Type: ubt ID: 00000003 Num hooks: 1 > Local hook Peer name Peer type Peer ID Peer hook > ---------- --------- --------- ------- --------- > hook ubt0hci hci 00000053 drv > > > root@h7510:/etc/rc.d # service bluetooth stop ubt0 > > root@h7510:/etc/rc.d # ngctl show ubt0: > Name: ubt0 Type: ubt ID: 00000003 Num hooks: 0 > > root@h7510:/etc/rc.d # service bluetooth start ubt0 > /etc/rc.d/bluetooth: WARNING: Reset failed, retrying. > > root@h7510:/etc/rc.d # ngctl show ubt0: > Name: ubt0 Type: ubt ID: 00000003 Num hooks: 1 > Local hook Peer name Peer type Peer ID Peer hook > ---------- --------- --------- ------- --------- > hook ubt0hci hci 00000062 drv > > > > > > On 7/21/25 5:43 PM, Bjoern A. Zeeb wrote: >> On Mon, 21 Jul 2025, Bjoern A. Zeeb wrote: >> >>> On Mon, 21 Jul 2025, Lars Tunkrans wrote: >>> >>>> >>>> HI >>>> >>>> this command in the /etc/rc.d/bluetooth start script >>>> fails with exit status 1 , unless mutilple iwmbt firmware >>>> loads is executed beforehand, >>>> >>>> >>>> * # ngctl mkpeer ubt0: hci hook drv* >>>> >>>> ngctl mkpeer ubt0: hci hook drv >>>> + return 1 >>>> + bluetooth_shutdown_stack ubt0 >>>> + dev=ubt0 >>>> + ngctl shutdown ubt0hci: >>>> + ngctl shutdown ubt0l2cap: >>>> + return 0 >>>> + err 1 'Unable to setup Bluetooth stack for device ubt0' >>> >>> Can you try this change which is left from an ealrier review which >>> never >>> was committed as an alternate implementation made it into the tree: >>> >>> https://reviews.freebsd.org/differential/changeset/?ref=1332283 >>> >>> If this works, I'll just commit it. >> >> Hmm, seems this is too late for your error case? Sorry for the noise. >>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?818de79a-7eba-464d-93f7-e9b3ee513532>
