Phone always boot to fastboot after flash custom kernel from twrp - Xiaomi Poco F1 Questions & Answers

Hi
My phone is always boot to fastboot mode after flash custom kernel
Start with I build a custom kernel from github[dot]com/MiCode/Xiaomi_Kernel_OpenSource/tree/dipper-p-oss
the build process was done without error and got Image.gz-dtb
so I pack the Image.gz-dtb with original boot.img that I take from official firmware
then I make a .zip that can be install by using the TWRP
the script to install is just mounting partition, copy some file to system and dd my boot.img to /dev/block/..../by-name/boot
I use twrp-3.2.3-2 from official site and flash it to the phone to recovery partition
then I try reboot the phone to normal mode and TWRP mode for couple of time, everthing just fine
Then the issue begin after I flash my own custom kernel using TWRP, flashing was done without any error
but after I try to reboot the phone, it goes back to fastboot mode. Then I try to reboot to recovery by hold power and volume up, fastboot mode again
I try hold every possible combination key and it still back to fastboot mode
Ok, then I think it time to flash the whole firmware again and I did flash it using MiFlashTool
the flashing was done without error
but it keep getting back to fastboot mode after reboot
I've try just boot the TWRP from fastboot and it fail with below error
FAILED (remote: 'Failed to load/authenticate boot image: 00000050')
If there any way to fix this?
on some phone like Moto they have like oem command to set to which mode to boot in, they have command like
fastboot oem fb_mode_clear
to set it boot mode to normal
Is there something like this in poco?
# dd path of flashing script
DEV_BOOT_PATH="/dev/block/platform/$(cd /dev/block/platform && find -name boot)"
print "auto default dev_boot_path: $DEV_BOOT_PATH"
if [ -b "$DEV_BOOT_PATH" ]; then
print "* using auto default dev_boot_path: $DEV_BOOT_PATH"
elif [ -b "/dev/block/platform/msm_sdcc.1/by-name/boot" ]; then
print "* using msm kernel boot path"
DEV_BOOT_PATH="/dev/block/platform/msm_sdcc.1/by-name/boot"
elif [ -b "/dev/block/platform/7824900.sdhci/by-name/boot" ]; then
print "* using sgrand kernel boot path"
DEV_BOOT_PATH="/dev/block/platform/7824900.sdhci/by-name/boot"
else
print "* using exynos s6 (SM-G9200) kernel boot path"
DEV_BOOT_PATH="/dev/block/platform/15570000.ufs/by-name/BOOT"
fi
-------------------- EDIT --------------------
Just found the reason of brick,
there are empty dtbo.img file that has been copy to /dev/block/platform/soc/1d84000.ufshc/by-name/boot (in my understanding, it didn't exist in this phone)
any suggestion?

What is the solution to this problem I suffer from
What is the solution to this problem I suffer from
please solve this

please solve this problem

heloo :crying::crying:

solution
Just goto :
https:// mirror.akhilnarang.me/MIUI/beryllium/
and download latest zip and sideload it using adb, it will fix your issue of booting into fastboot everytime.
hope it helps, and do not forget to press the thanks button

The same problem I've come back to fastboot
With any system 9 pie
please solve

Related

[Q] recovery Jelly Bean / CM10 A5

Hello,
I had a Folio100 with folioMod.
Today I have installed CM10 A2 then A3,A4 and A5.
The tablet works very well but i can't enter in recovery mode,
if i reboot and select reboot to recovery the tablet crash.
Can you help me to correctly install the recovery?
I have read step by step the guide,
but when i send fastboot command i have this error:
Code:
Failed to process command getvar:max-download-size error(0x2)
,
I have found the same problem and solution on this thread:
http://forum.xda-developers.com/showthread.php?t=2015141.
I have replaced the fastboot command with
Code:
fastboot -u -S 0 flash linux recovery*.img
.
Best regards.
To solve this error:
Code:
Failed to process command getvar:max-download-size error(0x2)
,
I have executed the fastboot from windows and not from linux (MintDe).
Now I have try to reflash recovey without success.
The CM10 boot correctly but the recovery don't works.
If I press at the boot Power+VolUp, the tablet ignore the command ad normally boot the CM10.
The only solution to run the recovery is boot fastboot and send the command:
Code:
fastboot boot recovery-cwm-CM10-A3.img
I suppose there is the corrupted partition table on memory.
Can you help me to check and solve it?

i need help how to flash htc with fastboot

pls if i star my fastboot flash is telling me this erro pls anyone will help me how to do it pls
C:\Users\YUGUDA ****U\Desktop\adbfastboot>fastboot flash boot boot.img
< waiting for device >
error: cannot open 'boot.img'
C:\Users\YUGUDA ****U\Desktop\adbfastboot>fastboot flash recovery_2
unknown partition 'recovery_2'
error: cannot determine image filename for 'recovery_2'
C:\Users\YUGUDA ****U\Desktop\adbfastboot>fastboot flash recovery_2,img
unknown partition 'recovery_2,img'
error: cannot determine image filename for 'recovery_2,img'
C:\Users\YUGUDA ****U\Desktop\adbfastboot>
Next time try to search
http://forum.xda-developers.com/showthread.php?t=2277112
First off, the obvious: Make sure you are in bootloader mode.
2nd: boot.img must be in the same folder as the fastboot.exe file.
Once in bootloader mode, run this command to see if your device is being recognized correctly:
fastboot devices
If you get a response back with a string of numbers/letters, you should be good. If no devices present, make sure you go to your Device Manager and see if there are any errors for the driver.
Once you have no issues with the driver and the PC recognizes it in fastboot, then make sure you have the correct boot.img and try again. Also, for the recovery, it should be this command:
fastboot flash recovery recovery.img (or whatever you have named the .img file)

[Kernel boot] A kernel built from source won't boot using fastboot

Hello,
I was able to build a Kernel for my one plus 2, using their sources (6.0.1, no modifications) + Linaro 4.9.4. + OnePlus defconfig (android_kernel_oneplus_msm8994/arch/arm64/configs/msm8994-OnePlus2_defconfig).
I obtained an "Image.gz-dtb", and used Android Image Kitchen to forge a boot.img with the same lineageos currently running on my OP2. (it's an old lineage-14.1-20180303-nightly-oneplus2-signed).
I wanted to test this kernel on my OP2, without flashing it (I don't want to brick my phone with my sorcerer's apprentice tests ^^), so I used fastboot boot command. I turn my phone into fastboot mode, and it appears in
Code:
# fastboot devices
9ab2be2d fastboot
Here is the result when I try to boot on the kernel:
Code:
# fastboot boot image-new.img
downloading 'boot.img'...
OKAY [ 0.300s]
booting...
OKAY [ 0.501s]
finished. total time: 0.818s
The phone seems to reboot (the fastboot screen disappear), but nothing happen: the screen then stays black, and I can wait as long as I want, it is just stuck. It doesn't appear in fastboot nor in adb...
I also tried to find some clue running an
Code:
adb logcat
during the process but I got absolutely no log.
So where can I go from there? I guess my kernel is not perfect, and I want to improve it but if I can't test it and get logs, what can I do?
Many thanks for your advice
Regards
EDIT:
Some precisions:
1. I understand why I can't get logs using adb while I'm using fastboot, but I was hoping to get some logs when the phone boots on the new kernel
2. The phone is not fully rooted (bootloader is unlocked, but no SuperSU installed)
3. There is a custom recovery (TWRP) if this can help
4. I'd like to avoid a wipeout of this phone if possible, but I understand this can be a silly constraint, just tell me

Question Trying to install TWRP but touch doesn't work

Hi guys, I'm trying to install a custom rom on my G power 2021 and Im at the step where I need to install TWRP but version 3.2 doesn't support touch for me and I don't know where to look to find a newer version, now I'm stuck in a bootloop :/
Thanks !
If you are installing a GSI (generic system image) you can use fastbootd for now until someone gets touch working Hold down the power and volume down button till you get into the bootloader it should show basic information about the phone then type "fastboot reboot fastboot" then should boot into fastbootd usually when flashing a system gsi image from stock rom it would say "
Resizing 'system_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed"
then type "fastboot delete-logical-partition product_a"
these commands won't work if not booted into fastbootd
This requires Motorola's USB drivers it's good to have the stock firmware downloaded before continuing just in case, backup anything important before doing anything I am not responsible for anything that goes wrong I've used these steps on my RETCA never had a problem.
Forgot one thing DO NOT SWITCH TO SLOT B as it will not boot.

Question Help Realme gt2 pro RMX3300 in bootloop ?

My Realme gt2 pro RMX3300 in bootloop after i try to install global rom by fastboot , I still able to enter fastboot mode and the bootloader is unlock , can any one help to solve the problem and back to the china rom again
what's the question with fastboot? just flash the partitions
Code:
fastboot flash <partition> <file>
aIecxs said:
what's the question with fastboot? just flash the partitions
Code:
fastboot flash <partition> <file>
Click to expand...
Click to collapse
Can you help with more details and the steps how to install the china rom again to fix the bootloop problem
unpack the ROM. open cmd.exe and cd into directory. type dir to list files. select terminal output with mouse, copy content with enter key. paste the file list from terminal here in [CODE]tags[/CODE]
I am stuck in bootloop and can access fastboot mode tii but have a problem, low battery and I don't seem to be able to charge the phone so I can't flash anything... Any hope for me??
stop boot-loop, enter fastboot
If I enter fastboot the phone doesn't charge in fastboot mode, and anything I try to do gives me an error due to low battery levels, but I can't charge the phone because even if I power off from fastboot mode the phone restarts itself to a bootloop and so on...

Categories

Resources