Hi everyone,
I pulled down images made from AOSP for the Nexus 7 device successfully. I am trying to flash the zImage onto the Nexus 7 device via fastboot. But in the terminal I get a "Invalid partition" error after doing "fastboot flash zimage zImage". I can flash the boot.img, userdata.img, and system.img just fine. But I get an error for zImage.
I also tried a different method. I did a "make otapackage" and flashed the zip through CWM to I get a "no file_context warning". Afterwards when rebooting, the device shows the google logo but is a blank black screen after a few seconds.
That is when I fastboot flash all the stock images back on and try again... but no success.
Has anyone encountered something similar? Or has some idea of what I steps I can take to remedy this?
Thanks!
mdrdroid said:
Hi everyone,
I pulled down images made from AOSP for the Nexus 7 device successfully. I am trying to flash the zImage onto the Nexus 7 device via fastboot. But in the terminal I get a "Invalid partition" error after doing "fastboot flash zimage zImage". I can flash the boot.img, userdata.img, and system.img just fine. But I get an error for zImage.
I also tried a different method. I did a "make otapackage" and flashed the zip through CWM to I get a "no file_context warning". Afterwards when rebooting, the device shows the google logo but is a blank black screen after a few seconds.
That is when I fastboot flash all the stock images back on and try again... but no success.
Has anyone encountered something similar? Or has some idea of what I steps I can take to remedy this?
Thanks!
Click to expand...
Click to collapse
Not sure if your question was answered in another post as I found this thread searching on google for my own issue.
You can't fastboot flash zImage at all. You may be able to fastboot boot zImage but trying to flash the zimage is an incomplete image. You'd have to add the zimage to a boot.img to flash it with fastboot. Then you'd fastboot flash boot boot.img.
You should be able to fastboot boot zImage to boot the kernel from your pc with the existing boot.img. Hope this helps. I may not even see a response to this thread but I check Nexus 7 Q&A so I hope I hear it helps.
tiny4579 said:
Not sure if your question was answered in another post as I found this thread searching on google for my own issue.
You can't fastboot flash zImage at all. You may be able to fastboot boot zImage but trying to flash the zimage is an incomplete image. You'd have to add the zimage to a boot.img to flash it with fastboot. Then you'd fastboot flash boot boot.img.
You should be able to fastboot boot zImage to boot the kernel from your pc with the existing boot.img. Hope this helps. I may not even see a response to this thread but I check Nexus 7 Q&A so I hope I hear it helps.
Click to expand...
Click to collapse
Thank you for the reply!!! I really appreciate it as I didn't really know what to do about this issue. I don't know how to add the zimage to the boot.img, but I will look into it... do you have any more advice on this?
Before, when after building, I did flash boot.img, zImage (which failed), system.img, and userdata... and I did get it to boot, and everything seems to be working okay in general but I have an inkling that the zImage generated will be needed for what I aim to accomplish.
Anyhow, thanks again for the information I'm new to android development and am glad for any help!
Google decompiling a boot.Img
You can't flash a zimage (ramdisk) because it is not a partition
The boot partition or boot.Img contains both the kernel and the ramdisk
So what you need to do is decompile the boot.Img of your rom
Then put your new ramdisk into the decompiled one
Then recompile the boot and flash that
Sent from my Nexus 7
Related
I used the fastboot command and updated every time when I bought nexus 7 (wifi) from last year.
However, when I updated from jwr66v to jwr66y, I used wipe function in CWM. Then, I got the "archive does not contain boot.sig" and "archive does not contain recovery.sig" and "failed to allocate XXXXXXX.byte"...
Then I tried to get back version to 4.2.2, but I also got the same error message. I follow the guidehttp://forum.xda-developers.com/showthread.php?t=1907796 to manual flash each .img files, the same problem occur at flashing system.img
At now, I could not get into android system, just hang on the "Google" logo.
I have read the same problem in another threadhttp://forum.xda-developers.com/showthread.php?t=1992063, but I could not have any idea to solve it?
Anyone have idea?
Thank you very much.
PS: I used the platform-tools r22.0.5
"boot.sig и recovery.sig"
You must install the recovery.img and boot.img
Solution
Here's a solution for ya: http://shuiqingwang.blogspot.com/2013/03/solvedfastboot-wired-errors.html
Basically use these commands:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
I know this post is late, but this worked for me
vitaminan said:
I used the fastboot command and updated every time when I bought nexus 7 (wifi) from last year.
However, when I updated from jwr66v to jwr66y, I used wipe function in CWM. Then, I got the "archive does not contain boot.sig" and "archive does not contain recovery.sig" and "failed to allocate XXXXXXX.byte"...
Then I tried to get back version to 4.2.2, but I also got the same error message. I follow the guidehttp://forum.xda-developers.com/showthread.php?t=1907796 to manual flash each .img files, the same problem occur at flashing system.img
At now, I could not get into android system, just hang on the "Google" logo.
I have read the same problem in another threadhttp://forum.xda-developers.com/showthread.php?t=1992063, but I could not have any idea to solve it?
Anyone have idea?
Thank you very much.
PS: I used the platform-tools r22.0.5
Click to expand...
Click to collapse
so i had pac rom on my player but after awhile i got tired of the glitches and i just wanted to go back to stock and then root it. i tried using NRT to flash back to stock but its stuck at the boot screen. been on it for the past 30mins
can someone please help me flash this thing back to stock. ill re root it from there, but as of now its not turning on
anyone?
maybe a link to a youtube video?
ive tried googleing and following what i found on here but so far im not getting anywhere.
What about this post? http://forum.xda-developers.com/nexus-player/help/nexus-player-bricked-t3160061
That is assuming you know how to use Fastboot. I would completely unplug the NP, hold the bottom button in while plugging in the power cord and see if it gets you to the bootloader?
Yes. I have tried doing some fastboot things. I downloaded the stock files from Google and doing the flash all bat file but it keeps erroring out saying it can't allocate space for system or something. Sorry, I'd try again but I gave up for today. I'll try again tomorrow.
May have to do it all manually: (Taken from http://forum.xda-developers.com/nexus-9/help/factory-image-flash-t2929019/post56529332#post56529332)
run the flash-all.bat up until the point where it fails
unzip image-fugu-LMY48J.zip
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata.img
fastboot reboot
Nephilim3883 said:
May have to do it all manually: (Taken from http://forum.xda-developers.com/nexus-9/help/factory-image-flash-t2929019/post56529332#post56529332)
run the flash-all.bat up until the point where it fails
unzip image-fugu-LMY48J.zip
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata.img
fastboot reboot
Click to expand...
Click to collapse
thank you. ill try this now
i may have bricked it. its now saying errors for anything i do. i type in fastboot devices and it just gives me a bunch of question marks. gonna try calling google i guess
Called Google and they couldn't fix it so they sent me to Asus and that was a joke.
Asus tried doing a hard reset but that didn't work. They want me to send it in
Have you sent it back yet? Maybe try this? http://forum.xda-developers.com/nexus-6/development/toolkit-wugs-nexus-root-toolkit-v1-9-8-t2947452
http://www.wugfresh.com/faqs/
Nephilim3883 said:
Have you sent it back yet? Maybe try this? http://forum.xda-developers.com/nexus-6/development/toolkit-wugs-nexus-root-toolkit-v1-9-8-t2947452
http://www.wugfresh.com/faqs/
Click to expand...
Click to collapse
yes, ive tried that. my pc no longer sees the np.
I used the WonderHowTo site incorrectly to flash a nexus 5 version of twrp unto my nexus 4.
My device at this point booted to a blank screen. It could still boot the boot loader at this point.
To "fix" this I found the correct version of twrp for my device and proceeded to flash that unto my device.
This has appeared to work since I can access twrp on my device but it is only thing I can access on the phone. When I attempt to boot to system through twrp I am sent back into twrp.
I have attempted to use the wugfresh root tool kit to unroot and return to stock using both soft bricked and phone is still working normally options with no success.
It can still boot to the boot loader currently.
I have logs from the toolkit if these can shed more light on my issue.
Is there anyway I can return my device to stock? Thanks for any response
Flash factory image
https://developers.google.com/android/nexus/images#occam
attempted
attempted to flash stock and got the following error message
error: neither -p product specified nor ANDROID_PRODUCT_OUT set
Seems like you flashed TWRP to /boot. Easy fix is to download your ROM zip. Extract the boot.img and "fastboot flash boot boot.img". Then flash TWRP with "fastboot flash recovery twrp.img"
The locations and filenames of the files may vary. But hopefully you get the idea.
codebam said:
Seems like you flashed TWRP to /boot. Easy fix is to download your ROM zip. Extract the boot.img and "fastboot flash boot boot.img". Then flash TWRP with "fastboot flash recovery twrp.img"
The locations and filenames of the files may vary. But hopefully you get the idea.
Click to expand...
Click to collapse
I flashed a boot image for mako_KTU84P and flashed recovery again with twrp but I'm still system booting into twrp.
My bootloader version is MAKOZ30f if that is any help
I probably flashed the incorrect boot image. Could you point me in the direction of reliable ROM zip's if that is the case.
MrTalk said:
I flashed a boot image for mako_KTU84P and flashed recovery again with twrp but I'm still system booting into twrp.
My bootloader version is MAKOZ30f if that is any help
I probably flashed the incorrect boot image. Could you point me in the direction of reliable ROM zip's if that is the case.
Click to expand...
Click to collapse
Okay adb push a cyanogenmod zip from here and flash it in recovery. It should automatically install a working boot image. You should also flash the latest bootloader in the factory image with "fastboot flash bootloader bootloader.img" if you're using an outdated bootloader.
used the advice
I pushed the zip file using cmd and it appears to have been successful since I was given the summary of data transferred and how long it took once the process was finished.
I can't find the zip file in twrp to attempt to flash it.. Is there any reason the file name would change inside the device once it has been pushed?
Is there a way to flash the zip in question without pushing it unto the device?
as the tittle says... i am soft-bricked, stuck on google animation.. I did a install of the full android rom 1.4 from zulu99 and everything worked like a champ but i wanted to go back to stock for the kids and now i am stuck
I can access fastboot and recovery on the device and compute recognizes it also..
I downloaded the stock image for marsh 3.2.0 and i flashed all the required files:
fastboot flash staging blob
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
it reboots and goes to the google animation and it just stays there!!!(left it there for a day!!!) i also tried to flashing fastboot flash tegra210-foster-e-p2530-0930-e02-00.dtb and did not fix it..
also tried to flash 3.1.0 same steps and no go... i know my adb files are up to date... any ideas?
I was able to flash full android 1.4 from zulu again and works like a champ but i need stock for the kiddos.
try flashing twrp recovery from there wipe system and data partition then reboot into fastboot flash 3.2 again
i was stuck at the boot animation about a month ago after the 3.2 update.... see my post in this thread:
http://forum.xda-developers.com/shi...ion-screen-t3263143/post67564062#post67564062
please note: i used the 3.1 recovery image because the 3.2 image had not been released yet. have not tried it with the newer 3.2 image
also, if you follow my post and install the 3.1 image....be sure to flash the files in the order posted! some will flash quickly, but one or two took awhile to complete, so be patient and wait for each step to finish before moving on to the next.
yes, i saw ur post and how you solved it and i did try the same thing and it did not fix it.. it just gets me to the animation screen... i am gonna try to load twrp from fastboot, wipe.. then re install everything and once done, i will try to fastboot -w and see if that helps me...
foomanjackel said:
i was stuck at the boot animation about a month ago after the 3.2 update.... see my post in this thread:
http://forum.xda-developers.com/shi...ion-screen-t3263143/post67564062#post67564062
please note: i used the 3.1 recovery image because the 3.2 image had not been released yet. have not tried it with the newer 3.2 image
also, if you follow my post and install the 3.1 image....be sure to flash the files in the order posted! some will flash quickly, but one or two took awhile to complete, so be patient and wait for each step to finish before moving on to the next.
Click to expand...
Click to collapse
lalord69 said:
yes, i saw ur post and how you solved it and i did try the same thing and it did not fix it.. it just gets me to the animation screen... i am gonna try to load twrp from fastboot, wipe.. then re install everything and once done, i will try to fastboot -w and see if that helps me...
Click to expand...
Click to collapse
if you un pack the nvidia recovery image there is a scipt inside caled flashall.bat one of the steps run in there is a reboot to fastboot after you flash the boot.image
flash staging blob
fastboot flash boot boot.img
fastboot reboot
adb wait-for-device
adb reboot bootloader
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
echo Press any key to exit...
pause >nul
exit
Hi all,
I have OEM Unlock option checked and already flashed TWRP recovery.
After building a kernel image file called boot.img, I want to flash it, but dont know how
With other devices it is simply fastboot flash boot boot.img, but it seems there is no way to enter fastboot mode with this one
How can I flash the boot.img file? Preferably with Ubuntu, as I am building kernels with it
No one? Really?