How to flash a kernel - Nexus 7 Q&A, Help & Troubleshooting

How do I flash this kernel http://forum.xda-developers.com/showthread.php?t=1788759
http://www.derkernel.com/jb-seven.php
"Apply zip from sd card"???
I though that all the kernels were *.img files.

download it onto your device, boot into your custom recovery, select it, then flash it. after, boot up. do not wipe a thing. no data wipe, no cache wipe, and no dalvik cache wipe. these kernels are in a flashable zip form. if you flash a rom, youll have to reflash the kernel too.

Thanks, I will try.

Related

[Q] Custom ROM, kernel and recovery

Hey everyone!
I would like to flash P.A.C.-MAN ROM on my phone, and also a new kernel, and I need some help with that.
As of right now, I am rooted with DjEmbey's root-method, and have BusyBox and SuperSU installed. I have a regular i9505, XXUAME2, 4.2.2, official device status and all Know related items removed. Do I need to do some kind of updating of my device, before doing any flashing, or do I only have to wipe /data, cache etc.?
I've read some in the P.A.C. Q&A thread on how to flash a custom recovery. But before I flash a new recovery, should I format /data, cache and Dalvik cache? I've heard people recommend TWRP over CWM, is it more stable or have better functionality, is TWRP compatible with P.A.C.?
For a new kernel, I've thought about this one. Is it compatible with P.A.C. ROM?
After I've flashed a custom recovery, should I always format /data, cache, Dalvik cache and fix permissions, before and after every kind of flashing?
Is BusyBox and (or) SuperSU reserved when flashing a new ROM and kernel, will it be included in P.A.C. or do I have to install it manually?
Thanks in advance for all answers
There are plenty of guides and Google is your friend.
Flash recovery via Odin. I use CWM never had a problem. If your nervous about flashing get the SGS4 flasher and flash recovery through the app. Then reboot and jump into recovery volume up + home button + power ( let go of the power button once you see the screen turn on). Do a full wipe cache davlik. I also go to mounts and format /system. Then install your ROM from the SD card. Good luck.
Echoe ROM. Rock Solid. Stable. Blazingly Fast with Adam Kernel.

can't boot.

I rooted the galaxy y, installed CWM, wiped cache and data..etc., installed a custom rom but the phone can't boot..stuck in bootscreen. I tried to change the kernel to CM kernel, and install a stable cm7, everything worked, but still no boot... what can I do?
what rom?
HnnnnnnnnmnHmmmmmmmmGpuuuuuuuuuuuuu
DeniablySam said:
what rom?
HnnnnnnnnmnHmmmmmmmmGpuuuuuuuuuuuuu
Click to expand...
Click to collapse
I've tried NukaRom V1.1.0 and CM7..happened the same..even with CM Kernel
Did you reboot to recovery after flashing kernel & mount system before flashing rom
Instructions to flash cm7
go to cwm
mount system
flash percy's cm #2 kernel
reboot to recovery
format system data cache
mount system data cache
flash cm7 zip
flash gapps (optional)
format data
restart
If you get bootloop remove sim card - if it boots change your stock rom firmware via odin
For stock based roms do as above but use a stock based kernel
marcussmith2626 said:
Did you reboot to recovery after flashing kernel & mount system before flashing rom
Instructions to flash cm7
go to cwm
mount system
flash percy's cm #2 kernel
reboot to recovery
format system data cache
mount system data cache
flash cm7 zip
flash gapps (optional)
format data
restart
If you get bootloop remove sim card - if it boots change your stock rom firmware via odin
For stock based roms do as above but use a stock based kernel
Click to expand...
Click to collapse
Thanks man! It works

How to flash official ROM zip?

My friend's device has TWRP 2.8.7.7 and CyanogenMod 12.1 by @ED300 (not up to date).
She wants it to be restored in its original state. How could I flash this file?
Code:
http://phonedl.ota.lenovomm.com/dls/v6/Kraft-A6000_S058_151030_KK2L_WC67.zip
Should I just wipe system, data, and cache in TWRP then flash the zip from the link?
1. Reboot into recovery.
2. Wipe the normal way (Factory reset).
3. Flash the .zip.
4. Wipe cache and Dalvik cache after flashing, just in case.
5. Reboot. Enjoy!
Using TWRP? Don't I have to wipe system first when coming from another ROM? Thanks,
You have to wipe system, data, cache, dalvik cache
For me that didnt work you have to extract stockrom.zip then extract system.zip then take boot.img and flash it first, followed by system.zip and yourcountry.zip

Actual custom rom flashing instructions ??

This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
dirtyl0lharry said:
This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
Click to expand...
Click to collapse
First time from oos zip
Flash latest stock rom oos
Flash twrp zip
Wipe data and cache
Reboot to recovery
Flash latest stock rom oos zip
Flash twrp zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If you are already on custom
Flash lastest stock oos zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If going from custom to oos
Back up all your internal storage pictures videos music etc
Wipe data internal storage and cache
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Reboot to recovery
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Flash magisk zip if you want root
Reboot to system
If you want a custom kernel on any of these methods I would recommend booting the rim first and going through setup process the rebooting back to to twrp after and flashing the kernel
Also you will want a USB c otg port bc after the first flash your data will be encoded. You can select the otg storage via twrp to make the process easier.
If you don't have an otg cable you will need to sideload each zip via cmd prompt with fastboot tools and sideload in twrp
After all flashes are complete and you boot the rom the encrypted data will no longer be encrypted on custom rom flashing if going back to stock oos rom you lose all internal data
Most ROMs threads have instructions in main thread and those should be followed first. Some ROMs may require some bits and pieces from original oxygen rom prior to custom install
Asoip for example
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
mustafabakrolwala said:
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
Click to expand...
Click to collapse
You flash oos first so you have the correct vender and up to date files etc before flashing. Some ROMs require you to flash old oos versions bc their rom was based on that oos vender

I forgot to wipe the dalvik in twrp and proceeded to install a custom rom

it failed when I tried to wipe the dalvik in twrp and then I proceeded to install a custom rom now the rom is not being installed and I cant quit twrp becuase my power button is not working somebody help
you have other issue than dalvik. format userdata partition.

Resources