Results 1 to 8 of 8

Thread: Pie kernel for Galaxy S5?

  1. #1
    Join Date
    2019-Nov
    Posts
    113

    Pie kernel for Galaxy S5?

    Anyone know from whence I can get either a LineageOS 16 compatible NetHunter Kernel for the S5 someone gave me? If not, then is there a reference OS build that was used for installing the existing NetHunter Build? I tried building from source, but there is only a Marshmallow kernel in the sources.

    Any (useful) hints on this??

    I'm not going to be using such an old device as my primary NetHunter device, but you know, tinkerers love to tinker...


    (tinker, tinker, tinker)...

  2. #2
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    444
    The latest kernel we have for the Galaxy S5 is a CM14.1 build:

    https://gitlab.com/kalilinux/nethunt...rnels.txt#L167

    If you'd like to tinker than you can clone that kernel's source from here:

    https://github.com/jcadduono/android...amsung_msm8974

    and merge the 16 version from upstream:

    https://github.com/LineageOS/android...amsung_msm8974

    Build it, test it and when you are happy with it you can raise a merge request so that we can include it in the NetHunter repo.

  3. #3
    Join Date
    2020-Jul
    Location
    Brasil
    Posts
    5
    Quote Originally Posted by re4son View Post
    The latest kernel we have for the Galaxy S5 is a CM14.1 build:

    https://gitlab.com/kalilinux/nethunt...rnels.txt#L167

    If you'd like to tinker than you can clone that kernel's source from here:

    https://github.com/jcadduono/android...amsung_msm8974

    and merge the 16 version from upstream:

    https://github.com/LineageOS/android...amsung_msm8974

    Build it, test it and when you are happy with it you can raise a merge request so that we can include it in the NetHunter repo.

    As you suggested, I cloned jcadduono's kernel sources and merged the LineageOS 16 from upstream.

    I'm building right now for tests.

    Anyone interested can clone from https://github.com/leonardoherkenhof...amsung_msm8974
    Last edited by leonardoherkenhoff; 1 Week Ago at 07:26.

  4. #4
    Join Date
    2019-Nov
    Posts
    113
    Quote Originally Posted by leonardoherkenhoff View Post
    As you suggested, I cloned jcadduono's fernel sources and merged the LineageOS 16 from upstream.

    I'm building right now for tests.

    Anyone interested can clone from https://github.com/leonardoherkenhof...amsung_msm8974
    Hello, I cloned your kernel. After trying to no avail to get it to compile, I realized you are using kernel version 3.0! You need a 4.X kernel for NetHunter on Pie!

  5. #5
    Join Date
    2020-Jul
    Location
    Brasil
    Posts
    5
    Sorry... I was trying to compile when replied here. I couldn't build it, also. Will redo and post if it works.

  6. #6
    Join Date
    2020-Jul
    Location
    Brasil
    Posts
    5
    Quote Originally Posted by aaronouthier View Post
    Hello, I cloned your kernel. After trying to no avail to get it to compile, I realized you are using kernel version 3.0! You need a 4.X kernel for NetHunter on Pie!
    Ok. Now I could build it, after some changes in patches that have failed building due to undefined references and configuration in menuconfig.

    I got patches present in other LineageOS 16.0 compatible kernel on github (https://github.com/SmartPack/SmartPa...roject_kltexxx) and had to exclude Netfilter NFQUEUE over NFNETLINK interface in the menuconfig in order to execute the building. Even after checking the references at the code and trying with different netfilter patches I found in various klte kernels for Pie, it always ended with this errors:

    net/built-in.o: In function `nfqnl_recv_verdict':
    .text+0x3e018): undefined reference to `nfqnl_ct_parse'
    .text+0x3e148): undefined reference to `nfqnl_ct_seq_adjust'
    net/built-in.o: In function `nfqnl_enqueue_packet':
    .text+0x3e270): undefined reference to `nfqnl_ct_get'
    .text+0x3e658): undefined reference to `nfqnl_ct_put'
    So I decided to try excluding CONFIG_NETFILTER_NETLINK_QUEUE, and it finished. Don't know if it f&*$#d the kernel, since netfilter is used for iptables, but was the only way that worked.

    About the Kernel version, it is from the original kernels that I've cloned and merged, as suggested by re4son. I suppose it works with LineageOS 16.0, but don't know if the version shipped in LineageOS is enough for Kali Nethunter on Pie. I'm doing it to test on my klte that actually run nethunter on LineageOS 14(Pratically CM), so I'm about to try building nethunter installer and test it.

    Feel free to try and/or suggest better way to compile.

    Thanks!

  7. #7
    Join Date
    2020-Jul
    Location
    Brasil
    Posts
    5
    Forget about the last reply. Solved the Netfilter problema. Feel free to clone and test from https://github.com/leonardoherkenhof...amsung_msm8974

  8. #8
    Join Date
    2020-Jul
    Location
    Brasil
    Posts
    5
    Forget about that kernel source. Don't work. I'm still learning the whole thing and did it wrong. Will try to modify the LineageOS original kernel based on the instructions at the docs page.

    PS.: This is the third reply since my build adventures, but none of them were shown here yet. haha

Similar Threads

  1. Replies: 11
    Last Post: 2019-01-15, 14:47
  2. Tried port NetHunter kernel to Samsung Galaxy s7 Oreo ROM
    By wirusx in forum NetHunter General Questions
    Replies: 0
    Last Post: 2018-12-06, 21:38
  3. Replies: 12
    Last Post: 2017-03-05, 03:28
  4. How to make kernel for Samsung Galaxy S3
    By BamaBoy in forum NetHunter General Questions
    Replies: 6
    Last Post: 2015-07-18, 12:44
  5. Replies: 0
    Last Post: 2013-04-09, 22:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •