Hey everyone,
I have been playing around with building custom kernels for both the G9880 and G988B S20 Ultras using Samsung's opensource code.
I've successfully built and flashed a custom kernel for both devices with a few tweaks however there seems to be some issues regarding Loadable Kernel Modules (LKMs).
On the initial try they wouldn't load due to an "Exec format error" and looking through the kernel logs with dmesg I found that Samsung's "micro hypervisor" (UH) related to KNOX was blocking them citing "Security Policy" . I promptly disabled CONFIG_UH_LKM_BLOCK in the kernel's defconfig file and rebuilt.
Now when I load any module (all from linux kernel tree) it causes a kernel panic at which point the phone restarts (due to watchdog). After retrieving the last kernel log from /proc/last_kmsg I see the following at line 16976 of the attached log file:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It seems that insmod is reading an incorrect memory address causing the kernel panic during init_module as shown by the program counter (pc). This is the same for all modules, however the "unreadable memory address" will change from module to module and even build to build.
I have tested on multiple devices, kernel versions and android versions and the exact same issue occurs. I also can't find any info regarding the Kernel Oops code: 8600000f.
I have also checked and the memory address does not appear in the kernel's System.map file or /proc/kallsyms which suggests its a memory mapping issue?
Does anyone have ideas on where to look or methods of figuring this out? It feels like it's something to do with memory mapping during kernel compilation which causes the insmod to have a false understanding of where things are?
Any assistance would be greatly appreciated!
- Caelan
Related
First of, jump down to the red dotted line for what i need help with, the text above just explains root method, phone and programs i have installed.
Thanks for taking the time.
I have been searching and reading up on every problem I've had so far in the install, i have come to a dead end and i need to get pushed a step further, i need help.
I am installing BT5 ARM on my Note 2 N7100.
Whatever the reason, i grew up with BT and i have my reasons why i want it on my phone (if i wanted to crack someone i would have just used my BT on USB, i have a lot of different things like this mostly for nostalgia)
I have a Note 2 N7100 with android 4.1.2
I rooted my phone using METHOD 2 in this thread (Odin307)
http://forum.xda-developers.com/showthread.php?t=2143479
I have SuperSU BusyBox and AndroidVNC
All installed and working as they should.
----------------------------------------------
Backtrack version downloaded:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now it gets wierd.
On Terminal Emulator i grant SU and go into the BT5 folder and boot the "bootbt" file.
"ioctl LOOP_SET_FD failed: Device or resource busy"
I am not a linux expert, I am what you will call an experienced n00b :good:
I was up LATE last night and i figured out something i cant remember now.
It was something about if my device had "loop 1-2-3-4 etc" enabled?
AND that i might need an modified "bootbt" file ?
I am so stuck and I have been staring in the eyes of this problem for so long i have gone blind.
Help me see.
Thank you.
I have the same problem on my samsung s5
good to know
you need custom kernel, as stock doesn't support it
Stock ROM. Two bugs.
In legacy SMS app, I have set a message. Any time I exit a conversation with back button, app says it saved a draft. Need to exit by doing menu-discard. I had this bug also in the stock rom for my previous phone, HTC Sensation, 3 or 4 years ago (android 2) (fixed after changing rom). I am surprised this bug comes back after so long. Is there a fix ? When loading the draft again, it adds the signature a second time, then a third ...
Many apps and widgets show voltage of battery to be 3 or 4 mV. Few app give the correct value. After digging, the value in /sys is good (forgot the full path file name). An advanced app shows the correct value internally, and gives a button to access the android internal hidden menu of battery, and in there, the value is wrong. So, it looks like it's an android bug, and all apps which get it wrong are those asking kindly the value to Android (instead of going directly in /sys). Is there a fix ?
Ah, found the file:
Code:
cat /sys/devices/platform/htc_battery/power_supply/battery/batt_vol_now
4193
The following shots are from Android Tuner Free: https://play.google.com/store/apps/details?id=ccc71.at.free
3rd image says: you are going to reach a feature hidden by the manufacturer ... that could damage your phone. Use it at your own risks. => to me it's going to an internal android menu. A stock one.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello! I'm new here and am not good at English, so I'm using the google translator. I apologize for any errors in writing or respect the rules.
I'm from Brazil and have a cel LG G Prime D337 Lollipop 5.0.2.
I really need to run the XInternalSD module or any other solution to use SD or reverse the internal memory x external memory, because my phone has a small internal memory that just fast (sold as 8GB, but with less than 3GB available for use) ...
My phone is to root, but when I install Xposed gives the following message (in red in the picture):
---
"The Xposed is not compatible (yet) with the Android SDK version 21 or architecture of your processor (armeabi-v7a)."
CAN NOT LINK EXECUTABLE: could not load library "libdvm.so" needed by "/data/data/de.robv.android.xposed.installer/cache/app_process"; Caused by library "libdvm.so" not found. "
---
Has a solution someone can help me? Something that can be done in cel or any trial version that can solve? :crying::crying::crying::crying:
Best regards
Use the sdk21 arm file from here
http://forum.xda-developers.com/showthread.php?t=3034811?goto=newpost
I looked at the topic and unfortunately the things that seem too complicated for me ... it's all very new to me and I'm beginner ... tried to let me know and I've read about making custom recovery and I could not understand what it is and how is done safely to avoid losing the phone off ... which are many files to download and I get confused ... = [
It would be nice to someone who had already done it on a cell of the same model of my LG G Prime D337
Is there a way to emulate it on your computer and do tests to figure out how to do so without spoiling the cel?
Thanks for listening!
Best regards!
I am having this problem too and havent found a way to fix it.
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
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
Did anything ever come of this? Ive been trying to find a v30 nethunter version for awhile now....
I've got Nethunter installed and monitor mode working with onboard wlan0. It is impossible to catch a handshake though. There's nowhere online that I can find a working Nethunter kernel for the V30. This page is basically dead but I don't know where else to go for help.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
C:
#include <android/disclaimer.h>
/*
Your warranty is now VOID
I am not responsible for any damage you made to your device
You have been warned
*/
This is a custom kernel for the Galaxy A51 4G, shipped with Exynos9611, only for OneUI5 firmware bootloader version U5 (U6 is not tested, if you can test, please let me know)
The name "Grass" came from a character of Genshin Impact to fill the background.
Features
Disable Samsung securities, debug drivers, etc modifications.
Checkout and rebase against Android common kernel source, Removing Samsung additions to drivers like ext4,f2fs and more.
Compiled with bleeding edge Neutron Clang 17, with full LLVM binutils, LTO (Link time optimization) and -O3.
Import Erofs, Incremental FS, BinderFS and several backports.
Supports DeX touchpad for corresponding OneUI ports that have DeX ported.
Lot of debug codes/configuration Samsung added are removed.
Upstreamed to 4.14.150 (for now, will be more)
Added wireguard driver, an open-source VPN driver in-kernel
More to come...
How to flash
- The kernel is provided with AnyKernel3 zip, which can be just flashed on recovery, it will replace the kernel Image only to this kernel.
Versioning
- OneUI means for OneUI5, or ports of it. And GSI using stock vendor falls under here too.
- AOSP means for ROMs with OSS vendor made by me. Like here
- Download the release with the latest date.
Download
Sources
If you want to support my work
This will link to a friend's PayPal who always helps me.
Donate
Reserved
bootloop with ur recovery with flashed magisk 25.2 and dm verity