Help ,wrong command if fastboot! - Nexus 4 Q&A, Help & Troubleshooting

I tried to flash a 0.54 modem.img , and incidently used the command "fastboot flash modem modem.img" instead of "fastboot flash radio modem.img"
the device is still in fastboot mode, is there a way to fix what i did ? please help I'm afraid to restart and not be able to start fastboot mode again!

Did that command actually work, or did it give you an error saying unrecognized command?
AFAIK there is no fastboot flash modem command. Just reflash the radio using the right command.
Sent from my HTC Desire using xda app-developers app

chromium96 said:
Did that command actually work, or did it give you an error saying unrecognized command?
AFAIK there is no fastboot flash modem command. Just reflash the radio using the right command.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
It did do something !
here's a screenshot:

michel9501 said:
It did do something !
here's a screenshot:
Click to expand...
Click to collapse
Pretty sure there is no modem partition on the Nexus 4 so it's probably done nothing...next time, don't call the file modem.img!

EddyOS said:
Pretty sure there is no modem partition on the Nexus 4 so it's probably done nothing...next time, don't call the file modem.img!
Click to expand...
Click to collapse
just to be extra sure , if i do 'fastboot erase modem' and reflash using correct command, nothing bad will happen right?

If you want to be sure, get the 422 Google ROM and run the run.bat.. it should flash every partition with the correct image.. Wugs tool kit can do this too

meangreenie said:
If you want to be sure, get the 422 Google ROM and run the run.bat.. it should flash every partition with the correct image.. Wugs tool kit can do this too
Click to expand...
Click to collapse
Don't use toolkits, do more harm than good...

EddyOS said:
Don't use toolkits, do more harm than good...
Click to expand...
Click to collapse
He's right, I prefer to input the commands manually so I know what the hell I'm doing, and not rely on someone else's script, you can never know what they put in these

michel9501 said:
He's right, I prefer to input the commands manually so I know what the hell I'm doing, and not rely on someone else's script, you can never know what they put in these
Click to expand...
Click to collapse
One of the more sensible posts I've read on here of late. Top marks for this man!

Weird... In the screenshot it actually looks like it did something. Is it possible that you can flash to non existent partitions?
Cause I don't think there's a modem partition.
Someone should try fastboot flash hello recovery.img and see what happens

michel9501 said:
He's right, I prefer to input the commands manually so I know what the hell I'm doing, and not rely on someone else's script, you can never know what they put in these
Click to expand...
Click to collapse
Well if you think you can handle the very complicated command run.bat, knock your self out.
I mentioned wugs kit just as a method of convinience, because it downloads the files for you and checks the md5 sums before running the very complicated run.bat command for you.
For example, if you used it to flash the radio in the first place, you wouldn't be in the predicament you are in now.

Related

no recovery

my g1 freezes when i try to reboot to recovery, but it doesnt freeze when i reboot normally. i dont know why....i think it has to do with a program i downladed, "droid explorer". so i tried to flash a new recovery through the terminal, thinking "i cant get to recovery because its broken" but that didnt work. when i put through the command, it returns a dozen lines of "error at xxxxxxxxxx (out of memory)"
can anybody help? or am i stuck with the rom i have?
Flash it via fastboot, that should work
fastboot erase recovery
fastboot flash recovery <path to recovery image>
http://android-dls.com/wiki/index.php?title=Fastboot#Fastboot_Commands
here
http://forum.xda-developers.com/showthread.php?t=741375
ANtiHazarD said:
here
http://forum.xda-developers.com/showthread.php?t=741375
Click to expand...
Click to collapse
it lives! thank you so much
you are welcome
ANtiHazarD said:
you are welcome
Click to expand...
Click to collapse
See Anti what did I tell you, your guide would be very helpful. I think the recovery/boot hacks put out by firerat sometimes could cause corruption. but the nice thing is when it works you get a nice amount of memory. So your damned if you do and your damned if you dont.
Royalknight6190 said:
See Anti what did I tell you, your guide would be very helpful. I think the recovery/boot hacks put out by firerat sometimes could cause corruption. but the nice thing is when it works you get a nice amount of memory. So your damned if you do and your damned if you dont.
Click to expand...
Click to collapse
yeah... it's true! Thanks to you one more time for the support!
always when there is a problem and there are those who somehow trying to help - the problem is not so terrible after all...
ANtiHazarD said:
yeah... it's true! Thanks to you one more time for the support!
always when there is a problem and there are those who somehow trying to help - the problem is not so terrible after all...
Click to expand...
Click to collapse
it was quite helpful, but you dont change your cd, otherwise it doesnt recognize adb....you just need to remember the directory of the recovery and type it in before it

Cant install recovery

ok, I hate to ask this since Im probably missing something simple.
I am trying to install recovery which I was holding out on, but it doesnt look like we are getting a new recovery any time soon so I am just going to do it.
Problem. When I try to flash recovery with fastboot it says.
error: cannot load 'recovery.img'
Click to expand...
Click to collapse
Anyone know what I might be running into here? I have the recovery in the folder Im cd to. which is C:\AndroidSDK\platform-tools
did you extract the recovery image to that folder? is the file name you typed exactly the same as what it's actually named?
tatonka_hero said:
did you extract the recovery image to that folder? is the file name you typed exactly the same as what it's actually named?
Click to expand...
Click to collapse
ugh, thats my problem, I didnt "Extract" I just placed the zip in there. =P Thanks
EricSS619 said:
ugh, thats my problem, I didnt "Extract" I just placed the zip in there. =P Thanks
Click to expand...
Click to collapse
i haven't even flashed a recovery yet lol. I just remembered that those were the two common mistakes people made when doing it on the Hero.
I've got an issue where I get "error: device not found" when in fastboot trying to flash a recovery...so that's annoying....
can't install recovery.
tatonka_hero said:
i haven't even flashed a recovery yet lol. I just remembered that those were the two common mistakes people made when doing it on the Hero.
I've got an issue where I get "error: device not found" when in fastboot trying to flash a recovery...so that's annoying....
Click to expand...
Click to collapse
Do you have HTC Sync installed for the usb drivers? That fixed that problem for me. Other things you can try is to plug the phone into a different usb port. Sometimes if the phone is plugged in and you reboot it the computer will ignore it. Normally I have not had a problem if I can use adb I can use fastboot.
Nitro3a said:
Do you have HTC Sync installed for the usb drivers? That fixed that problem for me. Other things you can try is to plug the phone into a different usb port. Sometimes if the phone is plugged in and you reboot it the computer will ignore it. Normally I have not had a problem if I can use adb I can use fastboot.
Click to expand...
Click to collapse
yeah, I have sync and the drivers installed. I'll try a different port at work tomorrow if I have time. I'm in no real hurry, the phone runs great the way it is lol

[Q] Can't change system partition size

Hi, I wanted to flash mikegapinski's ICS.
I flashed it through recovery update package, but the device stays on boot. So I tried fastboot, and got error 'data too large'.
I've got 150mb system partition (changed its size with Mur4ik's Swift Bootloader Tools some time ago). But right now when I want to increase its size, it doesn't.
I tried many sizes, none has worked.
When I'm using Mur4ik's program, when I hit 'Flash..' I get 'Done' message. Everything's ok, but when I'm trying to flash new rom, I get error "(remote: data too large)". Every time.
When wiping my phone, I get bad block errors. So i tried to fix them, but I haven't found any good solution for me.
Right now I'm stuck with smaller roms, and can't try anything new.
If any of you has any advice for me, I would be grateful.
I hope you can understand me, I'm not native english speaker.
Did you reboot after you flashed the new bootloader?
You need to reboot back to fastboot after you change the sizes
Sent from my GT540 ICS
Yes, I did.
Though, I tried doing it without reboot to see if it helps. But normally I always rebooted.
I just can't get it to work....
So, does anyone knows some alternative way to change system partition size?
kacpak said:
So, does anyone knows some alternative way to change system partition size?
Click to expand...
Click to collapse
Try this: http://forum.xda-developers.com/showthread.php?t=1366855
I tried Mur4ik's program but it didn't exactly work. I needed to flash the 'mbn' file by typing 'fastboot flash APPSBL <mbn filename>' on fastboot. The thread linked above contains a directory of mbn files and instructions for flashing them.
Thanks a lot!
I will try it when I get back. I hope that will work.
-------------
It works!
I owe you
kacpak said:
Thanks a lot!
I will try it when I get back. I hope that will work.
-------------
It works!
I owe you
Click to expand...
Click to collapse
No problem ^-^
jhonnyx1000 said:
Try this: http://forum.xda-developers.com/showthread.php?t=1366855
I tried Mur4ik's program but it didn't exactly work. I needed to flash the 'mbn' file by typing 'fastboot flash APPSBL <mbn filename>' on fastboot. The thread linked above contains a directory of mbn files and instructions for flashing them.
Click to expand...
Click to collapse
had the same issue and used fastboot like you said and its fixed.so.. thanks because I Really got annoyed from "insufficient storage"
RE
Mur4ik's doesn't work with every gt540 i think it is problem with fastboot versions,and bad block messages don't worry about them it will skip that blocks because there are two reasons,either they are system locked or fabric marked as bad but fastboot tries to write it.....
djfoxserbia said:
Mur4ik's doesn't work with every gt540 i think it is problem with fastboot versions,and bad block messages don't worry about them it will skip that blocks because there are two reasons,either they are system locked or fabric marked as bad but fastboot tries to write it.....
Click to expand...
Click to collapse
Thanks, yeah I found a thread explaining how to change the sizes using fastboot
http://forum.xda-developers.com/showthread.php?t=1415597
I then managed to install the latest edition and HOPEFULLY my phone is fixed.
- I think everything is fine. Just a warning to others, the previous version, I used 160MB as a system partition, and it all worked fine and randomly I got this error saying my USB card was damaged. I checked using another phone and it wasn't and so proceeded to reset the ROM factory settings. This worked but on the SECOND reboot I couldn't open any application. I then tried rebooting a third time and it kept hanging at the boot animation and playing the sound over again lol. Anyhow, seems to work fine this time round (after reflashing).

Possible root method for Sprint ONLY, need tester (will possibly brick phone)

Hey guys, talking to tungkick again and came up with something that MIGHT work. It might brick your phone though, so does anyone have a phone that they would be willing to test this on? It is a way to unlock bootloader
Please PM me as soon as possible
Anyone remember what variant of the G5 Fredo had?
Coycaine said:
Anyone remember what variant of the G5 Fredo had?
Click to expand...
Click to collapse
He has (had) a few posts on the Sprint forums, i don't know much about him though... seemed to bring more trouble than help. Would you be willing to test our method?
Got an idea of the brick/success odds? I'm willing to test, but she's my daily too.
Any luck so far?
I'd be willing to be a tester if you tell me the kind of risk associated with your method
Sent from my LGLS992 using XDA-Developers mobile app
Put my daily up
I am willing to give it a shot. U only love once. What's life without a little risk
solitarywarrior1 said:
got an idea of the brick/success odds? I'm willing to test, but she's my daily too.
Click to expand...
Click to collapse
fenguepay said:
i'd be willing to be a tester if you tell me the kind of risk associated with your method
sent from my lgls992 using xda-developers mobile app
Click to expand...
Click to collapse
schizoidd said:
i am willing to give it a shot. U only love once. What's life without a little risk
Click to expand...
Click to collapse
removed: Bricks device!!! No devices were hurt luckily
well there's only one way to find out....
schizoidd said:
well there's only one way to find out....
Click to expand...
Click to collapse
So you are willing to test? Glad we have done risk takers
f*%& yeah
As long as there isn't any device check in LGUP then you should be able to flash a t-mobile tot. Also the cellular radio will be the only thing that might brick. You should be able to flash back to sprint the same way that you flashed the t-mobile tot. Also that should fix the radio. Worst case scenario you loose your efs aka esn, imei and meid. However, they can be restored if you know how. In my opinion this sounds like it should work. I don't have a g5 and my g4 is in for repair so I cannot test currently. If someone tests this let us know if it works.
l33tlinuxh4x0r said:
As long as there isn't any device check in LGUP then you should be able to flash a t-mobile tot. Also the cellular radio will be the only thing that might brick. You should be able to flash back to sprint the same way that you flashed the t-mobile tot. Also that should fix the radio. Worst case scenario you loose your efs aka esn, imei and meid. However, they can be restored if you know how. In my opinion this sounds like it should work. I don't have a g5 and my g4 is in for repair so I cannot test currently. If someone tests this let us know if it works.
Click to expand...
Click to collapse
There's a DLL check in LGUP, but I think tungkick can JTAG it
Honestly Annoying said:
There's a DLL check in LGUP, but I think tungkick can JTAG it
Click to expand...
Click to collapse
The dll is fine... On the G3 we used to have a dll that would allow flashing different versions from different carriers. That was back in the LG flash tool days though. I am pretty sure that the dll for LGUP allows this already but the only people that know for sure are those that have tried it and @autoprime.
l33tlinuxh4x0r said:
The dll is fine... On the G3 we used to have a dll that would allow flashing different versions from different carriers. That was back in the LG flash tool days though. I am pretty sure that the dll for LGUP allows this already but the only people that know for sure are those that have tried it and @autoprime.
Click to expand...
Click to collapse
We have a tester who said that LGUP gave a DLL error. I'll talk to him more though
Honestly Annoying said:
We have a tester who said that LGUP gave a DLL error. I'll talk to him more though
Click to expand...
Click to collapse
we could also flash the bootloader manually.... However that could really brick the phone if not done correctly.
l33tlinuxh4x0r said:
we could also flash the bootloader manually.... However that could really brick the phone if not done correctly.
Click to expand...
Click to collapse
He said he is willing to brick, how could we do that?
Honestly Annoying said:
He said he is willing to brick, how could we do that?
Click to expand...
Click to collapse
Ok... They have to enter download mode and flash the bootloader partition using dd. First they have to get a list of partitions so they know what partition is the boot loader partition.
Code:
mount
should tell you what most of the partitions are. Then do backup your bootloader by doing
Code:
dd if=/path/to/block/bootloaderpartiton of=/sdcard/bootloaderbackup.bin
of course you have to change /path/to/block/bootloaderpartiton to the correct location. Then just flash the new bootloader using
Code:
dd if=/sdcard/bootloaderyouwanttoflash.bin bs=8192 seek=65536 count=557312 of=/path/to/block/bootloaderpartition
again changing the /path/to/block/bootloaderpartiton to the correct location.
EDIT: I believe that the bootloader is aboot.bin or aboot.mbn when you extract the tot file. It doesn't matter what the file extension is. Someone please correct me if I'm wrong.
l33tlinuxh4x0r said:
Ok... They have to enter download mode and flash the bootloader partition using dd. First they have to get a list of partitions so they know what partition is the boot loader partition.
Code:
mount
should tell you what most of the partitions are. Then do backup your bootloader by doing
Code:
dd if=/path/to/block/bootloaderpartiton of=/sdcard/bootloaderbackup.bin
of course you have to change /path/to/block/bootloaderpartiton to the correct location. Then just flash the new bootloader using
Code:
dd if=/sdcard/bootloaderyouwanttoflash.bin of=/path/to/block/bootloaderpartition
again changing the /path/to/block/bootloaderpartiton to the correct location.
Click to expand...
Click to collapse
What operating system are you using for this? And where do i run this code, just through command prompt?
Honestly Annoying said:
What operating system are you using for this? And where do i run this code, just through command prompt?
Click to expand...
Click to collapse
If you are in download mode you can run commands as root on the phone. The commands can be run using send_command.exe on windows.
OK I uploaded a zip with send_command.exe in it
To use it open cmd prompt and type.
Code:
Send_Command.exe \\.\COM4
replacing 4 with whatever your com port is (you can find this under device manager com ports)
You should see a # where you can type commands as root. Also type mount in adb to find the partitions... Then post it back here so I can have a look. I will try to tell you exact commands to use if I can find the partitions. Thanks

essential return to stock

hey i updated to linage os and now cannt return to stock. can somebody halp ho can i return?
bchokheli said:
hey i updated to linage os and now cannt return to stock. can somebody halp ho can i return?
Click to expand...
Click to collapse
What error do you get? I've returned to stock many times on Mac and pc. Flash all from the stock software files should do everything that needs to be done. I always fastball -w before and after return to stock as well.
Turbojugend said:
What error do you get? I've returned to stock many times on Mac and pc. Flash all from the stock software files should do everything that needs to be done. I always fastball -w before and after return to stock as well.
Click to expand...
Click to collapse
when im in bootloader and enter fastboot devaces it dont recognizes and when i enter wastboot -w it have no react.
I know this may seem like a obvious thing, but do you have developer mode active on the phone and USB debugging switched on?
bchokheli said:
when im in bootloader and enter fastboot devaces it dont recognizes and when i enter wastboot -w it have no react.
Click to expand...
Click to collapse
Do you have the drivers installed?
jakkzen said:
I know this may seem like a obvious thing, but do you have developer mode active on the phone and USB debugging switched on?
Click to expand...
Click to collapse
yes debugging mode is active. but when phone goes to bootloader usb unplug sound hears from computer.
Turbojugend said:
Do you have the drivers installed?
Click to expand...
Click to collapse
what drivers are neded to install i have windows 10. i flashed linage os from this computer but now cant return to stock.
if somebody can help with Teamviewer
You put all the flash back to stock files in the same folder as your adb and fastboot drivers?
Turbojugend said:
You put all the flash back to stock files in the same folder as your adb and fastboot drivers?
Click to expand...
Click to collapse
yes im doing all like video on youtube but somthing goes wrong.
bchokheli said:
yes im doing all like video on youtube but somthing goes wrong.
Click to expand...
Click to collapse
You don't have the fastboot from Essential...
Go get that...
rignfool said:
You don't have the fastboot from Essential...
Go get that...
Click to expand...
Click to collapse
where i can get that?
bchokheli said:
where i can get that?
Click to expand...
Click to collapse
Essential's website
thanks to all

Categories

Resources