Hey guys, I have been working on this for quite some time now, and it finally has reached a working state :victory:
First of all, "Anykernel installer", what does this mean?
Well, simply put: It allows you to install (almost) every kernel on every ROM, regardless of the used ramdisk.
Now, for those wanting some more detail on this:
Anykernel has been developed by Koush quite some time ago, and since I know about it, I personally am a huge fan of it.
What it does, is it dumps the currently installed boot image to a temporary file and unpacks it into the ramdisk and the zImage (the kernel). It then replaces the zImage with the new one (the one included in the zip) and finally repacks the boot image with the old ramdisk and new kernel. The new boot image is then being flashed onto the boot partition and modules are being copied to the system partition like any other kernel installer.
BUT, on our device (even worse on stock 4.4) it's not that easy, as we also need to modify the ramdisk when replacing the zImage (in KK we also need to change the modules inside the ramdisk). Therefore I wrote a script that is being executed after unpacking the boot image to do exactly that.
This way, you can change anything inside the ramdisk "on the go" (for example via sed). When everything is done to the ramdisk, the ramdisk is then being repacked and the normal boot image repacking takes place.
I am using the Anykernel installer on my 4x HD as well, which makes it possible to flash one kernel zip on stock, 4.1, 4.2, 4.3 and 4.4 based ROMs. All minor changes to the ramdisk can then be done using the ramdisk-editing-script.
What does this mean for kernel devs?
Way less work!
You can let the installer do all the repacking work for you, just throw the zImage and modules into the zip and you're good to go
If you're interested, I can provide you with all the scripts I am using to build the kernel and then to create the anykernel installer (all the contents are being zipped and signed automatically via script)
I suppose you want to examine the installer yourself, right? I have added it as an attachment including a 4.4.2 kernel for the T210.
For GPL reasons, THIS is the used source
Special thanks go to @gr8nole and @moonbutt74 for their testing
This zip is currently made for the T210(R), but can be used on any Tab3 variant pretty easily with just a few modifications.
I have shared this so it can be used by anyone who wants to, no need to ask for permission. All I am asking is for you to give proper credit.
If you have any questions regarding Anykernel, feel free to ask.
@kernel devs, in case you need some help, don't hesitate to contact me
Disclaimer: I cannot be held responsible for any possible damage to your device caused by this project. Whatever you do, do it on your own risk.
Due to the fact that I got asked to share my script for packing the anykernel zip, I decided to push all needed files to my github.
You will find some folders there withh scripts for all kinds of stuff, but we only need two folers: kernel and anykernel. The kernel foler contains the script to compile the kernel, and the anykernel folder contains all files needed to create a flashable anykernel zip, including the updater script, scripts to manipulate the ramdisk while flashing,...
The kernel script automatically executes the anykernel script, so all you have to do (once you've set everything up of course) is execute one command and you'll get a flashable anykernel zip.
I guess I don't have to explain how to edit the scripts so they match your setup/system, but in case you have questions, just ask
Should also check any kernel 2.0 by osmosis in the gnex community, such a beautiful thing , o and I'm bout to install this brb wit info
Sent from my SM-T210 using XDA Free mobile app
---------- Post added at 07:16 PM ---------- Previous post was at 07:08 PM ----------
Lost boot animation, b back in a couple hours with more
Sent from my SM-T210 using XDA Free mobile app
Thanks for your great job werewolf, apparently its core is well balanced in terms of performance, the problem is I have no boot animation.
Sik-1 said:
Should also check any kernel 2.0 by osmosis in the gnex community, such a beautiful thing , o and I'm bout to install this brb wit info
Sent from my SM-T210 using XDA Free mobile app
---------- Post added at 07:16 PM ---------- Previous post was at 07:08 PM ----------
Lost boot animation, b back in a couple hours with more
Sent from my SM-T210 using XDA Free mobile app
Click to expand...
Click to collapse
Andromeda 90 said:
Thanks for your great job werewolf, apparently its core is well balanced in terms of performance, the problem is I have no boot animation.
Click to expand...
Click to collapse
Could you guys please grab me some logs? (both logcat and kmsg)
laufersteppenwolf said:
Could you guys please grab me some logs? (both logcat and kmsg)
Click to expand...
Click to collapse
Sorry, I can not send any records from your core for now since I'm not in a ROM with KitKat, and jelly bean does not work.
Andromeda 90 said:
Sorry, I can not send any records from your core for now since I'm not in a ROM with KitKat, and jelly bean does not work.
Click to expand...
Click to collapse
It's all right, I fixed it, new kernel is uploaded in the t210 CM11 thread
laufersteppenwolf said:
It's all right, I fixed it, new kernel is uploaded in the t210 CM11 thread
Click to expand...
Click to collapse
Excellent werewolf, I immediately try your kernel.
Alright guys, as I have been asked to share the anykernel build script, I have added it to my 2nd post
Related
Hi devs and users of g3 community...!!
I learned alot abt kernel development
tried n tried ..... atlast found success in my work
this thread is mainly concentrated on custom kernel development
after my work on ecliar ., i will start kernel compilation for froyo and cm7
hope u guys understand the purpose of the thread
changelog :
adb root and busybox support
file system support
cwm
1% battery mod
features to be added :
5 touch support
overclocking - complicated one ( will be last priority )
wish list :
choice is yours
CREDITS :
dharam maniar - for his tutorial and guidence
moikop - supporting me with his github
marcellusbe - made me to learn indepth abt overclocking
dor2 - for motivating me to work on ecliar kernel
testers - my g3
DOWNLOADS :
austin's gradient kernel 1.0
download link :
http://code.google.com/p/my-project-austinkernel/downloads/list
downloads will be added soon
test kernel :
only for testing
working cwm
file system
sd card recognition fixed
link...
http://www.4shared.com/file/O7etQOD0/zImage.html
HOW TO FLASH :
requirements : flash tools [odin]
sg3 drivers must be installed in pc
procedure :
- flash odin
- tick one package option
- select one package option and select zImage .tar file
- put ur g3 on download mode
- connect to pc with usb
- flash the .tar file
and enjoy....
RESERVED
reserved
nice work....actually I'm also making a kernel like this for purumod btw, where is the source?
HERE'S THE INFO
Downloading Sources
1. Download Samsung Source from https://opensource.samsung.com/
2. If you download from https://opensource.samsung.com/ then you will not have the initramfs.
3. To get stock initramfs, you need to extract it from one of the stock kernel(I will explain it later).
have you thought about helping with the kernel 3.0 project?
Sent from my GT-I5800 using XDA
Am a noob
i need a lot of knowledge to do that
may marcel can
request him... He can do it for us
Stucks at GT-I5800 Logo on stock XXJK1
DoR2 said:
Stucks at GT-I5800 Logo on stock XXJK1
Click to expand...
Click to collapse
I think this is for froyo wait, is this for froyo or eclair?
---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------
austin266 said:
HERE'S THE INFO
Downloading Sources
1. Download Samsung Source from https://opensource.samsung.com/
2. If you download from https://opensource.samsung.com/ then you will not have the initramfs.
3. To get stock initramfs, you need to extract it from one of the stock kernel(I will explain it later).
Click to expand...
Click to collapse
Nah, I meant to say, how did you compile the kernel for eclair? the same way as froyo?
austin266 said:
Am a noob
i need a lot of knowledge to do that
may marcel can
request him... He can do it for us
Click to expand...
Click to collapse
ok, although I'm sure even a n00b can contribute in it and you can't be that n00bish if you've managed to do a kernel release already lol
Sent from my GT-I5800 using XDA
I'm pretty sure you have to post your sources as well because of the license.
@simbawimba what he did/will do and what the 3 project will do are in different ballparks.
stubborn_d0nkey said:
I'm pretty sure you have to post your sources as well because of the license.
@simbawimba what he did/will do and what the 3 project will do is a whole different ballpark.
Click to expand...
Click to collapse
Not necessary, because those features are only included in the "initramfs" folder...but if he start to add features that are included in the "Kernel", then the source is required.
What about the features he is planning to add? I guess I bunched them together
@ jason
check the post 3 for the sources
am using ecliar sources for the ecliar
actually i incorporated all the changelog of moikop's kernel in my version 1.0
but ecliar is buggy... so i got plenty of errors while compiling
so, i just want to build a base kernel and add the features gradually... this will be the best choice of work with minimal errors
@ stubbirn donkey
check the first post
there u will find features to be added
in my kernel., i will try to add a recovery which will be new and simple
if u hav any ideas ., share here.. i will try to add those features
@ dor2
i didnt get any bootloop
tested on my g3
better reflash it
if it still encounters ., i will upload another image
austin266 said:
@ dor2
i didnt get any bootloop
tested on my g3
better reflash it
Click to expand...
Click to collapse
What rom I shall use with your kernel?
austin266 said:
@ jason
check the post 3 for the sources
am using ecliar sources for the ecliar
actually i incorporated all the changelog of moikop's kernel in my version 1.0
but ecliar is buggy... so i got plenty of errors while compiling
so, i just want to build a base kernel and add the features gradually... this will be the best choice of work with minimal errors
@ stubbirn donkey
check the first post
there u will find features to be added
in my kernel., i will try to add a recovery which will be new and simple
if u hav any ideas ., share here.. i will try to add those features
@ dor2
i didnt get any bootloop
tested on my g3
better reflash it
if it still encounters ., i will upload another image
Click to expand...
Click to collapse
Those errors suppose to appear while compiling. It seems like it is still much better to build kernels in Froyo...anyways, thanks for the reply, and also, you should add Voodoo Sound v10 in your kernel! here is a clean commit I made : https://github.com/JPurungrit/PuruKernel-G3/commit/c7bf85a4f8d83204c792fb8411407ce07958219f Try it in Eclair! I'm too curious
Have you tried on GT-I5801 or on GT-I5800? I can't understand what is going wrong/
DoR2 said:
Have you tried on GT-I5801 or on GT-I5800? I can't understand what is going wrong/
Click to expand...
Click to collapse
dude, both of them are exactly the same except the soft keys If it doesn't boot up, then it means he did something wrong...
Jason-EX said:
dude, both of them are exactly the same except the soft keys If it doesn't boot up, then it means he did something wrong...
Click to expand...
Click to collapse
Maybe you could try If you can't boot with this kernel than austin have done smth wrong
@dor2
Just chill guys... I will reupload it
@ Jason
I will check ur commit tonight and reply u... thanks for ur cooperation....
Due to errors. , am going to build a froyo kernel to make it ideal for ecliar work...
Plz be patient guys., am having only 2 days of free time.. I will try to sort out the problems
cm7 by marcellusbe
800mhz kernel
Hello, to keep track of all the kernel development I have created this thread.
I will be using it to get my builds tested.
Thread rules:
1. Only and only testers and people helping them will be replying here to keep this place clean.
2. Don't spam the thread by saying "thanks for your work" etc. If you appreciate content of any post just thank it.
Current status:
Compilation of Linux Kernel 3.4 in progress
Testers needed......
So, the kernel that i built also has the same problem - unresponsive.
So, here is what i recently thought and implemented.
Download: here
Download this zip and flash it through CWM or TWRP recovery. (unsigned zip)
What it contains:
Modified boot.img
My custom script - rc.insm4u , which will be placed in /system/bin/m4u/ folder.
Flashing the zip will do the placing and will set the permissions.
What i did:
Comparing the dmesg that i collected for my kernel and the one that people gave for Varun's kernel, I came to know that the file m4u.ko and vcodec_kernel_driver.ko failed to get initialized into the running kernel.
So, i just modified the init.rc to make it run a custom script at boot. The script contains the commands to initialize the modules into the kernel.
I believe it should work now..........if the error still exists, give a new logcat / dmesg..........
By this way we will be able to bye-pass the failed loading of the two modules.
If this works, it can be taken as a temporary / permanent fix to move on to other other problems - in case some exist.
Before i could try this mod, the phone went away from me (for 2 more days), although I tested my original build and it booted...........
Testers try this and reply !
Have u tried it
icoolguy1995 said:
Have u tried it
Click to expand...
Click to collapse
As said earlier, before i could try this mod, the phone went away from me (for 2 more days)..........you know, the phone wasn't bought for me, but for my brother........so testing need to be only after 2 days..............that why i need the help of testers.......
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
balamu96m said:
So, the kernel that i built also has the same problem - unresponsive.
So, here is what i recently thought and implemented.
Download: here
Download this zip and flash it through CWM or TWRP recovery. (unsigned zip)
What it contains:
Modified boot.img
My custom script - rc.insm4u , which will be placed in /system/bin/m4u/ folder.
Flashing the zip will do the placing and will set the permissions.
What i did:
Comparing the dmesg that i collected for my kernel and the one that people gave for Varun's kernel, I came to know that the file m4u.ko and vcodec_kernel_driver.ko failed to get initialized into the running kernel.
So, i just modified the init.rc to make it run a custom script at boot. The script contains the commands to initialize the modules into the kernel.
I believe it should work now..........if the error still exists, give a new logcat / dmesg..........
By this way we will be able to bye-pass the failed loading of the two modules.
If this works, it can be taken as a temporary / permanent fix to move on to other other problems - in case some exist.
Before i could try this mod, the phone went away from me (for 2 more days), although I tested my original build and it booted...........
Testers try this and reply !
Click to expand...
Click to collapse
You cannot bypass the module loading because the kernel is having missing symbols(registers)
I got the vcodec driver loaded by creating dummy symbols inside the kernel.
Will continue my work tomorrow for m4u.
What your script contains btw?
varun.chitre15 said:
You cannot bypass the module loading because the kernel is having missing symbols(registers)
I got the vcodec driver loaded by creating dummy symbols inside the kernel.
Will continue my work tomorrow for m4u.
What your script contains btw?
Click to expand...
Click to collapse
oh...ic..........i thought it would work bcoz while other modules loaded normally, and this script can just emulate the loading again, which can result in a successful insmod.
Still dunno whether this script can make it work...........if else, your method should be the key.
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
balamu96m said:
oh...ic..........i thought it would work bcoz while other modules loaded normally, and this script can just emulate the loading again, which can result in a successful insmod.
Still dunno whether this script can make it work...........if else, your method should be the key.
Click to expand...
Click to collapse
Others get loaded because their symbols match with the kernel. Insmoding ofcourse wont work since init does the same.
The vcodec/m4u sources are available here:
F*ck, need 10 posts to post outside links...
Search for "huawei mediatek" on github.. Then go to mediatek/source/kernel/drivers
Recompile those module, push them on your device.. Then you should be ready to have fun !
If it don't work, 2things to check.
1st -> if the header on the kernel side correspond to the driver source..
OR/AND
2nd -> we should use kdb to find which function cause thoses troubles..
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
aquila-dev said:
The vcodec/m4u sources are available here:
F*ck, need 10 posts to post outside links...
Search for "huawei mediatek sources" on github.. Then go to mediatek/source/kernel/drivers
Recompile those module, push them on your device.. Then you should be ready to have fun !
Click to expand...
Click to collapse
Excellent!
Thanks
Good news:
I have also got the GPU drivers and the missing sources!
Will get a fresh new build out in 1 hour
For who are searching for GPU sources.. go to the same repo, mediatek/platform/mt6577/kernel/drivers/gpu
@varun.chitre15.. Did you see the 3.8kernel changelog ? FSF should be very interresting for mt6577 custom rom/kernel.. I think the nand used by s9081 is manufactured by samsung... But not sure, anybody have some informations about that ?
aquila-dev said:
For who are searching for GPU sources.. go to the same repo, mediatek/platform/mt6577/kernel/drivers/gpu
@varun.chitre15.. Did you see the 3.8kernel changelog ? FSF should be very interresting for mt6577 custom rom/kernel.. I think the nand used by s9081 is manufactured by samsung... But not sure, anybody have some informations about that ?
Click to expand...
Click to collapse
Yep saw it.
Also I can see mediatek has become less stringent on its closed source strategy
No idea about the nand as no device with me to dug into proc
Though I will try to find it in sources
Someone test this build fast
I haven't fixed anything but reverted all the patches I made. Just to know I didn't miss anything
Check if it boots
http://www.androidfilehost.com/?fid=9390334956548391231
varun.chitre15 said:
Hello, to keep track of all the kernel development I have created this thread.
I will be using it to get my builds tested.
Thread rules:
1. Only and only testers and people helping them will be replying here to keep this place clean.
2. Don't spam the thread by saying "thanks for your work" etc. If you appreciate content of any post just thank it.
Current status:
Fixing of unresponsive display under process
Click to expand...
Click to collapse
I buddy im so excited, and wanna be part of the testing process...
As this thread is meant for testing, would please post brief instructions on how to test your kernal in the initial post itself, it would get more attention and your work will be easier...
Please keep the tutorial simple, so that number of testers will increase, please provide steps from flashing the kernal to getting the dmesg...
As if i know how to, here in my company i have fast internet, and i have so much of time, and i will be able to test everything instantaneously...
U R A Hero man...
sheshuvadrevu said:
I buddy im so excited, and wanna be part of the testing process...
As this thread is meant for testing, would please post brief instructions on how to test your kernal...
As if i know how to, here in my company i have fast internet, and i have so much of time, and i will be able to test everything instantaneously...
U R A Hero man...
Click to expand...
Click to collapse
Well yes
get to this post
http://forum.xda-developers.com/showpost.php?p=38548790&postcount=5704
Download the kernelflasher.zip, open it, replace the boot.img with the one I gave in above post and flash it on STOCK ICS ROM but CINK KING ROM will be better
varun.chitre15 said:
Well yes
get to this post
http://forum.xda-developers.com/showpost.php?p=38548790&postcount=5704
Download the kernelflasher.zip, open it, replace the boot.img with the one I gave in above post and flash it on STOCK ICS ROM but CINK KING ROM will be better
Click to expand...
Click to collapse
I am on stock ics rom v2...
flashed the kernalflasher and did the reboot... it stuck at boot loop
here is what i did...
kept the kernalflasher.zip and the boot.img in the external sd's root directory...
went to cwm
flashed kernalflasher.zip
did reboot...
Resut: stuck at initial screen i mean i may need to call it as logo, that micromax superfone canvas 2 logo repeats again and again...
Hope u understand...
---------- Post added at 11:10 AM ---------- Previous post was at 11:07 AM ----------
varun.chitre15 said:
Well yes
get to this post
http://forum.xda-developers.com/showpost.php?p=38548790&postcount=5704
Download the kernelflasher.zip, open it, replace the boot.img with the one I gave in above post and flash it on STOCK ICS ROM but CINK KING ROM will be better
Click to expand...
Click to collapse
Cink king rom, please give me the specific link, i will start downloading it...
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
sheshuvadrevu said:
I am on stock ics rom v2...
flashed the kernalflasher and did the reboot... it stuck at boot loop
here is what i did...
kept the kernalflasher.zip and the boot.img in the external sd's root directory...
went to cwm
flashed kernalflasher.zip
did reboot...
Resut: stuck at initial screen i mean i may need to call it as logo, that micromax superfone canvas 2 logo repeats again and again...
Hope u understand...
---------- Post added at 11:10 AM ---------- Previous post was at 11:07 AM ----------
Cink king rom, please give me the specific link, i will start downloading it...
Click to expand...
Click to collapse
u need to replace new boot.img from kernelflasher.zip boot.img dont extract zip just replace boot.img with new one and flash it with any recovery
Just Hit Thanks
sheshuvadrevu said:
I am on stock ics rom v2...
flashed the kernalflasher and did the reboot... it stuck at boot loop
here is what i did...
kept the kernalflasher.zip and the boot.img in the external sd's root directory...
went to cwm
flashed kernalflasher.zip
did reboot...
Resut: stuck at initial screen i mean i may need to call it as logo, that micromax superfone canvas 2 logo repeats again and again...
Hope u understand...
---------- Post added at 11:10 AM ---------- Previous post was at 11:07 AM ----------
Cink king rom, please give me the specific link, i will start downloading it...
Click to expand...
Click to collapse
Try flashing this
http://forum.xda-developers.com/showpost.php?p=38537424&postcount=5673
Don't replace the boot.img in this, flash it as it is.
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
sheshuvadrevu said:
I am on stock ics rom v2...
flashed the kernalflasher and did the reboot... it stuck at boot loop
here is what i did...
kept the kernalflasher.zip and the boot.img in the external sd's root directory...
went to cwm
flashed kernalflasher.zip
did reboot...
Resut: stuck at initial screen i mean i may need to call it as logo, that micromax superfone canvas 2 logo repeats again and again...
Hope u understand...
---------- Post added at 11:10 AM ---------- Previous post was at 11:07 AM ----------
Cink king rom, please give me the specific link, i will start downloading it...
Click to expand...
Click to collapse
U had to extract kernel flasher replace boot.img , repack and flash it not directly flash it
Sent from my unknown using xda app-developers app
Re: [WIP][Linux 3.0] Kernel Development | Testers only!
Wow.. at last development of kernel started :thumbup::thumbup:
Sent from my Micromax A110 using xda premium
..
Thanks, definitely useful for when I wipe and flash new roms.
..
..
..
..
SuperSU 1.60 is out
★ ROM: CarbonROM ★ KERNEL: Fancy Kernel ★ MODS: Exposed Framework 2.2 ★
Neeshers said:
Update SuperSU to 1.55 and Superuser (Koush) to 1.0.2.1
Click to expand...
Click to collapse
So useful.. because users need to re-root their device after installing a custom rom already rooted...
Come, use your brain... make something like an update.zip that flashes clockworkmod recovery then extract and ors script thats opens cwm and flashes the selected choice...
..
How does this behave with 4.3?
Sent from my Atrix HD using ProBAM rom and XDA 4 Premium
Neeshers said:
Updated SuperSU to 1.65
There's no need for the insults man, I mean, all I did was post a tool that I created for myself. I use Superuser 3.2 instead of 3.1.3 and sometimes switch between the two on occasion, so I made a simple aroma installer. Usually most of the roms I use have SuperSU on them which I don't prefer. It's just a matter of preference really. And, I don't know what the hell you're talking about with the cwm flashing. Every phone has a different cwm image so what you said just made no sense. As for an ors, there's basically no difference except for the fact that you can flash an aroma installer without even initiating android, so aroma is superior. I mean, it's still the same idea if I use ors instead of aroma. So why would it be useful in the case of an ors and useless in the case of an aroma installer?
Click to expand...
Click to collapse
I'm not trying to insult you, I'm simply enlightening you with a new idea!
Also I have offered to help you make my opinion possible, sorry if I offended you, so would you like to teamup?
---------- Post added at 04:34 PM ---------- Previous post was at 04:32 PM ----------
ricky310711 said:
I'm not trying to insult you, I'm simply enlightening you with a new idea!
Also I have offered to help you make my opinion possible, sorry if I offended you, so would you like to teamup?
Click to expand...
Click to collapse
Also yes correct, but wé can make a program that Pulls the correct imagw from server and pack into a .zip
..
Neeshers said:
Multiple Superuser Installer
As the title suggests, this is a tool that allows you to install the following superuser applications and corresponding su binaries to your choosing:
Superuser by ChainsDD
3.1.3: Current Stable (Market)
3.2: Latest RC
3.3: Compiled by craigacgomez from ChainsDD's source, mainly for 4.2+
SuperSU by Chainfire
1.65
Superuser by Koush
1.0.2.1
DOWNLOAD
The links just point to the files I used to create the tool (they too are flashable). If you want me to add any more applications to the tool, post your request on this thread and I'll be glad to.
Click to expand...
Click to collapse
Link says Koush is version 1.0.2.1. But I downloaded and checked and it is 1.0.2.2. Just FYI
******* Hi all ********I have developed this little tool containing a few utilities that should help anyone do a host of stuff like building Cyanogenmod..Compiling kernels..Play with ADB..GIt tools..etc
DARK_Multitool1.0
My tool is divided into five Modules(More to come in future if people find it useful)
Module 1 : CyanogenMod Tools
- Installing the necessary libraries for compiling Cyanogenmod
- Initializing your repository and getting the Cyanogenmod source code
- Getting prebuilt apps/Device proprietary blobs
- Building Cyanogenmod for your device
Module 2 : ADB tools
- Creating logcat to debug your phone
- Installing apps via ADB
- Push/Pull stuff to/from your android device
Module 3 : Kernel tools
-Sony Kernel
Unpack Kernel Source
Create zImage of various devices(any Xperia)
Extract kernel.sin from ftf file
Unpack kernel.sin(to get zImage and ramdisk)
Make dt.img(For Xperia Z1 and Z ultra)
Make kernel.elf or boot.img depending on device
Test your kernel.elf/boot.img without flashing fully(Test run)
-Nexus Kernel
Getting the source code
Checkout the source code
Building zImage
-Samsung kernel
(Is under development as i develop for Xperia devices and not too familiar with samsung atm)
-Download toolchains
-Unpack boot.img to get zImage and Ramdisk
pearl script unpack or umkbootimg unpack
-Unpack or Repack ramdisk
-Build zImage for a generic kernel(Experimental)
-Take kernel log : Thanks @ricky310711 for the commit
Module 4 : Backup TA partition for Sony or EFS partition on samsung
-Backup TA partition for Sony(By dd Method only)
-Backup or restore efs partition for Samsung(tar or dd method)
Module 5 : GIT tools
-Download GIT package on your linux
-Change directory where you want to initialize git
-Git repository setup(New git setup/Changes to old git setup)
-Update your local and remote git repository
-Commit your additions/deletions
-Push/Pull to/from your github repository
-Automatic push commits to your repository(After git setup is done)
-Download any repository using GIT
Download link
Dark_multitool1.0(With Update 1)
Update 2 added...Will upload soon..You can download this and update via tool to the latest version
Its better to download from XDA DevDB. You can either use the link above or click on downloads on top of the thread to download
How to install??
Download the tar.gz file from the link above..Place it in your home directory and run the following command in your terminal
tar -xjvf dark_multitool1.0.gz
How to run it??
cd to the folder dark_multitool1.0 and type ./menu in your terminal and execute
This tool is only for any linux based distro(Ubuntu,fedora etc) atm and i dont know if it will work in cygwin(Tested on Cygwin by kevinrus123 : Some utilities are working)
You can install vitualbox and install ubuntu or any other linux based distro to use the tool if you are running windows
Credits
-xda and its wonderful devs for teaching me everything
-Doomlord for his exceptional threads and tutorials on Xperia devices
-Rickwyatt and Rekoil for Ta partition backup tutorial for Xperia
-Google.com
If i have forgotten anyone then please let me know
Donations
Running a 512 mb laptop with a semi crashed hard disk.....So any kinds of donations are welcome if you like the tool
>Just donate to my email ID : [email protected]
>I am from India..so personal payment wont work
>Select buy me goods/services and it should work
>You can donate via tool as well.....
Sources
My github source : https://github.com/Smk1989/dark_multitool1.0
Mods : Please Move the thread if its in the inappropriate section
Updates
Latest update = Update 1
-I will keep the thread updated with the latest tool and you can also update the tool through the tool itself
FAQs in the second post
Changelogs in the third post
XDA:DevDB Information
[TOOL][ANDROID]Dark_Multitool-CyanogenMod building.kernel developMent.ADB tool..etc.., a Tool/Utility for the Android General
Contributors
Dark Wraith
Version Information
Status: Alpha
Created 2013-12-11
Last Updated 2014-01-03
FAQs
>Why is it giving errors while compiling zImage for Xperia devices????
Answer : You need to add the various makefile and defconfig fixes for the toolchain to work properly
Please refer to this excellent thread by doomlord for various fixes
http://forum.xda-developers.com/showthread.php?t=2447310
>TA partition and EFS partition backup doesn't work properly
Answer : Please remember to specify the memory block correctly. If you still get an error then please tell me the error so that i can check if the error is from the tool's end
>How to add a toolchain????
Answer : Add it under android_toolchains folder in your home directory
Open the tool and navigate to toolchain_selector script under scripts folder
Add the toolchain name and the correct path as given there in the following format
toolchain_name[the number after the last toolchain name]=
toolchain_path[the number after the last toolchain path] =
>How to clean your kernel or Cyanogenmod work directory?
Answer ; Navigate to the kernel or Cyanogenmod work directory and type in Terminal : make clean
I will incorporate this in the next release
>Download toolchains or update tool doesnt work
Answer : make sure you have the git package installed. You can install from the tool itself under GIT tools
>Libraries missing while compiling kernel or cyanogenmod build errors on 64 bit machine??
Answer : Download libraries from cyanogenmod import libraries option( I will incorporate this in the next release) and for 64 bit compile error type : BUILD_HOST_32bit=1(Fixed and added in update 1)
Bugs and Suggestions
Please let me know
Changelogs
Update 2
>Added Xperia J in the build list of the tool
>Added Take kernel log in kernel options..Thanks @ricky310711 for the commit
>Added dry run option for Sony
-Lets you test your kernel.elf/boot.img(In case the kernel doesnt boot up..just restart phone and try again)
Update 1
>Cm-11.0 branch added while initializing repo(thanks mithun shanoj for the commit)
>Added umkbootimg unpack method
>Added import libraries option
>Added BUILD_HOST_32BIT=1 for 64 bit machines
Last one
No one tried??
Sent from my Micromax A110 using xda app-developers app
Maybe I am blind but where do I get the download?
Download Link?
Dude where is the download link???
I had always been waiting for a tool like this one. Great job :good:
---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------
Dovidhalevi said:
Maybe I am blind but where do I get the download?
Click to expand...
Click to collapse
adityak74 said:
Dude where is the download link???
Click to expand...
Click to collapse
To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal
Well well well.:beer: cheers.
Dovidhalevi said:
Maybe I am blind but I'll alwhere do I get the download?
Click to expand...
Click to collapse
rhar**** said:
I had always been waiting for a tool like this one. Great job :good:
---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------
To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal
Click to expand...
Click to collapse
adityak74 said:
Dude where is the download link???
Click to expand...
Click to collapse
Guys see the download tab on top of the thread.. I'll also add a download link if u want
Edit: Added a download link to the post
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Sent from my Nexus 4 using Tapatalk
welcome to the world of kitchen creators goodjob!
Nice job man ?
Sent from my Nexus 7 using Tapatalk
Daniel_GT said:
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Dark Wraith said:
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..
i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Click to expand...
Click to collapse
actually i learnt alot by viewing the content of tools, viewing it in raw format and learning how things work.
it encouaged me to find a way to make a kitchen for windows users and noobs.
so i guess im the perfect example
Daniel_GT said:
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Click to expand...
Click to collapse
You have every right to express your opinion, but that being said, your post makes you sound like a real elitist, one who's upset that his elevated place in the exclusive club is about to be disrupted by those "filthy ruffians" who didn't earn their developer's chops by clawing their way up from the gutter. In my opinion, anything that brings in more developers to the community is a good thing. Sure, there are going to be plenty who use this tool as a shortcut to doing any hard work, but there are going to be those who use it as a starting point to further their knowledge of ROM building and modifying. Everyone needs a place to start, after all, but implying they'll never be "one of the boys" without beating their head bloody against a desk isn't at all helpful. Dark Wraith should be commended for creating a tool that will help bring new blood into the community.
Dark Wraith said:
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Click to expand...
Click to collapse
That's one side of the argument, if you re-read the first several pages of @championswimmer's kernel kitchen thread you'll be reminded just how strongly some people feel about this... I'm not in either camp by the way.
My point is that xda is not what it was, if we continue to post toolkits here it will only dilute the pool of serious development further. You just have to dive into an official CM Dev thread (N4 is a good example) at any point and browse, say, 25 pages to see exactly what I'm talking about...
For every one person that takes your tool, pulls it to bits to figure out how it works and goes on to do their own original work and contribute back, I feel sure that there'd be many more that just go ahead without any real understanding of what they're doing, expecting you and I to bail them out when it goes wrong... I hope that's overly cynical but, ironically, from evidence I don't think that is.
Your toolkit might have a place, and again all credit to you for putting it together. Personally I believe it's more hand holding (even more so than ROM or kernel kitchen) which ultimately helps no one.
Sent from my Nexus 4 using Tapatalk
hey dude., i have a question
* (my device doesn't support CM) can i use this tool for building CM for my device?
Thanksssss
Good stuff
Sent from my Nexus 5 using Tapatalk
Marsealdelo said:
hey dude., i have a question
* (my device doesn't support CM) can i use this tool for building CM for my device?
Thanksssss
Click to expand...
Click to collapse
no bro..its not about support. Cm11 can run on ur device and you can build for it provided that you have the kernel source of your device available..For officially supported devices you will have the kernel source in cyanogenmod repository. For a device with no kernel source you cannot build cyanogenmod. What you are talking about is cyanogenmod porting to an unsupported device. Take a look around in cyanogenmod's wiki. I might add porting options in the tool in future but atm you can build only for offcially supported devices
This module will disable system write protection on the stock HTC One SV kernel.
To make /system writeable, you must install the module and then remount /system as rw.
For example:
insmod /system/lib/modules/wp_mod.ko
mount -o remount,rw /system
Click to expand...
Click to collapse
You can make an init.d script to load it, or add it to the boot.img. Either way will work, but it's important that this is loaded at boot, as attempting to make changes to /system and then installing this module could corrupt the partition.
This is mainly for devs, who are free to incorporate it into their ROMs.
Unless you are an advanced user, I would wait for it to be included in your favourite ROM.
A credit and a link here so people can thank me in the OP would be much appreciated.
Download:
wp_mod_3.4.10-g6d8dbef.ko
NOTES:
- This is freshly compiled from HTC One (m7) source code for our device.
- Don't say it's not working if you have different kernel name.
- If you want it for your kernel name, give me it and I will make one for you.
Credits: @flar2 for source code
xpirt
Its not tested? Hmm, I am one for testing stuff, but a recommendation would be to test it on your device before presenting it to others and taking the chance of something going wrong for them. Otherwise, just dancing on a thin line.
For example, my Rom port... russellvone knew in advance that I was going to start on it. However, I refused to present it to others until I was confident there would be no harm. Last thing I want is to be responsible for someone else's device because I didn't care to see to them for myself.
Anyways, my point is that I recommend you test this (with responsibility) and then present it to the masses with the updates on what you are aware of in regards to your findings and/or experience.
Maybe it is just me, but that's how I do things.
Not stirring up anything. Just making an opinionated recommendation is all.
--- Happy Hunting!
Sent from my K2_CL using Tapatalk
Hehe I think you are in the wrong place because seems you don't know what is a module.
A module it's very different from a Rom or a kernel. This will not break anything in your phone, it's just a module. If it doesn't work you cannot remove files from system like always, if it works the system is writeable.
How you can see the thread it's in General section, too. If it was in Development section was another thing. I know how to post things, I think I have enough experience on xda.
And of course I test things, but didn't have time to test this, if someone doesn't test it until I have some time I will test it.
Plus I think flar2's module is very useful for people uses stock kernel, if you don't need it just ignore the thread
Oh don't think I'm rude, this is how I speak with all people
xpirt
No worries bro. Just gave my two cents. A means of good practice when generally speaking
Sent from my K2_CL using Tapatalk
Ok. As hTC made some new protections, I didn't want to continue hex-editing as also source code is out, so I compiled from source and I got it working at first! It will be moved to Development Section as soon as mods are free.
So.. updated link on OP! If you people want one for your kernel name, write it here and I will make it for you too.
Enjoy!
xpirt
I just hex edited the kernel version no problem.
Sent from my K2_CL using Tapatalk
Modding.MyMind said:
I just hex edited the kernel version no problem.
Sent from my K2_CL using Tapatalk
Click to expand...
Click to collapse
It works fine? Btw you can post it here if you want so it will be useful for people who have your kernel name.
xpirt
Works fine, but I have no use for it. Just wanted to try it out lol. I'm running on stock boot, stock kernel, etc, etc, but I still have write permission in /system. For example, I can edit the build.prop file right from its location and they stick after reboot. In addition I took the lines from the default.prop file and added them to the build.prop which now allows me to edit the default.prop but I'm still looking at how to keep the changes in the default.prop after reboot. If I can get that, then my accomplishments are complete lol. Anyways, I don't have my pc on me at the moment but I will hopefully upload it soon. May be after the holidays.
Sent from my K2_CL using Tapatalk
---------- Post added at 12:15 PM ---------- Previous post was at 12:12 PM ----------
If someone doesn't want to wait on me, just hex edit the kernel version and it will work . Pretty simple actually.
Sent from my K2_CL using Tapatalk
Exactly but pay attention to don't remove and rewrite the numbers but replace them only
xpirt
Tutorial please
A tutorial would be nice...
My device is still on S-on.. What fastboot commands do I use?
Do I just fastboot this-
insmod /system/lib/modules/wp_mod.ko
mount -o remount,rw /system ???
Hello
HTC OneSV Android: 4.1.2 kernel: 3.4.10-gf43d146
Please send me "wp_mod.ko" kernel module, thank you.
3.4.10-g47d5073 ?
xpirt said:
- If you want it for your kernel name, give me it and I will make one for you.
Click to expand...
Click to collapse
Could You do this for k2ul kernel-3.4.10-g47d5073?
Thank you in advance.