[Kernel][4.4.2][P605] Permissive Stock Kernel (OB1) - Galaxy Note 10.1 (2014 Edition) Android Developmen

So guys ive experimented a bit and found out how to compile a kernel from source. Some guys here are waiting for permissive kernel to install linux deploys etc. Here it is. Not perfect yet, but seems to work. Has nothing special features. Uses my ramdisk from my xKat Rom with init.d support. So please dont ask for more features!! Its mostly pure stock. When i try to build a custom kernel, i will make a new thread for it.
Download
Stock_KK_Permissive_Kernel_NG1-p605
Stock_KK_Permissive_Kernel_NJ1-p605
Stock_KK_Permissive_Kernel_OB1-p605
How to install
Download the file and place the Zip on your intern or extern memory.
boot into Recovery
go on install into TWRP
look for where you placed the Zip
click on the zip an slide to the right
after that go to reboot
How to set permissive?
Permissive is not activ on boot. So use the App "Terminal Emulator"
open it
type su
type setenforce 0
to check it type
getenforce
and you will see its permissive now. But only for this session. If you rebot your device it will enforcing again.
Better choice is the App "SElinux Mode Changer".
Install it from Play Store
and set on permissive
It works with any boot now.:good:
Troubleshooting
if you have trouble with WLAN, delete your connection onetime
reconnect to your accesspoint and WLAN will work again.
Picture
View attachment 2886592​
Please hit "thanks" and rate this thread if you like my work or buy me a beer
​

Good, thanks a lot. Did you face problem like me - when compiled zImage, updated boot.img using abootimg -u -k ../../arch/arm/boot/zImage ...
I was flashed it and get into download mode. Tablet sayed - cannot boot os or something similar. Sorry for bad english.

Great job. Works fine. Thx

@Tautvaldas
Didnt tried it yet. Ive made it on windows cause my ramdisk of the NG1 kernel was there.

i made mine too, i did all the stuff like uv and zzmove gov added in,, but got problem during flash, sad
will test your thanks

Can someone build kernel with framebuffer console support - http://blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:fbcon

@hanspampel
A noob question - but it's better to be sure before start doing something
Moreover - you are the only who made a custom kernel for this device :highfive:
So: is it true I should only replace boot.img with original one (from original tar.md5 package) and change "misc" file with "ro.securestorage.support=true" to obtain zip recovery for flashing original kernel back?

Hi
Yepp it should work this way.

So added to this kernel the latest NJ1 ramdisk. Download in OP.

hanspampel said:
So added to this kernel the latest NJ1 ramdisk. Download in OP.
Click to expand...
Click to collapse
Isn't NK1 the latest one? Or no difference as for kernel part?

Yepp your right. NK1 is the latest, but my rom uses the dbt where is NJ1 the latest. But the NG1 works on NJ1 FW too. So i think there is no real modification on samsung side. Beside there is no another update from sources for p605 available. So that means, is there a modification from samsungs side, then only in ramdisk. This is why i changed it to NJ1 one. Maybe there is one who knows.

hanspampel said:
Yepp your right. NK1 is the latest, but my rom uses the dbt where is NJ1 the latest. But the NG1 works on NJ1 FW too. So i think there is no real modification on samsung side. Beside there is no another update from sources for p605 available. So that means, is there a modification from samsungs side, then only in ramdisk. This is why i changed it to NJ1 one. Maybe there is one who knows.
Click to expand...
Click to collapse
OK, and what about latest P605XXUDOB1?

Hi, sorry for late reply. So there is no newer update of kernel sources available. Only changing of ramdisk of newer fws is possible. But nobody knows if there are changes between the fws.

So added to this kernel the latest OB1 ramdisk. Download in OP.

hanspampel said:
So added to this kernel the latest OB1 ramdisk. Download in OP.
Click to expand...
Click to collapse
Thank you very much for not forgetting this project!
Just installed it - works well!

Hi hanspampel....can you help me,to make usb otg and charge make possible on the p605. I have the lavalink adapter tl-002,but wont work. Must be a kernel thing......would be phantastic.....
Gesendet von meinem SM-N9005 mit Tapatalk

hanspampel,
are you going to continue your work for 5.1.1?
Official sources for the kernel are already published here.

Yes i know. But atm i have not a building system runnig. So maybe if i found some time to setup all the stuff, we can get a new kernel. maybe. Not now, not tomorrow.

Related

[ROM][KVT49L]AOSP 4.4.2 from source (Alpha 01)

The reason I post my ROM here is because I'm soon starting with a new rom, broodROM KitKat which will also be available for the Note 3, So I figured why not test it on my current AOSP ROM (to see if there is any trouble on compiling, but no!). This AOSP is based on the real Google AOSP, no real further modifications (only thing is that it includes DeviceSettings from the S4 currently), and AppOps is exposed. that's all.
It includes the stock CM11 kernel (which is kinda crappy). but I don't have the device so cannot make decent kernel myself without testing. Also the ROM is 100% untested. but it compiled without any error with my sources (www.github.com/AOSP-S4-KK) so I think it's alright.
Working List
- You tell me I have no idea :silly:
Download Alpha 1
www.broodplank.net/files/AOSP-442-N9005-Alpha-1.zip
on alpha 01 you need to flash a custom kernel
SEND ME LOGCAT! BECAUSE CURRENTLY IT SEEM TO BOOTLOOP
The device name is listed as hlte in settings / build.prop, don't worry this is actually hltexx
Download Gapps Lite + SuperSU (yes it's not rooted by default, I recommend installing this package)
http://broodplank.net/files/gapps-4.4.2-lite-with-supersu-1.86.zip
Sources
- https://github.com/aosp-s4-kk
Download:
Code:
mkdir ~/AOSP
cd ~/AOSP
repo init -u git://github.com/AOSP-S4-KK/platform_manifest -b kk-4.4
repo sync
Building:
Code:
. build/envsetup.sh
lunch
make otapackage
reserved1
Sweet man!! Thanks always looking for something new to flash lol downloading now
Sent from my iPad using Tapatalk
Downloading!
Sent from my SM-N9005 using XDA Premium 4 mobile app
Thankyou OP
anybody that has tried this, can you let me know if the temp/humidity sensors are still working after a few hours? as with other cm roms they stop working for me
Awesome Broodplank! Just switched from the Galaxy S Plus to the Note 3, always enjoyed your roms on there. Will try out this one! Keep up the good work
Sent from my SM-N9005 using xda app-developers app
Flashed and it went straight into Odin mode and said "Could not do normal boot" - I'm on the new Kitkat bootloader.
radicalisto said:
Flashed and it went straight into Odin mode and said "Could not do normal boot" - I'm on the new Kitkat bootloader.
Click to expand...
Click to collapse
Lol what the hell, that's almost impossible that my rom triggered download mode XD.
But it could be true, I have no clue since I do not have the device. what you could try is using the boot.img & /system/lib/modules from CM11 nightly.
btw, just downloaded CM11 and noticed there are NO modules in the kernel of hltexx. this means the kernel I added will not boot most likely.
So please install this zip after installing the rom:
www.broodplank.net/files/aosp-442-hltexx-kernel.zip
broodplank1337 said:
Lol what the hell, that's almost impossible that my rom triggered download mode XD.
But it could be true, I have no clue since I do not have the device. what you could try is using the boot.img & /system/lib/modules from CM11 nightly.
btw, just downloaded CM11 and noticed there are NO modules in the kernel of hltexx. this means the kernel I added will not boot most likely.
So please install this zip after installing the rom:
www.broodplank.net/files/aosp-442-hltexx-kernel.zip
Click to expand...
Click to collapse
OK - will try again now and let you know :good:
and new bootloader ?
Just bootloops with that .zip you added.
I did however change your kernel zip after the bootloop and used - temasek's HLTE custom kernel - I am now on the Android start up screen you have added but it is stuck on there.
radicalisto said:
Just bootloops with that .zip you added.
I did however change your kernel zip after the bootloop and used - temasek's HLTE custom kernel - I am now on the Android start up screen you have added but it is stuck on there.
Click to expand...
Click to collapse
ok good, could you open up adb shell, and send me the logcat, since I have no idea what actually could be the cause atm.
Yup will do it shortly, just heading home now
Sent from my CM11 Kitkat powered N9005
radicalisto said:
Yup will do it shortly, just heading home now
Sent from my CM11 Kitkat powered N9005
Click to expand...
Click to collapse
Ok thank you very much, without some proper logcat I cannot fix anything since I don't have the device :silly:
Anyways, I think the problem won't be a serious one, since the rom has msm8974 support
www.broodplank.net/logcat for uploading logcats pls
broodplank1337 said:
Ok thank you very much, without some proper logcat I cannot fix anything since I don't have the device :silly:
Anyways, I think the problem won't be a serious one, since the rom has msm8974 support
www.broodplank.net/logcat for uploading logcats pls
Click to expand...
Click to collapse
Sorry I couldn't manage to get a logcat via ADB due to some kernel issues with connecting to the PC - I'll try again today. - Is It possible you are using the old CM sources rather than the unified build sources? - device changed from HLTEXX to HLTE
radicalisto said:
Sorry I couldn't manage to get a logcat via ADB due to some kernel issues with connecting to the PC - I'll try again today. - Is It possible you are using the old CM sources rather than the unified build sources? - device changed from HLTEXX to HLTE
Click to expand...
Click to collapse
This ROM is built from pure AOSP sources not CM.
Hope a working build comes up soon, really like pure AOSP ROMs!
gianton said:
This ROM is built from pure AOSP sources not CM.
Hope a working build comes up soon, really like pure AOSP ROMs!
Click to expand...
Click to collapse
Ah I dropped the herp a derp then hahah, Nah reason I thought that was because of the CM kernel used to boot it up. Thanks for correcting :good:
---------- Post added at 08:56 AM ---------- Previous post was at 08:55 AM ----------
@gianton it'll boot into splash screen with temasek's kernel, if you wanna try and grab an ADB Logcat? - I'm having issues getting one :crying:
Sorry for not providing a good kernel, the thing is I cannot compile it decently with the ROM. it says I have to add module support and recontinue, thing is, the note 3 does not use it. but my build forces it.. Anyone have experience on CM with compiling the kernel? (the kernel is from CM after all)
You could try temasek or Yank555 or wootever for help with kernels as they're pretty decent at them - civato knows his stuff also, however I believe he has only worked with Stock samsung kernels and not CM stuff.
Still cannot get ADB logcat, phone won't recognise in PC

[k3gxx][G900H][CWM Advanced Edition] PhilZ Touch

Main thread + features + install instructions + dev support
http://forum.xda-developers.com/showthread.php?t=2201860
PhilZ Touch is a CWM Advanced Edition that adds all the features you could ever miss in CWM
It is a well proven recovery for many phones
It also adds a full touch interface a completely configurable GUI
Please give your feedback, what works, and any bug you could encounter
Read the features, and check if you are missing something
To take a screen shot, just long press outside a menu (2 sec and slightly change pressure after the delay)
Also, do not forget to read about the powerful aroma file manager integration and double tap shortcut
Download links
Last version can be found here:
Galaxy S5 Exynos - G900H (k3gxx)
http://goo.im/devs/philz_touch/CWM_Advanced_Edition/k3gxx
Click to expand...
Click to collapse
Thanks @Chenglu for parts of his ramdisk and his dtb tools
XDA:DevDB Information
[k3gxx][CWM Advanced Edition] PhilZ Touch, Tool/Utility for the Samsung Galaxy S 5
Contributors
Phil3759
Version Information
Status: Stable
Created 2014-04-17
Last Updated 2014-10-16
Status: stable
Galaxy S5 3G - SM-G900H
Tested and not working.
Its stays on logo of Samsung..
Airboner said:
Galaxy S5 3G - SM-G900H
Tested and not working.
Its stays on logo of Samsung..
Click to expand...
Click to collapse
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
Click to expand...
Click to collapse
I know
I just prefer using another approach
Stock kernel is too big in your case
Still waiting for someone providing results from:
Code:
cat /proc/partitions
I will try to compile a light version based on stock kernel this time, and debug it once it boots
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
Click to expand...
Click to collapse
Ok dude i will try it tomorrow and report cauze i go for sleep...
Phil3759 said:
I know
I just prefer using another approach
Stock kernel is too big in your case
Still waiting for someone providing results from:
Code:
cat /proc/partitions
I will try to compile a light version based on stock kernel this time, and debug it once it boots
Click to expand...
Click to collapse
Here it is, @Phil3759
Update v2
- use stock kernel
- handle dt.img
Click to expand...
Click to collapse
Download: http://d-h.st/2mx
Seems like exynos also has now a dt.img!
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
Click to expand...
Click to collapse
i tested and i confirm that it works
Airboner said:
i tested and i confirm that it works
Click to expand...
Click to collapse
Many thanks
I can now continue debugging and using a kernel compiled from source
Never thought exynos also would use separated dt.img to handle dtc info
Phil3759 said:
Many thanks
I can now continue debugging and using a kernel compiled from source
Never thought exynos also would use separated dt.img to handle dtc info
Click to expand...
Click to collapse
sry dude i didnt test yours,i tested the other recovery who the guy posted :/
however i dont know if its yours
Airboner said:
sry dude i didnt test yours,i tested the other recovery who the guy posted :/
however i dont know if its yours
Click to expand...
Click to collapse
hopefully I did not press the :good: button
Will wait for someone to flash v2
Phil3759 said:
hopefully I did not press the :good: button
Will wait for someone to flash v2
Click to expand...
Click to collapse
i will test it in few hours and i report back
It works... I flashed the zip from chenglu cwm recovery. Thank you @Philz3759. Maybe you should also provide an Odin .tar file for those who can't flash it from a previous cwm recovery (not already installed)
djigane said:
It works... I flashed the zip from chenglu cwm recovery. Thank you @Philz3759. Maybe you should also provide an Odin .tar file for those who can't flash it from a previous cwm recovery (not already installed)
Click to expand...
Click to collapse
Great and thank you
Once final, I will provide zip and tar
I will release a v3, a bit experimental, but hope it works
v3 experimental
http://d-h.st/rBr
I hope someone can test this experimental build
I used a prebuilt dt.img combined with a compiled kernel from source
v2 was fine but I prefer having a cleaner solution by building kernel from sources. The issue is that I did not find how to build the dt.img file as dtb files are not built during make provided by Samsung
At worst, it won't boot to recovery and you have to use odin to flash another recovery or previous v2
Phil3759 said:
v3 experimental
http://d-h.st/rBr
I hope someone can test this experimental build
I used a prebuilt dt.img combined with a compiled kernel from source
v2 was fine but I prefer having a cleaner solution by building kernel from sources. The issue is that I did not find how to build the dt.img file as dtb files are not built during make provided by Samsung
At worst, it won't boot to recovery and you have to use odin to flash another recovery or previous v2
Click to expand...
Click to collapse
OK, flashed. Unfortunatelly, phone during reboots were going straight into download mode with red info saying: "cannot boot normal mode" or similar.
restored previous revovery and all seems fine.
sebarkh said:
OK, flashed. Unfortunatelly, phone during reboots were going straight into download mode with red info saying: "cannot boot normal mode" or similar.
restored previous revovery and all seems fine.
Click to expand...
Click to collapse
Thanks
I was expecting it as dtb must be compiled along kernel
However, Samsung sources are not compiling the needed dtb files needed by dtbtool
I am trying to learn how to compile dtb files from the dts scripts along the zImage
However, without a guinea pig device, it is time expensive
Meanwhile, I will provide you with a decent build using a cracked adbd binary to have adb shell with root privileges
I notify @Chenglu as he did a huge work on the dtbtool part
Found this reading:
http://www.armadeus.com/wiki/index.php?title=Kernel-with-device-tree
Will work from there and try a v4 soon
I could generate the dtb files
However, there is only dtbTool for Qcom
Dropping this until we have more decent sources from a developer more used to kernels or Samsung releases info for it if not yet

N915F kernel with SeLinux Permissive - done

Hello,
This is a stock SeLinux permissive kernel and init.d activated for Samsung Galaxy Note Edge (N915F) for Lollipop 5.0.1.
There are inputs that is working also on N915FY.
The kernel was compiled from Samsung source LL_CIS kernel using Google toolcahin v4.8.
If you want to test it, please flash in cwm the attached file and report back. Please make a backup of your actual kernel (boot.img) befor flashing this one.
Special thanks to @Micky387 who advised me to update the source kernel (MH driverI), @Wuby986 for his support and guidance and @daxgirl for his advices.
My kernel source for N915F (N915FOXE1BOC6) is here.
Happy flashing.
PS. Kernel updated. Same functionality but some different info in "About".
Well you got further than I did .. Kept getting some driver file referenced so it would not complied.. Thanks for effort I hope you work it out soon.. Unfortunately I don't have time at the moment ..
starbucks2010 said:
Hello,
Since few days I struggle to build a SeLinux permissive kernel for Samsung Galaxy Note Edge with Lollipop 5.0.1 but without success. Or with partial success.
I followed several guides from xda and other sites but it seems that everyone has his different way of doing it.
What I have done so far:
- I installed Ubuntu 14.04 with all updates and apt-get xxx
- I installed the Google toolchain arm-eabi-4.8
- I Installed Samsung kernel source for N915F_CIS from here
- I changed the path to the toolchain in Makefile and build_kernel.sh
- I run from kernel source folder: ./build_kernel.sh
- After 10-15 min of compilation I get a zImage file in //output/arch/arm/boot of ~ 9.8 Mb
- Using Android Image Kitchen v2.2 I integrated the zImage into a boot.img to be flashed with cwm
I flashed this new boot.img but the phone is rebooting every minute and in about I have "unknown"as baseband.
Anyone have an idea how to fix this?
Thank you in advance.
Click to expand...
Click to collapse
hi man. How are you ?
So many thing are change in lollipop . the modem and firmware modem dont call same as KK ROM.
So be sure you are this commit https://github.com/CyanogenMod/andr...mmit/784aa9a84b77090fa591bff77045341c3e3c6293
and add MHI module into tblte_defconfig
https://github.com/CyanogenMod/andr...mmit/1dd44659ee26c2d8b313c1346192e2bfa2ac7bb9
dont delete 18 and 19 line if you build for TW rom .
Try and report
micky387 said:
hi man. How are you ?
So many thing are change in lollipop . the modem and firmware modem dont call same as KK ROM.
So be sure you are this commit https://github.com/CyanogenMod/andr...mmit/784aa9a84b77090fa591bff77045341c3e3c6293
and add MHI module into tblte_defconfig
https://github.com/CyanogenMod/andr...mmit/1dd44659ee26c2d8b313c1346192e2bfa2ac7bb9
dont delete 18 and 19 line if you build for TW rom .
Try and report
Click to expand...
Click to collapse
Bonjour Mickey,
Thank you for your advice. I'll try it and let you know how it goes. Do you know if I have to flash also the modules together with the new kernel or only the boot.img alone ?
Merci.
starbucks2010 said:
Bonjour Mickey,
Thank you for your advice. I'll try it and let you know how it goes. Do you know if I have to flash also the modules together with the new kernel or only the boot.img alone ?
Merci.
Click to expand...
Click to collapse
No need to flash module. The MHI module will be in the kernel so you have boot.img with all inside.
starbucks2010 said:
Hello,
Since few days I struggle to build a SeLinux permissive kernel for Samsung Galaxy Note Edge with Lollipop 5.0.1 but without success. Or with partial success.
I followed several guides from xda and other sites but it seems that everyone has his different way of doing it.
What I have done so far:
- I installed Ubuntu 14.04 with all updates and apt-get xxx
- I installed the Google toolchain arm-eabi-4.8
- I Installed Samsung kernel source for N915F_CIS from here
- I changed the path to the toolchain in Makefile and build_kernel.sh
- I run from kernel source folder: ./build_kernel.sh
- After 10-15 min of compilation I get a zImage file in //output/arch/arm/boot of ~ 9.8 Mb
- Using Android Image Kitchen v2.2 I integrated the zImage into a boot.img to be flashed with cwm
I flashed this new boot.img but the phone is rebooting every minute and in about I have "unknown"as baseband.
Anyone have an idea how to fix this?
Thank you in advance.
Click to expand...
Click to collapse
Wait one more day..
Or maybe earlier
Finally done.
Make backup of your actual kernel, flash the attached zip from post 1in cwm and please report back.I didn't check the init.d support but it should work.
Good, I'll try.
Dev.
Just a small request please.
If you could please make sure a link to YOUR kernel sources in OP.
Any Linux kernel publicly released must have source to compile the exact binary (zImage) as repacked into your distributed boot.img. This must be current at time of every released version.
This is not just a XDA rule, but a legal GPL requirement, applying to all, even if modification is only minor. This is open-source
I would suggest the use of a github repo that helps keep track of your changes (commits), promotes open transparency, sharing and colaboration
If you have any questions on how to go about this, i would be happy to help via pm (but currently away with work), but would suggest to contact our friendly forum Mod.
Best of luck with your project. :thumbup:
Cheers.
UITA
Any chance that you would be willing to make this kernel compatible with the Sprint variety? Man.... I need my viper4android bro. Please. Lol
UpInTheAir said:
Dev.
Just a small request please.
If you could please make sure a link to YOUR kernel sources in OP.
Any Linux kernel publicly released must have source to compile the exact binary (zImage) as repacked into your distributed boot.img. This must be current at time of every released version.
This is not just a XDA rule, but a legal GPL requirement, applying to all, even if modification is only minor. This is open-source
I would suggest the use of a github repo that helps keep track of your changes (commits), promotes open transparency, sharing and colaboration
If you have any questions on how to go about this, i would be happy to help via pm (but currently away with work), but would suggest to contact our friendly forum Mod.
Best of luck with your project. :thumbup:
Cheers.
UITA
Click to expand...
Click to collapse
Thank you for your advices.The link to Samsung kernel source was already there . Anyway, I added it one more time just to be sure that is more visible.
For the github repo, I have to create an account and then I'll upload the files.
Best regards.
Well done mate ..... Yea
---------- Post added at 08:32 AM ---------- Previous post was at 07:36 AM ----------
Boot and works fine , nice one
Can this be used on N915FY as well?
I don't have any reports from N915FY users. You can try and tell us
Don't forget to make a backup first.
starbucks2010 said:
Thank you for your advices.The link to Samsung kernel source was already there . Anyway, I added it one more time just to be sure that is more visible.
For the github repo, I have to create an account and then I'll upload the files.
Best regards.
Click to expand...
Click to collapse
Hey, no problem.
Just to clarify....
If you've made any (even minor) change to "Samsung" source, then you have to upload "your" complete source and link "your" source, not "Samsung" So if you've made the kernel permissive or even use a different toolchain or path, technically you have modified from original and is now "your" source If you use a custom defconfig, don't forget it too
github is well worth the pain I Google for answers all the time (how to do this and that), but still screw things up (sometimes majorly) now and then.
dubart said:
Can this be used on N915FY as well?
Click to expand...
Click to collapse
Using this kernel with a N915FY. Great job btw I can finally use viper audio which I've missed so much. Major props dude!
I'm gonna flash this on sprint variant either that or throw this device out my window
dinaps86 said:
I'm gonna flash this on sprint variant either that or throw this device out my window
Click to expand...
Click to collapse
Lol it booted just no data. Yaaayyy!!!
I see that there are other people who are interested in Selinux permissive kernels.
So, if you want, I can add selinux permissive to any samsung kernel as long as you provide me 2 files: your original kernel (boot.img) from the ROM you want to flash and the Kernel.tar.gz - source kernel from Samsung site. In order to get Kernel.tar.gz file you'll need to download the kernel source file (~ 1Gb) from Samsung site, open the archive and upload ONLY the Kernel.tar.gz (~ 100-150 Mb) and the readme file from the archive to some sharing site. Then, I'll try to compile that kernel for you.
There are also downsides. I cannot stay up to date will all new commits done to the kernel source so I'll compile your kernels only with info that I have at that date. If you fork the github and find kernel source updates, I can add them.
PS. I only set up a working PC with Ubuntu and Google toolchain v4.8. If you find any information that this setup is not suitable for compiling your kernel, then there is no point of providing me the above files.
Best regards.
OP updated with some Antutu screen shots.

[KERNEL][MI-STOCK][GPL] Need testers

Hi,
I would like to request some testers who are currently running stock MIUI to test the stock kernel. Feel free to comment below.
Instructions:
- You should be on CWM
- Download zip
- Flash kernel
- reboot
- cross your fingers
What to check:
- WLAN -> see if it works
Source:
https://github.com/emceethemouth/kernel_cancro/tree/mi-stock
WLAN:
git://codeaurora.org/platform/vendor/qcom-opensource/wlan/prima/
blah blah blah
Wifi not working after flashing the kernel.
Armin_van_buuren said:
Wifi not working after flashing the kernel.
Click to expand...
Click to collapse
Hold on I'm uploading a new one.
Edit:
Attachment updated
Wifi doesn't work, everything else does.
alphoz said:
Wifi doesn't work, everything else does.
Click to expand...
Click to collapse
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Gnome said:
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Click to expand...
Click to collapse
Thanks to you, and all your hard work. I would also like to mention that the miband unlocking worked a lot better with your kernel than the MIUI stock one. Thanks again.
Wow. Thanks GNOME... Good to kernel for miui
Sent from my MI 3W using Tapatalk
Audahudi also build stock miui kernel. This also has same bugs, no WiFi, cit etc menu take while to open.
One bug I have doubt of is, whether all 4 cores work simultaneously. In my testing I saw most time 2 work, sometimes 3. Benchmarks also give scores like that. Also CPU performance control pro, which can set individual frequency of all cores could make 2 cores work together.
Any app you know which can monitor every core usage over period of time?
The 2nd bug is what I'm curious off, as I don't have WiFi lol.
Plus these miui kernel can be used in some custom Chinese KitKat ROMs. Iuni is 1 example, fiui I havent tested.
Gnome said:
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Click to expand...
Click to collapse
Thanks for your hard work. But did you read this? https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-To-Use
I tried to compile kernel according to this instructions. Compilation through without problems. But kernel freeze while booting. I am not kernel developer, so don't have experience, how to debug it. If you find time, please can you try it?
Thanks
Pepe.II said:
Thanks for your hard work. But did you read this? https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-To-Use
I tried to compile kernel according to this instructions. Compilation through without problems. But kernel freeze while booting. I am not kernel developer, so don't have experience, how to debug it. If you find time, please can you try it?
Thanks
Click to expand...
Click to collapse
That happened to me when I did all that.
I found no solution, so I left it.
@Pepe.II you should see the issues section, I'm always there.
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/16
@Gnome
on what miui we should try stable or developer ?
Stable just to be safe.
Edit: @alexret, can you try the instructions on that misleading turorial but use my kernel source? Branch is mi-stable. I have a feeling it'll work
@Gnome anything with the bug I have doubt of?
@Gnome I tried to flash your kernel STX-MI-PRIMA-TEST-2015-06-24 from first post attachment.
Its only kernel, no modules included. This has a effect, that no modules are loaded while booting. When i try load module manually, it crashes with this message:
[email protected]:/ # insmod /system/lib/modules/wlan.ko
insmod: init_module '/system/lib/modules/wlan.ko' failed (Exec format error)
Please, can you compile kernel with modules? Thanks
@Me_Ashish_ its MIUIs kernel source, its incomplete it needs a lot of patches. And yes this kernel is just stock MIUI I added nothing to it just the opensource wlan from qualcomm w/c they claim works.
@Pepe.II thats the idea, the kernel should have it by default already, no need for the modules to be included in the package. The Modules are being built with the zImage-dtb itself, adding those modules to rhe zip package is very wrong. Adding it to the kernel package for CM Bases ROMs are just a work around, and I tell you know it wont work on stock MIUI ROM, unless you build MIUI from source and use my kernel source to be built with it.
Gnome said:
@Me_Ashish_ its MIUIs kernel source, its incomplete it needs a lot of patches. And yes this kernel is just stock MIUI I added nothing to it just the opensource wlan from qualcomm w/c they claim works.
@Pepe.II thats the idea, the kernel should have it by default already, no need for the modules to be included in the package. The Modules are being built with the zImage-dtb itself, adding those modules to rhe zip package is very wrong. Adding it to the kernel package for CM Bases ROMs are just a work around, and I tell you know it wont work on stock MIUI ROM, unless you build MIUI from source and use my kernel source to be built with it.
Click to expand...
Click to collapse
As far as I understand it, you did not compile drivers as modules but compile them as part of the kernel?. Ok. But why, when I look in to kmesg log (/proc/kmesg), I find not a single mention about the WLAN. That's weird. Are you sure, that WLAN part is compiled correctly?
@Pepe.II if Im building kernels wrong, by all means please guide me on how to build kernels correctly.
Well if I'm getting this kind of critisczm might as well stop this. Anyways thanks for all that tested, I'm dropping this.
Gnome said:
@Pepe.II if Im building kernels wrong, by all means please guide me on how to build kernels correctly.
Well if I'm getting this kind of critisczm might as well stop this. Anyways thanks for all that tested, I'm dropping this.
Click to expand...
Click to collapse
Sorry, I only asking, because I do not understand how you work with drivers. Prima WLAN you set as a module but I do not see any module in a flashable zip. You assume that your kernel will use modules from stock MIUI kernel?
I do not criticize, just asking. if this sounds like criticism, so it is due to my poor English and i am sorry.

[Kernel] Hammerheadmon Nethunter kernel with overclock

Hi everyone,
I am Luca from France. Today, it's my birthday, I am already 16 and I got a Nexus 5 32GB.
I tried installing Hammerheadmon kernel (Download at: https://build.nethunter.com/nightly...nter-hammerheadmon-nougat-2019.03-13-0514.zip ). I noticed it was based on ElementalX.
So I downloaded latest ElementalX nougat build for Nexus 5 ( https://www.androidfilehost.com/?fid=962187416754455497 ), and tried replacing "elex.zImage" by "zImage-dtb" of hammerheadmon kernel's zip.
After flashing the original hammerheadmon nethunter kernel, I flashed the modified ElementalX zip with hammerheadmon's zImage. And I successfully got my internal wifi card in monitor mode while my CPU was overclocked and undervolted.
I am running Unofficial LineageOS 14.1.
Download the 2 zips to flash below.
Note: You have to flash original Nethunter hammerheadmon kernel first in order to install all drivers. Obviously, you can't flash ElementalX edited zip first, because Nethunter kernel will replace you actual zImage-dtb in you boot partition that allows overclock by its own that doesn't.
PS: Congrats to @flar2 for developping ElementalX. I think it is amazing that in TWRP you can patch zImage for higher/lower voltages. I still haven't figured out how he managed to do that.
lucahack said:
Hi everyone,
I am Luca from France. Today, it's my birthday, I am already 16 and I got a Nexus 5 32GB.
I tried installing Hammerheadmon kernel (Download at: https://build.nethunter.com/nightly...nter-hammerheadmon-nougat-2019.03-13-0514.zip ). I noticed it was based on ElementalX.
So I downloaded latest ElementalX nougat build for Nexus 5 ( https://www.androidfilehost.com/?fid=962187416754455497 ), and tried replacing "elex.zImage" by "zImage-dtb" of hammerheadmon kernel's zip.
After flashing the original hammerheadmon nethunter kernel, I flashed the modified ElementalX zip with hammerheadmon's zImage. And I successfully got my internal wifi card in monitor mode while my CPU was overclocked and undervolted.
I am running Unofficial LineageOS 14.1.
Download the 2 zips to flash below.
Note: You have to flash original Nethunter hammerheadmon kernel first in order to install all drivers. Obviously, you can't flash ElementalX edited zip first, because Nethunter kernel will replace you actual zImage-dtb in you boot partition that allows overclock by its own that doesn't.
PS: Congrats to @flar2 for developping ElementalX. I think it is amazing that in TWRP you can patch zImage for higher/lower voltages. I still haven't figured out how he managed to do that.
Click to expand...
Click to collapse
Edit : After thinking about it, I think ElementalX installer maybe does not edit zImage, but ramdisk only for frequency. It'd be really complicated to patch an ELF file. So it could mean that you don't need to flash the 1st zip first
Does it work for pie
bagajohny said:
Does it work for pie
Click to expand...
Click to collapse
No. And unfortunately this kernel source code was deleted
bagajohny said:
Does it work for pie
Click to expand...
Click to collapse
I am not sure, but maybe it can work on a pie GSI
https://forum.xda-developers.com/go...ment/repartition-nexus-5-repartition-t3844395
Ever since I installed a custom rom on a closed-source Mediatek phone, I think EVERYTHING is possible lol
Please, we need a new kernel for Pie roms!
The exkernel base is awesome to overclock! For me is the only kernel on Oreo days!
I have the paid exkernel and is a bummer to loose Nexus 5 development...
Any good soul to work this for pie? I have the latest exkernel aroma installer for oreo in my folder.
Bro please add GPU overclock (650) in your kernel by which it is easy to play game like pubg smoothly. You can get the code for the same in true sight kernel 4.4 ( not updated from 2017 )
Sorry if any mistake
https://forum.xda-developers.com/google-nexus-5/orig-development/kernel-truesight-v1-5-t3329986
vikaseth said:
Bro please add GPU overclock (650) in your kernel by which it is easy to play game like pubg smoothly. You can get the code for the same in true sight kernel 4.4 ( not updated from 2017 )
Sorry if any mistake
https://forum.xda-developers.com/google-nexus-5/orig-development/kernel-truesight-v1-5-t3329986
Click to expand...
Click to collapse
I will try patching his kernel for nexmon
Need oreo kernel Hammerheadmon sorry muy bad english
does anyone know how I can make my kernel oreo work in hammerheadmon? thanks
any solution for hammerheadcaf?
omargdl80 said:
does anyone know how I can make my kernel oreo work in hammerheadmon? thanks
Click to expand...
Click to collapse
You have to look into the Nexmon repo and look if there is a option to apply it on a Oreo kernel
https://github.com/seemoo-lab/nexmon
I compiled a new Oreo kernel for NetHunter from the DirtyUnicorns github repo, but can't unfortunately release it here with hindsight of the general disregard of this amazing custom rom.
---------- Post added at 07:45 PM ---------- Previous post was at 07:43 PM ----------
jonnie77 said:
any solution for hammerheadcaf?
Click to expand...
Click to collapse
If you can find a usable repo with a according source, I would gladly give it a try.
lucahack said:
I will try patching his kernel for nexmon
Click to expand...
Click to collapse
Yes, we need that 650 gpu overclock??????

Categories

Resources