Page 1 of 3 123 LastLast
Results 1 to 50 of 101

Thread: 2020.2 nexmon

  1. #1
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102

    2020.2 nexmon

    hi @re4son
    what time the Nethunter's new version will be done ?
    i am waiting especially for angler arm64 nexmon libs, because this device like my device (sony xperia z5 compact ( arm64 and sd810 same)
    i patched my firmware from: https://github.com/seemoo-lab/nexmon...eg-ubuntu-1604

    my device supporting patch:
    https://github.com/seemoo-lab/nexmon...ported-devices

    bcm43455 7_45_59_16 Sony Xperia Z5 Compact LineageOS 14.1

    so just remaining, the libs..

    if i use arm64 angler libs, ( future 2020.2 version)
    it can be work in my device? i wonder very much..
    thanks.
    printk(KERN_INFO "C is good langgg.\n");
    ...

  2. #2
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Soon

    How about you create a NetHunter kernel and I promise to finish the new libs by the time you create a merge request?

  3. #3
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    i created already Nethunter kernel and built for my device and it working succesfull, you know
    but you said my LineageOS kernel not custom. So you wont accept my merge

    https://cdn-04.anonfile.com/l1zbt9rf...420-033440.png

    https://cdn-21.anonfile.com/bczbt7r1...7342934380.png

  4. #4
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102

  5. #5
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Yep, I said NetHunter kernel, not LineageOS kernel - We are not that cheap
    We look after our own first, that's keeping us busy enough ;-)

    Why don't you following this guide to create a NetHunter kernel? That's should get you going pretty quickly.

  6. #6
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    What you've done looks like a very time consuming and convoluted way of installing "Kali NetHunter Lite" :.-)

    If you don't want additional wifi device support, injection, HID attacks, etc., then just install "Kali NetHunter Lite" and copy your nexmon files across. That would take less than half an hour.

  7. #7
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    i dont have pc, and i go net cafes for pc sir. nowadays there is corona virus ...
    maybe you can create nexmon libs right ? because you have pc
    also after add 64 bit libs, injections can work right ? ( aireplay-ng -9 wlan0 ) it must say "injections works!"

  8. #8
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    How about I create that kernel and you help me testing?

  9. #9
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    oww sure sirr you give honor.
    here time is 03:55 so i must sleep.
    maybe after 10 hours later.
    i give you basic preferences:


    arch= arm64

    los 14.1 = https://github.com/LineageOS/android...l_sony_msm8994

    boot = /dev/block/mmcblk0p29

    kernel version = 3.10.84

    need wlan0 injections work and maybe hid not need for external wifi

  10. #10
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    i used gcc linaro aarch64-linux-gnu latest , this is stable for sony. others giving error.

  11. #11
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    kernel config = arch/arm64/configs/kitakami_suzuran_defconfig

  12. #12
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    sir you will create local.config.example.suzuran right ?

  13. #13
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Yep.

    This is my standard workflow:

    Code:
    - open "https://github.com/LineageOS/android_kernel_sony_msm8994" in web browser
    - Click "Fork"
    - Open terminal, cd to build directory, e.g. ~/android
    - git clone <remote repo> (e.g. https://github.com/Re4son/android_kernel_sony_msm8994)
    - cd android_kernel_oppo_msm8974
    - git checkout -b nethunter-7.1
    - git clone https://gitlab.com/kalilinux/nethunt...thunter-kernel
    - cd kali-nethunter-kernel
    - cp local.config.examples/local.config.example.bacon ./local.config
    - vi local.config #If you'de like to customize paths
    - ./build.sh
    - "S"
    - "1"
    - Choose the device specific defconfig as default config
    - Edit kernel config - Only remove "local version", untick "... append version ...", & change hostname to kali
    - "2"; build and rebuild with option #3 adding more and more nethunter config items.
    - Add one patch after another, build every time with "3" and git commit after every successful build.
    - If all configurations and patches applied successfully, do a clean via "0" and a full NetHunter build via "N"
    - Git commit of the nethunter_config and kali-nethunter-kernel/local.config, & push everything to the remote repository
    Last edited by re4son; 2020-04-20 at 03:28.

  14. #14
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    thanks sir respect.

    do you need another info about my device ? (suzuran)
    if not i will sleep.
    see you after 10 hours sir.

  15. #15
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son you forked my device's kernel source, thanks https://github.com/Re4son/android_kernel_sony_msm8994

    so what about building process ?

  16. #16
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Quote Originally Posted by rootboy01 View Post
    @re4son you forked my device's kernel source, thanks https://github.com/Re4son/android_kernel_sony_msm8994

    so what about building process ?
    Haven't started yet. I'm in the middle of rebuilding my development environment and that'll take another day or two.

  17. #17
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    just boot kali iso sirr
    thanks, congrats. i am waiting.
    wanna ask any questions about suzuran ?

  18. #18
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son sir what about the last situation https://github.com/Re4son/android_kernel_sony_msm8994

  19. #19
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    I'm gonna be out of action for a while while I refresh my environment. It's taking longer than expected - maybe a week or two.
    Last edited by re4son; 2020-04-24 at 03:26.

  20. #20
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    ok sir. good luck, keep it up..

  21. #21
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son thanks for quick edit sir, you rock https://github.com/Re4son/android_ke...r-14.1?files=1
    so what you will change in kernel ? can i learn ? regards..

  22. #22
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son i can see nethunter defconfig. is there another changes ?

  23. #23
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    Also i see you add oreo toolchain but los 14.1 is nougat.
    https://gitlab.com/kalilinux/nethunt...xample.suzuran

  24. #24
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    A few patches.
    I followed the kernel build section in the NetHunter documentation, starting with this page

    https://www.kali.org/docs/nethunter/...el-1-patching/

    and working my way through the next six pages.

  25. #25
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Quote Originally Posted by rootboy01 View Post
    Also i see you add oreo toolchain but los 14.1 is nougat.
    https://gitlab.com/kalilinux/nethunt...xample.suzuran
    It's not really an oreo toolchain. It's an Android toolchain that was released with Oreo to build Oreo and below.

  26. #26
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    oww ok sir i understand you are geniuss
    can i ask which patches are you added and how you patching ?
    i prefer specially nexmon and hid patches you know
    I am grateful for adding my device..

  27. #27
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    I used the kernel-builder for patching, following the exact steps as listed in the documentation.
    The name of the patches I applied are in the commit messages.

    I did not apply any Nexmon patches. Nexmon is not part of the kernel and there are no patches to apply. I will, however, add some helper files to the kernel installation zip later.

  28. #28
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    you mean helper files are 'kalililibnexmon' libs right ?

  29. #29
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    libs, nexutil, and scripts

  30. #30
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    thanks sir
    i will ask good question now
    how can i reduce kernel wakelocks by editing: https://github.com/Re4son/android_ke...nter_defconfig
    kernel wakelocks like: timerfd, PowerManagerService.WakeLock, WifiConnnectivityManagerSchedulePeriodicScan etc..
    for powersave..

  31. #31
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son sir also fix false things: https://github.com/Re4son/android_ke...37bb819f714ad3

    edit: ok sir i see cleanup . thanks..

  32. #32
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Quote Originally Posted by rootboy01 View Post
    thanks sir
    i will ask good question now
    how can i reduce kernel wakelocks by editing: https://github.com/Re4son/android_ke...nter_defconfig
    kernel wakelocks like: timerfd, PowerManagerService.WakeLock, WifiConnnectivityManagerSchedulePeriodicScan etc..
    for powersave..
    You really don't want to reduce wakelocks by editing the kernel config. Wakelocks are requested by apps and disabling wifi in the kernel to avoid wifi managers requesting a wakelock is not really a suitable approach.

    I'd recommend reading these guides to get you started with optimize your battery life:
    https://forum.xda-developers.com/sho....php?t=1827676
    https://forum.xda-developers.com/sho....php?t=1759541

    Having said that, the kernel config you've sent me is optimized for performance and not for battery life. If you are after battery life than I better don't use that.

  33. #33
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son no problem sir, keep it up
    i use LKT and Amplify thanks sir.
    what time can you submit suzuran with libs into kali-nethunter-devices ?
    regards..

  34. #34
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Quote Originally Posted by rootboy01 View Post
    @re4son no problem sir, keep it up
    i use LKT and Amplify thanks sir.
    what time can you submit suzuran with libs into kali-nethunter-devices ?
    regards..
    hopefully tomorrow

  35. #35
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Done:

    https://gitlab.com/kalilinux/nethunt...nougat/suzuran

    Would you mind testing it, please?

    And could you also send me a copy of the original fw_bcmdhd.bin and copy of the nexmon patched fw_bcmdhd.bin, please?

    Many thanks

  36. #36
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    i thank you sir, i am testing now: https://cdn-16.anonfile.com/V1TbBdvc...503-171705.png

    oww sorry, i removed original fw_bcmdhd you can get it in kernel source? i can upload patched firmware:
    https://anonfile.com/J9X9B6veo5/fw_bcmdhd_bin

  37. #37
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    if all is finish, i will notice you sir

  38. #38
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    sir 2020.2 nethunter-project build py file giving error: https://cdn-06.anonfile.com/zfh0Cavf...503-172732.png
    i trying master now.

  39. #39
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    sorry its my fault

  40. #40
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    sir you need to edit devices.cfg suzuran add arch = arm64 because build downloads is downloading armhf

  41. #41
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    and sir you need to edit boot = /dev/block/mmcblk0p29

  42. #42
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    @re4son sir it giving bootloop.
    your compiled Image.gz-dtb has issues. i removed from suzuran directory and pushed my precompiled image: https://gitlab.com/kalilinux/nethunt...e_requests/229 and it worked.

  43. #43
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    :cry: it giving /usr/bin/sudo not found error
    i think there is an issue in arm64 minimal tar.xz

  44. #44
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    Quote Originally Posted by rootboy01 View Post
    i used gcc linaro aarch64-linux-gnu latest , this is stable for sony. others giving error.
    sirrr you need to use linaro gcc..

  45. #45
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    What do you mean by latest? latest 4.9 release?

  46. #46
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102

  47. #47
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    cat /proc/version:
    Linux version 3.10.84nethunter-suzuran-1.1-g0c7176b039b (root@kali) (gcc version 5.5.0 (Linaro GCC 5.5-2017.10) ) #1 SMP PREEMPT Mon Mar 30 21:52:56 UTC 2020

  48. #48
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    Quote Originally Posted by rootboy01 View Post
    cat /proc/version:
    Linux version 3.10.84nethunter-suzuran-1.1-g0c7176b039b (root@kali) (gcc version 5.5.0 (Linaro GCC 5.5-2017.10) ) #1 SMP PREEMPT Mon Mar 30 21:52:56 UTC 2020
    This ^^^^^^^^^^^^^^^^^^ is not a product of that toolchain:
    https://releases.linaro.org/componen...h64-linux-gnu/

    Please provide me with a link to the toolchain you would like me to use

  49. #49
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    433
    I've built kernel ver 1.2 with the linaro toolchain version 5.5 from October 2017.
    Please give that a try and let me know how you go.
    Thanks

  50. #50
    Join Date
    2020-Mar
    Location
    Turkey, İstanbul
    Posts
    102
    oww sir, again bootloop.
    i used example_scripts for kernel build.
    can you try with these scripts ?
    https://gitlab.com/kalilinux/nethunt...xample_scripts

Similar Threads

  1. Need Guide For NexMon Patch
    By rootboy01 in forum NetHunter General Questions
    Replies: 0
    Last Post: 2020-04-17, 20:45
  2. NexMon WRONG ELFCLASS32 !
    By rootboy01 in forum NetHunter Suggestions
    Replies: 0
    Last Post: 2020-04-16, 23:36
  3. adding nexmon to nethunter
    By rootboy01 in forum NetHunter General Questions
    Replies: 0
    Last Post: 2020-03-29, 22:14
  4. Error building rpi3-nexmon.sh
    By ajlennon in forum ARM Archive
    Replies: 1
    Last Post: 2019-01-17, 18:17
  5. Replies: 5
    Last Post: 2017-10-08, 15:53

Posting Permissions

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