Bug 286369 - rtlbtfw: Error: device not found
Summary: rtlbtfw: Error: device not found
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 15.0-CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Vladimir Kondratyev
URL: https://patches.linaro.org/project/li...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-26 20:24 UTC by Yusuf Yaman
Modified: 2025-04-29 21:03 UTC (History)
2 users (show)

See Also:


Attachments
dump_device_desc usbconfig (518 bytes, text/plain)
2025-04-26 20:26 UTC, Yusuf Yaman
no flags Details
dmesg log (2.22 KB, text/plain)
2025-04-26 20:30 UTC, Yusuf Yaman
no flags Details
0001-rtlbtfw-8-Add-Mercusys-MA530-VID-PID-for-Realtek-876.patch (2.17 KB, patch)
2025-04-29 11:02 UTC, Vladimir Kondratyev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman 2025-04-26 20:24:58 UTC
Hi,

I have a USB Bluetooth Dongle from Mercusys, it's model is MA530 and i believe it uses a Realtek 8761BU chipset, however, I am unable to use rtlbtfw utility to get it to work. I also noticed that my adapter identifier name has a typo: "Meucusys" where it should be "Mercusys".

I'll attach required logs.

Thanks in advance.

I am on 15.0-CURRENT-b71d3043c38.
Comment 1 Yusuf Yaman 2025-04-26 20:26:34 UTC
Created attachment 259895 [details]
dump_device_desc usbconfig

# pkg info -x rtlbt
rtlbt-firmware-20240909
root@freebsd /usr/src # rtlbtfw -D -d ugen0.5 -f /usr/local/share/rtlbt-firmware/ -I
main: opening dev 0.5
rtlbtfw: main: device not found
rtlbtfw: main: Firmware download failed!
Comment 2 Yusuf Yaman 2025-04-26 20:30:30 UTC
Created attachment 259896 [details]
dmesg log

I might be wrong about wrong identifier name because it can also show up normally "Mercusys" in dmesg.
Comment 3 Vladimir Kondratyev freebsd_committer freebsd_triage 2025-04-29 08:44:23 UTC
rtlbtfw knows nothing about device with idVendor = 0x2c4e idProduct = 0x0115.
You should manually add them to VID/PID lists in usr.sbin/bluetooth/rtlbtfw/main.c and sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c. Than rebuild and reinstall both rtlbtfw and kernel.
Comment 4 Vladimir Kondratyev freebsd_committer freebsd_triage 2025-04-29 11:02:57 UTC
Created attachment 259993 [details]
0001-rtlbtfw-8-Add-Mercusys-MA530-VID-PID-for-Realtek-876.patch

I created a patch. Test it
Comment 5 Yusuf Yaman 2025-04-29 14:24:41 UTC
(In reply to Vladimir Kondratyev from comment #3)

(In reply to Vladimir Kondratyev from comment #4)

Thanks, it worked this time.

main: opening dev 0.5
rtlbt_is_realtek: found USB Realtek
main: Firmware has already been downloaded
main: Firmware download is successful!

However, i am not that skilled much to use my bluetooth earbuds on FreeBSD.

I think we can close this report. Thanks for your work.
Comment 6 Vladimir Kondratyev freebsd_committer freebsd_triage 2025-04-29 15:21:15 UTC
> I think we can close this report.
It should be committed before.
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-04-29 20:30:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7a7ab347fc6535a8c91d458dda76a61019163869

commit 7a7ab347fc6535a8c91d458dda76a61019163869
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2025-04-29 20:28:53 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2025-04-29 20:28:53 +0000

    rtlbtfw(8): Add Mercusys MA530 VID/PID for Realtek 8761BUV

    Tested by:      Yusuf Yaman <nxjoseph@protonmail.com>
    PR:             286369
    MFC after:      1 week

 sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c | 1 +
 usr.sbin/bluetooth/rtlbtfw/main.c               | 1 +
 usr.sbin/bluetooth/rtlbtfw/rtlbtfw.conf         | 8 ++++++++
 3 files changed, 10 insertions(+)
Comment 8 Yusuf Yaman 2025-04-29 21:03:33 UTC
(In reply to Vladimir Kondratyev from comment #6)
Oh, yes.

Thanks.