[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#987361: linux-image-5.10.0-6-armmp: bluetooth broken on i.MX6 Cubox-i and related devices



Package: src:linux
Version: 5.10.28-1
Severity: important
Tags: patch
X-Debbugs-Cc: josua.mayer97@gmail.com

Dear Maintainer,

Bluetooth drivers for the two chips used on SolidRun i.MX6 SoMs have recently
disappeared from the debian kernel package.
Please re-add them, patch attached and verified with both BCM4330 and WL1837.

Yours sincerely
Josua Mayer

-- Package-specific info:
** Version:
Linux version 5.10.0-6-armmp (debian-kernel@lists.debian.org) (arm-linux-gnueabihf-gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.28-1 (2021-04-09)

** Command line:
 root=/dev/mmcblk1p1 console=ttymxc0,115200 deferred_probe_timeout=10 log_level=7 net.ifnames=0

** Tainted: WE (8704)
 * kernel issued warning
 * unsigned module was loaded

** Kernel log:
[   10.481988] systemd[1]: Mounting Kernel Debug File System...
[   10.510173] systemd[1]: Mounting Kernel Trace File System...
[   10.539156] systemd[1]: Starting Create list of static device nodes for the current kernel...
[   10.570585] systemd[1]: Starting Load Kernel Module configfs...
[   10.598475] systemd[1]: Starting Load Kernel Module drm...
[   10.631165] systemd[1]: Starting Load Kernel Module fuse...
[   10.654693] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   10.664703] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[   10.675493] fuse: init (API version 7.32)
[   10.698147] systemd[1]: Starting Journal Service...
[   10.734232] systemd[1]: Starting Load Kernel Modules...
[   10.763521] systemd[1]: Starting Remount Root and Kernel File Systems...
[   10.799102] systemd[1]: Starting Coldplug All udev Devices...
[   10.835732] systemd[1]: Mounted POSIX Message Queue File System.
[   10.844498] EXT4-fs (mmcblk1p1): re-mounted. Opts: (null)
[   10.869237] systemd[1]: Mounted Kernel Debug File System.
[   10.891964] systemd[1]: Mounted Kernel Trace File System.
[   10.917529] systemd[1]: Finished Create list of static device nodes for the current kernel.
[   10.949890] systemd[1]: modprobe@configfs.service: Succeeded.
[   10.958122] systemd[1]: Finished Load Kernel Module configfs.
[   10.985586] systemd[1]: modprobe@drm.service: Succeeded.
[   10.993079] systemd[1]: Finished Load Kernel Module drm.
[   11.021581] systemd[1]: modprobe@fuse.service: Succeeded.
[   11.029043] systemd[1]: Finished Load Kernel Module fuse.
[   11.051899] systemd[1]: Started Journal Service.
[   11.258052] systemd-journald[196]: Received client request to flush runtime journal.
[   11.288371] systemd-journald[196]: File /var/log/journal/9bbcae0a3ade4af68637450cb7940ea7/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   12.656525] Registered IR keymap rc-empty
[   12.661105] rc rc0: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0
[   12.672050] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
[   12.703052] input: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0/input1
[   12.842870] rc rc0: two consecutive events of type space
[   12.847048] imx-ipuv3 2400000.ipu: IPUv3H probed
[   12.858932] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops [etnaviv])
[   12.875330] imx-ipuv3 2800000.ipu: IPUv3H probed
[   12.875434] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops [etnaviv])
[   12.964800] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops [etnaviv])
[   12.972142] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[   13.069408] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[   13.077309] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[   13.086018] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[   13.092640] coda 2040000.vpu: firmware: failed to load vpu_fw_imx6q.bin (-2)
[   13.099867] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   13.109337] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[   13.183812] coda 2040000.vpu: firmware: failed to load vpu/vpu_fw_imx6q.bin (-2)
[   13.191344] coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed with error -2
[   13.191801] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[   13.208912] coda 2040000.vpu: firmware: failed to load v4l-coda960-imx6q.bin (-2)
[   13.218928] coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin failed with error -2
[   13.230904] coda 2040000.vpu: firmware request failed
[   13.449889] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops imx_drm_exit [imxdrm])
[   13.479351] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops imx_drm_exit [imxdrm])
[   13.500464] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops imx_drm_exit [imxdrm])
[   13.519712] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops imx_drm_exit [imxdrm])
[   13.532962] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[   13.565851] imx_thermal 20c8000.anatop:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
[   13.582155] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops [dw_hdmi_imx])
[   13.615953] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[   13.632772] imx-drm display-subsystem: [drm] Cannot find any crtc or sizes
[   13.716321] random: crng init done
[   13.719751] random: 7 urandom warning(s) missed due to ratelimiting
[   14.197924] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
[   14.693512] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   14.703364] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[   14.714422] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[   14.726281] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   14.733174] platform regulatory.0: firmware: failed to load regulatory.db (-2)
[   14.740532] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   14.749334] cfg80211: failed to load regulatory.db
[   14.875575] Bluetooth: Core ver 2.22
[   14.879417] NET: Registered protocol family 31
[   14.883940] Bluetooth: HCI device and connection manager initialized
[   14.890958] Bluetooth: HCI socket layer initialized
[   14.901634] Bluetooth: L2CAP socket layer initialized
[   14.906882] Bluetooth: SCO socket layer initialized
[   14.968344] Bluetooth: HCI UART driver ver 2.3
[   14.972866] Bluetooth: HCI UART protocol H4 registered
[   14.978364] Bluetooth: HCI UART protocol LL registered
[   14.983645] Bluetooth: HCI UART protocol ATH3K registered
[   14.991450] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.001241] Bluetooth: HCI UART protocol Intel registered
[   15.007058] Bluetooth: HCI UART protocol Broadcom registered
[   15.012918] Bluetooth: HCI UART protocol QCA registered
[   15.018289] Bluetooth: HCI UART protocol AG6XX registered
[   15.026079] Bluetooth: HCI UART protocol Marvell registered
[   15.042225] hci-ti serial0-0: firmware: direct-loading firmware ti-connectivity/TIInit_11.8.32.bts
[   15.051459] Bluetooth: hci0: change remote baud rate command in firmware
[   15.232261] wl18xx_driver wl18xx.3.auto: firmware: direct-loading firmware ti-connectivity/wl1271-nvs.bin
[   15.245771] wl18xx_driver wl18xx.3.auto: firmware: direct-loading firmware ti-connectivity/wl18xx-conf.bin
[   15.260931] Qualcomm Atheros AR8035 2188000.ethernet-1:00: attached PHY driver [Qualcomm Atheros AR8035] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[   15.485801] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.491196] Bluetooth: BNEP filters: protocol multicast
[   15.496709] Bluetooth: BNEP socket layer initialized
[   16.013313] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   16.020958] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead.
[   16.029911] wlcore: WARNING This default nvs file can be removed from the file system
[   16.040614] wlcore: loaded
[   18.339197] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   18.346931] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   21.329119] NET: Registered protocol family 38

** Model information
Hardware	: Freescale i.MX6 Quad/DualLite (Device Tree)
Revision	: 0000
Device Tree model: SolidRun Cubox-i Dual/Quad (1.5som+emmc)

** Loaded modules:
cmac(E)
algif_hash(E)
ecb(E)
algif_skcipher(E)
af_alg(E)
bnep(E)
hci_uart(E)
wl18xx(E)
btqca(E)
btrtl(E)
btbcm(E)
btintel(E)
wlcore(E)
mac80211(E)
bluetooth(E)
cfg80211(E)
jitterentropy_rng(E)
libarc4(E)
dw_hdmi_ahb_audio(E)
dw_hdmi_cec(E)
ctr(E)
drbg(E)
aes_arm(E)
aes_generic(E)
ansi_cprng(E)
ecdh_generic(E)
rfkill(E)
snd_soc_imx_spdif(E)
ecc(E)
libaes(E)
wlcore_sdio(E)
nvmem_imx_ocotp(E)
snd_soc_fsl_spdif(E)
dw_hdmi_imx(E)
imx_thermal(E)
dw_hdmi(E)
imx_pcm_dma(E)
snd_soc_core(E)
snd_pcm_dmaengine(E)
snd_pcm(E)
snd_timer(E)
snd(E)
coda_vpu(E)
v4l2_jpeg(E)
soundcore(E)
imx2_wdt(E)
imx_vdoa(E)
imxdrm(E)
videobuf2_dma_contig(E)
v4l2_mem2mem(E)
videobuf2_vmalloc(E)
videobuf2_memops(E)
videobuf2_v4l2(E)
videobuf2_common(E)
imx_ipu_v3(E)
cec(E)
pwm_imx27(E)
etnaviv(E)
gpu_sched(E)
evdev(E)
drm_kms_helper(E)
gpio_ir_recv(E)
rc_core(E)
leds_pwm(E)
imx6q_cpufreq(E)
fuse(E)
drm(E)
configfs(E)
ip_tables(E)
x_tables(E)
autofs4(E)
ext4(E)
crc16(E)
mbcache(E)
jbd2(E)
crc32c_generic(E)
ci_hdrc_imx(E)
ci_hdrc(E)
ulpi(E)
roles(E)
ahci_imx(E)
ehci_hcd(E)
libahci_platform(E)
libahci(E)
udc_core(E)
usbcore(E)
libata(E)
phy_generic(E)
sdhci_esdhc_imx(E)
sdhci_pltfm(E)
cqhci(E)
usbmisc_imx(E)
i2c_imx(E)
scsi_mod(E)
sdhci(E)
anatop_regulator(E)
phy_mxs_usb(E)
at803x(E)

** PCI devices:

** USB devices:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 5.10.0-6-armmp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-5.10.0-6-armmp depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.140
ii  kmod                                    28-1
ii  linux-base                              4.6

Versions of packages linux-image-5.10.0-6-armmp recommends:
pn  apparmor             <none>
pn  firmware-linux-free  <none>

Versions of packages linux-image-5.10.0-6-armmp suggests:
pn  debian-kernel-handbook  <none>
pn  linux-doc-5.10          <none>

Versions of packages linux-image-5.10.0-6-armmp is related to:
pn  firmware-amd-graphics     <none>
pn  firmware-atheros          <none>
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
pn  firmware-brcm80211        <none>
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
pn  firmware-iwlwifi          <none>
pn  firmware-libertas         <none>
pn  firmware-linux-nonfree    <none>
ii  firmware-misc-nonfree     20210315-2
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
pn  firmware-realtek          <none>
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
ii  firmware-ti-connectivity  20210315-2
pn  xen-hypervisor            <none>

-- no debconf information
>From 4f13473a2e5f58e900db9cb02c99acc4989ae491 Mon Sep 17 00:00:00 2001
From: Josua Mayer <josua@solid-run.com>
Date: Thu, 22 Apr 2021 12:32:52 +0200
Subject: [PATCH] enable bluetooth support for SolidRun i.MX6 SoMs

Signed-off-by: <josua@solid-run.com>
---
 debian/config/armhf/config | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/config/armhf/config b/debian/config/armhf/config
index 7c39d00d7aae..eb838493b5ef 100644
--- a/debian/config/armhf/config
+++ b/debian/config/armhf/config
@@ -191,6 +191,14 @@ CONFIG_PATA_OF_PLATFORM=m
 ##
 CONFIG_ARM_CHARLCD=y
 
+##
+## file: drivers/bluetooth/Kconfig
+##
+CONFIG_BT_HCIUART=m
+CONFIG_BT_HCIUART_BCM=y
+CONFIG_BT_HCIUART_LL=y
+CONFIG_BT_HCIUART_SERDEV=y
+
 ##
 ## file: drivers/bus/Kconfig
 ##
-- 
2.31.1


Reply to: