|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#16 | |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 94378
Join Date: Nov 2023
Device: PocketBook 912 + Note Max
|
Quote:
|
|
|
|
|
|
|
#17 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 94378
Join Date: Nov 2023
Device: PocketBook 912 + Note Max
|
|
|
|
|
|
|
#18 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 94378
Join Date: Nov 2023
Device: PocketBook 912 + Note Max
|
Device Background:
Host: PocketBook 912 (released 2011), running Linux kernel 2.6.35. Peripheral: 8BitDo Micro (released 2024/2026), modern Bluetooth 5.0+ controller. OS Environment: Minimalist BusyBox, BlueZ 4.x stack (incomplete), Read-Only root filesystem. Work Accomplished: Environment Preparation: Gained root access and successfully remounted the root filesystem as Read-Write (mount -o remount,rw /) to create necessary symlinks (/opt) and system directories (/var/run/dbus). Software Stack: Manually ported a more complete BlueZ 4.66 stack from Debian Squeeze (armel). This included bluetoothd, hidd, sdptool, and bluetooth-agent. Library Dependency Resolution: Systematically resolved missing library dependencies by manual injection. Successfully added: GLib 2.24 (and related gthread, gmodule, gio) libdbus-1.so.3 libcap-ng.so.0 libpcre.so.3 D-Bus Configuration: Configured and successfully launched dbus-daemon as root, establishing the system_bus_socket. Service Discovery: Successfully used sdptool browse to identify the 8BitDo Micro's HID services (Keyboard mode). Physical radio communication was verified. The Fatal Obstacle (GLIBC Incompatibility): The final attempt failed due to a fundamental mismatch between the system's C library and the ported binaries. System GLIBC: 2.6.1 (compiled 2008). Ported Binary Requirement: GLIBC 2.7 / 2.9. Result: Even with a localized LD_LIBRARY_PATH pointing to a newer libc.so.6 (v2.11.3) extracted from Debian Squeeze, the binaries (specifically dbus-daemon and bluetoothd) triggered a Segmentation Fault. Root Cause: A critical conflict between the system's old dynamic linker (/lib/ld-linux.so.3) and the newer GLIBC libraries. On this specific 2011-era firmware, the architecture gap between GLIBC 2.6 and 2.9 is insurmountable without recompiling the entire toolchain or using a chroot/container (which is resource-prohibitive for the PB912). Last edited by SERG-987; Yesterday at 01:44 PM. |
|
|
|
|
|
#19 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,091
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Packages from Debian Lenny are compatible with these devices. Can you use the BlueZ stack from that distro instead?
Way back in 2012, I installed that version of debian using qemu. The install ISO I saved contains bluez-3.36. If you are really desperate, you could try doing the same thing, and then use that emulated system to build source packages from newer versions of debian. It would be a significant amount of work, though. I vaguely remember that @LoneTech uploaded the qemu images and scripts he used back then for building software. Perhaps you can find the pre-built images somewhere rather than build it yourself from scratch. Last edited by rkomar; Yesterday at 02:30 PM. |
|
|
|
|
|
#20 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 94378
Join Date: Nov 2023
Device: PocketBook 912 + Note Max
|
I considered rolling back to the BlueZ 3.x stack from Debian Lenny, since its libraries (Glibc 2.7) are potentially compatible with the reader's system. However, this would lead to another dead end: BlueZ 3.x lacks hardware support for the SSP (Secure Simple Pairing) protocol, which is a mandatory requirement for 8BitDo Micro gamepads. Thus, we are facing a classic 'Catch-22': the old software is compatible with the OS but incompatible with the gamepad, while the new software is compatible with the gamepad but breaks the OS."
|
|
|
|
|
|
#21 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,091
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
As I mentioned above, you could install Debian Lenny into a qemu-emulated system, and then build the newer bluez source packages in that to later install on your device. The packages you built in that system would be compatible with the software on your device.
|
|
|
|
|
|
#22 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 94378
Join Date: Nov 2023
Device: PocketBook 912 + Note Max
|
Thanks a lot for all the ideas and explanations, especially the suggestion to use a qemu‑emulated Debian Lenny environment to rebuild newer BlueZ packages that are ABI‑compatible with the reader.
It really helped to clarify where the practical limits are for this hardware and kernel, and why going backwards to BlueZ 3.x or trying to push too new a stack onto 2.6.29 is unlikely to solve the 8BitDo Micro issue. ======================= What the hidd log shows The kernel HID layer is active and old: Bluetooth: HIDP (Human Interface Emulation) ver 1.2 → classic HIDP implementation from the 2.6.x era. The Apple keyboard (A1314, 2009) is fully accepted: input: Apple Inc. Keyboard as /class/input/input3 generic-bluetooth 0005:05AC:023A.0001: input: BLUETOOTH HID v0.50 Keyboard [Apple Inc. Keyboard] on 00:90:A2:6A:75 7This means the HID control/data channels were established successfully and the kernel created a working input device node. The hidd cache file confirms both devices are paired and trusted: /var/tmp/lib/bluetooth/00:90:A2:6A:75 7/hidd contains two entries:E4:17 8:6B:AB B 2DC8:9021:0100 ... 8BitDo Tech Ltd Keyboard78:CA:39:49:73:BD 05AC:023A:0050 ... Apple Inc. Keyboard Each line has MAC, VID:PID:version, the full HID report descriptor, and the device name. This proves that: pairing and link keys for both devices were stored successfully; the system recognizes both as HID keyboards and keeps them in the same HID cache. LMP versions show the generation gap: 8BitDo Micro: LMP Version: (0x8) → Bluetooth 4.x controller. Apple A1314: LMP Version: 2.0 (0x3) → classic Bluetooth 2.0 device. Both expose HID over PSM 17 in SDP, but they belong to very different protocol generations. What this confirms The PocketBook does support SSP and can pair with both the Apple keyboard and the 8BitDo Micro (the presence of both entries in hidd proves SSP/pairing succeeds, not fails). The Apple keyboard’s legacy HID implementation is fully compatible with HIDP 1.2, so the kernel creates input3 and it works as a normal keyboard. The 8BitDo Micro is also seen as a HID keyboard and its descriptor is stored, but HID control channel setup fails at runtime, leading to: Can't create HID control channel: Connection refused / reset by peer / timed out in user‑space tools during connect attempts (not shown in this snippet, but in previous logs). So the limiting factor is not pairing, not keys, and not configuration files, but the age of the HIDP 1.2 + BlueZ 4.47 stack versus the modern HID behavior of a Bluetooth 4.x controller: old Apple A1314 (BT 2.0) fits exactly into what HIDP 1.2 was written for → works; 8BitDo Micro (BT 4.x, modern HID) can pair and gets cached, but the old HIDP implementation cannot complete the HID connection handshake, so the device never becomes a usable input device on this firmware. hidd Spoiler:
Last edited by SERG-987; Today at 04:01 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get 8bitdo micro controller to automatically connect to klc? | KoboLibraColour | Kobo Reader | 8 | 01-05-2025 12:54 PM |
| "Permission Denied" when Creating a Backup in Moon+ Reader | Suige | Android Devices | 2 | 11-28-2015 02:28 PM |
| 902 Want page to stay "open" when the PocketBook 912 goes off to sleep | FranTer | PocketBook | 4 | 03-12-2014 12:16 PM |
| Bug "IOError: [Errno 13] Permission denied" when editing meta-data | ShellShock | Calibre | 5 | 09-23-2013 12:34 AM |
| 903 PocketBook 9.7" (902, 903, 912) with pearl | adrhc | PocketBook | 30 | 01-12-2012 05:13 AM |