Results 1 to 9 of 9

Thread: How to get Nethunter Kernel Builder?

  1. #1
    Join Date
    2017-Apr
    Posts
    2

    Question How to get Nethunter Kernel Builder?

    I've been trying to develop a nethunter kernel for my mobile phone according to the guides given in the Kali Documentation.In patching the kernel section, the documentation guides using Nethunter Kernel Builder but there is no instructions on how to get the kernel builder,Can anyone tell me how to get the nethunter kernel builder?

  2. #2
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    444
    Sorry for that. I'm working on that part of the documentation at this very moment :-)

    cd into your kernel source directory and execute:

    Code:
    git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel
    cd kali-nethunter-kernel
    ./build.sh
    the "config" file has the default configuration. Look but don't touch ;-) To change any of those settings, create a file called "local.config" and overwrite any of those parameters.
    Best to pick one of those "local.config.example" files that comes the closest to your requirements and copy that across to "local.config".

    Just give it a crack and come back here if you have any questions.

  3. #3
    Join Date
    2017-Apr
    Posts
    2
    bro
    But my kernel version is not available in nethunter kernel patches .My kernel version is 4.9. So how do i patch the patches?
    If manually,Then How?
    Thanks fro replying

  4. #4
    Join Date
    2019-Nov
    Posts
    113
    Hello @Re4son,
    I'm having trouble with build.sh . Most of the menu selections result in an error:
    Code:
    /build.sh: line 369: cd: ~/android_kernel_oppo_msm8974/arch/arm64/configs: No such file or directory
    This is then followed by 88 options.

    I have checked for that path, and sure enough, there is no arm64 folder inside arch.

    I am trying to compile for a OnePlus 1 under LineageOS 16.0.

    Any clues as to shat to do?

  5. #5
    Join Date
    2019-Nov
    Posts
    113
    Disreagrd, I figured it out. Archetecture is set by the $ARCH variable in local.config . I didn't have that defined, so it used the default from the main config file.

    It is fixed now.

  6. #6
    Join Date
    2020-May
    Posts
    2
    im trying to build for sdm 660 device but i get

    make[1]: Entering directory '/home/ubuntu/Downloads/kali-nethunter-kernel/out'
    arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
    arch/arm64/Makefile:77: *** /root/android/toolchains/armhf-4.9/bin/arm-linux-androideabi-gcc not found, check CROSS_COMPILE_ARM32. Stop.
    make[1]: Leaving directory '/home/ubuntu/Downloads/kali-nethunter-kernel/out'
    make: *** [Makefile:152: sub-make] Error 2
    make: Leaving directory '/home/ubuntu/Downloads/kali-nethunter-kernel/android_kernel_samsung_sdm670-10.0-luis-los'

    real 0m0.034s
    user 0m0.028s
    sys 0m0.003s
    make: Entering directory '/home/ubuntu/Downloads/kali-nethunter-kernel/android_kernel_samsung_sdm670-10.0-luis-los'
    make[1]: Entering directory '/home/ubuntu/Downloads/kali-nethunter-kernel/out'
    arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
    arch/arm64/Makefile:77: *** /root/android/toolchains/armhf-4.9/bin/arm-linux-androideabi-gcc not found, check CROSS_COMPILE_ARM32. Stop.
    make[1]: Leaving directory '/home/ubuntu/Downloads/kali-nethunter-kernel/out'
    make: *** [Makefile:152: sub-make] Error 2
    make: Leaving directory '/home/ubuntu/Downloads/kali-nethunter-kernel/android_kernel_samsung_sdm670-10.0-luis-los'

    real 0m0.042s
    user 0m0.028s
    sys 0m0.008s
    [ SUCCESS ] Kernel build completed
    [ QUESTION ] Save .config as nethunter_defconfig? [y/n]

  7. #7
    what should we do after building our kernel?

  8. #8
    Join Date
    2020-Jul
    Posts
    10
    hello, i too have visited the page https://www.kali.org/news/kali-nethunter-updates/ , to find the "linux kernel builder' but there were no links . Also this section "On the topic of documentation; the documentation for the kernel builder is yet to be completed but we plan to finish that within 7 days of this blog post going up."

    Shouldn't it be up by now? i would really like to try to learn and build linux kernel for nethunter. Please help.. thanks.

  9. #9
    Join Date
    2019-Nov
    Posts
    113

Similar Threads

  1. A5 2016 kernel nethunter
    By TrixTM in forum Installing NetHunter
    Replies: 1
    Last Post: 2020-04-13, 11:20

Tags for this Thread

Posting Permissions

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