On 11/24/22 09:42, Arend van Spriel wrote:
On 11/18/2022 6:41 AM, Andy Green wrote:
On 11/17/22 21:52, Arend Van Spriel wrote:
I see. So could you load bcmdhd and provide log. Preferably with
higher debug level. It also has a module parameter for it. I think it
is called dhd_msg_level and please set it to 0x817.
It's here:
https://warmcat.com/ap6275p-dhd-log1.txt
Hi Andy,
Thanks for the log. Together with the dhd driver sources I could make
some sense of it. Perhaps you can try the following hack and see if we
make it over the first hurdle.
Thanks, I tried it, but although it looks necessary, there's evidently
something else since the result was the same.
+
+ entropy_info.signture = cpu_to_le32(BRCMF_SEED_SIGNATURE);
This should be ... .signature = ...
The debug logs
[ 3.487772] brcmfmac: brcmfmac_module_init No platform data available.
[ 3.487858] brcmfmac 0002:21:00.0: enabling device (0000 -> 0002)
[ 3.487896] brcmfmac: brcmf_chip_recognition found AXI chip: BCM43752/2
[ 3.488799] brcmfmac: brcmf_chip_cores_check [1 ] core 0x800:65
base 0x18000000 wrap 0x18100000
[ 3.488801] brcmfmac: brcmf_chip_cores_check [2 ] core 0x812:82
base 0x18001000 wrap 0x18101000
[ 3.488803] brcmfmac: brcmf_chip_cores_check [3 ] core 0x83e:16
base 0x18002000 wrap 0x18102000
[ 3.488804] brcmfmac: brcmf_chip_cores_check [4 ] core 0x83c:65
base 0x18003000 wrap 0x18103000
[ 3.488805] brcmfmac: brcmf_chip_cores_check [5 ] core 0x829:26
base 0x18004000 wrap 0x18104000
[ 3.488807] brcmfmac: brcmf_chip_cores_check [6 ] core 0x844:2
base 0x18005000 wrap 0x18105000
[ 3.488808] brcmfmac: brcmf_chip_cores_check [7 ] core 0x840:15
base 0x18010000 wrap 0x00000000
[ 3.488810] brcmfmac: brcmf_chip_cores_check [8 ] core 0x827:35
base 0x18012000 wrap 0x00000000
[ 3.488811] brcmfmac: brcmf_chip_cores_check [9 ] core 0x240:0
base 0x00000000 wrap 0x1810a000
[ 3.488813] brcmfmac: brcmf_chip_cores_check [10] core 0x135:0
base 0x00000000 wrap 0x18112000
[ 3.488814] brcmfmac: brcmf_chip_cores_check [11] core 0x135:0
base 0x00000000 wrap 0x18113000
[ 3.488815] brcmfmac: brcmf_chip_set_passive Enter
[ 3.594733] brcmfmac: brcmf_chip_set_passive Enter
[ 3.595214] brcmfmac: brcmf_chip_tcm_rambase: 43752 OK
[ 3.595215] brcmfmac: brcmf_chip_get_raminfo RAM: base=0x170000
size=1310720 (0x140000) sr=0 (0x0)
[ 3.595238] brcmfmac: brcmf_chip_setup ccrev=65, pmurev=35,
pmucaps=0x84565f23
[ 3.595241] brcmfmac: brcmf_get_module_param Enter, bus=2,
chip=43752, rev=2
[ 3.595246] brcmfmac: brcmf_alloc Enter
[ 3.595254] brcmfmac: brcmf_fw_alloc_request: using
brcm/fw_bcm43752a2_pcie for chip BCM43752/2
[ 3.595257] brcmfmac: brcmf_fw_get_firmwares enter: dev=0002:21:00.0
[ 3.595259] brcmfmac: brcm_alt_fw_path FW alt path:
brcm/fw_bcm43752a2_pcie.rockchip,rk3588-evb1-v10.bin
[ 3.595555] brcmfmac 0002:21:00.0: Direct firmware load for
brcm/fw_bcm43752a2_pcie.rockchip,rk3588-evb1-v10.bin failed with error -2
[ 3.600006] brcmfmac: brcmf_fw_complete_request firmware
brcm/fw_bcm43752a2_pcie.bin found
[ 3.600010] brcmfmac: brcm_alt_fw_path FW alt path:
brcm/fw_bcm43752a2_pcie.rockchip,rk3588-evb1-v10.txt
[ 3.600323] brcmfmac: brcmf_fw_complete_request firmware
brcm/fw_bcm43752a2_pcie.txt found
[ 3.600324] brcmfmac: brcmf_fw_request_nvram_done enter: dev=0002:21:00.0
[ 3.600378] brcmfmac: brcmf_fw_request_nvram_done nvram
00000000eea1e0fd len 6040
[ 3.600381] brcmfmac: brcm_alt_fw_path FW alt path:
brcm/fw_bcm43752a2_pcie.rockchip,rk3588-evb1-v10.clm_blob
[ 3.600641] brcmfmac: brcmf_fw_complete_request firmware
brcm/fw_bcm43752a2_pcie.clm_blob found
[ 3.600836] brcmfmac: brcmf_chip_tcm_rambase: 43752 OK
[ 3.600837] brcmfmac: brcmf_chip_get_raminfo RAM: base=0x170000
size=1310720 (0x140000) sr=0 (0x0)
[ 3.694272] brcmfmac: Download NVRAM brcm/fw_bcm43752a2_pcie.txt
[ 3.694895] brcmfmac: brcmf_pcie_write_entropy_bytes: written 6040
entropy bytes
[ 3.694910] brcmfmac: brcmf_pcie_download_fw_nvram: sharedram_addr
0xfa1a05e5
[ 3.694911] brcmfmac: brcmf_chip_set_active Enter
[ 9.774716] brcmfmac 0002:21:00.0: brcmf_pcie_download_fw_nvram: FW
failed to initialize: 0xfa1a05e5
[ 9.774733] brcmfmac: brcmf_detach Enter
[ 9.798714] brcmfmac: brcmf_bus_change_state 0 -> 0
[ 9.798716] brcmfmac: brcmf_proto_detach Enter
I added a log showing it sending the entropy bytes.
Firmware situation
# ls -l /lib/firmware/brcm/
total 956
-rw-r--r-- 1 root root 30993 Nov 16 12:31 clm_bcm43752a2_pcie_ag.blob
lrwxrwxrwx 1 root root 44 Nov 24 10:00 fw_bcm43752a2_pcie.bin ->
/lib/firmware/brcm/fw_bcm43752a2_pcie_ag.bin
lrwxrwxrwx 1 root root 46 Nov 24 10:02 fw_bcm43752a2_pcie.clm_blob
-> /lib/firmware/brcm/clm_bcm43752a2_pcie_ag.blob
lrwxrwxrwx 1 root root 36 Nov 24 10:02 fw_bcm43752a2_pcie.txt ->
/lib/firmware/brcm/nvram_AP6275P.txt
-rw-r--r-- 1 root root 936074 Nov 16 12:31 fw_bcm43752a2_pcie_ag.bin
-rw-r--r-- 1 root root 7458 Nov 16 12:31 nvram_AP6275P.txt
-Andy