Kernel :') Extra Modules ? - Sony Xperia L

Q. How to use extra modules provided
Best way is to use init.d script to load them on boot.
e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code
Code:
#!/system/bin/sh
insmod /system/lib/modules/ntfs.ko
Next you need to give that file all permissions and reboot the phone and you are done!
P.S: Loading external modules affects battery life of the phone.
I can't understand it please help me (can't file, can't execute, directory bla bla bla) Help
:crying:

ChakiSan said:
Q. How to use extra modules provided
Best way is to use init.d script to load them on boot.
e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code
Code:
#!/system/bin/sh
insmod /system/lib/modules/ntfs.ko
Next you need to give that file all permissions and reboot the phone and you are done!
P.S: Loading external modules affects battery life of the phone.
I can't understand it please help me (can't file, can't execute, directory bla bla bla) Help
:crying:
Click to expand...
Click to collapse
Why you want a extra module?
For init.d scripts to work the kernel must support it...
Sent from my C2105 using XDA Free mobile app

SdtBarbarossa said:
Why you want a extra module?
For init.d scripts to work the kernel must support it...
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Idk it just...
so thunderzap not support it ?

ChakiSan said:
Idk it just...
so thunderzap not support it ?
Click to expand...
Click to collapse
TZ supports it... But on TZ4.16 you have to activate it before
Sent from my C2105 using XDA Free mobile app

SdtBarbarossa said:
TZ supports it... But on TZ4.16 you have to activate it before
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
how to activate it ?:crying:

ChakiSan said:
how to activate it ?:crying:
Click to expand...
Click to collapse
Man just tell me what you want ... Then i will explain
Sent from my C2105 using XDA Free mobile app

SdtBarbarossa said:
Man just tell me what you want ... Then i will explain
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
-> e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code <-
where is ntfs.ko ? i dont have it.
and -> "Then you need to create an init.d script in /system/etc/init.d with any name say 99modules"

ChakiSan said:
-> e.g If you want to use the NTFS file system module. You have to first place the ntfs.ko module provided in /system/lib/modules. Then you need to create an init.d script in /system/etc/init.d with any name say 99modules with following code <-
where is ntfs.ko ? i dont have it.
and -> "Then you need to create an init.d script in /system/etc/init.d with any name say 99modules"
Click to expand...
Click to collapse
Ntfs.ko is a kernel module you have to compile ...
Sent from my C2105 using XDA Free mobile app

SdtBarbarossa said:
Ntfs.ko is a kernel module you have to compile ...
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
how to compile ?

ChakiSan said:
how to compile ?
Click to expand...
Click to collapse
Ah come on... Please google... Google for a already compiled ntfs.ko ....
Sent from my C2105 using XDA Free mobile app

Related

[TOOLS][HOW-TO] One Click Scripts to Pack/Unpack boot.img

This is for all ROM cooks, Kernel devs or anyone who wants to make quick changes to the Kernel or ramdisk without wasting much time!
I made or rather put together some scripts for-
All this happens in just one click
Unpack boot.img
Repack boot.img
Make CWM flashable signed zip
Its very easy to use. Download the tools (At the end of the post)
Extract them..
In the root of the extracted files place the boot.img you wanna mod.
Then,
To unpack the Kernel-
Code:
./extract.sh
Your zImage will be in kernel/zImage
Your ramdisk will be in ramdisk folder (unpacked)
Make the necessary changes.. whatever you wish.
Then to pack up everything and get output as boot.img , run.
Code:
./pack_boot.sh
Your repacked boot.img will be in out/boot.img
OR.
If you want a CWM Flashable zip,
Code:
./pack_cwm.sh
The flashable zip will be out/GT-I9103_KERNEL.zip
Easy eh? :laugh:
DOWNLOAD
On a side note,
What in contains:
My scripts
mkbootimg, unpackbootimg and mkbootfs binaries (Compiled from latest CM Source)
signapk.jar and necessary files (To Sign Zip file)
Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?
Thanx!!
Tapatalked from my Galaxy R GT-I9103 using XDA Premium App
I don't go to sleep until I utilize my quota of 8 thanx a day!
The-Droidster said:
Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?
Thanx!!
Tapatalked from my Galaxy R GT-I9103 using XDA Premium App
I don't go to sleep until I utilize my quota of 8 thanx a day!
Click to expand...
Click to collapse
Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh
Adi_Pat said:
Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh
Click to expand...
Click to collapse
code is..?
sagitta5499 said:
code is..?
Click to expand...
Click to collapse
Make changes in source code.
Man really a dev. Gr8 tool
yajnab said:
Man really a dev. Gr8 tool
Click to expand...
Click to collapse
You can use it for your fit too. Simply change base address. Or may even work as it is. Password for zip is galaxyrrocks
Sent from my GT-I9003 using xda premium
Adi_Pat said:
You can use it for your fit too. Simply change base address. Or may even work as it is. Password for zip is galaxyrrocks
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
password which
Serp87 said:
password which
Click to expand...
Click to collapse
password =
Code:
galaxyrrocks
Cheers !
Would this work on galaxy note n7000 stock kernels if zImage were renamed to boot.img?
Sent from my GT-N7000 using xda app-developers app
shoey63 said:
Would this work on galaxy note n7000 stock kernels if zImage were renamed to boot.img?
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
For N7000 you can use these tools since its a zImage Kernel and not kernel+ramdisk like GalaxyR.
https://github.com/xiaolu/galaxys2_kernel_repack
Thanks for the link :thumbup:
Sent from my GT-N7000 using xda app-developers app
Can you post a download that doesnt have locked files. Password doesnt work..
MikeC84 said:
Can you post a download that doesnt have locked files. Password doesnt work..
Click to expand...
Click to collapse
Attached!
Does this work with Micromax A110 mtk6570 chips
shubhdeep99 said:
Does this work with Micromax A110 mtk6570 chips
Click to expand...
Click to collapse
NO buddy it wont.
It works if it uses the same boot.img format (I mean there are e.g. Sony devices that has some different kernel image structure.).
Sent from my GT-I9103
Adam77Root said:
It works if it uses the same boot.img format (I mean there are e.g. Sony devices that has some different kernel image structure.).
Sent from my GT-I9103
Click to expand...
Click to collapse
My friend has it buddy bt its like samsung grand splash in water. Also about the kernel, if u said then i will test it in my friend's mobile. Will it brick it if wont load that kernel??
Sent from my GT-I9103 using Tapatalk HD
Buddy, just check if you can unpack and repack. No need to load it on to the device. Faulty kernel can really brick the device.
The-Droidster said:
Buddy, just check if you can unpack and repack. No need to load it on to the device. Faulty kernel can really brick the device.
Click to expand...
Click to collapse
can u explain how to unpack or repack it..?? a n00b question from RN..??

[Q] init.d - Please help!

Refer to this thread.. http://forum.xda-developers.com/showthread.php?t=1999799&nocache=1
i fail to create init.d.. can someone please teach me step by step..
Thanks..can't reply to that thread coz my post below 10
Sorry my bad english
For init.d support try this http://forum.xda-developers.com/showthread.php?t=1973099 or search xda there is few mods to enable init d
drummer1839 said:
For init.d support try this http://forum.xda-developers.com/showthread.php?t=1973099 or search xda there is few mods to enable init d
Click to expand...
Click to collapse
I used this method but the zip won't flash i had to edit it to flash to my xperia j
http://forum.xda-developers.com/showthread.php?t=1933849 for me it worked install busybox then this apk open it and push activate button and thats it
Thanks! Succes create init.d using apk file. Now next step to install kuro tweak. Hope everything going fine. Thanks again!
Sent from my ST26a using xda premium
init.d can also be added via Pimp my Rom app from play store

[Q] Linking sd-ext/dalvik-cache to /data/dalvik-cache error in m2sd

Hi, can someone help me please. M2SD cannot link sd-ext/dalvik cache to data/dalvik-cache. What seems to be the problem?
Specs:
HTC Explorer
JaggyRom4.1
Probably no space in /data
Use diskusage app to determine whether you have enough space.
There should be log in /data /m2sd...
Post it here.
If you're using mount2SD app, enable debug in app and post log screenshots Good bye :thumbup:
Sent from my HTC Explorer A310e using xda app-developers app
Mention what ROM are you using? And check if its supports memory script.. i.e. busybox & init.d??
And in case, it doesn't support then you cannot use any mem script...
So, tell what ROM it is. Then we may find the actual reason... and then the solution..
Press THANKS if it helped!!:good:
darkhorse08 said:
Hi, can someone help me please. M2SD cannot link sd-ext/dalvik cache to data/dalvik-cache. What seems to be the problem?
Specs:
HTC Explorer
JaggyRom4.1
Click to expand...
Click to collapse
Go to terminal emulator and type in
su
m2sd rmount enable
reboot
:good:
All your apps will now be installed to your sd-ext!!
PRESS THANKS IF YOU FOUND THIS USEFUL!!
Screenshots
ptcpayme said:
Probably no space in /data
Use diskusage app to determine whether you have enough space.
There should be log in /data /m2sd...
Post it here.
If you're using mount2SD app, enable debug in app and post log screenshots Good bye :thumbup:
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Hi!
Thank you for the reply. Please see the screenshots below. Hope these can help to find the problem.
suddenlyInvincible said:
Mention what ROM are you using? And check if its supports memory script.. i.e. busybox & init.d??
And in case, it doesn't support then you cannot use any mem script...
So, tell what ROM it is. Then we may find the actual reason... and then the solution..
Press THANKS if it helped!!:good:
Click to expand...
Click to collapse
Hi!
ROM is JaggyROM 4.1 Busybox was successfully configured as well as the init.d startup script is installed and up to date. Hope that helps. Thanks
salil.bajaj said:
Go to terminal emulator and type in
su
m2sd rmount enable
reboot
:good:
All your apps will now be installed to your sd-ext!!
PRESS THANKS IF YOU FOUND THIS USEFUL!!
Click to expand...
Click to collapse
Hi,
Will try this. Also you can refer to the screenshots I uploaded from a reply in this thread.
M2sd log.txt
ptcpayme said:
Probably no space in /data
Use diskusage app to determine whether you have enough space.
There should be log in /data /m2sd...
Post it here.
If you're using mount2SD app, enable debug in app and post log screenshots Good bye :thumbup:
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Hi, Im also attaching the log txt from m2sd. Hope you can use this determine the problem. Dire need of you help
darkhorse08 said:
Hi, Im also attaching the log txt from m2sd. Hope you can use this determine the problem. Dire need of you help
Click to expand...
Click to collapse
have you resolve the problem ? I am in the same situation .
Use m2sd(no config needed)
Just flash it and reboot twice
http://forum.xda-developers.com/showthread.php?p=32690721
Sent from my HTC Explorer using xda app-developers app
darkhorse08 said:
Hi, Im also attaching the log txt from m2sd. Hope you can use this determine the problem. Dire need of you help
Click to expand...
Click to collapse
Sorry for the late reply.. but I think jaggy Rom already has a mount2SD script.. so you may not be able to use mount2SD again
After fresh install, delete all file's in /etc /init.d.. and then install mount2SD. May help
Also simple wiping cache and dalvik cache from recovery will help
Sent from my HTC Explorer A310e using xda app-developers app
BANNED said:
Sorry for the late reply.. but I think jaggy Rom already has a mount2SD script.. so you may not be able to use mount2SD again
After fresh install, delete all file's in /etc /init.d.. and then install mount2SD. May help
Also simple wiping cache and dalvik cache from recovery will help
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
I think just flashing the m2sd(no config needed ) solve the problem because it clears all other scripts before it setting the memory script
So just flash it and reboot twice
I m telling bcoz it worked for me
Sent from my HTC Explorer using xda app-developers app
I have a problem, flash zip to recovery with aroma installer, not finish error code 2.
What problem?

[Q] what is init.d?

how to know wherether init.d is install on galaxy y..anyone can help me??
wanyakuza said:
how to know wherether init.d is install on galaxy y..anyone can help me??
Click to expand...
Click to collapse
Init.d are scripts that can run on boot. You can create your own Init.d script also. There are several tutorials on xda for that search it. And to use it first you muse check whether Init.d is enabled in your rom
To check that use universal Init.d enabler app from playstore and check it if it is not enabled enable it using the same app
Sent from my GT-I9070 using Tapatalk
PradeepMurugan said:
Init.d are scripts that can run on boot. You can create your own Init.d script also. There are several tutorials on xda for that search it. And to use it first you muse check whether Init.d is enabled in your rom
To check that use universal Init.d enabler app from playstore and check it if it is not enabled enable it using the same app
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
so , if i want to install v6 supercharger..thai it required init.d??
wanyakuza said:
so , if i want to install v6 supercharger..thai it required init.d??
Click to expand...
Click to collapse
The last time i used a supercharger script it used init.d for some functions. So probably you want to have init.d enabled. If i'm right some functions were also wrapped in a service so if you don't have init.d you could install the service to gain some functionality.
Qaatloz said:
The last time i used a supercharger script it used init.d for some functions. So probably you want to have init.d enabled. If i'm right some functions were also wrapped in a service so if you don't have init.d you could install the service to gain some functionality.
Click to expand...
Click to collapse
ouh..urm but why when i press enter my keyboard does not work??

[Help]Packing ramdisk

Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
AlphaBeta said:
Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
Click to expand...
Click to collapse
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
I tried using android kitchen but the cpio doesnot get properly built and thus kernel doesnot boot :/
And i get the cpio but i need to open it up as i have to do some changes in it
So if you could just pack the cpio file only maybe ?
Sent from my C2104 using XDA Free mobile app
SdtBarbarossa said:
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
ok send me....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok send me....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
EDIT:
Here are the files i have edited basically
init.rc and init.environ.rc
if you find it easier you can also replace both the files in any kk kernel
http://d-h.st/m6ix
http://d-h.st/Tb0j
see whatever suits you better or is easier for you
thankyou
AlphaBeta said:
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
Click to expand...
Click to collapse
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
AlphaBeta said:
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
Click to expand...
Click to collapse
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
sure and thankyou
btw the specific changes in the files are
add this to end of init.rc
Code:
#service for shelld
service shelld /system/xbin/shelld
class main
#service for su
service su_daemon /system/xbin/su --daemon
class main
oneshot
service lbesec /system/xbin/lbesec
class main
oneshot
and change this line in init.environ.rc
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/telephony-msim.jar:/system/framework/qcmediaplayer.jar:/data/app/com.miui.sdk-1.apk:/data/app/com.miui.sdk-2.apk:/system/app/miui.apk:/data/app/com.miui.framework-1.apk:/data/app/com.miui.framework-2.apk:/system/app/MiuiFramework.apk
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
AlphaBeta said:
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
Click to expand...
Click to collapse
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
AlphaBeta said:
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
Click to expand...
Click to collapse
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
SdtBarbarossa said:
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
Click to expand...
Click to collapse
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well you din't pack it correctly
firstly ramdisk.cpio need not contain sbin and other folders
it should only have ramdisk folder contents
and the ramdisk folder directory should also not be present
see the image attached
ramdisk.cpio should just have the contents of ramdisk folder only
not even the directory
so that as soon we open the cpio file
we get all that is shown in image
the link i gave you move inside sbin/ramdisk/
now pack all the content present here in ramdisk.cpio not the rest
just use that ramdisk folder
here use this link
extract it and it will contain just the ramdisk folder
now put the files in the ramdisk folder in cpio file
http://d-h.st/qNKV

Categories

Resources