<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: qca6174 driver problem after enabling docker associate kernel options. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076208#M157983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW，The kernel version is 4.14.98.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 06:28:54 GMT</pubDate>
    <dc:creator>linux_downey</dc:creator>
    <dc:date>2020-05-27T06:28:54Z</dc:date>
    <item>
      <title>qca6174 driver problem after enabling docker associate kernel options.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076207#M157982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I've ported ubuntu18.04 on i.mx8mq-evk, and enabled the docker by modifying the kernel options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;But, for now, on this platform(ubuntu with docker), I can not insmod the qca6174.ko into kernel, the debug information shows that&amp;nbsp; a segmentfault occured during insertion, which caused by illegal pointer access.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I consider that this problem is caused by kernel options modification, So I use the previous version of kernel Image(ubuntu without docker associate kernel options modification)，it works OK，The qca6174.ko can normally insmod.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Considering that qca6174.ko was copied from the official imx8mq-evk image，I try to compile a qca6174 image myself to see if it can solve the problem，The source code of qca6174 on:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-2.0/" title="https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-2.0/"&gt;platform/vendor/qcom-opensource/wlan/qcacld-2.0 - Unnamed repository&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;But I don't know which branch or tag should I use, I tried the latest one, But it compiles failed. The error message is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h: In function ‘__adf_os_dmamem_alloc’:&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h:77:16: error: implicit declaration of function ‘dma_alloc_noncoherent’; did you mean ‘dma_alloc_coherent’? [-Werror=implicit-function-declaration]&lt;BR /&gt; vaddr = dma_alloc_noncoherent(osdev-&amp;gt;dev, size, &amp;amp;lmap-&amp;gt;seg[0].daddr,&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt; dma_alloc_coherent&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h:77:14: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]&lt;BR /&gt; vaddr = dma_alloc_noncoherent(osdev-&amp;gt;dev, size, &amp;amp;lmap-&amp;gt;seg[0].daddr,&lt;BR /&gt; ^&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h: In function ‘__adf_os_dmamem_free’:&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h:103:9: error: implicit declaration of function ‘dma_free_noncoherent’; did you mean ‘dma_free_coherent’? [-Werror=implicit-function-declaration]&lt;BR /&gt; dma_free_noncoherent(osdev-&amp;gt;dev, size, vaddr, dmap-&amp;gt;seg[0].daddr);&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~&lt;BR /&gt; dma_free_coherent&lt;BR /&gt;In file included from /home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.h:46:0,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/VOSS/inc/vos_packet.h:60,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/VOSS/inc/i_vos_list.h:46,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/VOSS/inc/vos_list.h:73,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/VOSS/inc/vos_api.h:64,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/HDD/inc/wlan_hdd_includes.h:55,&lt;BR /&gt; from /home/hzh/qca6174/qcacld-2.0/CORE/HDD/src/wlan_hdd_assoc.c:50:&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h: At top level:&lt;BR /&gt;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h:39:10: fatal error: asm/scatterlist.h: No such file or directory&lt;BR /&gt; #include &amp;lt;asm/scatterlist.h&amp;gt;&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~&lt;BR /&gt;cc1: all warnings being treated as errors&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;So, my questions are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. Could&amp;nbsp;I solve this problem by regenerating a qca6471.ko? If not, please give me some suggestions about this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. If the answer to the first question is yes, Is there any guide to help me know how to recompile a qca6174.ko, or how can I config the qca6174 source code?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide some help, I will be very grateful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;downey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 02:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076207#M157982</guid>
      <dc:creator>linux_downey</dc:creator>
      <dc:date>2020-05-27T02:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: qca6174 driver problem after enabling docker associate kernel options.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076208#M157983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW，The kernel version is 4.14.98.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 06:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076208#M157983</guid>
      <dc:creator>linux_downey</dc:creator>
      <dc:date>2020-05-27T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: qca6174 driver problem after enabling docker associate kernel options.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076209#M157984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a git repo:&lt;A class="link-titled" href="https://github.com/boundarydevices/qcacld-2.0/tree/boundary-CNSS.LEA.NRT_2.0" title="https://github.com/boundarydevices/qcacld-2.0/tree/boundary-CNSS.LEA.NRT_2.0"&gt;GitHub - boundarydevices/qcacld-2.0 at boundary-CNSS.LEA.NRT_2.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It saws&amp;nbsp;that the code&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;has been tested againt the 4.14.x kernel branches.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;I followed the step and still get trouble with compiling:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/home/hzh/qca6174/qcacld-2.0/CORE/SERVICES/COMMON/adf/linux/adf_os_dma_pvt.h:140:5: error: implicit &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;declaration of function ‘dmac_inv_range’; did you mean ‘time_in_range’? [-Werror=implicit-function-declaration]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dmac_inv_range(start, end);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;^~~~~~~~~~~~~~&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time_in_range&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cc1: some warnings being treated as errors&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;It seems that the kernel API is incompatible.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Best Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;downey.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: 59px; top: 6px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 08:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/qca6174-driver-problem-after-enabling-docker-associate-kernel/m-p/1076209#M157984</guid>
      <dc:creator>linux_downey</dc:creator>
      <dc:date>2020-05-27T08:56:16Z</dc:date>
    </item>
  </channel>
</rss>

