My question is how to synchronize the kernel threads execution in cleanup routine?

|
PiotrBurdzinski 2022-07-28 22:52:16
no idea why it doesnt generate
Abdul7852 2022-07-28 22:55:04
apt-get install linux-headers-generic
Abdul7852 2022-07-28 22:55:06
Try
PiotrBurdzinski 2022-07-28 22:55:45
nope
Abdul7852 2022-07-28 22:57:41
Check the .conf file ig or copy pasta older autoconf
ItsProf 2022-07-29 06:33:44
Kernel Source:= https://github.com/Project-Gabut/kernel_xiaomi_mt6768

Hastebin ONLY URL:= https://www.toptal.com/developers/hastebin/ojuyihacuf.go

Someone, pls help 😉

Tashar02 2022-07-29 09:18:22
ItsProf 2022-07-29 06:33:44
Kernel Source:= https://github.com/Project-Gabut/kernel_xiaomi_mt6768

Hastebin ONLY URL:= https://www.toptal.com/developers/hastebin/ojuyihacuf.go

Someone, pls help 😉

pick this

crypto: arm64/aes-modes – get rid of literal load of addend vector · Atom-X-Devs/android_kernel_xiaomi_scarlet@fe4d386GitHub
commit ed6ed11830a9ded520db31a6e2b69b6b0a1eb0e2 upstream.

Replace the literal load of the addend vector with a sequence that
performs each add individually. This sequence is only 2 instructions
lo…

ItsProf 2022-07-29 09:19:09
Tashar02 2022-07-29 09:18:22
pick this

Thanks👍

Tashar02 2022-07-29 09:19:21
ItsProf 2022-07-29 09:19:09
Thanks👍

no probs

veshrao 2022-07-29 09:19:36
Tashar02 2022-07-29 09:19:21
no probs

thanks bro

Inferno964 2022-07-29 11:48:57
veshrao 2022-07-29 09:19:36
thanks bro

Np bro

cyberknight777 2022-07-29 16:08:21
NUMAflex 2022-07-28 20:21:43
just trying to figure out if i missing something by looking yours/someone else’s work, not following any guide, just going with what i got

what device you working on

NUMAflex 2022-07-29 16:09:33
cyberknight777 2022-07-29 16:08:21
what device you working on

morning sir! its odin sdm845

cyberknight777 2022-07-29 16:09:54
ah i see
Aflaungos 2022-07-29 17:23:45
Can someone help me?
Aflaungos 2022-07-29 17:24:04
My kernel is not using little cores, only big cores for some reason
Aflaungos 2022-07-29 17:25:10
Being 8 cores, with 4 big and 4 little, usage on little cores stays 0 and reaches only 2 3%
Abdul7852 2022-07-30 06:50:27
Uh guys
fatal error: ‘generated/autoconf.h’ file not found

Same error here
Can anyone help?

Abdul7852 2022-07-30 06:50:36
Abdul7852 2022-07-30 06:50:27
Uh guys
fatal error: ‘generated/autoconf.h’ file not found

Same error here
Can anyone help?

This was asked few days back

B-A-B-Y 2022-07-30 08:54:48
/get upstream
Igi Pop 2022-07-30 16:15:13
/get tc-build
Igi Pop 2022-07-30 16:28:23
Hi, can any1 point me trough the process of compiling kernel for this rom?
https://forum.xda-developers.com/t/17-07-2022-12-1-evolutionx-v6-6-xiaomi-redmi-note-8-pro-unofficial-aosp.4433947/
Im trying to add 8188eus driver to kernel, link to driver:
https://github.com/kimocoder/realtek_rtwifi#howto-implement-this-driver-into-android-kernel-nethunter

What i have already tried:

get boot.img
unpacked it
compiled kernel from below this link with new 8188eus drivers
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/begonia-r-oss
repacked boot.img with new kernel
flashed it to boot partition
phone turns on > phone wifi isnt working > external wifi adapter isnt working

I also tried to compile kernel from above link without any modifications(adding drivers ) and phone wifi still doesn’t work

me2151 2022-07-30 18:21:40
/warn do not pm users or admins without permission
me2151 2022-07-30 18:25:09
Igi Pop 2022-07-30 16:28:23
Hi, can any1 point me trough the process of compiling kernel for this rom?
https://forum.xda-developers.com/t/17-07-2022-12-1-evolutionx-v6-6-xiaomi-redmi-note-8-pro-unofficial-aosp.4433947/
Im trying to add 8188eus driver to kernel, link to driver:
https://github.com/kimocoder/realtek_rtwifi#howto-implement-this-driver-into-android-kernel-nethunter

What i have already tried:

get boot.img
unpacked it
compiled kernel from below this link with new 8188eus drivers
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/begonia-r-oss
repacked boot.img with new kernel
flashed it to boot partition
phone turns on > phone wifi isnt working > external wifi adapter isnt working

I also tried to compile kernel from above link without any modifications(adding drivers ) and phone wifi still doesn’t work

/warn do not pm users or admins without permission

Igi Pop 2022-07-31 01:13:52
/get compilation
Igi Pop 2022-07-31 01:20:28
/get help
sakul996 2022-07-31 03:26:47
Igi Pop 2022-07-30 16:28:23
Hi, can any1 point me trough the process of compiling kernel for this rom?
https://forum.xda-developers.com/t/17-07-2022-12-1-evolutionx-v6-6-xiaomi-redmi-note-8-pro-unofficial-aosp.4433947/
Im trying to add 8188eus driver to kernel, link to driver:
https://github.com/kimocoder/realtek_rtwifi#howto-implement-this-driver-into-android-kernel-nethunter

What i have already tried:

get boot.img
unpacked it
compiled kernel from below this link with new 8188eus drivers
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/begonia-r-oss
repacked boot.img with new kernel
flashed it to boot partition
phone turns on > phone wifi isnt working > external wifi adapter isnt working

I also tried to compile kernel from above link without any modifications(adding drivers ) and phone wifi still doesn’t work

maybe this kernel have incomplete/broken sources/drivers

sakul996 2022-07-31 03:27:19
You alternative is use a another custom kernel, and try again
ZeNiXxXx 2022-07-31 11:52:42
Hey all who can help me here ? Somehow drm is crashing… https://www.toptal.com/developers/hastebin/eguputokok.yaml

Hastebin: Send and Save Text or Code Snippets for Free | Toptal®Toptal
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
s3gfau1t1337 2022-08-01 13:08:11
I’m going to develop a kernel module which will patch kernel functions in runtime with a custom trampoline in prologue. Sort of ftrace-like functionality, but much more flexible, versatile and powerful. My question is how to synchronize the kernel threads execution in cleanup routine? I want to return to the original function execution after each custom trampoline code execution. Will spinlock be a good solution? Considering very small critical section:
1) Acquire a spinlock
2) Write a custom cleanup routine (just 2 instructions) to RWX memory and execute it
3) Unlock a spinlock and return to the original function
s3gfau1t1337 2022-08-01 13:14:04
And how I can freeze the entire kernel? I need to do that in order to inject call instruction to a custom trampoline in each kernel function prologue, and then “resume” the entire kernel
hypeartist 2022-08-01 20:21:11
B,,,,.
Zildj1an 2022-08-01 21:53:31
I just read “I’m going to do some cool shit. My question is, how?
Zildj1an 2022-08-01 21:54:43
I also don’t see why do you need any synchronization, a trampoline-like hook in the prologue would be sequential with whatever place you take it to
Zildj1an 2022-08-01 22:00:01
not to mention you can’t use spinlock to patch functions that run with interrupts disabled
|