How to integrate the latest ath10k driver into an older kernel release ?
吳重毅
uranus0206 at gmail.com
Wed Mar 29 01:53:44 PDT 2017
Hi all:
I solved the problem from Steve deRosier's help. And my method as below:
Step 1: linux-next check out to latest version, backports also
checkout to master and apply ccm patch.
Step 2: generate tree by ./gentree.py --verbose --clean ~/linux-next/
~/backports-output
Step 3: modify DECLARE_EWMA(signal, 10, 8) to DECLARE_EWMA(signal,
1024, 8) in ../mac80211/sta_info.h of backports-output
Step 4: modify "skb=idr_remove(...);" to "skb=idr_find(...); if (skb)
idr_remove(...);" in ../mac80211/status.h of backports-output
Step 5: Target linux kernel (the lower version or your specific
version ) need to be compiled first.
Step 6: export KLIB_BUILD="path/to/your_lower_linux_kernel"
Step 7: export KLIB="path/to/your/build/object" (I am about to get
*.ko, thus i point the directory to backports-output)
Step 8: make defconfig-your_choice (I am using defconfig-ath10k)
Step 9: make the backports-output and wait to compile.
My compile environment is Ubuntu16.04 with kernel 4.4 and I am porting
ath10k in linux kernel 4.11 back to linux 4.2.
On Tue, Mar 28, 2017 at 6:20 PM, Janusz Dziedzic
<janusz.dziedzic at tieto.com> wrote:
> On 24 March 2017 at 12:25, Wu Chung-I <uranus0206 at gmail.com> wrote:
>> Hi Janusz:
>> I follow your procedure (include patched your attachment).
>> I can generate but failing compile.
>> Any advise?
>> My environment is Ubuntu 16.04 (same with you), git the backports and
>> checkout to master.
>>
> I have ubuntu with 4.9-rc6 kernel - probably because of that works for me.
> With 4.4 (ubuntu orginal kernel) also fail - don't know kvmalloc() -
> seems like bug in backports ...
> Best, report this to backports group :)
>
>
>> Log of make:
>> make[5]: 'conf' is up to date.
>> #
>> # configuration written to .config
>> #
>> Building backport-include/backport/autoconf.h ... done.
>> CC [M] /home/chungyi/backports-output/compat/main.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.5.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.6.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.7.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.8.o
>> CC [M] /home/chungyi/backports-output/compat/lib-rhashtable.o
>> scripts/Makefile.build:258: recipe for target
>> '/home/chungyi/backports-output/compat/lib-rhashtable.o' failed
>> scripts/Makefile.build:403: recipe for target
>> '/home/chungyi/backports-output/compat' failed
>> Makefile:1418: recipe for target '_module_/home/chungyi/backports-output'
>> failed
>> Makefile.build:6: recipe for target 'modules' failed
>> Makefile.real:88: recipe for target 'modules' failed
>> Makefile:40: recipe for target 'modules' failed
>> Makefile:30: recipe for target 'default' failed
>> CC [M] /home/chungyi/backports-output/compat/lib-rhashtable.o
>> scripts/Makefile.build:258: recipe for target
>> '/home/chungyi/backports-output/compat/lib-rhashtable.o' failed
>> scripts/Makefile.build:403: recipe for target
>> '/home/chungyi/backports-output/compat' failed
>> Makefile:1418: recipe for target '_module_/home/chungyi/backports-output'
>> failed
>> Makefile.build:6: recipe for target 'modules' failed
>> Makefile.real:88: recipe for target 'modules' failed
>> Makefile:40: recipe for target 'modules' failed
>> Makefile:30: recipe for target 'default' failed
>>
>>
>> _______________________________________________
>> ath10k mailing list
>> ath10k at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k
--
吳重毅 Wu Chung-yi
On Tue, Mar 28, 2017 at 6:20 PM, Janusz Dziedzic
<janusz.dziedzic at tieto.com> wrote:
> On 24 March 2017 at 12:25, Wu Chung-I <uranus0206 at gmail.com> wrote:
>> Hi Janusz:
>> I follow your procedure (include patched your attachment).
>> I can generate but failing compile.
>> Any advise?
>> My environment is Ubuntu 16.04 (same with you), git the backports and
>> checkout to master.
>>
> I have ubuntu with 4.9-rc6 kernel - probably because of that works for me.
> With 4.4 (ubuntu orginal kernel) also fail - don't know kvmalloc() -
> seems like bug in backports ...
> Best, report this to backports group :)
>
>
>> Log of make:
>> make[5]: 'conf' is up to date.
>> #
>> # configuration written to .config
>> #
>> Building backport-include/backport/autoconf.h ... done.
>> CC [M] /home/chungyi/backports-output/compat/main.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.5.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.6.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.7.o
>> CC [M] /home/chungyi/backports-output/compat/backport-4.8.o
>> CC [M] /home/chungyi/backports-output/compat/lib-rhashtable.o
>> scripts/Makefile.build:258: recipe for target
>> '/home/chungyi/backports-output/compat/lib-rhashtable.o' failed
>> scripts/Makefile.build:403: recipe for target
>> '/home/chungyi/backports-output/compat' failed
>> Makefile:1418: recipe for target '_module_/home/chungyi/backports-output'
>> failed
>> Makefile.build:6: recipe for target 'modules' failed
>> Makefile.real:88: recipe for target 'modules' failed
>> Makefile:40: recipe for target 'modules' failed
>> Makefile:30: recipe for target 'default' failed
>> CC [M] /home/chungyi/backports-output/compat/lib-rhashtable.o
>> scripts/Makefile.build:258: recipe for target
>> '/home/chungyi/backports-output/compat/lib-rhashtable.o' failed
>> scripts/Makefile.build:403: recipe for target
>> '/home/chungyi/backports-output/compat' failed
>> Makefile:1418: recipe for target '_module_/home/chungyi/backports-output'
>> failed
>> Makefile.build:6: recipe for target 'modules' failed
>> Makefile.real:88: recipe for target 'modules' failed
>> Makefile:40: recipe for target 'modules' failed
>> Makefile:30: recipe for target 'default' failed
>>
>>
>> _______________________________________________
>> ath10k mailing list
>> ath10k at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k
--
Wu Chung-I
More information about the ath10k
mailing list