[LG Velvet Questions & Answers] droptable1453:
Hi,

I own a velvet 5g and i want to be able to install drivers.

I unlocked the phone according to: https://developer.lge.com/resource/mobile/RetrieveBootloader.dev

and rooted it according to: https://xdaforums.com/lg-velvet/how-to/root-lg-velvet-lm-g900em-t4171117

I also installed kali nethunter via the apk.

when i try to insert the module i get this:

# insmod 8188eu.ko
insmod: ERROR: could not insert module 8188eu.ko: Required key not available

Which makes sense, given that my kernelconfig has CONFIG_MODULE_SIG_FORCE=y.

Now i have to recompile the kernel with a modified config, so i can load modules at runtime.

I got the sourcecode here:

http://opensource.lge.com/osSch/list?types=ALL&search=LMG9 . I chose LMG900EM, i assume LMG900EMW is for another region?

And followed the steps in the README:

export CROSS_COMPILE=$(pwd)/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export ARCH=arm64
export SUBARCH=arm64
export DTC_EXT=$(pwd)/prebuilts/misc/linux-x86/dtc/dtc
export CLANG_TRIPLE=aarch64-linux-gnu-

source build/envsetup.sh
lunch 1
make -j4 #1)

tar -xvzf *_Kernel_Q.tar.gz
cd kernel/msm-4.19
mkdir -p out
make ARCH=arm64 O=./out REAL_CC=../../../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=../../../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- DTC_EXT=../../../prebuilts/misc/linux-x86/dtc/dtc vendor/caymanlm-perf_defconfig
make ARCH=arm64 O=./out REAL_CC=../../../prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=../../../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- DTC_EXT=../../../prebuilts/misc/linux-x86/dtc/dtc -j4

What strikes me as odd here is that is get this message at step 1):

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-124-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1D.200205.002
OUT_DIR=out
============================================

Why is HOST_CROSS_OS set to windows? did i miss this value when setting my environment variables?

After i run it all I end up with an Image file in ./out/arch/arm64/boot and a dts folder.

I also tried this with the kali-nethunter-kernel from:

and then I end up with an Image an Image-dtb and a 20 byte Image-dtb-hdr file.

I tried booting from all of those Image files after repacking.

fastboot boot boot.img

But it is always stuck at boot until i restart.

I think this is because my extracted boot.img has a zImage file and my compile process is generating an Image file. Or because i dont use the dtb file correctly.

I havent tried flashing it yet, because i would assume the same result, except i just have to reflash it.

Did i go wrong anywhere or how can i fix this?

Thanks in advance for your advice.