[KERNEL][2020-12-01] CRUEL KERNEL S10/Note10 V3.9

funiewski

Senior Member
Dec 18, 2010
1,226
465
103
Stockholm
kernel problem with camera access

@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?
 

evdenis

Senior Member
Jan 30, 2020
61
92
18
Hi,
@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?
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?
 

funiewski

Senior Member
Dec 18, 2010
1,226
465
103
Stockholm
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?
The app is bankid, it's for verification during different economic transaction here in Sweden.
Which of them should I test, this CruelKernel-v3.9-rc1-proton.zip?
I've tried flash rc1.zip from github but got error 1 as far as I remember , can't harm to try another one;)

error 1 with all of them
 
Last edited:

evdenis

Senior Member
Jan 30, 2020
61
92
18
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.
 

funiewski

Senior Member
Dec 18, 2010
1,226
465
103
Stockholm
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.
error 1 was in twrp when i tried to flash .zip file
After unpacking kernels - rc1 and arter - phone freezes when I try to access camera from app, proton, default and samsung img - app can access camera
kernel log later today, working and flashing at same time is a little bit troublesome
 
Last edited:

evdenis

Senior Member
Jan 30, 2020
61
92
18
I have this problem too....
help....pls...
There are two possible reasons for this. Either you use combo button during boot. You don't need to hold buttons during boot with this kernel. Either your rom (for example, BeyondRom) forces reboot with kernel from recovery partition. This can be changed in ROM if during installation you choose in aroma non-patched services to install.
 

otto-dev

New member
Dec 5, 2020
3
0
1
For some reason I don't have CIFS support with this kernel on my Galaxy S10 5G (G977B). I tried both the pre-built kernel, and I compiled it myself with +cifs using the (fantastic) Github action.

The kernel is loaded, but I can't mount samba shares using busybox mount, nor is CIFS included in the kernel configuration:

Code:
# cat /proc/version
Linux version 4.14.113-Cruel-V3.9+ ([email protected]) [...]
# zcat /proc/config.gz | grep -i CIFS  # returns nothing
Could somebody help me how I can modify the build for G977B to include CIFS, or enable CIFS some other way? Thanks!

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:
 
Last edited:

evdenis

Senior Member
Jan 30, 2020
61
92
18
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:
Hi, could you post the github link? This will help me to debug the problem. Thanks!
 

evdenis

Senior Member
Jan 30, 2020
61
92
18
Ah, I disabled CONFIG_NETWORK_FILESYSTEMS not so long ago in ./kernel/configs/cruel.conf and forgot to check that cifs may depend on it. PRs are welcome. Yes, please add it in cruel+cifs.conf Thanks!