I have searched all over the forums but I can't figure out how to flash the kernel that disables the system write protection. I found a thread with downloads for the kernel (http://forum.xda-developers.com/show....php?t=2230341) but I have never flashed a kernel and the instructions weren't too clear. It would be great if I could get step by step instructions or a how to video on how to make the init.d script and load it in order to flash the kernel.
Related
I noticed for myself with custom ROMs there is no problem to flash a kernel zip
with Zimage or boot.img inside via recovery.Tried all available kernels and all works.
But if I do a restore to my rooted and S-Off stock ROM with stock kernel,
nothing works.First I flashed kernel zip with Zimage,then I got
Code:
Flashing New boot.img ...
assert failed: write_raw_image ("/tmp/newboot.img". "boot")
(Status 7)
Installation aborted
After this,I tried to flash a kernel zip with boot.img inside.This works,but
phone stuck at HTC splash image.
Also,after flashed the kernel zip with boot.img inside,the kernel zips with
Zimage inside works too,but also stucks at HTC splash image.
Phone details:
EVO 3D GSM, rooted by:
HBOOT 1.49.1107
revolutionary s-off
CWM 5.0.2.0
Any answers/solutions for this from the devs,why custom kernels don`t
work with rooted/S-Off stock ROM and stock kernel?
This should go to Q&A Section...
Stock ROM's have secured Boot Images, custom ROM Dev's unsecure the Boot Image to allow Root ADB commands.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
harpss1ngh said:
This should go to Q&A Section...
Stock ROM's have secured Boot Images, custom ROM Dev's unsecure the Boot Image to allow Root ADB commands.
Click to expand...
Click to collapse
So no solution to get a custom kernel working on rooted/S-Off stock ROM
with stock kernel?
harpss1ngh said:
This should go to Q&A Section...
Stock ROM's have secured Boot Images, custom ROM Dev's unsecure the Boot Image to allow Root ADB commands.
Click to expand...
Click to collapse
I could be wrong, but as far as I know this is partly true, although I might have misread.
I agree, completely 100% stock kernels from the manufacturer have secured kernels (boot images).
Ganii said:
So no solution to get a custom kernel working on rooted/S-Off stock ROM
with stock kernel?
Click to expand...
Click to collapse
The first 256 bytes of the kernel/boot.img are the signature/encryption on 100% stock kernels for this device. Since the first 256 bytes are encrypted, the standard Anykernel (zImage in .zip file with dd, etc.) method does not work. It will successfully dump the kernel from the boot partition but it will fail when parsing out the pieces due to the 256 bytes at the beginning, at least in previous/current state.
The only way I've seen to bypass this is by flashing an unsigned kernel. I've had success removing the first 256 bytes of the dumped/RUU kernel file and flashing. Once the user has an unsigned/unsecured kernel loaded in the boot partition, the Anykernel style (zImage, dd, mkbootimg.sh, etc) type kernel usually works.
These unsigned kernel files can be found in ROMs or separately in kernel .zip files, but they have to always be in the boot.img form the first time.
Some of this is my personal theory but it is based on my experiences. Welcome anybody else with experience to chime in, especially other kernel developers.
Hope my ideas make sense!
I also tried to flash boot.img,but doesn`t work.
http://forum.xda-developers.com/showpost.php?p=18686747&postcount=166
I think you might be typing the commands wrong. Have you tried
fastboot flash zimage??? Also did you unpack/unzip the .img to the correct directory??? Also did you do fastboot reboot boot loader???
Locked & Loaded
""Shooter on Deck""
Ganii said:
I also tried to flash boot.img,but doesn`t work.
http://forum.xda-developers.com/showpost.php?p=18686747&postcount=166
Click to expand...
Click to collapse
If the kernel is compiled and verifed working properly, flashing the boot.img should work as it completely overwrites the stock kernel image.
In comparison to the Anykernel method, where they dump the stock signed kernel and attempt to split out the ramdisk, cmdline and base, which will fail due to the 256 byte signature at the front of the kernel.
As a side note, I'm fairly certain it would be simple to modify the current tools, somebody might have already, to ignore the first 256 bytes of the kernel partition, and then use the rest of the image to split out the correct information. On a mass scale, the only hard part would be determining which kernels had 256 bytes of encryption/signed or which don't. The easiest solution would be to provide a flag to pass to the binary which splits out the imagine ... probably getting off topic.
Hope the extra details help clarify the process as far as I understand it!
Whats the fastest kernel out for the EXT3? And how about EXT4?
I am getting extremly frustrated right now.
i have been trying to install cwm on my phone for hours now and i just need some help please
i dont have windows installed. ive tried using VM but my computer is refusing to allow me to use usb in VM right now.
odin through wine doesnt work.
so my last option is heimdall... can somebody please give me some usable steps on flashing cwm with heimdall ... its very late here, im very frustrated and getting ready to pull my hair out, so please in noob terms.. thank you to whomever feels nice and gives me some help
Have you looked at this thread?
You don't say, but I assume you want to install a kernel containing ClockworkMod Recovery.
If you havn't sorted out your installation yet, follow step 2b in How to Flash Custom Binaries Without Ever Incrementing the Flash counter!!, except extract the zImage from the kernel you want to install, and then use the following on the command line:
Code:
heimdall flash --kernel zImage
If you need root first, follow the whole guide.
Adelaide. said:
Have you looked at this thread?
Click to expand...
Click to collapse
i had looked at that thread, thank you for the post, but it wasnt exactly wprking for me the way it seemed to in the thread, which is why i posted this thread. but thanks again.
creepyncrawly said:
You don't say, but I assume you want to install a kernel containing ClockworkMod Recovery.
If you havn't sorted out your installation yet, follow step 2b in How to Flash Custom Binaries Without Ever Incrementing the Flash counter!!, except extract the zImage from the kernel you want to install, and then use the following on the command line:
Code:
heimdall flash --kernel zImage
If you need root first, follow the whole guide.
Click to expand...
Click to collapse
thank you
i will try again later, for the time being i just gave up and repartitioned my hdd so i could dual boot windows and get it done that way. but i will practice getting this down so i dont have to rely on windows
creepyncrawly said:
You don't say, but I assume you want to install a kernel containing ClockworkMod Recovery.
If you havn't sorted out your installation yet, follow step 2b in How to Flash Custom Binaries Without Ever Incrementing the Flash counter!!, except extract the zImage from the kernel you want to install, and then use the following on the command line:
Code:
heimdall flash --kernel zImage
If you need root first, follow the whole guide.
Click to expand...
Click to collapse
Once you've flashed a CWM-enabled zImage, you only need to flash the Su package from ChainsDD's site in CWM to get root.
I have searched all over the forums but I can't figure out how to flash the kernel that disables the system write protection. I found a thread with downloads for the kernel (http://forum.xda-developers.com/showthread.php?t=2230341) but I have never flashed a kernel and the instructions weren't too clear. It would be great if I could get step by step instructions or a how to video on how to make the init.d script and load it in order to flash the kernel.
I am trying to install TWRP but struggling
The phone is running ANdroid 6. I have unlocked the bootloader successfully.
I am using this link for TWRP, http://forum.xda-developers.com/z5-compact/orig-development/twrp-z5-compact-t3235161
Originally I downloaded the files from the 1st post but upon reboot it was stuck on the white curtain screen.
Upon research I found out that the above guide is for Android 5. This link is for android 6.
Now I have downloaded this new file. My question is do i just flash this new file now?
Or are there any extra steps required? Such as a new boot.img file after flashing the new recovery file?
Flash it if you want?
I've no idea what you mean with "this new file", or "extra steps" (extra compared with what?) so I can't help with that. In general, you just should follow the steps in one of the guides to install TWRP. There're plenty, and most of them have in common that they already explain how you can install them and what you need. Also in general, you don't have to add "extra steps" or leave steps out.
Ok thanks.
I have now got the latest TWRP file, https://www.androidfilehost.com/?fid=24499762636001943
The kernel im using is Latest AndroPlus Kernel V31.
So in bootloader i have fastboot flash recovery recovery.img to install TWRP
Then flashed the latest kernel using fastboot flash boot boot.img
I have rebooted the phone but now it keep booting into recovery, not the system.
Please can someone help?
Hey Guys,
as far as i could find out so far, you use TWRP to flash a Custom Rom from the Tablets Recovery Mode, this requires a rooted device, and to do this you flash a prerooted rom somehow, which includes TWRP already, which you then use to flash the rom you actually want on your device.
Another possibility was to flash a Kernel (with TWRP?) to get the same results...
Now I absolutely can´t find a tutorial for dummies, to do that, or find the required files.
After i found it kinda complicated to unlock the bootloader, since most of the tutorials didn´t even mention you need advanced mode and a special Google USB Driver from Sony´s Developer Page, to even get that working, i would really appreciate if someone could give me a step by step with links.
If a tutorial exists, pls give me a link as well, cause i looked the whole day yesterday, and found jack.
cheers
yes, you need to do all that. i just went through this yesterday and used this tutorial:
https://forum.xda-developers.com/showthread.php?t=2747676
once you are unlocked, follow the instructions for your rom, usually to flash the boot and recovery images with fastboot. two things to watch out for though, if you are using an oreo rom make sure your twrp version is 3.2 or better, secondly, if twrp give an error where it cant mount the partitions to wipe them use the change format option under wipe/advance to change to ext4 (which essentially re-formats the partition) and you should be good to flash the rom after that.
here is another tutorial to help get adb, fastboot, and the drivers up and going:
https://forum.xda-developers.com/showthread.php?t=2588979
answer yes to everything, i can't remember if i loaded in sony specific driver on top of that or not.
goodluck!