All of lore.kernel.org
 help / color / mirror / Atom feed
From: 吳重毅 <uranus0206@gmail.com>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Cc: "ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: How to integrate the latest ath10k driver into an older kernel release ?
Date: Wed, 29 Mar 2017 16:53:44 +0800	[thread overview]
Message-ID: <CAN+BLYGUW+a6Ds_2ab1o+EYdoq1GC56EdFsNdZGC=2FsHKKdSg@mail.gmail.com> (raw)
In-Reply-To: <CALhHN=rn1XOrzqCMGX=XkxY9wuzY4WVeD4+9aEG-Zp7Qwv=Yow@mail.gmail.com>

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@tieto.com> wrote:
> On 24 March 2017 at 12:25, Wu Chung-I <uranus0206@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@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@tieto.com> wrote:
> On 24 March 2017 at 12:25, Wu Chung-I <uranus0206@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@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath10k



-- 
Wu Chung-I

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2017-03-29  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24 11:25 How to integrate the latest ath10k driver into an older kernel release ? Wu Chung-I
2017-03-25 11:14 ` K.Mani
2017-03-28 10:20 ` Janusz Dziedzic
2017-03-29  8:53   ` 吳重毅 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-10 14:06 Chris Price
2017-03-13  9:42 ` Janusz Dziedzic
     [not found] <F3E5DE47-C5E5-46B5-8E19-DF0DD43DBC9C@picocela.com>
2017-03-10 12:57 ` Jean-Luc Kalmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN+BLYGUW+a6Ds_2ab1o+EYdoq1GC56EdFsNdZGC=2FsHKKdSg@mail.gmail.com' \
    --to=uranus0206@gmail.com \
    --cc=ath10k@lists.infradead.org \
    --cc=janusz.dziedzic@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.