[Q] How To Install Clockwork? - GT540 Optimus General

Hello All!
So my gt540 has already been rooted and fastboot works. I have been running a 2.2 rom flashed through fastboot for a few months now, but I would like to get clockwork recovery working now for the added features of flashing zips and restoring and whatnot.
I have has a lot of trouble finding clear directions on how and what to do to get clockwork recovery on this device. Like I said, I already have root and fastboot is working as well. Can anyone please provide me with instructions on what I need to do from this point?
I have looked at this thread already, http://forum.xda-developers.com/showthread.php?t=817903, but I am still unsure of what exactly I am to do. Also, the mirrors are broken on this page.
Thank you for your help!

download the app root toolbox from the market
and then download a recovery .img and go to advance
flash recovery, find the file and press on it.
wait until finish and then all done!
Or here are better instructions!!
http://forum.xda-developers.com/showpost.php?p=16783348&postcount=1
Installing recovery:
You have multiple choices to choose from.
ClockworkMod Recovery 2.5.1.8 (Recommended)
ClockworkMod Recovery 4.x (Recommended but you may run into incompatible .zip files, download the recovery_clockwork_x.x.x.x_swift.zip file)
Amon RA 2.2.1 (Recommended)
Amon RA 1.7.0.1 (Not recommended due to incompatibility with zip files and recovery backups. Also .zips must be signed)
Download the recovery image of your choice (I strongly recommend Clockwork 2.5.1.8)
Next put your phone in Fastboot mode by rebooting then holding Camera+Power, make sure USB Cable is plugged in. Also let Windows search Windows Update for drivers.
Download fastboot.exe from here: http://adf.ly/2M8Hi and extract it to the desktop. Also put the recovery image you downloaded onto the desktop too.
Be sure to have your fastboot drivers installed, if you use Vista/Windows 7 then the driver should be auto-downloaded from Windows Update, if you use XP or the drivers won't install from Windows Update, then look at this.
Open a command prompt and type the following:
Code:
cd Desktop
fastboot devices (if you see ? fastboot then your device is recognized)
fastboot flash recovery name_of_recovery.img
fastboot reboot
When fastboot says rebooting, hold down HOME and wait. You should see clockwork pop up. Recovery is now on your phone. You can delete the fastboot, kdz and recovery file from your pc because we won't be needing them again. Unless you need to use fastboot.exe again, but just download the fastboot.zip again if you need it) The other files, we don't need.
(NOTE: If your phone reboots with no boot logos (LG logo and animation), or when you flash recovery and it doesn't come up, follow the steps found here. Thanks to fishears for the post!)
Now, installing custom ROMs. Pick any ROM you'd like from the ROM Development section, if you can, get the recovery version, it is much easier to install. Determine if it is a recovery backup, or update.zip
Recovery backups usually contain some .img files and a nandroid.md5 file. The folder containing these files will need to go in the sdcard\clockworkmod\backup folder. Flash them by going to Backup/Restore>Restore>Then pick the backup folder.
Recovery update.zips contain three (or four) files/folders:
boot.img (file)
install-busybox.sh (file, only appears in SOME ROMs)
system (folder)
META-INF (folder)
DO NOT EXTRACT THESE, just put the .zip file on your sdcard, then go into recovery and go to install .zip from sdcard>choose .zip>pick the .zip you downloaded. (NOTE FOR SWIFTDROID: You MUST put the update-cm-xxxxx.zip file found in the SwiftDroid_x.x.x.x_Recovery.zip on your sdcard for it to install!!!)
THANKS TO EFFORTLESS FOR INSTRUCTIONS!!

Thank you thank you very much sir!

kweng_ca said:
Thank you thank you very much sir!
Click to expand...
Click to collapse
Ur welcome!
Just thank me!
Sent from my GT540

Related

[Q] Problems flashing recovery

I've achieved permroot via the tutorial and am using a mac, but so far have not been able to flash a recovery to be able to do ROMs. Whenever I do the fastboot command
./fastboot flash recovery recovery.img
< waiting for device >
I get that, and it does nothing. Any ideas what's going wrong?
Have you set your phone to Fastboot mode? You have to select fastboot from the bootloader, just a guess
Did you place the recovery image in the sdk tools folder?
powered by the tears of a million orphaned alpacas...
Yep it's in the proper folder. Putting the phone in fastboot mode? I haven't heard of that. It is plugged in with USB debug on. I leave it on the main screen.
If you're following bcnice's instructions and you hopefully have the fastboot.exe in a folder you put into your Windows path (AdroidSDK\platform-tools)
You just cd to the directory where the recovery.img is (on the PC) power your phone off, turn on while holding volume down (bootloader) select fastboot (I believe is says something like fastboot-usb when it's ready, then just type in the command:
fastboot flash recovery recovery.img
you will see the transfer happen then you boot into recovery (on the phone) and if you got it right it will now be a black background with green font
go to backup/recovery, select recovery, there's your Nandroid!
I just did this today so I feel your pain but I've already flashed a new ROM and the OC'd kernel so I'm sure you can get the hang of it. Fun fun fun.
Edit: Sorry, didn't see you were using a mac... I have no experience with those. It may be in your best interest to have the recovery.img in the same folder your fastboot.exe is
You know you don't have to fastboot to do recovery..you can just push the files
Sent from my PG06100 using XDA App
Or...
1) Download the recovery you want (either CW 2.5 or CW 3.0).
2) Download Rom Manager from the Market.
3) Flash Clockwork Recovery from the Rom Manager main menu. (Make sure you select HTC EVO CDMA).
4) Open File Explorer, go to ClockworkMod/download/mirror1.kanged.net/recoveries and rename the recovery file to "recovery-clockwork-3.0.0.5-supersonic1.img.
5) Move the recovery file that YOU want into this folder, and rename it to "recovery-clockwork-3.0.0.5-supersonic.img.
6) Open Rom Manager and Flash Alternate Recovery.
7) Flash ClockworkMod Recovery (select HTC EVO CDMA again), and it will flash the correct recovery image compatible w/ our EVO Shift.
This set up works w/ any of our recoveries out now or going forward. Simply rename the file each time. Hopefully ClockworkMod will add our recovery to the base soon and we won't have to go through this step, but for now, this is an alternate way to flash recovery for those of you not wishing to use Fastboot, and want to do things directly from your phone.

[HOW TO] Revert to latest stock ROM (GRI40)

I personally have tried lots of ROM's but all I really want is the stock ROM with the option to root if I want. After lots of research, I couldn't find a comprehensive tutorial on how to do this. There is of course the GRI40 image available in update.zip format for custom recoveries which is helpful for most. However, if your a bit anal like me, and want the official update directly from Google servers, follow this guide. This might also be helpful for people who can't get into the custom recovery any more.
NOTE: I will not provide help for anybody. This guide assumes you have the Android SDK in order to use adb. There may be other ways of doing this, I am not an experienced programmer, this works for me, it will work for you.
[GUIDE]
Download the following files:
Stock Froyo Image (Contains stock recovery image)
Stock GRI40 Image
Instructions
You first have to revert to stock Froyo image to get the stock recovery back. This is needed to install the GRI40 update ZIP
1. Disable backup my settings under privacy settings.
2. Unzip the original Froyo shipping ROM and put it somewhere you can find
3. Plug in Nexus One with USB to computer (enable USB Debugging)
4. Open command prompt, navigate to SDK folder which contains adb. Type
Code:
adb reboot bootloader
(which will boot into the bootloader)
5. Confirm fastboot connection with
Code:
fastboot devices
6. Type
Code:
fastboot erase userdata
7. Type
Code:
fastboot erase cache
*If step 6 and 7 does not work, and if you have a custom recovery installed, you can do a factory data wipe from there. Also perform a dalvik-cache wipe.
Alternately, you can also do a factory data wipe within Android. Settings => Privacy Settings => Factory Data Reset.
8. Go to the directory that you stored your unzipped files from the official Froyo ROM, for ease of use, copy these into the directory containing adb.exe
9. Type
Code:
fastboot flash userdata userdata.img
10. Type
Code:
fastboot flash boot boot.img
11. Type
Code:
fastboot flash system system.img
12. Type
Code:
fastboot flash recovery recovery.img
13. Type
Code:
fastboot reboot
14. Once phone has started, skip all account setup. Copy the new GRI40 .zip from Google servers to the root of your SD card. Ensure it has been renamed to update.zip if necessary.
15. Reboot into bootloader mode (hold trackball when switching on), select recovery, you will see an exclamation mark with a little green Android.
16. Hold power button and press Vol. Up to see recovery menu. Select 'Apply: Update.zip'
17. After the system boots up and while setting up skip setting up with the google account and you can setup accounts later. This will prevent the phone from pulling down the previous settings (downloaded apps, wallpaper etc) from google.
18. You are done. Enjoy.
If you want to root:
Download the following:
Latest Clockworkmod Recovery
su.zip
Instructions
How to root the stock ROM
1. Download su.zip and copy to root of your SD card
2. Download a recovery image file and for ease of use, copy into same directory containing fastboot on your PC
3. Turn on USB debugging and connect phone to PC
4. Open command prompt, navigate to SDK folder which contains adb. Type
Code:
adb reboot bootloader
(which will boot into the bootloader)
5. Type
Code:
fastboot flash recovery recovery.img
where 'recovery.img' is the name of your recovery image file (easy thing to do is rename the file to 'recovery.img'!)
6. It will upload, once complete, disconnect you phone from computer
7. On your phone, select Bootloader, then Recovery to boot into your new recovery
8. Now select ‘Apply Update.zip’ and find the su.zip file (Turn off signature verification if using Amon RA)
Note:Custom recovery will be overwritten with the stock recovery on reboot but root privelages will still be in place.
No need to do that. Flash the stock rom. Done.
Sent from my Nexus One using XDA App
albundy2010 said:
No need to do that. Flash the stock rom. Done.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
You mean you can flash the official GRI40 zip from Google server with a custom recovery?
Iggy82 said:
You mean you can flash the official GRI40 zip from Google server with a custom recovery?
Click to expand...
Click to collapse
Yes!
Make sure it's the full image (80+meg), and not just the update (40+ meg). Recovery should restore to stock after a reboot...
Sent from my Nexus One using XDA Premium App
Well that serves me right for assuming Google would not allow an official update zip to install from a custom recovery!
Did the official update ZIP from Google come out after dsixda made his own update zip then?
The link above is for the full update zip from Google (80MB or so)
Sent from my Nexus One using Tapatalk
usually the official updates come out and people edit them to allow root, busybox, etc.
or just a stock rom that won't over write your custom recovery, etc.
Thanks for this. I have been looking for a stock image all morning!

Tethering on 2.1

I have a rooted GT540 on stock 2.1.
When I try to use tethering programs I get errors relating to Kernels and such.
Is there a method to tether without using a different rom?
You can't tether when you're on 2.1 ROM.... at least Froyo is required...
matcho13579 said:
You can't tether when you're on 2.1 ROM.... at least Froyo is required...
Click to expand...
Click to collapse
You're wrong. Use Barnacle WiFi Tether from market instead. Or use Quarx's Custom Kernel that enables the WiFi tether app from google code to work, but you need to have installed Fastboot rom to install it.
Cheers.
Unfortunately Barnacle hasn't done the job either
KenifJambo said:
Cheers.
Unfortunately Barnacle hasn't done the job either
Click to expand...
Click to collapse
All I can suggest then is installing a custom kernel or ROM I'm afraid.
Here is how you can.
Download this:
http://www.mediafire.com/?imautlh0m29cl2t
This has a fastboot ROM that enables fastboot + recovery so we can flash custom roms.
How to install (Guide from MrMentality @ MoDaCo):
1. Go to the Market and install 'MyBackup Root', open it and do a backup of your apps and personal data (contacts, sms, call log etc.) Once this is done, go to Settings>SD Card and Phone Storage>Unmount SD Card, a notification in the notification bar should appear saying 'SD Card safe to remove'. Remove the battery cover and remove the SD card and store it in a safe place. Then continue to step 2.
2. Extract the .zip file you downloaded to your computer (e.g. your desktop). Open the folder and install MSXML 4.0 SP3 Parser (msxml.msi).
3. If you have your Drivers installed, then skip this: Once that has finished, install LGAndroidDriver_WHQL_ML_Ver1.0_All_Win7.exe which are the drivers so your computer will recognize your phone.
4. Next, open KDZ_FW_UPD.exe
(i) Change 'Type' to '3GQCT' *THIS IS A MUST, THE UPDATE WILL NOT WORK OTHERWISE AND YOU MAY BRICK YOUR PHONE*
(ii) Make sure 'PhoneMode' is set to 'DIAG'
(iii) Browse for the 'V20B_00+Fastboot.kdz' file.
5. Prepare the phone by enabling USB Debugging by going to Settings>Applications>Development>Enable USB Debugging and connect the phone to the computer via USB cable and wait for the drivers to install for the phone.
6. Click 'Launch software update' and do not use your computer until the update is complete. The update will take roughly 10-20 mins to complete. When phone has rebooted, re-root your phone.
Installing recovery:
You have multiple choices to choose from.
ClockworkMod Recovery 2.5.1.8 (Recommended)
ClockworkMod Recovery 4.x (Recommended but you may run into incompatible .zip files, download the recovery_clockwork_x.x.x.x_swift.zip file)
Amon RA 2.2.1 (Recommended but has issues with recovery backups and usb toggle)
Amon RA 1.7.0.1 (Not recommended due to incompatibility with zip files and recovery backups. Also .zips must be signed)
Download the recovery image of your choice (I recommend 2.5.1.8)
Next put your phone in Fastboot mode by rebooting then holding Camera+Power, make sure USB Cable is plugged in. Also let Windows search Windows Update for drivers.
Download fastboot.exe from here: http://adf.ly/2M8Hi and extract it to the desktop. Also put the recovery image you downloaded onto the desktop too.
Open a command prompt and type the following:
Code:
cd Desktop
fastboot devices (if you see ? fastboot then your device is recognized)
fastboot flash recovery name_of_recovery.img
fastboot reboot
When fastboot says rebooting, hold down HOME and wait. You should see clockwork pop up. And there you are, recovery on your phone!
Now to install a custom kernel/rom. If you are happy with Android 2.1 and want tethering, go to step 1 and skip step 2. If you want the bleeding edge and want the latest and greatest Android version, skip step 1 and go to step 2.
Step 1:
Download the boot_666_MMXTREM_init.d.zip from here. Also grab addons.zip from here.
By using the volume keys, go down to Mounts and Storage, press call button, then go to Mount USB Storage, press call button again. On your computer, put both .zip files on the SD Card. Then press call button on phone. Press back until you are at the main screen. Now go to 'install .zip from sdcard' press call to select and press choose .zip, then go down to 'boot_666_mmxtrem.init.d.zip' and select that, then go down to yes and then select, wait until install finishes. Now go back into install.zip and do the same for the addons.zip. When that is finished, go back to main screen and go to 'advanced' and select Wipe Dalvik cache, select yes, wait and then reboot phone. Now try to tether and it should work no problems.
Step 2.
Download any ROM you want from the GT540 section here on XDA.
It will come in either three formats.
Fastboot- boot.img and system.img
Recovery .zip- a .zip file that contains boot.img, and two folders, META-INF and system. DO NOT EXTRACT THIS.
Recovery Backup- boot.img, system.img, data.img, and nandroid.md5
For Fastboot, put phone in fastboot mode, put system.img and boot.img on the desktop, open a command prompt and type:
Code:
fastboot -w
fastboot erase system
fastboot erase boot
fastboot flash boot boot.img
fastboot flash system system.img
fastboot reboot
For recovery.zip, put the .zip file on SD Card (if you are downloading SwiftDroid Recovery version, extract the SwiftDroid_x.x.x.x_recovery.zip put the update-cm-xxxxxx.zip file on your SDCard, not the SwiftDroid.zip one. Then flash in recovery like described in step 1. Remember to factory reset to avoid bootloops.
For recovery backup, put the folder in the ClockworkMod\backup\ folder on the sdcard. Then go to Backup and Restore, choose restore and then choose the backup folder.
Hope it resolves your issues!
Thanks for all that information.
Turns out I was wrong!
My devices don't support ad-hoc so barnacle wasn't the problem.
Found the solution for one of them and Barnacle works.
Still not confident of installing fastboot/roms etc on my gt540 but I managed to find some sort of alternative
Barnacle works for one device (Creative Ziio with ad-hoc enabled)
PDAnet for tablets beta works with browser for my Asus Transformer.
KenifJambo said:
Still not confident of installing fastboot/roms etc on my gt540 but I managed to find some sort of alternative.
Click to expand...
Click to collapse
I can understand your trepidation, but the above instructions are solid and straightforward. I was a bit hesitant at first, but realize that the first steps really involve setting up USB drivers to allow your desktop PC to communicate with the phone, and a program called Fastboot. After that, the installation of the ROM is very simple, and is just a RAR file that you decompress into c:\Android (for example) and run a .Bat file that contains the commands he pasted.
It is well worth it.

How to revert back to stock?

SO i rooted my device as i recall to my prior knowledge and i did correctly. Now i've been searching and while i'm confident the steps i have to make are correct i thought i'd still ask to save me from future trouble.
So JDQ39 is the stock firmware i have and of which i made a back up.
Lets say a new update comes out, 4.2.3 or whatever you want to call it. So basically all i would have to do is restore my nandroid backup.
So far so good, next thing i would have to do is install the stock recovery.img (fastboot flash recovery recovery.img) which i got from the zip located here: https://developers.google.com/android/nexus/images with the title: "Factory Images "occam" for Nexus 4
Android 4.2.2 (JDQ39)"
Basically extract the recovery.img, flash it
and then proceed to fastboot oem lock and voila i'm done?
can anyone confirm please? thank you
Download the stock google image file from google for nexus 4 and extract the files in your fast boot directory adb then run the script job done.
Read whole OP
http://forum.xda-developers.com/showthread.php?t=2010312
It sounds like a lot but if you your computer recognizes your device (fastboot devices), it is really easy.
Small extraction:
C. Download the required files to your computer and extract them
1) All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory;
2) Download the attachment from the end of this post and extract the contents to the directory created in step 1. Note: if all you want to do is unlock your bootloader, skip to step 7 in this section (C).
3) Download the version of Android you want from https://developers.google.com/android/nexus/images. Make sure you are using an occam image which is for the Nexus 4. Most old versions are not usually available on that site; however, there is a mirror on this site: Random Phantasmagoria.
4) Download the appropriate version (for your computer) of 7-zip from here and install it.
5) Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
6) Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
7) Reboot your device into bootloader mode (by turning it off, hold volume down, and press and hold power) and plug it into your computer;
8) Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt.
shadehh said:
SO i rooted my device as i recall to my prior knowledge and i did correctly. Now i've been searching and while i'm confident the steps i have to make are correct i thought i'd still ask to save me from future trouble.
So JDQ39 is the stock firmware i have and of which i made a back up.
Lets say a new update comes out, 4.2.3 or whatever you want to call it. So basically all i would have to do is restore my nandroid backup.
So far so good, next thing i would have to do is install the stock recovery.img (fastboot flash recovery recovery.img) which i got from the zip located here: https://developers.google.com/android/nexus/images with the title: "Factory Images "occam" for Nexus 4
Android 4.2.2 (JDQ39)"
Basically extract the recovery.img, flash it
and then proceed to fastboot oem lock and voila i'm done?
can anyone confirm please? thank you
Click to expand...
Click to collapse
if you simply rooted and would want to get future updates, there is no need to restore your nandroid. if with your root you installed a custom recovery, you are correct that you need to flash stock recovery to install an ota, however with custom recovery installed, someone will surely post a link to the update zip so you can do the update manually using your custom recovery. bootloader won't matter in getting a new update so there is no need to lock it back. you can keep it unlocked and updates will work fine. do note that when an update arrives and installs, if you don't have rootkeeper, you'll lose root so just keep an updated supersu flashable zip in your virtual sdcard so you can simply re-root thru custom rcovery after receiving an update.

PROS NEED HELP!! Accidently messed up my phone! :(

So i was installing a rom and accidentally put to erase everything even internal sdcard when i did the wipe Now I cant even do anything but get on TWRP. When I reboot it just stays in google logo. PLEASE help me out and show me how I can put a ROM in my phone. Whoever helps me with correct information I will give you $50 through paypal or bitcoins if you wish.
Do you have a mac or PC?
If you have a Mac then DL "Android File Transfer" Connect your phone to your computer. Boot into TWRP. Your computer and Android File Transfer should see your phone. Drag a ROM .zip to your phone (and any other needed .zip's) flash the rom.
Bing bang boom
---------- Post added at 06:48 PM ---------- Previous post was at 06:48 PM ----------
SecurityBro said:
So i was installing a rom and accidentally put to erase everything even internal sdcard when i did the wipe Now I cant even do anything but get on TWRP. When I reboot it just stays in google logo. PLEASE help me out and show me how I can put a ROM in my phone. Whoever helps me with correct information I will give you $50 through paypal or bitcoins if you wish.
Click to expand...
Click to collapse
Do you have a mac or PC?
If you have a Mac then DL "Android File Transfer" Connect your phone to your computer. Boot into TWRP. Your computer and Android File Transfer should see your phone. Drag a ROM .zip to your phone (and any other needed .zip's) flash the rom.
You can either download and reflash the factory image via fastboot from google:
https://developers.google.com/android/ota
Or download your ROM of choice with the correct vendor image to your computer.
Then while in recovery on the phone and connected to your computer navigate to where you downloaded the ROM, open command prompt or terminal and
"adb push FILENAME.ZIP /sdcard" push all the files you'd like . After finished either reboot recovery from TWRP or adb reboot recovery.
This assumes you have adb installed and as a system variable. If you don't have it installed in PATH then place the files in the appropriate adb location and navigate to it in command prompt and issue the adb push command.
Guys i was able to flash the rom and gapps to my phone using this method:
....highonandroid.com/android-roms/how-to-copy-files-over-to-your-android-in-a-bootloop-with-no-os-using-adb/2/.....
the only thing now is how do i flash .img files such as bootload, vendor and radio files? When im in twrp it gives me 4 options and says "Select partition to flash image"
Boot
System Image
Vendor Image
Recovery
Please let me know where to flash them.
i forgot to mention i have a PC
also to the 2 people above please pm me your paypal address or bitcoin address. Will give you a little something.
Those are the only images you flash via recovery, boot is kernel, the others are self explanatory. Bootloader's are flashed via fastboot.
If you were able to push a ROM via adb just flash the .Zip and boot the ROM as normal.
SecurityBro said:
Guys i was able to flash the rom and gapps to my phone using this method:
....highonandroid.com/android-roms/how-to-copy-files-over-to-your-android-in-a-bootloop-with-no-os-using-adb/2/.....
the only thing now is how do i flash .img files such as bootload, vendor and radio files? When im in twrp it gives me 4 options and says "Select partition to flash image"
Boot
System Image
Vendor Image
Recovery
Please let me know where to flash them.
Click to expand...
Click to collapse
Hello, IMG files are flashed with fastboot from bootloader...
Why not starting fresh...
1 - first, power your phone down.
2 - press power + volume down to reboot to bootloader
3 - plug your phone to your computer
4 - download latest Google factory image here: https://developers.google.com/android/images
This is the latest 7.1.2 worldwide build: https://dl.google.com/dl/android/aosp/angler-n2g47h-factory-f1111327.zip
5 - unzip and navigate inside the folder and locate the flash-all.bat
6 - make sure your phone is in bootloader and properly connected
7 - double click on flash-all.bat and let it run until it reboots
Now you'll have a full stock with latest 7.1.2 to start with...
Just in case, i don't need money. If you still want to donate, choose a charity association of your choice and only send a copy of the receipt here. That will worth 100x more for me than a personal donation... :good:
Good luck...
SecurityBro said:
Guys i was able to flash the rom and gapps to my phone using this method:
....highonandroid.com/android-roms/how-to-copy-files-over-to-your-android-in-a-bootloop-with-no-os-using-adb/2/.....
the only thing now is how do i flash .img files such as bootload, vendor and radio files? When im in twrp it gives me 4 options and says "Select partition to flash image"
Boot
System Image
Vendor Image
Recovery
Please let me know where to flash them.
Click to expand...
Click to collapse
If your PC sees your phone when you are in TWRP then all you need to do is drag over a ROM .zip and the Vendor .img and then just flash them.
I often when doing a fresh fresh install erase everything including internal storage (SDcard) then drag over my needed files to flash and do so.
Since you have a PC i believe that Wang's (i forgot the exact name) toolkit can help you too.
Keep in mind: Really hard to kill a Nexus. If the bootloader is reachable you can always go straight to the stock and start again.
You can find a nice tut at Google's page:developers.google.com
Don't stress, there is (almost) always a way!

Resources