* ath10k otp.bin board.bin firmware.bin art.bin?
@ 2017-04-19 3:32 孙建希
2017-04-19 11:37 ` Kalle Valo
0 siblings, 1 reply; 6+ messages in thread
From: 孙建希 @ 2017-04-19 3:32 UTC (permalink / raw)
To: ath10k
hi,
I am debugging ath10k QCA986x 5g WNIC. And installed the firmware. But
the card did not rise. The kernel log is as follows:
[ 9.320705] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00029
api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 88595bb8
[ 9.365636] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
[ 9.372894] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
What is the board id in otp?
I found ath10k have otp.bin board.bin firmware.bin art.bin. But ath9k
only have art.bin which used to calibrate wnic.
What are these bin files doing for?
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ath10k otp.bin board.bin firmware.bin art.bin?
2017-04-19 3:32 ath10k otp.bin board.bin firmware.bin art.bin? 孙建希
@ 2017-04-19 11:37 ` Kalle Valo
2017-04-19 14:58 ` 孙建希
0 siblings, 1 reply; 6+ messages in thread
From: Kalle Valo @ 2017-04-19 11:37 UTC (permalink / raw)
To: 孙建希; +Cc: ath10k@lists.infradead.org
孙建希 <ycsunjane@gmail.com> writes:
> I am debugging ath10k QCA986x 5g WNIC. And installed the firmware. But
> the card did not rise.
Did you also install the board.bin?
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ath10k/QCA988X/hw2.0/board.bin
> The kernel log is as follows:
>
> [ 9.320705] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00029
> api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 88595bb8
> [ 9.365636] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
> [ 9.372894] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
Full log would be much better, you might miss something important.
> What is the board id in otp?
It's used to identify different board versions but not all boards
support that. You can ignore that error message. Actually in commit
7be52c03bbf7 we downgraded that error message to a debug message.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ath10k otp.bin board.bin firmware.bin art.bin?
2017-04-19 11:37 ` Kalle Valo
@ 2017-04-19 14:58 ` 孙建希
2017-04-20 6:27 ` Kalle Valo
0 siblings, 1 reply; 6+ messages in thread
From: 孙建希 @ 2017-04-19 14:58 UTC (permalink / raw)
To: Kalle Valo; +Cc: ath10k@lists.infradead.org
The driver terminates execution in the function
'ath10k_download_cal_data`. `ath10k_download_cal_data` try load the
` pre_cal_file` and `cal_file` files via hif. Since these two files
are not provided , then try to get from `dt, eeprom, otp`.
`pre-cal.bin, cal.bin and otp` are used to calibrate radio?
I'm sure `board.bin` was successfully loaded.
[ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
crc32 bebc7c08
Does `board.bin` only used in `ath10k_download_and_run_otp`? What is
the relationship between otp and board.bin?
full kernel log:
[ 8.579370] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 8.585276] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1
irq_mode 0 reset_mode 0
[ 8.802225] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 8.813104] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 8.960014] firmware ath10k!pre-cal-pci-0000:00:00.0.bin:
firmware_loading_store: map pages failed
[ 8.969372] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[ 8.979898] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.152735] firmware ath10k!cal-pci-0000:00:00.0.bin:
firmware_loading_store: map pages failed
[ 9.372011] ath10k_pci 0000:00:00.0: qca988x hw2.0 target
0x4100016c chip_id 0x043222ff sub 0000:0000
[ 9.381409] ath10k_pci 0000:00:00.0: kconfig debug 1 debugfs 1
tracing 0 dfs 0 testmode 1
[ 9.394456] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.63-2
api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 4ff9e14d
[ 9.406551] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len
7205 for board id
[ 9.452326] ath10k_pci 0000:00:00.0: boot get otp board id result
0x00000001 board_id 0 chip_id 0
[ 9.459134] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
[ 9.464180] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 9.474778] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.564373] ath10k_pci 0000:00:00.0: firmware
ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages
failed
[ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
crc32 bebc7c08
[ 9.592793] ath10k_pci 0000:00:00.0: pre cal download procedure
failed, try cal file: -2
[ 9.598789] ath10k_pci 0000:00:00.0: boot did not find a
calibration file, try DT next: -11
[ 9.605080] ath10k_pci 0000:00:00.0: boot did not find DT entry,
try target EEPROM next: -2
[ 9.611355] ath10k_pci 0000:00:00.0: boot did not find target
EEPROM entry, try OTP next: -122
[ 9.739549] ath10k_pci 0000:00:00.0: otp calibration failed: 2
[ 9.745473] ath10k_pci 0000:00:00.0: failed to run otp: -22
[ 9.751139] ath10k_pci 0000:00:00.0: could not init core (-22)
[ 9.757142] ath10k_pci 0000:00:00.0: could not probe fw (-22)
2017-04-19 19:37 GMT+08:00 Kalle Valo <kvalo@qca.qualcomm.com>:
> 孙建希 <ycsunjane@gmail.com> writes:
>
>> I am debugging ath10k QCA986x 5g WNIC. And installed the firmware. But
>> the card did not rise.
>
> Did you also install the board.bin?
>
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ath10k/QCA988X/hw2.0/board.bin
>
>> The kernel log is as follows:
>>
>> [ 9.320705] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00029
>> api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 88595bb8
>> [ 9.365636] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
>> [ 9.372894] ath10k_pci 0000:00:00.0: Direct firmware load for
>> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
>
> Full log would be much better, you might miss something important.
>
>> What is the board id in otp?
>
> It's used to identify different board versions but not all boards
> support that. You can ignore that error message. Actually in commit
> 7be52c03bbf7 we downgraded that error message to a debug message.
>
> --
> Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ath10k otp.bin board.bin firmware.bin art.bin?
2017-04-19 14:58 ` 孙建希
@ 2017-04-20 6:27 ` Kalle Valo
2017-04-20 7:10 ` 孙建希
0 siblings, 1 reply; 6+ messages in thread
From: Kalle Valo @ 2017-04-20 6:27 UTC (permalink / raw)
To: 孙建希; +Cc: ath10k@lists.infradead.org
孙建希 <ycsunjane@gmail.com> writes:
> The driver terminates execution in the function
> 'ath10k_download_cal_data`. `ath10k_download_cal_data` try load the
> ` pre_cal_file` and `cal_file` files via hif. Since these two files
> are not provided , then try to get from `dt, eeprom, otp`.
>
> `pre-cal.bin, cal.bin and otp` are used to calibrate radio?
>
> I'm sure `board.bin` was successfully loaded.
>
> [ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
> crc32 bebc7c08
>
> Does `board.bin` only used in `ath10k_download_and_run_otp`? What is
> the relationship between otp and board.bin?
>
> full kernel log:
>
> [ 8.579370] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
> [ 8.585276] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1
> irq_mode 0 reset_mode 0
> [ 8.802225] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
> [ 8.813104] ath10k_pci 0000:00:00.0: Falling back to user helper
> [ 8.960014] firmware ath10k!pre-cal-pci-0000:00:00.0.bin:
> firmware_loading_store: map pages failed
> [ 8.969372] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/cal-pci-0000:00:00.0.bin failed with error -2
> [ 8.979898] ath10k_pci 0000:00:00.0: Falling back to user helper
> [ 9.152735] firmware ath10k!cal-pci-0000:00:00.0.bin:
> firmware_loading_store: map pages failed
> [ 9.372011] ath10k_pci 0000:00:00.0: qca988x hw2.0 target
> 0x4100016c chip_id 0x043222ff sub 0000:0000
> [ 9.381409] ath10k_pci 0000:00:00.0: kconfig debug 1 debugfs 1
> tracing 0 dfs 0 testmode 1
> [ 9.394456] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.63-2
> api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 4ff9e14d
> [ 9.406551] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len
> 7205 for board id
> [ 9.452326] ath10k_pci 0000:00:00.0: boot get otp board id result
> 0x00000001 board_id 0 chip_id 0
> [ 9.459134] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
> [ 9.464180] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
> [ 9.474778] ath10k_pci 0000:00:00.0: Falling back to user helper
> [ 9.564373] ath10k_pci 0000:00:00.0: firmware
> ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages
> failed
> [ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
> crc32 bebc7c08
> [ 9.592793] ath10k_pci 0000:00:00.0: pre cal download procedure
> failed, try cal file: -2
> [ 9.598789] ath10k_pci 0000:00:00.0: boot did not find a
> calibration file, try DT next: -11
> [ 9.605080] ath10k_pci 0000:00:00.0: boot did not find DT entry,
> try target EEPROM next: -2
> [ 9.611355] ath10k_pci 0000:00:00.0: boot did not find target
> EEPROM entry, try OTP next: -122
> [ 9.739549] ath10k_pci 0000:00:00.0: otp calibration failed: 2
This is the problem, otp.bin fails to find your calibration data from
the boards's OTP memory. Are you sure that the board has the calibration
data in OTP?
What kernel is this? Something from openwrt? And what device?
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ath10k otp.bin board.bin firmware.bin art.bin?
2017-04-20 6:27 ` Kalle Valo
@ 2017-04-20 7:10 ` 孙建希
2017-04-20 7:31 ` Kalle Valo
0 siblings, 1 reply; 6+ messages in thread
From: 孙建希 @ 2017-04-20 7:10 UTC (permalink / raw)
To: Kalle Valo; +Cc: ath10k@lists.infradead.org
I have solved this problem.
I am using LEDE Linux version 4.4.61. Device is a WF-96A from CIG shanghai.
WF-96A write calibration data in spi flash. I have success read it to
`ath10k/cal-pci-0000:00:00.0.bin`. LEDE default use firmware-5.bin for
QCA988X. But `ath10k/cal-pci-0000:00:00.0.bin` can only work with
firmware-4.bin.
What is the full name of otp? How does otp work?
Should we pay attention to the version of calibration and firmware ?
2017-04-20 14:27 GMT+08:00 Kalle Valo <kvalo@qca.qualcomm.com>:
> 孙建希 <ycsunjane@gmail.com> writes:
>
>> The driver terminates execution in the function
>> 'ath10k_download_cal_data`. `ath10k_download_cal_data` try load the
>> ` pre_cal_file` and `cal_file` files via hif. Since these two files
>> are not provided , then try to get from `dt, eeprom, otp`.
>>
>> `pre-cal.bin, cal.bin and otp` are used to calibrate radio?
>>
>> I'm sure `board.bin` was successfully loaded.
>>
>> [ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
>> crc32 bebc7c08
>>
>> Does `board.bin` only used in `ath10k_download_and_run_otp`? What is
>> the relationship between otp and board.bin?
>>
>> full kernel log:
>>
>> [ 8.579370] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
>> [ 8.585276] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1
>> irq_mode 0 reset_mode 0
>> [ 8.802225] ath10k_pci 0000:00:00.0: Direct firmware load for
>> ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
>> [ 8.813104] ath10k_pci 0000:00:00.0: Falling back to user helper
>> [ 8.960014] firmware ath10k!pre-cal-pci-0000:00:00.0.bin:
>> firmware_loading_store: map pages failed
>> [ 8.969372] ath10k_pci 0000:00:00.0: Direct firmware load for
>> ath10k/cal-pci-0000:00:00.0.bin failed with error -2
>> [ 8.979898] ath10k_pci 0000:00:00.0: Falling back to user helper
>> [ 9.152735] firmware ath10k!cal-pci-0000:00:00.0.bin:
>> firmware_loading_store: map pages failed
>> [ 9.372011] ath10k_pci 0000:00:00.0: qca988x hw2.0 target
>> 0x4100016c chip_id 0x043222ff sub 0000:0000
>> [ 9.381409] ath10k_pci 0000:00:00.0: kconfig debug 1 debugfs 1
>> tracing 0 dfs 0 testmode 1
>> [ 9.394456] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.63-2
>> api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 4ff9e14d
>> [ 9.406551] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len
>> 7205 for board id
>> [ 9.452326] ath10k_pci 0000:00:00.0: boot get otp board id result
>> 0x00000001 board_id 0 chip_id 0
>> [ 9.459134] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
>> [ 9.464180] ath10k_pci 0000:00:00.0: Direct firmware load for
>> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
>> [ 9.474778] ath10k_pci 0000:00:00.0: Falling back to user helper
>> [ 9.564373] ath10k_pci 0000:00:00.0: firmware
>> ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages
>> failed
>> [ 9.573602] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
>> crc32 bebc7c08
>> [ 9.592793] ath10k_pci 0000:00:00.0: pre cal download procedure
>> failed, try cal file: -2
>> [ 9.598789] ath10k_pci 0000:00:00.0: boot did not find a
>> calibration file, try DT next: -11
>> [ 9.605080] ath10k_pci 0000:00:00.0: boot did not find DT entry,
>> try target EEPROM next: -2
>> [ 9.611355] ath10k_pci 0000:00:00.0: boot did not find target
>> EEPROM entry, try OTP next: -122
>> [ 9.739549] ath10k_pci 0000:00:00.0: otp calibration failed: 2
>
> This is the problem, otp.bin fails to find your calibration data from
> the boards's OTP memory. Are you sure that the board has the calibration
> data in OTP?
>
> What kernel is this? Something from openwrt? And what device?
>
> --
> Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ath10k otp.bin board.bin firmware.bin art.bin?
2017-04-20 7:10 ` 孙建希
@ 2017-04-20 7:31 ` Kalle Valo
0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-04-20 7:31 UTC (permalink / raw)
To: 孙建希; +Cc: ath10k@lists.infradead.org
孙建希 <ycsunjane@gmail.com> writes:
> I have solved this problem.
> I am using LEDE Linux version 4.4.61. Device is a WF-96A from CIG shanghai.
>
> WF-96A write calibration data in spi flash. I have success read it to
> `ath10k/cal-pci-0000:00:00.0.bin`. LEDE default use firmware-5.bin for
> QCA988X. But `ath10k/cal-pci-0000:00:00.0.bin` can only work with
> firmware-4.bin.
I don't know what changes LEDE has related to this, but do note that
firmware-4.bin is not the firmware version number and it only shows the
firmware API number. The exact firmware versions of both images are
important, like "10.1.2.3-4" or something like that.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-04-20 7:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-19 3:32 ath10k otp.bin board.bin firmware.bin art.bin? 孙建希
2017-04-19 11:37 ` Kalle Valo
2017-04-19 14:58 ` 孙建希
2017-04-20 6:27 ` Kalle Valo
2017-04-20 7:10 ` 孙建希
2017-04-20 7:31 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.