@evdenis I've a problem with an app which need access to camera for qr scanning. I've nailed it down to changes that was made in your kernel between version 3.6 to 3.7. This app is working on your kernel up to 3.6, stock kernel, lineage based kernel, all of them with or without magisk. On 3.7 and 3.8 the app don't get access to camera and the phone freezes and reboots.
If you would like to look at it I would gladly provide you with logs. In that case which log do you need for investigate the problem?
The app is bankid, it's for verification during different economic transaction here in Sweden.Hi,
I think this is because of gcc10.2 compiler that I started to use since 3.7 version. Could you try one of default/samsung/proton kernel versions https://cruelkernel.org/release/V3.9-rc1/alt/? They are built with clang. What is the app, btw?
# With adb
$ adb shell su -c "cat /proc/last_kmsg" > kernel.log
# or with termux
$ su
$ cat /proc/last_kmsg > /sdcard/kernel.log
What is this? Camera error? Kernel logs can help. After reboot caused by camera error you need to
Code:# With adb $ adb shell su -c "cat /proc/last_kmsg" > kernel.log # or with termux $ su $ cat /proc/last_kmsg > /sdcard/kernel.log
And send kernel.log file to me.
This is completely unexpected. What TWRP version do you use?
As I mentioned previously, the camera error seems to be because of gcc10.2 compiler (arter97, cruel toolchains).
I've just tested it. All installers work, no error 1.
Did you install multidisabler, flash empty vbmeta?
Hello, after i flash the img of cruel 3.6 it's all good. but when i restart my phone it goes back to stock kernel. how do i fix this?
+cifs
using the (fantastic) Github action.samba
shares using busybox mount
, nor is CIFS included in the kernel configuration:# cat /proc/version
Linux version 4.14.113-Cruel-V3.9+ ([email protected]) [...]
# zcat /proc/config.gz | grep -i CIFS # returns nothing
Value requested for CONFIG_CIFS not in final .config
Requested value: CONFIG_CIFS=y
Actual value:
Edit: I can see in the github logs that the +cifs configuration values appear to be overwritten, or are otherwise lost:
Code:Value requested for CONFIG_CIFS not in final .config Requested value: CONFIG_CIFS=y Actual value:
Thanks for getting back. The issue was thatHi, could you post the github link? This will help me to debug the problem. Thanks!
CONFIG_NETWORK_FILESYSTEMS=y
needs to be set in cruel+cifs.conf
. Let me know if you need anything else.$ ./cruelbuild pack model=<MODEL> name=CRUEL-V3.9 +magisk +nohardening +force_dex_wqhd +ttl +cifs +ntfs +sdfat +nodebug +noaudit +noksm +nomodules +wireguard +usb_serial +sched_powersave +sched_performance +morosound +boeffla_wl_blocker +fake_config +dtb
- name: Kernel Configure
run: |
./build config
model=G973F
name="CRUEL-V3.3"
+magisk
+nohardening
+ttl
+wireguard
+cifs
+sdfat
+ntfs
+tcp_cibuc
+morosound
+boeffla_wl_blocker
- name: Kernel Configure
run: |
./build config
os_patch_level=2020-12
model=G975F
name="OwnKernel"
+magisk+canary
+wireguard
+nohardening
+1000hz
# Install prerequisites
# If you use ubuntu or ubuntu based distro then you need to install these tools:
$ sudo apt-get install build-essential libncurses-dev libtinfo5 bc bison flex libssl-dev libelf-dev
# If you use Fedora:
$ sudo dnf group install "Development Tools"
$ sudo dnf install ncurses-devel ncurses-compat-libs bc bison flex elfutils-libelf-devel openssl-devel
# Install mkbootimg
$ wget https://github.com/osm0sis/mkbootimg/archive/master.zip
$ unzip master.zip
$ cd mkbootimg-master
$ sed -i -e 's/-Werror//g' Makefile
$ make
$ sudo mv mkbootimg /usr/local/bin/mkbootimg
# Get the sources
$ git clone https://github.com/CruelKernel/samsung-exynos9820
$ cd samsung-exynos9820
# List available branches
$ git branch -a | grep remotes | grep cruel | cut -d '/' -f 3
# Switch to the branch you need
$ git checkout cruel-v3
# Install compilers
$ git submodule update --init --recursive
# Compile
$ ./build mkimg name=CustomCruel model=G973F +magisk+canary +wireguard +ttl +cifs +nohardening
# You will find your kernel in boot.img file after compilation.
$ ls -lah ./boot.img
# You can automatically flash the kernel with heimdall
# if you connect your phone to the PC and execute:
$ ./build :flash
# Or in a single command (compilation with flashing)
# ./build flash name=CustomCruel model=G973F +magisk+canary +wireguard +ttl +cifs +nohardening
Thanks Dev! Does this kernel work also with LineageOS and AOSP roms?