Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastboot boot command is bugged on Xiaomi MTK devices #2356

Open
pjgowtham opened this issue Dec 27, 2021 · 8 comments
Open

fastboot boot command is bugged on Xiaomi MTK devices #2356

pjgowtham opened this issue Dec 27, 2021 · 8 comments

Comments

@pjgowtham
Copy link

The best practice for installing TWRP seems to be to inject ramdisk after using fastboot boot twrp.img command. But when this command is broken on the firmware side, I have to make new TWRP build everytime you push OTA cos the wifi/BT/etc kernel modules wont load if the TWRP kernel (latest stock kernel at the time of building) does not match cos devices nowadays use recovery as boot.

It sometimes says "successful" but ends up booting into system rather than TWRP even when twrpfastboot=1 cmdline (forces to boot twrp) is on and randomly throws error: Too many links even with using usb 2 hub.

It would make life a lot easier if you could fix this on your MTK lineup devices. If you cant fix it, release devices with dedicated recovery partition, Thanks.

@willzyx-hub
Copy link

The best practice for installing TWRP seems to be to inject ramdisk after using fastboot boot twrp.img command. But when this command is broken on the firmware side, I have to make new TWRP build everytime you push OTA cos the wifi/BT/etc kernel modules wont load if the TWRP kernel (latest stock kernel at the time of building) does not match cos devices nowadays use recovery as boot.

It sometimes says "successful" but ends up booting into system rather than TWRP even when twrpfastboot=1 cmdline (forces to boot twrp) is on and randomly throws error: Too many links even with using usb 2 hub.

It would make life a lot easier if you could fix this on your MTK lineup devices. If you cant fix it, release devices with dedicated recovery partition, Thanks.

Hello, i agree with you this is MTK bootloader failure (lk.img) the boot command doesn't seem to work and it's return an error

$fastboot boot (name of file).img
Sending (name of file).img -> OKAY
Booting... -> FAILED : (Status read failed (No such device) ) and ofc @mi-code you're From Xiaomi Team pls make it work by patching lk.img because only you can build and sign the lk.img Thanks :)

@ramabondanp
Copy link

They will never do that tho.
Its happpen in all mediatek devices not only Xiaomi, but other also.
The solution is simple just do fastboot flash boot then reboot to twrp -> restore stock boot.img and do ramdisk patching.
No offense.

@lattice0
Copy link

On my Poco M3:


fastboot boot Image
creating boot image...
creating boot image - 35883008 bytes
Sending 'boot.img' (35042 KB)                      OKAY [  0.837s]
Booting                                            FAILED (remote: 'unknown command')
fastboot: error: Command failed

@Sushrut1101
Copy link

Sushrut1101 commented Apr 24, 2022

please fix it asap
it's really annoying

@YuKongA
Copy link

YuKongA commented Jul 8, 2022

+1

@hamjin
Copy link

hamjin commented Jul 12, 2022

It seems that Mediatek does not want to add fastboot boot

@royal-cloud
Copy link

royal-cloud commented Jul 14, 2022

Here i thought i was the only with the same problem 😭
Mediatek is just trashy sometimes

@XxMarcelo
Copy link

XxMarcelo commented Aug 4, 2022

tente esses comandos :
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot "arquivo twrp"
fastboot reboot recovery
E se não funcionar é só baixar uma ROM fastboot atual do seu dispositivo e extrair o arquivo boot. img e fazer esse comando: fastboot flash boot boot.img
O arquivo vbmeta.img também é encontrado quando extrai a ROM fastboot, por favor avise se funcionar..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants