[KERNEL][MIUI V5/QDTXX] Stock kernel with init.d support / fstrim


Status
Not open for further replies.
hello don't really understand this but can i use this to my stable miui version jlb16.0?
thanks
 
sorry, I can't install the custom kernel. I use latest cwm, it says
"set_perm: some changes failed
E: Error in /sdcard/Kernel_MIUI_3.5.24_aries_custom.zip (status 7)
installation aborted"
Could it have anything to do with truedualboot?
 
sorry, I can't install the custom kernel. I use latest cwm, it says
"set_perm: some changes failed
E: Error in /sdcard/Kernel_MIUI_3.5.24_aries_custom.zip (status 7)
installation aborted"
Could it have anything to do with truedualboot?
I don't for sure if it's truedualboot but I don't think it's that.
Are you using latest CWM? Which rom do you use?
 
I am using latest ROM MIUI 3.5.24 and latest CWM 6.0.3.2, downloaded twice, same result.
 
Ok it could be truedualboot but that doesn't meant it's not working.

You have an app now called XTweaks right? If so go to the I/O tab and set read_ahead_kb to 1024 and hit apply

Now download and open the app terminal emulator
Type the following commands
Code:
su
cat /sys/block/mmcblk0/queue/read_ahead_kb
If the result is 1024 then Xtweaks and init.d works.

If the result is diffrent or if you don't have XTweaks app then something went wrong
 
This looks like brilliant work!

P.s. I was curious to know if fast charge modules could be enabled with your modified kernel?
 
It seems that init.d isn't working in 3.5.24 kernel (or i'm doing something wrong) :(
I've copy-paste boot.img, busybox and 00test-script to 3.5.24 rom. Flashed and wiped cache.
Ther's no initd.logfile in /data/, even after several reboots.
 
It works fine here, checked twice now
Do you have the file /system/bin/postinit?
Without this file it won't work
 
It works fine here, checked twice now
Do you have the file /system/bin/postinit?
Without this file it won't work
yes. I've tried several time and got strange situation:
If i flash rom with integrated custom kernel (copied all files from archive with custom kernel expect META-INF folder), init.d isn't working.
If i flash over this firmware only custom kernel, init.d is worknig :confused:

Hm. I think, i found solution!
I'm going to try adding in rom's updater-script this:
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/00test");
set_perm(0, 0, 0755, "/system/bin/postinit");

If i flash full rom init.d still is not working :(
 
You need to symlink busybox applets too
Add
Code:
symlink("busybox", "/system/xbin/run-parts");
 
  • Like
Reactions: nogarbage
Status
Not open for further replies.