Jump to content


Photo

NVFlash Setup Instructions + Drivers (links active!)

* * * * * 1 votes

  • Please log in to reply
56 replies to this topic

#1
djmcnz

djmcnz

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Location:Amsterdam
  • Devices:Galaxy Nexus, TF201
Okay,

So I suspect a few of you are going to want to jump on the NVFlash train that Paul is easing out of the station at the moment. NVFLash is the Nvidia utility for writing to the ROM on your Tegra2 phone, reading details and otherwise critical low level functions. For all intents and purposes this is akin to fastboot for many devices (although not the same as).

Below are the simple instructions and links to the necessary files.

** WARNING **
NVFlash is a powerful utility that works at a very low level on your phone. There are few safety mechanisms built into a tool like this because it is intended for use by people with suitable training. NVFlash can not physically damage your phone but it can render it inoperable. It is unlikely to create an irrecoverable situation but it does have the power to create a situation that you can not recover from yourself requiring factory maintenance. Warranty coverage for your phone is not assured after using NVFlash. Please proceed with the use of the tool carefully and at your own risk. Neither myself nor MoDaCo can be held accountable for any consequences from the use of NVFlash on your phone.


Get SoftwarePrepare Phone
  • Power down phone
  • Remove battery
  • Hold VOL_DWN+VOL_UP & plug in USB connection from computer (note, your phone will not visibly respond but it will boot to APX mode quickly)
  • Open Device Manager in Windows and you should see "APX Device" listed with an error
  • If not, rinse and repeat
Install Driver
  • Right click on the APX device
  • Select 'Update driver software'
  • Select 'Browse my computer...'
  • Select 'Let me pick...'
  • Select 'Have disk'
  • Browse to directory you extracted the *driver* software to above
  • Select 'NVIDIA USB Boot-recovery driver for mobile devices'
  • Accept any warnings, including the big red alert (you may need to disable UAC)
  • Now in Device Manager under 'USB Controllers' you should have an 'NVIDIA USB Boot-recovery driver for mobile devices'
  • If not, uninstall the driver, reboot, rinse and repeat
Testing
  • Make sure your phone is still plugged in to the computer! (some people, wow.)
  • Navigate the the directory you extracted the NVFlash archive to
  • Run a harmless command such as "nvflash --sync"
  • You should get something back like:

Nvflash started
rcm version 0X20001
System Information:
   chip name: unknown
   chip id: 0x20 major: 1 minor: 3
   chip sku: 0xf
   chip uid: 0x0280404444803457
   macrovision: disabled
   hdcp: enabled
   sbk burned: false
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 17
   sdram config strap: 0


Update 27/04

Okay, now that the G2x has been released there are different procedures from this point on to follow to flash the O2x and G2x back to stock. You must look in the appropriate forum to download the necessary files as well as the command line script.

Tip - For Reading This Far

One of the things you may want to do after flashing your phone is install a custom recovery (e.g. ClockworkMod). Many, many, many people try and fail to boot their 2x in recovery mode and spend endless hours wasted. So, it may save you some time to know the following.

To enter recovery mode use the following procedure but BE WARNED: If you do this BEFORE you install a custom recovery you will factory reset your phone. This is because it will boot the stock recovery image which auto-wipes your device.

Hold VOL_DOWN then press & hold POWER
Keep both pressed UNTIL the recovery menu appears then release POWER then release VOL_DOWN

The menu text in ClockworkMod Recovery is orange if you get a green menu or a message that your device was reset then you're not running ClockworkMod... sorry.


Edited by djmcnz, 27 April 2011 - 05:17 PM.

  • 2

#2
gensplejs

gensplejs

    Regular

  • MoDaCo Silver
  • PipPip
  • 103 posts
Works perfectly!

Well then... im ready to go for testing CWM and any roms :-)

Edited by gensplejs, 24 March 2011 - 07:11 PM.

  • 0

#3
sibbor

sibbor

    Regular

  • Members
  • PipPip
  • 71 posts
  • Gender:Not Telling
  • Devices:HTC One X, LG Optimus 2x
  • Twitter:@sibbor
Yes, works out good. Brilliant instructions! :-)
EDIT: got he same information as you frm "nvflash.exe --sync".

Edited by sibbor, 24 March 2011 - 10:57 PM.

  • 0
HTC One X, LG Optimus 2X

#4
action294

action294

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:LG Optimus 2x
At the end I also get a message like:
"command failure: no bootloader was specified"

Is this normal?

  • 0

#5
djmcnz

djmcnz

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Location:Amsterdam
  • Devices:Galaxy Nexus, TF201

At the end I also get a message like:
"command failure: no bootloader was specified"

Is this normal?


Yes, that's okay.

  • 0

#6
slogen

slogen

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:LG-P990 & HTC Sapphire 32A
I have an LG-P990 from 3 Denmark. Android 2.2.2, stock kernel: 2.6.32.9, baseband 1035.21_20110223, build number FRG83G, LGE version LGP990-V10a.

I am having trouble getting NVflash.exe to find the USB connection to the phone in nvflash mode. I am hoping that someone may be able to give me a hint.

C:\Documents and Settings\hej\Desktop\LG\NVFlash>nvflash.exe --sync
Nvflash started
USB device not found


I have the 'NVIDIA USB Boot-revovery driver for Mobile devices' installed for the APX device and it is loaded (and unloaded) when i do the power-on+vol-down dance. The device manager reports 'This device is working properly' for the device. So I think I am correctly putting the phone into recovery-mode and have the right driver configured.

I have already tried to reboot windows, uninstalling (by right clicking in the devicemanager) and re-installing the Boot-recovery (APX) driver.

USB Connections to the phone works nicely when it is booted into the normal ROM, so I don't think it's a cable problem.

I have tried running the cmd from which i run nvflash.exe as adminstrator, so I don't think it's a permission problem.

Any hints?

  • 0

#7
djmcnz

djmcnz

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Location:Amsterdam
  • Devices:Galaxy Nexus, TF201

I have an LG-P990 from 3 Denmark. Android 2.2.2, stock kernel: 2.6.32.9, baseband 1035.21_20110223, build number FRG83G, LGE version LGP990-V10a.

I am having trouble getting NVflash.exe to find the USB connection to the phone in nvflash mode. I am hoping that someone may be able to give me a hint.

C:\Documents and Settings\hej\Desktop\LG\NVFlash>nvflash.exe --sync
Nvflash started
USB device not found


I have the 'NVIDIA USB Boot-revovery driver for Mobile devices' installed for the APX device and it is loaded (and unloaded) when i do the power-on+vol-down dance. The device manager reports 'This device is working properly' for the device. So I think I am correctly putting the phone into recovery-mode and have the right driver configured.

I have already tried to reboot windows, uninstalling (by right clicking in the devicemanager) and re-installing the Boot-recovery (APX) driver.

USB Connections to the phone works nicely when it is booted into the normal ROM, so I don't think it's a cable problem.

I have tried running the cmd from which i run nvflash.exe as adminstrator, so I don't think it's a permission problem.

Any hints?


It may just be a typo but are you trying to get into recovery (vol dwn & pwr) as you describe or nvflash (vol dwn & vol up & usb) as is required?

Edited by djmcnz, 26 March 2011 - 09:06 AM.

  • 0

#8
slogen

slogen

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:LG-P990 & HTC Sapphire 32A

It may just be a typo but are you trying to get into recovery (vol dwn & pwr) as you describe or nvflash (vol dwn & vol up & usb) as is required?


Thanks for the suggestion, unfortunately that's a "typo". I am having a bit of difficulty with the precise naming here :D

I think I am getting into nvflash mode on the phone, as confirmed by:
  • The USB device appearing in windows when inserting usb and holding down both vol buttons and disappearing when taking out the usb
  • The display on the phone, which is completely blank.
I can get into 4 modes from "powered off". I don't know their "approved" names, but here is my description and a guess at a good name:
  • Normal: Battery in, push power for ~2sec.

    Boots into the (currently stock) installed kernel.

    Windows device manager shows 'LGE Android Platfrom Composite USB Device' (Device ID: USB\VID_1004&PID_618E\5&2BA8691F&0&6) and 'USB Mass Storage Device' (Device ID: USB\VID_1004&PID_618E_UMSINTERFACE\6&111656F2&0&0000).

    Two removable devices shows up on 'My Computer' (H:,G:). This happens no matter if I have an external SD inserted or not.

    If I "Turn on USB storage" I can browse the internal and external sdcard respectively through H: and G:
  • Upgrade: Battery in, hold vol-down, push power for ~1sec.

    Boots into screen that shows round icon with 2 green arrows in a cycle and the text "S/W Upgrade Please wait while upgrading..."

    Windows does not show any USB adapters (that have anything to do with the phone)
  • nvflash: Battery out, hold vol-down and vol-up, push power.

    Boots into blank screen within ~1 second

    Windows device manager shows a 'NVIDIA USB Boot-recovery driver for Mobile devices" with

    DEVICE Instance Id: USB\VID_0955&PID_7F20\5&2A8691F&0&6
    Device Coinstallers: WdfCoInstaller01007.dll,WfdCoInstaller,WinUSBCoInstaller.dll
  • recovery: Battery in, hold vol-down & power for ~10secs (untill LG logo does a small "flash")

    Boots into ClockworkMod Recovery (MoDaCo Beta 1) which i have dd'ed to /dev/block/mmcblk0p7

    Windows device manager shows the same a in mode "A" (Normal). I have not experimented with how to expose the internal/external SD.

  • 0

#9
djmcnz

djmcnz

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Location:Amsterdam
  • Devices:Galaxy Nexus, TF201

Thanks for the suggestion, unfortunately that's a "typo". I am having a bit of difficulty with the precise naming here :D

I think I am getting into nvflash mode on the phone, as confirmed by:

  • The USB device appearing in windows when inserting usb and holding down both vol buttons and disappearing when taking out the usb
  • The display on the phone, which is completely blank.
I can get into 4 modes from "powered off". I don't know their "approved" names, but here is my description and a guess at a good name:
  • Normal: Battery in, push power for ~2sec.

    Boots into the (currently stock) installed kernel.

    Windows device manager shows 'LGE Android Platfrom Composite USB Device' (Device ID: USB\VID_1004&PID_618E\5&2BA8691F&0&6) and 'USB Mass Storage Device' (Device ID: USB\VID_1004&PID_618E_UMSINTERFACE\6&111656F2&0&0000).

    Two removable devices shows up on 'My Computer' (H:,G:). This happens no matter if I have an external SD inserted or not.

    If I "Turn on USB storage" I can browse the internal and external sdcard respectively through H: and G:
  • Upgrade: Battery in, hold vol-down, push power for ~1sec.

    Boots into screen that shows round icon with 2 green arrows in a cycle and the text "S/W Upgrade Please wait while upgrading..."

    Windows does not show any USB adapters (that have anything to do with the phone)
  • nvflash: Battery out, hold vol-down and vol-up, push power.

    Boots into blank screen within ~1 second

    Windows device manager shows a 'NVIDIA USB Boot-recovery driver for Mobile devices" with

    DEVICE Instance Id: USB\VID_0955&PID_7F20\5&2A8691F&0&6
    Device Coinstallers: WdfCoInstaller01007.dll,WfdCoInstaller,WinUSBCoInstaller.dll
  • recovery: Battery in, hold vol-down & power for ~10secs (untill LG logo does a small "flash")

    Boots into ClockworkMod Recovery (MoDaCo Beta 1) which i have dd'ed to /dev/block/mmcblk0p7

    Windows device manager shows the same a in mode "A" (Normal). I have not experimented with how to expose the internal/external SD.


Well, I can't see anything wrong with what you're doing - on face value anyway.

Since you now have a custom recovery it's probably not critical, what would you like to do?

  • 0

#10
slogen

slogen

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:LG-P990 & HTC Sapphire 32A

Well, I can't see anything wrong with what you're doing - on face value anyway.

Since you now have a custom recovery it's probably not critical, what would you like to do?



I agree that it is not critical to me (at least now).

However, I would certainly feel a lot safer flashing away on baseband and ROM if I knew that I could always nvflash to get back to a working phone.

At least my problem is now documented and it doesn't sound like I am just being too stupid to flash :D In time a solution may appear or I may find out what I am doing wrong.

I have backup of the entire internal mmc (gzip </dev/block/mmcblk0 >backup.gz) , so I should probably be able to get stuff working as long as I have CWM.

  • 0

#11
Stefing

Stefing

    Newbie

  • Members
  • Pip
  • 35 posts
  • Location:London
  • Devices:Optimus 2X & San Francisco
  • Twitter:@Stefing

If so, you're good to go, now just be patient... :D


Excellent stuff, just one question (this is where I've had problems before)
Has anyone tried this with Windows 7 x64?

  • 0

#12
Sanotsuke

Sanotsuke

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:LG 2X
Hello all im new here
I really messed up my phone it seem.

First there a occasional of blackout on the original so i decided to do a root on it
I got the quick recovery thing
Then back up and use the fr10
rebooted it and it never work. it keep reloading boot screen over and over
did a wipe after that and reinstall
it went into the os but i frozed after
so i came to this channel hoping to save my phone firmware..
did all the things above..

and run flash.bat
right now it say NVflash started


what do i do now ? im not sure if it even moving lol

  • 0

#13
Ken Petersen

Ken Petersen

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:LG P990 Optimus 2X

Excellent stuff, just one question (this is where I've had problems before)
Has anyone tried this with Windows 7 x64?


I have tried once and failed, nvflash started but nothing happend. Didn't want to try again.

  • 0

#14
Ken Petersen

Ken Petersen

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:LG P990 Optimus 2X

and run flash.bat
right now it say NVflash started
what do i do now ? im not sure if it even moving lol


Happend for me too on Win 7 64 bit, fortunately I was just messing around, so mine still works, before and after.

I had to abort the process, since NVFLASH did not nothing and just hang there

  • 0

#15
Johan O R

Johan O R

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:LG Optimus X2
Problem:
Installed clockwork, But was unable to reboot in recovery.. The I used menu in clockwork [Recovery] to get into recoverymode.

Then installed the pre baked ROM from MoDaCo. and restarted the phone.

Then i ended up in a boot loop , started up showed MoDaCo logo, and the restarted... never ending...

I could not in any way go into recovery mode (because the phone did not boot up.. )

SOLUTION:

I followed this guide:
http://android.modac...s-links-active/

was able to get to recovery mode after this.
Installed the ROM again and after that BEFORE I restarted the phone, I wiped all data and cache.

NOW I WORKS :mellow:
THANKS!!!!!

Tag:
LG Optimus X2 loop, LG Optimus X2 boot loop, LG Optimus X2 stuck at startup

Edited by Johan O R, 02 May 2011 - 09:27 AM.

  • 0

#16
soundsk

soundsk

    Newbie

  • Members
  • Pip
  • 44 posts
  • Devices:LG Optimus 2X
Can NVFlash be used to make a low level backup of the current state of my phone (ROM, recovery, etc.)? Or is it only for writing? Been looking at the help in the executable but I'm afraid to damage something.

Can't find my version of the FW anywhere, so I would like to backup mine this way.

Hope someone can help out.

Cheers!

  • 0

#17
goatee

goatee

    Addict

  • Members
  • PipPipPipPipPip
  • 578 posts
  • Gender:Male
  • Devices:Motorola Razr Maxx XT910
  • Twitter:@edperch
Only for restoring the image as far as I can tell. Just use the backup option in Clockwork :unsure:.

Can NVFlash be used to make a low level backup of the current state of my phone (ROM, recovery, etc.)? Or is it only for writing? Been looking at the help in the executable but I'm afraid to damage something.

Can't find my version of the FW anywhere, so I would like to backup mine this way.

Hope someone can help out.

Cheers!


  • 0

#18
soundsk

soundsk

    Newbie

  • Members
  • Pip
  • 44 posts
  • Devices:LG Optimus 2X
Did a bit of googling and some folks do use it to make backups (VEGA, and Gtablet etc.). I think it makes sense.

The stock ROM Paul released didn't appear from thin air, so I'm guessing he used nvflash or something like that to create the image. But the process is probably quite technical and device-specific (partitions and such) involving a whole bunch of arguments that must be set correctly, and so Paul or someone could make a small how-to or batch/shell script with the correct nvflash arguments to create such backups.

Perhaps smartflash could also fit the bill... I'll see what i can find out...

Cheers!

  • 0

#19
moler

moler

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:LG optimux x2
Hi i have read this guide and the posts in it and can understand that some have problems using win 7 x64 are that a common problem or is x64 safe to use?

  • 0

#20
djmcnz

djmcnz

    Diehard

  • Members
  • PipPipPipPip
  • 386 posts
  • Gender:Male
  • Location:Amsterdam
  • Devices:Galaxy Nexus, TF201

Hi i have read this guide and the posts in it and can understand that some have problems using win 7 x64 are that a common problem or is x64 safe to use?


Yes, there are problems. I don't know the solution but you should check on XDA as well.

  • 0




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users