Skip to contentSkip to conversation

First QCA6174 firmware release

DISCUSSION Austin Hendrix 4 participants 6 messages Feb 8, 2015 – Feb 13, 2015 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

I have the same issue as Joris; my QCA6174 appears to be a hw2.1 version. lspci -vvv returns similar results.

The wireless card is a " Killer N1525 Combo (2x2 ac)", in an MSI GS60 Ghost Pro 4K laptop; purchased in January of 2015.

Similar to Joris, I've also found what appears to be firmware as part of the existing Windows installation, but it looks like it's missing the header information and magic bits that will allow it to load.

Does anyone have any pointers on how I might go about confirming that this is the correct firmware; preparing it for the ath10k driver with the appropriate header, and preparing the matching board.bin file?

Thanks,
-Austin

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#1 lore raw

Am 08.02.2015 um 14:12 schrieb Austin Hendrix:

Quoted 8 lines

I have the same issue as Joris; my QCA6174 appears to be a hw2.1 version. lspci -vvv returns similar results.

The wireless card is a " Killer N1525 Combo (2x2 ac)", in an MSI GS60 Ghost Pro 4K laptop; purchased in January of 2015.

Similar to Joris, I've also found what appears to be firmware as part of the existing Windows installation, but it looks like it's missing the header information and magic bits that will allow it to load.

Does anyone have any pointers on how I might go about confirming that this is the correct firmware; preparing it for the ath10k driver with the appropriate header, and preparing the matching board.bin file?

the format is very simple. you can write such a tool in about 30 minutes if you are a skilled programmer. i already did it. just need to find it on my hdd

Quoted 8 lines

Thanks,
-Austin

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#5 lore raw
In reply to Austin Hendrix

I have the same issue as Joris; my QCA6174 appears to be a hw2.1 version. lspci -vvv returns similar results.

The wireless card is a " Killer N1525 Combo (2x2 ac)", in an MSI GS60 Ghost Pro 4K laptop; purchased in January of 2015.

Similar to Joris, I've also found what appears to be firmware as part of the existing Windows installation, but it looks like it's missing the header information and magic bits that will allow it to load.

Does anyone have any pointers on how I might go about confirming that this is the correct firmware; preparing it for the ath10k driver with the appropriate header, and preparing the matching board.bin file?

Thanks,
-Austin

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#2 lore raw
In reply to Sebastian Gottschall

I consider myself a fairly skilled programmer; if the format is documented somewhere, I have no doubt that I can write a tool to put the firmware into the proper format. Does anyone know where the firmware format is documented, or do I have to go read the source for the driver to figure out the firmware format?

The bigger question is, how can I confirm that I'm wrapping the correct firmware?

I found a qca61x420.bin file (probably firmware; definitely compiled code) in /Windows/System32/drivers/qca61x420.bin , but the ath10k driver doesn't recognize it as firmware.

Thanks,
-Austin

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#3 lore raw
Quoted 5 lines · Austin Hendrix

I consider myself a fairly skilled programmer; if the format is documented somewhere, I have no doubt that I can write a tool to put the firmware into the proper format. Does anyone know where the firmware format is documented, or do I have to go read the source for the driver to figure out the firmware format?

Take a look at ath10k_core_fetch_firmware_api_n(). You can derive an encoder logic from this easily.

Quoted 2 lines

The bigger question is, how can I confirm that I'm wrapping the correct firmware?

If ath10k parses it later and boots then it's correct? :-)

Quoted 3 lines

I found a qca61x420.bin file (probably firmware; definitely compiled code) in /Windows/System32/drivers/qca61x420.bin , but the ath10k driver doesn't recognize it as firmware.

The blob you found is the raw binary that is pushed to the device. ath10k expects to find it in a wrapped "FW API" which also contains an OTP program. You also need to make sure to setup correct fw_features/op_version (you can disassemble the hw3.0 wrapper blob).

Michał

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#4 lore raw
Quoted 24 lines · Michal Kazior
Quoted 5 lines · Austin Hendrix

I consider myself a fairly skilled programmer; if the format is documented somewhere, I have no doubt that I can write a tool to put the firmware into the proper format. Does anyone know where the firmware format is documented, or do I have to go read the source for the driver to figure out the firmware format?

Take a look at ath10k_core_fetch_firmware_api_n(). You can derive an encoder logic from this easily.

Quoted 2 lines

The bigger question is, how can I confirm that I'm wrapping the correct firmware?

If ath10k parses it later and boots then it's correct? :-)

Quoted 3 lines

I found a qca61x420.bin file (probably firmware; definitely compiled code) in /Windows/System32/drivers/qca61x420.bin , but the ath10k driver doesn't recognize it as firmware.

The blob you found is the raw binary that is pushed to the device. ath10k expects to find it in a wrapped "FW API" which also contains an OTP program. You also need to make sure to setup correct fw_features/op_version (you can disassemble the hw3.0 wrapper blob).

Quoted 6 lines

Michał

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Thanks! I can work with that.

The FW API data structure is pretty simple - I can reproduce it.

Looking at the firmware blob that I have, and comparing it to the existing firmware-4 image suggests that it contains several different firmware images. I'm going to spend some time trying to chop it up and figure out how it's laid out, and then try to re-pack it appropriately for linux.

-Austin

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k