[Q] Custom Image Boot Failure - Nexus 6 Q&A, Help & Troubleshooting

I've compiled a Nexus 6 kernel from the msm source switching to the appropriate commit found in my Kernel Version string (eec2459). However, when I create a boot.img (using Pete Batard's bootimg-tools) with that modified kernel I get the following error:
Code:
[email protected]:~/android-sdk-linux/platform-tools$ ./fastboot boot myboot3.img
downloading 'boot.img'...
OKAY [ 1.219s]
booting...
FAILED (remote failure)
finished. total time: 1.282s
My bootloader is unlocked and I have been able to fastboot boot with the factory boot.img. Is it because my boot.img is unsigned? I thought unlocking the bootloader would allow that.
Device Info: Nexus 6, Android 5.1.1, Build number LMY47Z

Related

Failed to write CM boot.img

Hello everyone! I am trying to install my xperia z CyanogenMod but i've come uppon a few troubles!
I have unlocked my bootloader! I am following this tutorial: wiki.cyanogen mod.org/w/Install_CM_for_yuga
I am typing the command
Code:
fastboot -i 0xfce flash boot boot.img
and this shows up in CMD. :
Code:
sending 'boot' <10676>...
OKAY [ 0.343s]
writing 'boot' ...
FAILED <remote: Command not allowed>
finished. total time: 0,346s
i.imgur.com/KOqs mTh.png
Try just: fastboot flash boot boot.img
Sent from my C6603 using Tapatalk

ROM Flashing - Image is too large - Partition

Motorola G XT1072 -
Recovery: Clockworkmod v6.0.4.7 -
Bootloader: Unlocked
Problem: Failed in flashing rom to device.
What I did:
1. Install "Minimal ADB and Fastboot".
2. Download "mfastboot-v2" and extract it to the same directory I installed "Minimal ADB and Fastboot".
3. Deleted "fastboot.exe" to avoid possible confusion with windows.
4. Extracted the stock rom for the phone to the same directory as "Minimal ADB and Fastboot".
5. Enter the phone in Fastboot Flash Mode
6. Open "Command Prompt" in the "Minimal ADB and Fastbook" folder when the "mfastboot" and extracted ROM files are.
7. In "Command Prompt" I typed "mfastboot flash partition gpt.bin"
I get this error in "Command Prompt"
-------------------------------------------------------------------------------------------------------------------
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.043s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.358s
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>
On my phone screen I get pink writing saying: VERSION DOWNGRADED FOR PRIMARY_GPT
-------------------------------------------------------------------------------------------------------------------
8. I typed "mfastboot flash motoboot motoboot.img" and get this error:
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (2184 KB)...
OKAY [ 0.105s]
writing 'motoboot'...
(bootloader) Motoboot: Preflash validation for tz
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.388s
On my phone screen I get writing saying: VERSION DOWNGRADED FOR TZ
-------------------------------------------------------------------------------------------------------------------
9. I typed "mfastboot flash logo logo.bin" and it came back as OKAY.
10. I typed "mfastboot flash boot boot.img" and it again came back as OKAY.
11. I typed "mfastboot flash recovery recovery.img" and it again came back as OKAY.
12. I typed "mfastboot flash system system.img_sparsechunk.0" and got this error:
-----------------------------------------------------------------------------------------------------------------
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (261762 KB)...
OKAY [ 8.375s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.406s
On my phone screen it says: IMAGE IS TOO LARGE
-------------------------------------------------------------------------------------------------------------------
I think the partition maybe corrupted or something, possible suggestion please people.
Thanks in advanced
Please double check if you have downloaded the correct firmware zip corresponding to your phone model and region. Every region has a different firmware zip, so please verify it before downloading.
I'm positive its the right rom for my phone. I have also downloaded an EU one but get exactly the same errors. Thank you
Maybe try another custom recovery, twrp 2.8.5.0 worked perfectly for me.
thanks mate but ive tried that and still no good. Either recovery I get the same errors. Anyway to totally wipe the phone and redo the partitions?
I don´t know where but I read about the problem with too large images a few times in this forum lately....seems to be a new problem.

BootLoop HTC 626g (lock bootloader, mod recovery, firmware)

There HTC 626G, revision 1.79.401.100. During the study, on new devices starting with the revision (build) 1.72.401.101, with modified firmware recovery phone goes bootloop. Initially it was assumed that the problem was incompatible version recovery (old and new versions). new recovery was made under my revision, and after flashing turned bootloop.
When loading stock version:
fastboot flash recovery recovery_stock.img responses with:
sending 'recovery' (10240 KB)...
OKAY [ 0.417s]
writing 'recovery'...
FAILED (remote:
Security deny - Err:0x2017
)
finished. total time: 0.430s
Since version error recovery not confirmed, it remains an unlocked bootloader.
When you enter the command:
C:\Users\bugae\Desktop\android>fastboot oem get_identifier_token
...
FAILED (remote: unknown command)
finished. total time: 0.007s
C:\Users\bugae\Desktop\android>fastboot oem identifier_token
...
FAILED (remote: unknown command)
finished. total time: 0.006s
C:\Users\bugae\Desktop\android>fastboot oem token
...
FAILED (remote: unknown command)
finished. total time: 0.020s
fastboot oem unlock (the tablet responses with a question screen where I can select "yes, unlock bootloader" and "no, don't unlock bootloader", but when I select yes it responses with an error "Unlock failed - Err:0x7000")
Standard methods do not work!(
How to be? What to do?
Backup 4pda.ru/forum/index.php?s=&showtopic=756527&view=findpost&p=53005677
Try using win droid toolkit, I had the same issue with my 626 and I fixed mine here's a link
http://forum.xda-developers.com/devdb/project/?id=1314#downloads
https://forum.xda-developers.com/showpost.php?p=77300835&postcount=2

(remote: invalid kernel address: not lie in memory) when booting the lg350z kernel

I have found the source for LG-350Z kernel over LG's opensource official website was successful when compiling despite some errors during compilation I was able to pass that by adding some fixes. It was compiled with GCC 4.8 compiler. Now the thing is that when trying to boot it with the following command:
fastboot boot zImage-dtb
as I tried another image without dtb extension:
fastboot boot zImage
I get this error:
creating boot image...
creating boot image - 6518784 bytes
downloading 'boot.img'...
OKAY [ 0.229s]
booting...
FAILED (remote: invalid kernel address: not lie in memory)
finished. total time: 0.251s
Can anyone please tell me why it is not booting or how to fix it?
Note: the kernel is not modified yet, I am just learning how to compile a stock kernel from the source I am kinda new to this.
please any help same here infinix hot5 x559c[
C:\platform-tools>fastboot boot twrp-3.3.1-0-hammerhead.img
Sending 'boot.img' (13290 KB) OKAY [ 0.615s]
Booting FAILED (remote: 'invalid kernel address: not lie in memory')
fastboot: error: Command failed
]
could it be the use of the wrong recovery image which I pulled from the team win official page itself I have done a couple of times using different recoveries specific for infinix hot 2 from the same brand the problem is that can't find the one specific for my device please any advice on this thanks.

(solved) Can't either unlock OEM or install recovery (Preflash validation failed)

Hello
I just purchased a cheap new Moto G7 Plus, only to install LineageOS on it. The phone is brand new and I just upgraded it to the latest Android 10.
I followed all instructions so far, and I am stuck, can't unlock the bootloader and/or install a recovery.
To unlock the bootloader I carefully followed instructions on the LineageOS wiki
Then I followed instructions on Motorola website
I received an email from Motorola with the unlock code
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock CODE_RECEIVED_IN_THE_MAIL
...
(bootloader) Check 'OEM unlocking' in Android Settings > Developer
(bootloader) Options
OKAY [ -0.000s]
finished. total time: 0.016s
Despite the fact that it says OKAY, when I reboot in fastboot flash mode, I still see the message "oem_locked". So I am not totally sure that the unlock succeeded.
Then whatever I try, I can't install TWRP, see below :
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
Z*****F5RR fastboot
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock CODE_RECEIVED_IN_THE_MAIL
...
(bootloader) Check 'OEM unlocking' in Android Settings > Developer
(bootloader) Options
OKAY [ -0.000s]
finished. total time: 0.016s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot twrp-3.4.0-0-lake.img
target reported max download size of 536870912 bytes
sending 'boot' (30080 KB)...
OKAY [ 0.686s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.708s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot twrp-3.4.0-0-lake.img
downloading 'boot.img'...
OKAY [ 0.686s]
booting...
(bootloader) permission denied!
FAILED (remote failure)
finished. total time: 0.702s
C:\Program Files (x86)\Minimal ADB and Fastboot>
I obviously googled a few time but can't find any working solution. Some says its because my OEM is still locked, others because the USB port or cable might be problematic. I tried on 5 USB ports and a USB hub and I have the same issue, and my cable is brand new. I also restarted the whole unlocking procedure, received another mail from Motorola, with exactly the same unlock key, unlocked 10 times, nothing changes.
Any hint ?
Cheers
Ok forget it, its solved. I am an idiot I forgot to activate developer mode in the settings
Fastboot boot twrp 3.4 infinitely?
Unlocked my oem, adp whenever I fastboot boot twrp 3.4 it just gets stuck on downloading. No fail code just stays on downloading infinitely. Would love some help!
same
Richard2707 said:
Unlocked my oem, adp whenever I fastboot boot twrp 3.4 it just gets stuck on downloading. No fail code just stays on downloading infinitely. Would love some help!
Click to expand...
Click to collapse
trying on my xt1965-2 and having this same issue, did you manage a workaround?
The twrp file needs to be in the correct location and the name needs to be exact.
I use linux so check up on which locations to use in windows.
But on linux I open a terminal in the folder where twrp is located.
So if the filename for twrp is for instance "twrp-3.3.1-0-lake.img", the command needs to be:
fastboot boot twrp-3.3.1-0-lake.img (NO spaces in the file name!)
Fastboot then pushes the file to the phone and boots it.

Categories

Resources