Changing of kernel without usb? - Android Q&A, Help & Troubleshooting

CHANGING OF KERNEL WITHOUT USB?

I don't get it, Stupid question in 5-4-3-2-1
Where is your kernel sir...lol?
But if your kernel is on your PC ,put dropbox apk on your phone and PC and transfer accordingly...

xd-lskb said:
CHANGING OF KERNEL WITHOUT USB?
Click to expand...
Click to collapse
i guess you want to install some custom boot image without using fastboot.
if you rooted your device you can copy your boot.img file to your sdcard and flash it with the command
flash_image boot /path/to/your/boot.img
in terminal emulator (after becoming root with su)
please be careful, you could brick your device using false boot.img files.
have some backup of your old one at hand in case you want to undo your flashing.
you need a custom recovery to flash your boot backup in case your device doesnt boot any more.

Related

3d wont boot

hey fam i was running virus rom Eternity 3.0 with stock kernel then i flashed the cm7 rom by joelz yesterday but had to change kerenls to get it to work. i used the apk to do that i think its gui i think, but anyway i tried to restore back from nadroid and my phone wont boot. im on 1.5 with s-on
thanks if any one can help.
evoguy404 said:
hey fam i was running virus rom Eternity 3.0 with stock kernel then i flashed the cm7 rom by joelz yesterday but had to change kerenls to get it to work. i used the apk to do that i think its gui i think, but anyway i tried to restore back from nadroid and my phone wont boot. im on 1.5 with s-on
thanks if any one can help.
Click to expand...
Click to collapse
I guess you have flashed a 2.3.3 kernel so you are experiencing issues.........so now just boot your phone in bootloader then select fastboot > connect your phone to pc (it should say fastboot usb on phone)> now open cmd > head to your fastboot folder in cmd> then type fastboot boot xxxxx.img (xxxx = your recovery img (cwm/twrp) ) > Now your phone will boot into recovery > then restore your Nandroid backup .......
Hope this helps
If the above didnt work try to flash boot.img from your nandroid backup using fastboot (not recovery) with command "fastboot flash boot boot.img"
press thanks if i helped you
is there a way i can do it without my computer im at work,so i don't have all my files on hand...thanks this has got me stomped......
I m sorry you cannot do it without a pc .....you know the limitations of htc unlock method...you can only flash kernels made for 2.3.4 from flash image gui......you can always download those fastboot/adb files from here or google for it.They are just a few kb's
evoguy404 said:
is there a way i can do it without my computer im at work,so i don't have all my files on hand...thanks this has got me stomped......
Click to expand...
Click to collapse
Yes, as long as all the nandroid backup files are on your sdcard. Steps below.
mnomaanw said:
I m sorry you cannot do it without a pc .....you know the limitations of htc unlock method...you can only flash kernels made for 2.3.4 from flash image gui......you can always download those fastboot/adb files from here or google for it.They are just a few kb's
Click to expand...
Click to collapse
This isn't true. Flash Image GUI will flash the kernel for any version, but if your system OS is not also updated at the same time, the device will not boot.
If you're looking to do a nandroid restore w/o using fastboot (or being attached to a computer), here are the steps I would suggest:
1) From Flash Image GUI, select the boot.img from inside of the custom recovery backup directory on the /sdcard. Flash this kernel.
2) Reboot directly into recovery mode. Run the nandroid restore for that SAME backup as the boot.img was pulled from and flashed via Flash Image GUI.
3) After nandroid restore finishes, reboot and the device should be back to the previous state found in the backup.
Remember, this is a work around for the HTC unlock and might not always be the best solution.
Keep us updated and let us know. Hope that helps!
joeykrim said:
Yes, as long as all the nandroid backup files are on your sdcard. Steps below.
This isn't true. Flash Image GUI will flash the kernel for any version, but if your system OS is not also updated at the same time, the device will not boot.
If you're looking to do a nandroid restore w/o using fastboot (or being attached to a computer), here are the steps I would suggest:
1) From Flash Image GUI, select the boot.img from inside of the custom recovery backup directory on the /sdcard. Flash this kernel.
2) Reboot directly into recovery mode. Run the nandroid restore for that SAME backup as the boot.img was pulled from and flashed via Flash Image GUI.
3) After nandroid restore finishes, reboot and the device should be back to the previous state found in the backup.
Remember, this is a work around for the HTC unlock and might not always be the best solution.
Keep us updated and let us know. Hope that helps!
Click to expand...
Click to collapse
hey joey i know we can use flash image gui to flash boot.img from a rom.zip but evoguy cannot boot his phone at all.So how will he be able to use Flash image GUI? I m only telling him what he can do now........
mnomaanw said:
hey joey i know we can use flash image gui to flash boot.img from a rom.zip but evoguy cannot boot his phone at all.So how will he be able to use Flash image GUI? I m only telling him what he can do now........
Click to expand...
Click to collapse
If the device won't boot past the splash screen, chances are the issue is kernel related. For kernel related issues, the ONLY method provided by HTC via their unlock is to use fastboot to boot the recovery. This is the only accessible mode HTC grants write access to the kernel partition.
This is the only way HTC provides write access to the kernel for a device that is not booting properly. The command using fastboot is as follows: fastboot boot c:\recovery.img .
This command will temporarily load the custom recovery with kernel write access allowing a proper recovery to take place.
One reason the device is not booting could be the android OS version mismatches with the kernel, therefore the kernel's ramdisk is looking for files which are not present and cause the device to either freeze or reboot.
There are other reasons too, probably too many worth detailing out as the easiest route to solving the issue is to restore back to a known good working nandroid or cleanly load another known working ROM/kernel combination.
Hope that helps clarify! Best of luck!
Thanks to all you guys. Got it back running XDA is the best.
sent from my Rooted & Boosted 3VO.

[Q] Maybe Bad kernel and or system image and recovery ?

I was flashing Viper ROM and something must have failed because now i boot straight in to the boot loader screen. Recovery of my backups just boot back to the boot loader screen after it completes and i reboot. What steps should I take to restore my system?
Maybe an ruu, if you can't get the nandroids to restore maybe a partition got messed up. This is a new one for me
Did u try flashing a different rom also? Maybe ur ad card got corrupt and ur nandroids and rom are corrupt.
What recovery u on? Are you soff?
Could be missing kernel, I heard a rumor that there is a s-on flashable zip for the kernel, awesomesauce I think uses it. Not sure though if ur s-on that might be a good option.
Fasboot flash the kernel
Open Rom zip and extract boot.img, place it in adb or SDK folder and connect phone, open command window in folder (shift+right click, open command window here) type fastboot flash boot boot.img
detcup4evr said:
Maybe an ruu, if you can't get the nandroids to restore maybe a partition got messed up. This is a new one for me
Did u try flashing a different rom also? Maybe ur ad card got corrupt and ur nandroids and rom are corrupt.
What recovery u on? Are you soff?
Click to expand...
Click to collapse
Just tried a new rom via SD card in twarp. Im S-on with twrp 2.2.1 I am also noticing twrp will not mount my internal storage
Most likely corrupt, just mount to pc through twrp, windows will prompt you to reformat
om4 said:
Most likely corrupt, just mount to pc through twrp, windows will prompt you to reformat
Click to expand...
Click to collapse
thanks that fixed the mounting of the internal storage. Im trying the fastboot now
Fast boot fixed the problem thanks again

cant get restore to boot

Was running cm10 did a a wipe and restored to previious rom, and it won't boot.. Just boot loops.. Anyway to get my phone working again> I can access recovery still
most likely an s-on issue, you need to flash the kernel separately in fastboot. it has to match your backup's rom base
om4 said:
most likely an s-on issue, you need to flash the kernel separately in fastboot. it has to match your backup's rom base
Click to expand...
Click to collapse
Can you go in detail for me please
You need the boot image from the Rom you made a back up of, it has to match the base at the time of the backup 1.22, 2.13 or what have you and it needs to be flashed in fastboot. To do so you need the mini SDK (adb tools) or the full sdk. Place the boot.img (kernel) into the directory and open a terminal. Navigate to the directory or open it directly in the folder (windows) by holding shift and right click and slecting open command window here. You then boot to bootloader and connect the phone in fastboot. Type devices to make sure its connected and then fastboot flash boot boot.img and reboot
Easiest way is download flashgui and then download meanrom and open up meanrom via flashgui on phone and flash the stock kernel then boot into recovery and then flash your.restore and wala!!! That's what I had to do being s on
Sent from my EVO using xda app-developers app

push file from PC to device on recovery mode?

I have Huawei P6,
It stop booting at logo MIUI (so not possible to use IHM root file manager).
I would like to push a file from my PC to the device (Huawei P6 U06) using ADB Shell in recovery mode.
Push file to device mains push file to /system of device.
Does someone has steps guide or tools to do this?
LikeM8 said:
I have Huawei P6,
It stop booting at logo MIUI (so not possible to use IHM root file manager).
I would like to push a file from my PC to the device (Huawei P6 U06) using ADB Shell in recovery mode.
Does someone has steps guide or tools to do this?
Click to expand...
Click to collapse
Which custom recovery and version do you have installed? I would recommend taking a look at this guide here and following it up through step 10. Let me know if you still have questions.
shimp208 said:
Which custom recovery and version do you have installed? I would recommend taking a look at this guide here and following it up through step 10. Let me know if you still have questions.
Click to expand...
Click to collapse
Thanks Shimp for your time.
custom recovery is TWRP v2.6.3.3
The goal is to remove TWRP recovery by a stock one to perform an update with dload/UPDATE.APP from SDCARD.
To do this I would like to copy the file recovery-from-boot.p file in /system device to remove TWRP when boot to recovery mode.
As I said, the phone stope to boot at MIUI logo (error from TWRP E: unable to mount '/cache').
Sideload failed!
LikeM8 said:
Thanks Shimp for your time.
custom recovery is TWRP v2.6.3.3
The goal is to remove TWRP recovery by a stock one to perform an update with dload/UPDATE.APP from SDCARD.
To do this I would like to copy the file recovery-from-boot.p file in /system device to remove TWRP when boot to recovery mode.
As I said, the phone stope to boot at MIUI logo (error from TWRP E: unable to mount '/cache').
Sideload failed!
Click to expand...
Click to collapse
I apologize @LikeM8 for the delay in getting back to you somehow this thread got lost in the shuffle. In the guide I linked I would recommend using that to get ADB access in recovery going that way you can copy the file recovery-from-boot.p to your device, don't worry about the sideload part only use it to get ADB access in recovery mode :good:.
shimp208 said:
I apologize @LikeM8 for the delay in getting back to you somehow this thread got lost in the shuffle. In the guide I linked I would recommend using that to get ADB access in recovery going that way you can copy the file recovery-from-boot.p to your device, don't worry about the sideload part only use it to get ADB access in recovery mode :good:.
Click to expand...
Click to collapse
No problem @shimp208 thanks for your reply. Where I have to copy recovery-from-boot.p ? Where I could be find the stock file for my Huawei P6 U06? Regards!
LikeM8 said:
No problem @shimp208 thanks for your reply. Where I have to copy recovery-from-boot.p ? Where I could be find the stock file for my Huawei P6 U06? Regards!
Click to expand...
Click to collapse
You can get the stock recovery for your device from this thread here, also you won't even need to use recovery-from-boot.p as you can boot your device into fastboot mode to flash the stock recovery.
shimp208 said:
You can get the stock recovery for your device from this thread here, also you won't even need to use recovery-from-boot.p as you can boot your device into fastboot mode to flash the stock recovery.
Click to expand...
Click to collapse
Thanks for the link @shimp208, but when I flash these stock recovery from fastboot, I still again TWRP 2.6.3.3!!! Help please!!!
I thought I broke my maghine and order new one. Recovery SDcsrd works
LikeM8 said:
Thanks for the link @shimp208, but when I flash these stock recovery from fastboot, I still again TWRP 2.6.3.3!!! Help please!!!
Click to expand...
Click to collapse
Hello again @LikeM8 sorry again for the delay caused by my final exams (still in progress for the next two weeks), you can get the stock ROM for your device here in the index thread from the stock rom you can pull recovery-from-boot.p and attempt to install the stock recovery.
shimp208 said:
Hello again @LikeM8 sorry again for the delay caused by my final exams (still in progress for the next two weeks), you can get the stock ROM for your device here in the index thread from the stock rom you can pull recovery-from-boot.p and attempt to install the stock recovery.
Click to expand...
Click to collapse
Thanks @shimp208...pull recovery-from-boot.p from stock ROM??? Did you mean, I have to pull recovery-from-boot.p fill using adb (recovery mode)?
LikeM8 said:
Thanks @shimp208...pull recovery-from-boot.p from stock ROM??? Did you mean, I have to pull recovery-from-boot.p fill using adb (recovery mode)?
Click to expand...
Click to collapse
What I meant was put the stock ROM on your computer unpack and it and extract the from it then push recovery-from-boot.p from your computer to your phone, then re-flash stock recovery.
shimp208 said:
What I meant was put the stock ROM on your computer unpack and it and extract the from it then push recovery-from-boot.p from your computer to your phone, then re-flash stock recovery.
Click to expand...
Click to collapse
Ok @Shimp2008, I try and lets you know. Thanks for your time!
shimp208 said:
What I meant was put the stock ROM on your computer unpack and it and extract the from it then push recovery-from-boot.p from your computer to your phone, then re-flash stock recovery.
Click to expand...
Click to collapse
hello @shimp208, stock ROM I find in the page are dload/UPDATE.APP form, not zip file to unpack.
I have yet recovery-from-boot.p file. When from recovery and adb shell I put it on /system, after reboot, the recovery-from-boot.p file was been delete by the device???
What I did wrong or I have to perform to keep recovery-from-boot.p file in /system directory after reboot?
PS: Before operation, I perform "mount -o remount,rw /system"
LikeM8 said:
hello @shimp208, stock ROM I find in the page are dload/UPDATE.APP form, not zip file to unpack.
I have yet recovery-from-boot.p file. When from recovery and adb shell I put it on /system, after reboot, the recovery-from-boot.p file was been delete by the device???
What I did wrong or I have to perform to keep recovery-from-boot.p file in /system directory after reboot?
PS: Before operation, I perform "mount -o remount,rw /system"
Click to expand...
Click to collapse
TWRP may be overwriting the file on it's own, another possibility would be to follow the directions for the stock recovery flashing i linked to earlier and seeing if only fastboot booting the stock recovery image will let you re-flash the stock ROM.

OPX | CM13 | TWRP cannot find zip files and update

I installed SultanXDA's CM13 ROM and I am using TWRP (not the 3 version). I haven't installed SuperSU, so it means that I am not rooted, too... But...
I wanted to flash this camera: http://forum.xda-developers.com/one...t-oxygenos-3-0-1-beta-camera-cm-aosp-t3386799
The problem is that when I get to recovery mode in order to install the zip file, I see all kinds of folders, but not my "normal" ones... I am using my SD card as internal space...
I read somewhere that I have to update to new TWRP 3 in order to overcome this...
So, does it have to do with the version of twrp and if so, how can I update it without being root and without being able for the current TWRP to read the zip files that I will "feed" it?
Maybe my only method is through adb?
Flashing through adb will erase anything else other than changing the TWRP version?
Thanks in advance guys!
dimxr said:
Maybe my only method is through adb?
Flashing through adb will erase anything else other than changing the TWRP version?
Thanks in advance guys!
Click to expand...
Click to collapse
If your Bootloader is unlocked try Fastboot.
Reboot OPX into Fastboot Mode. (Power + Volume Up i think or trough TWRP or CM)
Connect it to your PC
On PC: Download the latest TWRP img File
Start CMD in same Folder as the downloaded File is.
Type: 'Fastboot devices' to make sure your OPX connected properly
Typ: 'Fastboot Flash Recovery *DownloadedTWRP*.img'
Flashing new TWRP only overwrites current TWRP and doesn't erease anything else
OverBit said:
On PC: Download the latest TWRP img File
Click to expand...
Click to collapse
Can you download it?
I can't seem to be able to start a download no matter which browser I use...
dimxr said:
Can you download it?
I can't seem to be able to start a download no matter which browser I use...
Click to expand...
Click to collapse
Without any problem.
Maybe you be able to download it when i attach it.
Was to big to upload it as img, so I renamed it to .apk,
So don't forget to rename it to .img
Great! So, the procedure begins!

Categories

Resources