<div dir="ltr">Hi David,<div><br><div>Can you share you current patch? I am working on the same chips, QCA9531+9887 and hope to get some progress. I'm glad to know that scan is working.</div></div><div><br></div><div>--Alfie </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 April 2016 at 06:14, David Hutchison <span dir="ltr"><<a href="mailto:dhutchison@bluemesh.net" target="_blank">dhutchison@bluemesh.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Scanning appears to work ( iw dev wlan1 scan ) ,<br>
<br>
As soon as I try to use hostapd to run as an AP I get:<br>
<br>
[20475.140000] ath10k_pci 0000:00:00.0: firmware crashed! (uuid<br>
b826d45e-e51f-4beb-a489-6b7a4d5c6f76)<br>
[20475.150000] ath10k_pci 0000:00:00.0: qca988x hw2.0 (0x4100016d,<br>
<span class="">0x004000ff sub 0000:0000) fw 10.2.3.31.7-1 fwapi 5 bdapi 1 htt-ver 2.1<br>
wmi-op 5 htt-op 2 cal file max-sta 1p<br>
</span>[20475.170000] ath10k_pci 0000:00:00.0: debug 1 debugfs 1 tracing 0<br>
dfs 0 testmode 1<br>
[20475.180000] ath10k_pci 0000:00:00.0: firmware register dump:<br>
[20475.180000] ath10k_pci 0000:00:00.0: [00]: 0x4100016D 0x00000000<br>
0x004146C8 0x004146C8<br>
[20475.190000] ath10k_pci 0000:00:00.0: [04]: 0x004146C8 0x00060530<br>
0x0000001F 0x00955A00<br>
[20475.200000] ath10k_pci 0000:00:00.0: [08]: 0x0040AE04 0x00400000<br>
0x00000007 0x00000000<br>
[20475.210000] ath10k_pci 0000:00:00.0: [12]: 0x00000002 0xFFFFFFFF<br>
0x00958360 0x0095836B<br>
[20475.210000] ath10k_pci 0000:00:00.0: [16]: 0x809ACDE0 0x0040AD94<br>
0x0040AE04 0x00400000<br>
[20475.220000] ath10k_pci 0000:00:00.0: [20]: 0x00000000 0x00000000<br>
0x00000000 0x0040E830<br>
[20475.230000] ath10k_pci 0000:00:00.0: [24]: 0x809AC4E2 0x0040ADC4<br>
0x00000001 0x0040AE04<br>
[20475.240000] ath10k_pci 0000:00:00.0: [28]: 0x004133E0 0x00000001<br>
0x0040AE08 0x00000000<br>
[20475.250000] ath10k_pci 0000:00:00.0: [32]: 0x00000007 0x00000000<br>
0x00000000 0x004133C8<br>
[20475.260000] ath10k_pci 0000:00:00.0: [36]: 0x809B9C49 0x0040ADE4<br>
0x00411568 0x0041158C<br>
[20475.260000] ath10k_pci 0000:00:00.0: [40]: 0x00000001 0x00000000<br>
0x00955A00 0x0040E840<br>
[20475.270000] ath10k_pci 0000:00:00.0: [44]: 0x809B944C 0x0040AE04<br>
0x00000001 0x00000000<br>
[20475.280000] ath10k_pci 0000:00:00.0: [48]: 0x0040AE04 0x00000001<br>
0x004133C8 0x004117AC<br>
[20475.290000] ath10k_pci 0000:00:00.0: [52]: 0x809B9263 0x0040AEA4<br>
0x0041ECF8 0x00411BC8<br>
[20475.300000] ath10k_pci 0000:00:00.0: [56]: 0x004133C8 0x0040AE34<br>
0x00411F08 0x00411F08<br>
[20475.410000] ieee80211 phy1: Hardware restart was requested<br>
<br>
-- Davey<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Apr 25, 2016 at 1:01 PM, Christian Lamparter<br>
<<a href="mailto:chunkeey@googlemail.com">chunkeey@googlemail.com</a>> wrote:<br>
> Hello,<br>
><br>
> On Monday, April 25, 2016 10:53:41 AM David Hutchison wrote:<br>
>> So with some modifications to pci.c, hw.h and core.c I was able to get<br>
>> the radio initialized! :)<br>
><br>
> Hey, that's nice! Can you make and post a patch for that?<br>
> I'm sure if it's just a matter of adding the new pci and chip<br>
> ids to the tables. You could just go ahead and post it, so it<br>
> will be picked up.<br>
><br>
>> pci.c: added QCA9887_DEVICE_ID, modified ath10k_pci_id_table and<br>
>> ath10k_pci_supp_chips<br>
>> core.c: Duplicated QCA988X entry in ath10k_hw_params_list and passed<br>
>> 0x4100016d as the ID ( left everything else the same )<br>
>> hw.h: added definitions for QCA9887<br>
>><br>
>> I found "<a href="https://github.com/kvalo/ath10k-firmware/blob/master/QCA9887/firmware-5.bin_10.2.3.31.7-1" rel="noreferrer" target="_blank">https://github.com/kvalo/ath10k-firmware/blob/master/QCA9887/firmware-5.bin_10.2.3.31.7-1</a>"<br>
>> on your github and replaced<br>
>> /lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin on my board.<br>
>> hotplug.d then loaded QCA9887 firmware on next boot.<br>
>><br>
>> Of course my approach was very much a hack. If there is anything I can<br>
>> contribute to creating a patch for ath10k, please let me know. I would<br>
>> love to help!<br>
>><br>
>> dmesg<br>
>> [ 18.920000] ath10k_pci 0000:00:00.0: pci irq legacy interrupts 0<br>
>> irq_mode 0 reset_mode 0<br>
>> [ 19.030000] rev_id 00000000 QCA9887<br>
>> [ 19.030000] dev_id 00000050 QCA9887<br>
>> [ 20.460000] ath10k_pci 0000:00:00.0: qca988x hw2.0 (0x4100016d,<br>
>> 0x004000ff sub 0000:0000) fw 10.2.3.31.7-1 fwapi 5 bdapi 1 htt-ver 2.1<br>
>> wmi-op 5 htt-op 2 cal file max-sta 1p<br>
>> [ 20.480000] ath10k_pci 0000:00:00.0: debug 1 debugfs 1 tracing 0<br>
>> dfs 0 testmode 1<br>
>><br>
> ...<br>
><br>
> Does the device work? Can you scan for networks, connect to networks<br>
> and create networks? That would be good to know.<br>
><br>
> Regards,<br>
> Christian<br>
><br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</div></div></blockquote></div><br></div>