18.06 for ipq4018 dk01

hi,

i`ve built a firmware in 18.06 for ipq4018 dk01, and upgraded into a dk01 hardware,
the board i have can run qsdk firmware, and everything works fine,
but in 18.06 firmware , the wireless cannot work :

[   12.766631] PPP generic driver version 2.4.2
[   12.767632] NET: Registered protocol family 24
[   12.955158] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a000000.wifi.bin failed with error -2
[   12.955204] ath10k_ahb a000000.wifi: Falling back to user helper
[   46.076024] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[   46.076070] ath10k_ahb a000000.wifi: Falling back to user helper
[   46.143686] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[   46.723082] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   46.723138] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   46.736216] ath10k_ahb a000000.wifi: firmware ver 10.4-3.5.3-00057 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6a15d64d
[   46.804080] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,bmi-chip-id=0,bmi-board-id=24 from ath10k/QCA4019/hw1.0/board-2.bin
[   46.804352] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[   46.815803] ath10k_ahb a000000.wifi: Falling back to user helper
[   46.858734] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[   46.858994] ath10k_ahb a000000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[   46.866334] ath10k_ahb a000000.wifi: failed to fetch board file: -11
[   46.875746] ath10k_ahb a000000.wifi: could not probe fw (-11)
[   47.064811] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a800000.wifi.bin failed with error -2
[   47.064856] ath10k_ahb a800000.wifi: Falling back to user helper
[   79.558885] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[   79.558931] ath10k_ahb a800000.wifi: Falling back to user helper
[   79.608802] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[   79.610844] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   79.616766] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   79.631407] ath10k_ahb a800000.wifi: firmware ver 10.4-3.5.3-00057 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6a15d64d
[   79.675873] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,bmi-chip-id=0,bmi-board-id=25 from ath10k/QCA4019/hw1.0/board-2.bin
[   79.676070] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[   79.687607] ath10k_ahb a800000.wifi: Falling back to user helper
[   79.730965] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[   79.731224] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[   79.738573] ath10k_ahb a800000.wifi: failed to fetch board file: -11
[   79.747996] ath10k_ahb a800000.wifi: could not probe fw (-11)
[   79.757430] kmodloader: done loading kernel modules from /etc/modules.d/*
[   86.197860] br-lan: port 1(eth0) entered blocking state

thanks

Regards

Which board was it?
I doubt it was reference board due to BMI IDs,yo can see that wireless does not work since there are no matching BMI IDs in the upstream board-2.bin which are necessary for radio calibration

hi robimarko,

ap-dk01.1-c1, qualcomm reference design

i found that ath10k always try to load firmware-6.bin, but in lib/firmware/ath10k/QCA4019/hw1.0/ , only have a 'firmware-5.bin'

Regards,

Hm, whats the vendor?
I am sure that it is based on the reference design but vendor most likely has custom BDFs.

You can ignore the firmware-6.bin error.
Its normal since IPQ40XX does not use firmware level 6 at all and there is no firmware-6.bin at all.
Its simply a generic error

HI,

its Corewav AP018V1, its based on dk01.1-c1, i`m trying to run openwrt firmware on it..

Regards,

Well,I cant find anything on that board.
Do you maybe have stock firmware somewhere?

Like @robimarko said, the board is likely based on a dk01.1-c1 design, but is not the same. I haven't seen the BMI 24 an 25 elsewhere, so the calibration data must be customized.
If you have access to the original firmware, which is likely based on QSDK, you can look for the files
/lib/firmware/IPQ4019/hw.1/boardData_1_0_IPQ4019_<board>_wifi<0|1>.bin. You can probably find the corrects names by examining the kernel log with dmesg.

For example, in the bootlog from the Asus RT-AC58U you can see that the files are:

  • boardData_1_0_IPQ4019_Y9803_wifi0.bin
  • boardData_1_0_IPQ4019_Y9803_wifi1.bin

NOTE: The following steps might not be exact, as I haven't performed the procedure in a while.

Once you have the correct calibration files, you have to convert them to the right format using the utilities form the qca-swiss-army-knife repo, which can generate a board-2.bin

Hi luaraneda,

i`ve download the qca-swiss-army-knife, is there a guide for generate board-2.bin?

Thanks

Check this out
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles

Also,there is a good example in 8devices Jalapeno Pull request

@robimarko Thanks! let me try.

hi all,

how can i get bmi-board-id? is it store in the calibration file? like 'pre-cal-ahb-a800000.wifi.bin'?

Regards,

You can see it in the bootlog.
Yours are 24 and 25

@rebimarko

thanks, i mean dose the bmi-board-id is store in the pre-cal-ahb-a800000.wifi.bin? which is created in calibration procedure?

BMI id is read from the calibration which is read from the flash and placed in appropriate location.
You will also need to define a qcom,ath10k-calibration-variant and add it to the DTS.
Since most devices reuse the same BMI IDs

i just copy the calibration file from the board, and use ath10k-bdencoder add the file into board-2.bin. wifi works fine.... finally, thanks a lot.

Regards,