|
Posted at 5/21/2022 18:31:43
Only Author
3#
Last edited by lexaguskov In 5/21/2022 18:34 Editor
This is my dmesg:
===[ 12.510796] rockchip-pinctrl pinctrl: pin gpio0-17 already requested by fdd50000.serial; cannot claim for serial0-0
[ 12.510809] rockchip-pinctrl pinctrl: pin-17 (serial0-0) status -22
[ 12.510816] rockchip-pinctrl pinctrl: could not request pin 17 (gpio0-17) from group bt-enable-h on device rockchip-pinctrl
[ 12.510822] hci_uart_bcm serial0-0: Error applying setting, reverse things back
[ 12.559615] random: crng init done
[ 12.559634] random: 7 urandom warning(s) missed due to ratelimiting
[ 12.753899] cfg80211: failed to load regulatory.db
[ 12.765637] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.firefly,rk3566-roc-pc.txt failed with error -2
[ 12.765660] brcmfmac mmc2:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.firefly,rk3566-roc-pc.txt
[ 12.969434] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 12.980319] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
===
what concerns me is line 3, some gpio pin (one that enables bluetooth chip?) is allocated for uart0, according to logs. Im using armbian with `rk3566-firefly-roc-pc.dtd`, heres the decompiled device tree:
====
...
serial@fdd50000 {
compatible = "rockchip,rk3568-uart\0snps,dw-apb-uart";
reg = <0x00 0xfdd50000 0x00 0x100>;
interrupts = <0x00 0x74 0x04>;
clocks = <0x1c 0x0b 0x1c 0x2c>;
clock-names = "baudclk\0apb_pclk";
dmas = <0x24 0x00 0x24 0x01>;
dma-names = "tx\0rx";
pinctrl-0 = <0x25>;
pinctrl-names = "default";
reg-io-width = <0x04>;
reg-shift = <0x02>;
status = "okay";
phandle = <0xe1>;
};
...
serial@fe650000 {
compatible = "rockchip,rk3568-uart\0snps,dw-apb-uart";
reg = <0x00 0xfe650000 0x00 0x100>;
interrupts = <0x00 0x75 0x04>;
clocks = <0x0e 0x11f 0x0e 0x11c>;
clock-names = "baudclk\0apb_pclk";
dmas = <0x24 0x02 0x24 0x03>;
dma-names = "tx\0rx";
pinctrl-0 = <0x90 0x91>;
pinctrl-names = "default";
reg-io-width = <0x04>;
reg-shift = <0x02>;
status = "okay";
uart-has-rtscts;
phandle = <0x10a>;
bluetooth {
compatible = "brcm,bcm43438-bt";
clocks = <0x92 0x01>;
clock-names = "lpo";
device-wake-gpios = <0x93 0x11 0x00>;
host-wake-gpios = <0x93 0x10 0x00>;
shutdown-gpios = <0x93 0x0f 0x00>;
pinctrl-names = "default";
pinctrl-0 = <0x94 0x95 0x96>;
vbat-supply = <0x23>;
vddio-supply = <0x45>;
};
};
====
could it be that my .dtd file is incorrect?
I checked the rkwifibt repo and it does not seem to work
- # sh bt_load_broadcom_firmware</div><div>brcm_patchram_plus1: no process found
- ###AMPAK FW Auto detection patch version = [v1.1 20161117]##
- Can't get device info: No such devic
- root@os:/rkwifibt# cp: cannot stat '/data/cfg/device_info.txt': No such file or director
- port --enable_hci could not be opened, error 2
Copy the code
The chip is AP6255
|
|