help! build nethunter kernel for lgv30

KimJungWha

Member
May 13, 2020
12
2
13
I try to compile nethunter kernel for lgv30, the goal is to enable wireless and hid functions. Now the wireless function has been successfully completed, but the hid function has encountered a problem
Patches_hid_hid_gadget-4.4.patch found from [kali-nethunter-kernel](https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-devices/-/tree/master/patches/hid) merged with Two errors, from [Forums](https://forums.kali.org/showthread.php?48320-HID-on-4-X-kernel), I learned that there is no need to modify the kernel, but [enable usb function ](https://www.kali.org/docs/nethunter/nethunter-kernel-6-config-5/), and use [nethunter-installer](https://gitlab.com/kalilinux/nethunter/build- scripts/kali-nethunter-project/-/tree/master/nethunter-installer) compile the kernel, I followed the tutorial to complete this step, and then use twrp to flash into the phone
Now you can set hid mode, but it cannot be used, as shown
Screenshot_20210118-181300.jpg
Screenshot_20210118-181400.jpg
捕获.PNG

My compilation environment is ubuntu20.04, [kernel source code](https://github.com/SGCMarkus/android_device_lge_h930) is los17.1 linux4.4.153
The compilation tool is google gcc4.9
Compile command:
Code:
    ./make_defconfig.sh nethunter_joan_defconfig

    export ARCH=arm64 &&\
    export SUBARCH=arm64 &&\
    export PATH=/opt/gccarm64/bin/:$PATH &&\
    export CROSS_COMPILE=aarch64-linux-android- &&\
    make -j$(nproc --all) O=out nethunter_joan_defconfig

    make -j$(nproc --all) O=out ARCH=arm64 \
        SUBARCH=arm64 CROSS_COMPILE=aarch64-linux-android- \
        CONFIG_DEBUG_SECTION_MISMATCH=y

        make mrproper && make clean && rm -rf out
 

Attachments