[Q] Developers-Related question - Sony Ericsson Xperia Neo, Pro

Hi,
Im developing my kernel for Neo V. And after three days of soft bricking my neo v, i unbricked it with success to know and understand fully how flashtool works.
I have started sourcing and building but am still unsure of many things. Firstly, after building the kernel, may i ask how to build to boot.img? I dont seem to find a universal ramdisk source code but anyways it will be based on ICS. Please help if you know. Also, please preach me on making the boot.img work as it has failed me before in my previous works ive done privately.
Sent from my GT-I9100 using Tapatalk 2

Toolchain also
Sent from my GT-I9100 using Tapatalk 2

Tried searching for guides?on how to proceed further?
Sent from my MT11i using xda premium

brunomars said:
Hi,
Im developing my kernel for Neo V. And after three days of soft bricking my neo v, i unbricked it with success to know and understand fully how flashtool works.
I have started sourcing and building but am still unsure of many things. Firstly, after building the kernel, may i ask how to build to boot.img? I dont seem to find a universal ramdisk source code but anyways it will be based on ICS. Please help if you know. Also, please preach me on making the boot.img work as it has failed me before in my previous works ive done privately.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
This might help you mate http://forum.xda-developers.com/showthread.php?t=1748297

Not these! i need to inject my zImage into the boot.img. doesent work even if i try. just does not flash. flashtool keeps failing.

brunomars said:
Not these! i need to inject my zImage into the boot.img. doesent work even if i try. just does not flash. flashtool keeps failing.
Click to expand...
Click to collapse
there is a bug in the semc S1 bootloader... sometimes if the boot.img isnt of a correct size then the device will not boot... the workaround is to add a "filler" file (which is say 512KB file with junk data) to the ramdisk so as to increase the size of the final boot.img file...
Sent from my MT11i using xda premium

Ghostfreak NB said:
there is a bug in the semc S1 bootloader... sometimes if the boot.img isnt of a correct size then the device will not boot... the workaround is to add a "filler" file (which is say 512KB file with junk data) to the ramdisk so as to increase the size of the final boot.img file...
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Shall add CWM
Sent from my GT-I9100 using Tapatalk 2

Almost every custom kernel includes a recovery!
So you should as well do it!
Just my suggestion
Sent from my MT11i using xda premium

Check it out its out

Related

[KERNEL][PLAY][CDMA R800x][Stock 2.3.3 Rom] Stock with Overclock 1.6GHz

What is this:
This is the Verizon Xperia Play R800x Stock Kernel for 2.3.3 WITH OVERCLOCK TO 1.6GHz.
What works:
Absolutely EVERYTHING!
What doesn't work:
You tell me.
Who deserves credit:
KeiranFTW <-- This Guy
and all our other developers which always have helpful info when I google something!
Story:
KeiranFTW made this: http://forum.xda-developers.com/showthread.php?t=1400127
but WiFi was broken for R800x.
So I fixed it!
How? Used his kernel with stock ramdisk.
How to use:
1. Download file attached to this post: r800x-stock-overclock.img
2. You must have unlocked bootloader.
3. using fastboot type in the following command:
Code:
fastboot -i 0x0fce flash boot r800x-stock-overclock.img
4. This will not erase your data.
5. This has only been tested on R800x with stock 2.3.3.
Note:
The original kernel had recovery added (by pressing back button on boot), this one does not have that recovery.
You can use this recovery instead: https://play.google.com/store/apps/details?id=com.pvy.CWMinstaler, after installing press VOLUME DOWN after bot to enter recovery.
RESERVED
Great job! Any chance of getting the recovery back in the kernel tho? Either way, again, great job!
Bravo good sir, bravo, keep up the good work!
Pax
zektor said:
Great job! Any chance of getting the recovery back in the kernel tho? Either way, again, great job!
Click to expand...
Click to collapse
Sorry, probably not ... is there anything that the recovery in kernel does that the one that gets installed with the app doesn't?
Sent from my R800x using XDA
hatcyl said:
Sorry, probably not ... is there anything that the recovery in kernel does that the one that gets installed with the app doesn't?
Sent from my R800x using XDA
Click to expand...
Click to collapse
It's kinda nice having it in the ramdisk, because then you never have to worry about it (because it works on boot, no matter what )
paxChristos said:
It's kinda nice having it in the ramdisk, because then you never have to worry about it (because it works on boot, no matter what )
Click to expand...
Click to collapse
I see, that makes sense ... If you flash a custom ROM and it goes wrong you'll have to get back to a PC to fix it if you don't have recovery in the kernel.
Ok, I can try ... But I've never done that before so any pointers would be great.
Sent from my R800x using XDA
hatcyl said:
I see, that makes sense ... If you flash a custom ROM and it goes wrong you'll have to get back to a PC to fix it if you don't have recovery in the kernel.
Ok, I can try ... But I've never done that before so any pointers would be great.
Sent from my R800x using XDA
Click to expand...
Click to collapse
Just split DooMKernel CDMA boot.img into zImage and ramdisk and kindly use his ram disk
Sent from my Dark R800i using Tapatalk 2
KeiranFTW said:
Just split DooMKernel CDMA boot.img into zImage and ramdisk and kindly use his ram disk
Sent from my Dark R800i using Tapatalk 2
Click to expand...
Click to collapse
Doesn't using dooms ramdisk break wifi when coming from another kernel?
Sent from my phone, please excuse any Swypos.
paxChristos said:
Doesn't using dooms ramdisk break wifi when coming from another kernel?
Sent from my phone, please excuse any Swypos.
Click to expand...
Click to collapse
No, it shouldn't, if you remove his WiFi modules
Sent from my Dark R800i using Tapatalk 2
paxChristos said:
Doesn't using dooms ramdisk break wifi when coming from another kernel?
Sent from my phone, please excuse any Swypos.
Click to expand...
Click to collapse
That is what I was thinking ... We would be back at square one.
For learning purposes I will go in there and figure out what they change to get recovery on the kernel ... If I can add just that to the ramdisk then it shouldn't break WiFi.
Sent from my R800x using XDA
hatcyl said:
That is what I was thinking ... We would be back at square one.
For learning purposes I will go in there and figure out what they change to get recovery on the kernel ... If I can add just that to the ramdisk then it shouldn't break WiFi.
Sent from my R800x using XDA
Click to expand...
Click to collapse
As far as I know you need to faf around with busy box, put recovery executable, make bootrec script, make bootrec script run...
Its all annoying v/
Sent from my Dark R800i using Tapatalk 2
KeiranFTW said:
As far as I know you need to faf around with busy box, put recovery executable, make bootrec script, make bootrec script run...
Its all annoying v/
Sent from my Dark R800i using Tapatalk 2
Click to expand...
Click to collapse
Wow, sound like a pain :sly:
Thanks for the info ... I'll see how far I can get ... It's going to be hard considering I'm still getting used to using Linux.
Sent from my R800x using XDA
hatcyl said:
Wow, sound like a pain :sly:
Thanks for the info ... I'll see how far I can get ... It's going to be hard considering I'm still getting used to using Linux.
Sent from my R800x using XDA
Click to expand...
Click to collapse
You will get addicted to Linux, I can't stand windows on my laptop, its too slow.
Sent from my Dark R800i using Tapatalk 2
KeiranFTW said:
You will get addicted to Linux, I can't stand windows on my laptop, its too slow.
Sent from my Dark R800i using Tapatalk 2
Click to expand...
Click to collapse
Yupp, I can't stand windows anymore either
Sent from my phone, please excuse any Swypos.
paxChristos said:
Yupp, I can't stand windows anymore either
Sent from my phone, please excuse any Swypos.
Click to expand...
Click to collapse
I've always wanted to try Linux, but I've got a Dell Dimension E510 with an integrated sound card that uses special software to enable surround sound. Gotta have my surround for Netflix, ya know!
hatcyl said:
Sorry, probably not ... is there anything that the recovery in kernel does that the one that gets installed with the app doesn't?
Sent from my R800x using XDA
Click to expand...
Click to collapse
Well, yeah. If the /system directory is wiped you essentially wipe the recovery.img that the app installs, whereas the recovery would still be available (when inside the kernel) provided the boot partition is still there
zektor said:
Well, yeah. If the /system directory is wiped you essentially wipe the recovery.img that the app installs, whereas the recovery would still be available (when inside the kernel) provided the boot partition is still there
Click to expand...
Click to collapse
Yeah, I made that connection on post 7.
But yeah, that is an extremely good reason to out recovery in the kernel.
I'll try, but no promises!
Sent from my R800x using XDA
hatcyl said:
Yeah, I made that connection on post 7.
But yeah, that is an extremely good reason to out recovery in the kernel.
I'll try, but no promises!
Sent from my R800x using XDA
Click to expand...
Click to collapse
If anyone is still following, I haven't even used my personal computer since the last post.
So the kernel with recovery probably won't happen at all.
Sorry guys!
Sent from my R800x using XDA
hatcyl said:
If anyone is still following, I haven't even used my personal computer since the last post.
So the kernel with recovery probably won't happen at all.
Sorry guys!
Sent from my R800x using XDA
Click to expand...
Click to collapse
Is anyone still interested in this? I am...... never really cared for ICS as I game too much and have been having consant issues with DoomKernel and wifi constantly dropping, looking for alternative Kernels.....

Can I flash Kernel using CWM?

I see a lot of video flashing Kernel using CWM on Youtube, but i don't see no body in this forum do it, only flash Kernel using Flashtool..
Sure can, just download it as a zip
Does Cwm support the galaxy s3?
Sent from my SGH-T999 using xda app-developers app
el_easy said:
I see a lot of video flashing Kernel using CWM on Youtube, but i don't see no body in this forum do it, only flash Kernel using Flashtool..
Click to expand...
Click to collapse
It depends on your phone model. Because you mentioned flashtool I'm assuming you have an Xperia device. You can't flash kernels from cwm.
Sent from my E15i using xda premium
NIMBAH said:
It depends on your phone model. Because you mentioned flashtool I'm assuming you have an Xperia device. You can't flash kernels from cwm.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Yes, I have Xperia device WT19I, so my only option is using flashtool right?... Thanks for the info, I didn't know that.
Or direct fastbiit, but flash tool is much easier
Sent from my cm_tenderloin using XDA Premium HD app
I have a rooted locked bootloader device. can i flash kernal ??
boazm said:
Does Cwm support the galaxy s3?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Yes it does look at this link here:
www.androidauthority.com/galaxy-s3-sgh-t999-t-mobile-clockworkmod-recovery-99303/
Sent from my SCH-I535 using xda premium
faru123 said:
I have a rooted locked bootloader device. can i flash kernal ??
Click to expand...
Click to collapse
No you can't flash a kernel with a locked bootloader except in a few rare cases. What device do you have?
Sent from my SCH-I535 using xda premium
What do you mean by "download them as a zip"is there any way to add kernelxxx.img file into a flashable zip file?
does this flashing via CWM ban apply for unlocked boot loaders? im using a Xperia arc s LT18i
DroidR2 said:
does this flashing via CWM ban apply for unlocked boot loaders? im using a Xperia arc s LT18i
Click to expand...
Click to collapse
You can't use cwm on any xperia device that I know of, locked or unlocked.
Sent from my GT-I9000 using xda premium
I can flash kernel for my SK17i via CWM? And i where can download. (Sorry for my bad english. )
kovacslaszlo13 said:
I can flash kernel for my SK17i via CWM? And i where can download. (Sorry for my bad english. )
Click to expand...
Click to collapse
NIMBAH said:
You can't use cwm on any xperia device that I know of, locked or unlocked. Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
The post above answered your question and the answer is NO.
OK and thanks.
Thank you very much for the information
Hello everybody,
Please bear with me a little and if you would like to answer, please give as much details as possible.
I have and Xperia Acro S, with unlocked boot loader running a custom rom with stock kernel 4.0.4, and I have root access, and CWM installed.
I am trying to install a cyanogen based rom, with a custom kernel obviously.
I have downloaded a zip file which contains a boot.img file.
The developer asked to flash the boot.img using flashtool first, then to flash the rom with cwm. And here's my question(s)
As I understood, this boot.img contains the kernel, do I need to use flashtool if I already have CWM installed, or would CWM install the kernel also?
And let's say i extracted the boot.img from the zip file and flashed it, wouldn't this remove CWM from the phone?
And then, should the boot.img stay inside the zip file while flashing it with CWM later? or should i remove it because CWM can't flash boot.img?
I have successfully installed cyanogen roms on nexus s, with CWM alone, and the phone booted normally, and I suppose it replaced the kernel correctly, or it didn't?
And please if you could explain what exactly this boot.img is, and how is it different from a normal kernel file inside the zip, does it also contain a recovery? you get my point.
Thanks for reading so far, and thanks in advance for any answers.
i have xperia tipo and when i go to flash vengeance kernel with flashtool says:you need to be root and e.g.
i have unlocked bootloader and rooted phone!!!!!!!!please help me!!!!!!!!!!!!!(sorry for my bad english)
boazm said:
Does Cwm support the galaxy s3?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Yes. You can look here for your model and for installation instrructions. Happy flashing!

How to upgrade the kernel version to 3.xx?

hell_lock said:
Click to expand...
Click to collapse
You upgrade a kernel version, by upgrading the kernel updates for that version.
lithid-cm said:
You upgrade a kernel version, by upgrading the kernel updates for that version.
Click to expand...
Click to collapse
Can u elaborate sir?
Sent from my GT-S5360 using XDA
hell_lock said:
Can u elaborate sir?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
It is pretty self explanatory.if you want a 3.0+ kernel, then merge a 3.0+ kernel into your source. Most aosp kernel track from the linux kernel. I am not going to get into the step by steps about it, that you can google.
lithid-cm said:
It is pretty self explanatory.if you want a 3.0+ kernel, then merge a 3.0+ kernel into your source. Most aosp kernel track from the linux kernel. I am not going to get into the step by steps about it, that you can google.
Click to expand...
Click to collapse
But the 3.xx kernel sources are not released for my phone so what should I do?
Sent from my GT-S5360 using XDA
hell_lock said:
But the 3.xx kernel sources are not released for my phone so what should I do?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
One of 4 things, Wait, merge from the linux kernel, merge from a 3.0+ device with similar hardware, or cry about it.
lithid-cm said:
One of 4 things, Wait, merge from the linux kernel, merge from a 3.0+ device with similar hardware, or cry about it.
Click to expand...
Click to collapse
I will choose option 3. Do u know what files should be changed?
Sent from my GT-S5360 using XDA
hell_lock said:
I will choose option 3. Do u know what files should be changed?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
No, pending your source, and the other source, there are way to many different changes that could take place. I would use a tool like beyond compare and diff the folders to see what files are different, then based on your experience, start making changes, compile test, rinse and repeat.
lithid-cm said:
No, pending your source, and the other source, there are way to many different changes that could take place. I would use a tool like beyond compare and diff the folders to see what files are different, then based on your experience, start making changes, compile test, rinse and repeat.
Click to expand...
Click to collapse
I am ready to do that.. Can u tell me how can I reduce the chances of hard brick by doing this intensive testing?
Sent from my GT-S5360 using XDA
hell_lock said:
I am ready to do that.. Can u tell me how can I reduce the chances of hard brick by doing this intensive testing?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
Before you start working on it, nandroid backup your system. Its just the kernel, so you can always revert via recovery. Though you should already know that.
lithid-cm said:
Before you start working on it, nandroid backup your system. Its just the kernel, so you can always revert via recovery. Though you should already know that.
Click to expand...
Click to collapse
One wrong step in kernel can hard brick my phone right? Seniors in my forum have taught me not to mess with a kernel unknowingly cuz it has high chances of hard bricking the phone.
Sent from my GT-S5360 using XDA
hell_lock said:
One wrong step in kernel can hard brick my phone right? Seniors in my forum have taught me not to mess with a kernel unknowingly cuz it has high chances of hard bricking the phone.
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
That is crap the kernel gets initialized during boot, unless your kernel is flashing a recovery as well, or your using a device without a dedicated recovery?
What do you mean by a dedicated recovery? I am using a samsung phone and we have a recovery mode and a download mode. We have both a permanent cwm and a zip fiw cwm(temporary).
Sent from my GT-S5360 using XDA
the dedicated recovery is a partition on is own, so lets say your mtd/emmc is structured like this
boot
recovery (this should be the dedicated recovery)
system
data
therefore you will be able to delete/flash/reflash the boot without affecting the tablet/system/other partitions
There are some devices that have a different recovery structure (tablets based on the rockchip soc)
Thanks for the help you both! I will learn more about partitions in my phone and come back on this thread.
Sent from my GT-S5360 using XDA
I guess most Samsung phones doesn't come as a recovery partition, it comes as an extra ramdisk as mentioned here.
Anyways I've flashed boot.img which I've compiled, and the first boot was a bootloop, of course. And after doing some changes, compiled again and flashed, and it was a success. So I don't think Kernels can hard-brick the device (IMO though).
For samsung...as long as you have download mode your in the clear...with download mode you can use Odin or heimdall to flash a working kernel or even stock software to return to stock.
Samsungs do not have a partition for recovery...its its own ramdisk..."recovery-ramdisk.img" so you can lose both recovery and boot with a kernel but with download mode and heimdall all you have to get is a working kernel with a working recovery, open terminal and type "heimdall flash --kernel kernelnamehere.includinganyfileextention" so "heimdall flash --kernel boot.img"
Sent from my SGH-I997 using Tapatalk 2
You guys rightly said! We have a ramdisk included with a zImage in a boot.img. I have also seen cases where the recovery mode doesnt come but the download mode is still intact.
A guy from our forum once flashed a s2 kernel on my Y and he hard bricked it. No modes were opening on his phone but according to the theory given by you guys, atleast the download mode should have been working! Care to explain me why that happened? I think the same thing will happen with me when I use sources of other phone for my kernel.
Sent from my GT-S5360 using XDA
So what I read from this thread, if you don't have a recovery dedicated for your device you would hard brick it???
Coz I tried n tested some kernels
They didn't work out -but it was a soft brick
Not a hard brick
I had not made those
Now I'm willing to try once I get some hold on building kernels
And I have a Sony Xperia Neo V
It doesn't have stock recovery like Samsung so if I make or atleast try to make kernels on my own, would I risk my phone getting hard bricked???
Or just soft brick?
Ty for your time!
Sent from my MT11i using xda premium

[Q] what is Boot.img? noob here....

Hello.. can anyone explain to me what is BOOT.IMG? and this is improtant on flashing ROM?
I'm not sure what it is, but it somehow manages the boot process. Every ROM has its particular boot.img. it is needed, but it is included in all roms around here. So if you flash a rom via cwm, boot.img is flashed to your phone automatically. Why do you need to know?
Wow... Its the kernel. For the OP. For the other replier. Please dont give false information.
Sent from my GT-I9300 using xda premium
Actually your both kind of right. A boot.img is a kernel smashed with a ramdisk. The kernel sets up internal hooks and initializations to the android os. The ramdisk contains a set of instructions and such to also create the hooks. In general a kernel is a binary image that contains all the drivers and such for a system to communicate with the hardware and the ramdisk initializes the hard ware
Please do not shoot people down. Some are just trying to be helpful.
Sent from my Galaxy Nexus using xda app-developers app
Edit. I mixed up my knowledge.
Sent from my GT-I9300 using xda premium

Boot.img extract?

i want to extract a boot.img but everytime i try it doesnt get the ramdisk folder out.. is there a boot.img in which i can easily extract the zimage and ramdisk folder just using dsxdia's kitchen?
i cant seem to extract the zimage and ramdisk folder from any kernel?..
galaxys3lover said:
i want to extract a boot.img but everytime i try it doesnt get the ramdisk folder out.. is there a boot.img in which i can easily extract the zimage and ramdisk folder just using dsxdia's kitchen?
i cant seem to extract the zimage and ramdisk folder from any kernel?..
Click to expand...
Click to collapse
Just use android kernel kitchen by Championswimmer. It is truly amazing and does the job very well.
Sent from my LT26i using xda app-developers app
abcdjdj said:
Just use android kernel kitchen by Championswimmer. It is truly amazing and does the job very well.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
i tried .. it still says zimage not found.. can u please explain to me how to for example use kappa or lupus kernel into a rom?
i am creating a rom using stock .ftf file and i want to include a custom kernel into this rom.. how do i go about it??? please help?!
galaxys3lover said:
i tried .. it still says zimage not found.. can u please explain to me how to for example use kappa or lupus kernel into a rom?
i am creating a rom using stock .ftf file and i want to include a custom kernel into this rom.. how do i go about it??? please help?!
Click to expand...
Click to collapse
Oh no no. You are going the Samsung way I guess. In all Sony phones, we dont have a recovery partition. That means that we can't flash kernels from CWM. The only way is fastboot. So no way to include kernel in your rom zip file. Sorry. At the most you can only recommend users to use a particular kernel.
Sent from my LT26i using xda app-developers app
abcdjdj said:
Oh no no. You are going the Samsung way I guess. In all Sony phones, we dont have a recovery partition. That means that we can't flash kernels from CWM. The only way is fastboot. So no way to include kernel in your rom zip file. Sorry. At the most you can only recommend users to use a particular kernel.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
OHHHH!!... but in the tutorial by nero young on how to build a custom rom .. he has a sk17i and he uses his own custom kernel when he builds the rom... http://forum.xda-developers.com/showthread.php?p=26283930
so if i cant use a custom kernel .. how do i extract the kernel.sin into the rom?
Basically you just can't flash kernel with the phone.
Usual practive in our phones is to include th boot.img in the rom file and ask it to be extracted and flashed via fastboot through pc.
Hope it helps
Don't know about the tuto
galaxys3lover said:
OHHHH!!... but in the tutorial by nero young on how to build a custom rom .. he has a sk17i and he uses his own custom kernel when he builds the rom... http://forum.xda-developers.com/showthread.php?p=26283930
so if i cant use a custom kernel .. how do i extract the kernel.sin into the rom?
Click to expand...
Click to collapse
You don't have to worry about the kernel when building a rom on stock rom. Just work on the system and you should have a proper working rom.
Sent from my LT26i using xda app-developers app
abcdjdj said:
You don't have to worry about the kernel when building a rom on stock rom. Just work on the system and you should have a proper working rom.
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
THANK YOU SO MUCH FOR YOUR HELP!!
so i just skip the step when he says i have to add a custom kernel... and not add any kernel at all??..
i mean should i atleast extract the kernel.sin into the working folder ..??
am using dsxdia's kitchen..
galaxys3lover said:
THANK YOU SO MUCH FOR YOUR HELP!!
so i just skip the step when he says i have to add a custom kernel... and not add any kernel at all??..
i mean should i atleast extract the kernel.sin into the working folder ..??
am using dsxdia's kitchen..
Click to expand...
Click to collapse
Yes. Kitchen requires a kernel for the working folder. Btw why do you need kitchen? If you need any help for developing your rom, just pm me.
Sent from my LT26i using xda app-developers app
I am just learning ROM development.. and I saw this tutorial by Nero young and thought that was the way to do it .. what other way to do it??
Sent from my GT-I9300 using Tapatalk 2
galaxys3lover said:
I am just learning ROM development.. and I saw this tutorial by Nero young and thought that was the way to do it .. what other way to do it??
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Dude you can directly add root and busybox.and whatever you want. Check your pm.
Sent from my LT26i using xda app-developers app
Hi,
You can use the attached META-INF folder. It has only the basic stuff like basic symlinks and permissions required for the rom to work properly. Just check the comments in the updater-script to know where to add your tweaks.
Good luck developing
abcdjdj

Categories

Resources