Hello friends,
I am not new with locking/unlocking, flashing roms....
I used to install different roms and had different problems but never met something like this.
so the problem is:
I unlocked my phone, installed twrp and tried to flash different roms (OOS, Lineage, Pixel experience) but it is still rebooting to fastboot and Im not able to go back to twrp recovery unless I flash bacl stock rom via miflash and flash twrp again.
I tried different twrps as well, wiped data, factory reset, advanced wipe.. still not able to flash any rom.
any advise?
Thanks in advance :good:
benzoxerxi said:
Hello friends,
I am not new with locking/unlocking, flashing roms....
I used to install different roms and had different problems but never met something like this.
so the problem is:
I unlocked my phone, installed twrp and tried to flash different roms (OOS, Lineage, Pixel experience) but it is still rebooting to fastboot and Im not able to go back to twrp recovery unless I flash bacl stock rom via miflash and flash twrp again.
I tried different twrps as well, wiped data, factory reset, advanced wipe.. still not able to flash any rom.
any advise?
Thanks in advance :good:
Click to expand...
Click to collapse
When flashing over stock MIUI you need to format data in TWRP. (Format, not wipe, need to type 'yes' to confirm.
Also, when restoring MIUI, make sure you boot into MIUI once before you flash anything else.
Use the latest 3.3.1-32 TWRP from here
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
Restore MIUI and boot into it.
Flash TWRP and boot into TWRP
Do a factory reset.
Format data.
Reboot into TWRP - this ensures the formatted data partition is mounted properly.
Flash the ROM, plus any extras.
Boot into system.
Everything should be good.
Maybe its problem with vbmeta, try to flash vbmeta first, but you need to boot to twrp trough adb command, then flash vbmeta, than flash twrp, reboot to twrp and flash vendor, rom if you want to ide custom rom, not Stock
vlubosh said:
Maybe its problem with vbmeta, try to flash vbmeta first, but you need to boot to twrp trough adb command, then flash vbmeta, than flash twrp, reboot to twrp and flash vendor, rom if you want to ide custom rom, not Stock
Click to expand...
Click to collapse
There shouldn't be any need to flash vbmeta.
In theory vbmeta would only be needed if you want to stick with MIUI, but without root, but want to install TWRP, maybe to debloat.
Flashing Magisk or flashing a custom ROM should remove the need to flash vbmeta.
If you're already on the latest MIUI there is no need to flash any vendor files, as they're already installed.
I dont know why, but Yesterday ive tried to flash custom rom, wiped everything and after flash and reboot the phone stucked in fastboot, wont boot to twrp,not with butt shortcut,not with adb command. So i try to flash vbmeta,than IT boots to twrp,and Also i was able to flash again twrp, this could be Also solution.
Related
Can anyone help me? im trying to flash xiaomi.eu rom with unlocked bl then i flash twrp using fastboot after that i go into twrp then wipe dalvik / cache n data and then install xiaomi.eu ROM after finished the flashing i reboot the system but what i got is bootloop into twrp n i can't boot into xiaomi.eu rom
I'm not very experienced with this as other users and I don't know why this happens, but I got the same problem a few days ago. Solved it by flashing the Orange Fox Recovery R10 with the flashed TWRP. After that, the system booted perfectly, but I cannot guarantee it will work with you.
feyzna said:
Can anyone help me? im trying to flash xiaomi.eu rom with unlocked bl then i flash twrp using fastboot after that i go into twrp then wipe dalvik / cache n data and then install xiaomi.eu ROM after finished the flashing i reboot the system but what i got is bootloop into twrp n i can't boot into xiaomi.eu rom
Click to expand...
Click to collapse
Flash a fastboot rom and reflash the twrp recovery. Thats what worked for me.
feyzna said:
Can anyone help me? im trying to flash xiaomi.eu rom with unlocked bl then i flash twrp using fastboot after that i go into twrp then wipe dalvik / cache n data and then install xiaomi.eu ROM after finished the flashing i reboot the system but what i got is bootloop into twrp n i can't boot into xiaomi.eu rom
Click to expand...
Click to collapse
I had this with my friend after first boot it goes back to twrp. We tri d plenty of things then I suggested njust clicking reboot ->system and it worked.
Seems its a bugnonly on first boot
Resolved
already resolved it by reflash twrp > format data > install custom rom
TL;DR - Tried to downgrade Android 10 Xiaomi EU to Android 9 Xiaomi EU, tried wiping the device (besides storage). I can get into TWRP and Fastboot, just won't boot OS.
Detailed:
I was running the latest Android 10 Xiaomi EU Stable Rom MIUI 11 (11.0.2) and wanted to downgrade because I had a few issues.
I reinstalled the last stable Android 10 Xiaomi EU Stable Rom for MIUI 10 (10.3.17) and it ran fine. I then realized that I wanted to be back on Android 9....
I went and tried to install Android 9 Xiaomi EU Stable Rom for MIUI 10 (10.3.16) and then ran into boot looping.
So then I got into TWRP and erased all data and then tried to copy over the old update file and realized I can't copy over anything even with MTP Enabled.
All the folders in the sdcard are random letters and numbers..
So now I can't send any files over and im stuck wondering how to fix this problem and then go over to Pixel Experience.
Send help! Please!
You messed up with encryptions... Just flash Chinese fastboot rom before pixel experience... and, as always, don't forget: DO NOT lock your bootloader ..
thiagodark said:
You messed up with encryptions... Just flash Chinese fastboot rom before pixel experience... and, as always, don't forget: DO NOT lock your bootloader ..
Click to expand...
Click to collapse
And I would do that by downloading which version of fastboot? Any stable one that I want to run?
Also would it be through fastboot using Mi Flash Tool or something else?
Then the pixel experience would be installed just through TWRP?
Sorry, I just don't wanna mess up.
originalwill23 said:
And I would do that by downloading which version of fastboot? Any stable one that I want to run?
Also would it be through fastboot using Mi Flash Tool or something else?
Then the pixel experience would be installed just through TWRP?
Sorry, I just don't wanna mess up.
Click to expand...
Click to collapse
As you want to flash pixel experience, you need to flash chinese fastboot rom, because pixel experience is based on Chinese firmware. So, by flashing Chinese you will be half way. Pick last stable pie version.. I believe is 10.3.16, don't remember...
Yes. You should use miflash tool, just don't forget: you need to select "clean all" and not "clean all and lock".
Boot into miui system once.
After that just flash twrp through normal fastboot command, as you already did in the past. Then flash PE in twrp...
Remember to boot in twrp just after flash it, if you boot into device it will be replaced by stock one...
thiagodark said:
As you want to flash pixel experience, you need to flash chinese fastboot rom, because pixel experience is based on Chinese firmware. So, by flashing Chinese you will be half way. Pick last stable pie version.. I believe is 10.3.16, don't remember...
Yes. You should use miflash tool, just don't forget: you need to select "clean all" and not "clean all and lock".
Boot into miui system once.
After that just flash twrp through normal fastboot command, as you already did in the past. Then flash PE in twrp...
Remember to boot in twrp just after flash it, if you boot into device it will be replaced by stock one...
Click to expand...
Click to collapse
@originalwill23
After booting into TWRP and before flashing PE, wipe cache and dalvik, then format data. Either reboot into TWRP, or unmount and mount data, then carry on with the PE flashing.
Robbo.5000 said:
@originalwill23
After booting into TWRP and before flashing PE, wipe cache and dalvik, then format data. Either reboot into TWRP, or unmount and mount data, then carry on with the PE flashing.
Click to expand...
Click to collapse
@Robbo.5000
That sounds confusing..
So after flashing the chinese fastboot and starting the phone up once to confirm its working, i boot into twrp and wipe cache+dalvik, then format all data, then restart into twrp and flash pe?
Doing that is just making sure its a clean flash and not a dirty one?
originalwill23 said:
@Robbo.5000
That sounds confusing..
So after flashing the chinese fastboot and starting the phone up once to confirm its working, i boot into twrp and wipe cache+dalvik, then format all data, then restart into twrp and flash pe?
Click to expand...
Click to collapse
You boot into MIUI once to let it finalise the installation.
Then install TWRP and immediately boot into TWRP.
When changing ROMs you should clean flash, which normally means wiping cache, dalvik and data before installing the new ROM.
In this case it's best to format data instead, otherwise you may get problems with encryption, similar to what your seeing now.
After formatting data, TWRP sometimes has a problem seeing the data partition properly, to fix this you either reboot into TWRP or go to the mount menu and unmount data, then mount it again.
After this you copy the PE ROM onto the phone and flash it.
Robbo.5000 said:
You boot into MIUI once to let it finalise the installation.
Then install TWRP and immediately boot into TWRP.
When changing ROMs you should clean flash, which normally means wiping cache, dalvik and data before installing the new ROM.
In this case it's best to format data instead, otherwise you may get problems with encryption, similar to what your seeing now.
After formatting data, TWRP sometimes has a problem seeing the data partition properly, to fix this you either reboot into TWRP or go to the mount menu and unmount data, then mount it again.
After this you copy the PE ROM onto the phone and flash it.
Click to expand...
Click to collapse
I successfully got everything up and running in PE and im loving it. Thanks!!
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
dev-DaT said:
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
Click to expand...
Click to collapse
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Robbo.5000 said:
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Click to expand...
Click to collapse
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... now iam stuck again on fastboot screen because i wiped + formatted everything.
Edit:
When i want to flash recovery it says "OKAY" but it is unable to boot:
Sending 'recovery' (65536 KB) OKAY [ 1.562s]
Writing 'recovery' OKAY [ 0.333s]
Finished. Total time: 1.989s
Sending 'boot.img' (65536 KB) OKAY [ 1.547s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
dev-DaT said:
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... If i wipe all data trough TWRP and then reboot, i don't have OS but i do reboot back into TWRP, because well, there is nothing else...
Click to expand...
Click to collapse
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Robbo.5000 said:
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Click to expand...
Click to collapse
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
dev-DaT said:
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
Click to expand...
Click to collapse
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Robbo.5000 said:
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Click to expand...
Click to collapse
Ok thanks a lot! So no need to wipe system partition after stock rom install. just wipe cache/dalvik/data, got it.
Most ROM install guides tell you to wipe /system when coming from stock rom. I guess this requirement has changed? or depends on what ROM you're coming from?
Use can use my guide
https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
it has how to flash roms, and fastboot fix. (which tells why the Recovery isn't staying)
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
I need help... The reason why I'm flashing custom rom is, when the latest update came MIUI 12.5 android 11, all sensors of my phone stopped working like (Gyroscope, accelerometer, proximity sensor) I tied to flash the rom by fastboot method but still the problem persists. because of that I unlocked bootloader and flashed twrp. After flashing custom rom when I tried to boot it, it stuck on booting screen and when I tried to reboot into recovey it is showing fastboot mode. I'm unable to boot into custom rom.
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
Bro I have one doubt, I installed pixel os successfully then I roll back into stock os(miui) with locking bootloader, the. Again I unlock bootloader successfully, but the problem is I am unable to install os, i tried wipe data, catch. But the stock rom was not removed. What can I do?
Using orange fox in resmi note 10 pro
Hello all,
so i have an strange issue here. after installing magisk canary yesterday evening, i ended up in a bootloop.
so i stayed pretty cool and went to twrp, used magisk uninstaller and thought hmm okay ****, still not booting, not even shows the boot animation now.
stuck at the MI logo, flicks one time, and then stuck again.
so trying to reflash magisk then with 20.4, but nothing changed.
i ended up doing a full wipe, downloading the latest v12 vendor global and reflashed the rom.
booted up all fine. set it all up again, did a random restart, without doing stuff.
boot animation....10 minutes..
restarted stuck at mi logo again.
not even the system is trying to get up.
now i can wipe verything, vendor, data, system, dalvik, whatsoever, i wiped everything, flashed vendor again, installed rom.
nothing... stuck at the MI logo.
any ideas?
many thanks
If you're flashing recovery ROM i suggest you use fastboot ROM
Sent from my Redmi K20 Pro using Tapatalk
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
supelele said:
now i can wipe verything, vendor, data, system, dalvik, whatsoever, i wiped everything, flashed vendor again, installed rom, FORMAT DATA, reboot to system.
Click to expand...
Click to collapse
try format data after flashing the rom.
jcdr12 said:
try format data after flashing the rom.
Click to expand...
Click to collapse
does not change anything , still the same issue.
seems that i cannot use any custom rom anymore. always stuck at the Mi logo.
i need to reset the whole phone via MiFlashTool once i installed a custom rom which ends up not booting.
rip custom rom...
supelele said:
does not change anything , still the same issue.
seems that i cannot use any custom rom anymore. always stuck at the Mi logo.
i need to reset the whole phone via MiFlashTool once i installed a custom rom which ends up not booting.
rip custom rom...
Click to expand...
Click to collapse
From stock MIUI.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash custom ROM
Flash GApps if needed/wanted
Boot into the ROM
Everything should be good
Flash Magisk if required
Do not wipe any other partitions in TWRP, the factory reset is enough.
Make sure you format data in TWRP - don't miss this step out.
If you're doing this immediately after flashing MIUI, you must boot into MIUI once to finalise the installation.
Yes format data not wipe.
when i flash custom rom, even i am not on miui i first format data with yes in twrp then reboot to twrp. I put rom and gapps to internal memory, and install rom and gapps. and when finish reboot to system, when phone restart it stack at mi logo, so i have to go back to twrp and do again format data with typing yes, and then reboot to system and it works. so no wipe data, format data with typing yes.
oh and i thought, wipe is the same as format.... :/
works like charm. booted up successfully evo x with vendor 12 global.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash Vendor
Flash custom ROM
Boot into the ROM
Everything should be good
Flash Magisk if required
thanks all !
supelele said:
oh and i thought, wipe is the same as format.... :/
works like charm. booted up successfully evo x with vendor 12 global.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash Vendor
Flash custom ROM
Boot into the ROM
Everything should be good
Flash Magisk if required
thanks all !
Click to expand...
Click to collapse
If you want to change to a different ROM, or if you want to update Evo x, then the safest way is to remove lockscreen security before flashing. This will remove encryption, which will allow you to clean flash a new ROM, or dirty flash an update, without any issues caused by encryption.
Once your done, add the lockscreen security back.
supelele said:
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
Click to expand...
Click to collapse
whats your version of mi flash tool
supelele said:
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
Click to expand...
Click to collapse
I'm getting the same problem, is there any fix?
Hi Guys
I tried an update to Mirza's ROM but after it caused more issues, I tried restoring from full Orangefox backup in recovery; only to find the phone stuck at Fastboot mode. It appeared strange, so I tried it again to end up with same fate. I tried installing Xiaomi.EU ROM, but after installation it got into a boot loop alternating between Recovery logo and MIUI startup logo. I got into fastboot again and flashed TWRP trying the same, but without joy. Tried another recovery and multiple versions of Xioami.EU ROM all with same fate. Finally got hold of an old fastboot ROM from Xioami.EU and flashed with MiFlash tool and it flashed successfully without issues. Assuming all was well, I tried flashing ROM via recovery which either gets stuck at MIUI logo or recovery. Boot loader in unlocked and decrypted. I tried flashing SHRP recovery, Magisk, wiping data etc as well to rule out any issues, but the problems remain.
Any ideas as to what's happening?
If I understood right, recovery ofox is working.
So reboot to it
Format data with yes
Reboot ofox
Flash ROM
Flash magisk recommend
Format data again with yes
Reboot system and give time to boot, could be more than some minutes but I think not more than 20
For those who might face similar issues.
According to Orangefox website, 'note that you should not restore a backup of the persist image, unless it proves absolutely necessary'. I may have checked it in recovery during restoration which probably destroyed the partition.
Fix:Installed TWRP via flashboot, formatted all data(not wiped) and installed ROM then formatted again and it booted.