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

[jasmine_sprout] formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stderr":"< waiting for any device >\nfastboot: error: Failed to identify current slot"} #2330

Open
Fazarel opened this issue Dec 3, 2021 · 5 comments

Comments

@Fazarel
Copy link

Fazarel commented Dec 3, 2021

UBports Installer 0.8.9-beta (AppImage)
Environment: Debian GNU/Linux 11 bullseye linux 5.10.0-9-amd64 x64 NodeJS v12.18.3
Device: jasmine_sprout
Target OS: Ubuntu Touch
Settings: undefined
OPEN-CUTS run: N/A
Log: N/A

Install with ubports installer

Error:

Error: fastboot:format: Error: formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stderr":"< waiting for any device >\nfastboot: error: Failed to identify current slot"}
@Fazarel
Copy link
Author

Fazarel commented Dec 3, 2021

If I put device in fastboot mode (power button + vol down) then the ubports installer shows another error :

Error: plugin wait(): Error: {"message":"Unexpected getvar return: getvar:product FAILED (remote","name":"fastboot"}

@Fazarel
Copy link
Author

Fazarel commented Dec 3, 2021

Fastboot doesn't seem to work since I installed Android 9 (recommended file jasmine_sprout_stock_android9.zip, build=xiaomi/jasmine/jasmine_sprout:9/PKQ1.180904.001/V10.0.2.0.PDIMIFJ)

$ fastboot boot twrp-3.6.0_9-0-jasmine_sprout.img Sending 'boot.img' (31684 KB) FAILED (remote : 'unknown command')
fastboot : error : Command failed

@Fazarel
Copy link
Author

Fazarel commented Dec 3, 2021

Other messages in ubports installer (device in fastboot mode, "select device manually"):

Error: preparing: TypeError: Cannot read property 'codename' of null

Error: uncaught exception at uncaughtException: TypeError: Cannot read property 'condition' of undefined

Error: fastboot:format: Error: formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stderr":"FAILED (remote: 'unknown command')\nfastboot: error: Command failed"}

@Fazarel
Copy link
Author

Fazarel commented Dec 3, 2021

I was able to install Ubports using another computer that is running Windows 10.

At first the installer was stuck on "Cleaning up / Formatting partitions..." and did not seem to recognize the phone in fastboot mode ("Waiting device...").
The solution was to install the fastboot driver for the phone. When plugged in and in fastboot mode, device manager > right click on the device: search for the driver with windows update > install the driver ("Google, Inc. - Other hardware - Android Bootloader Interface").
Then, the installation went smoothly and Ubports works :). Thanks to the Ubports family!

So I wonder what I could have done with Linux (Debian 11): how to install the drivers to use this phone (Xiaomi Mi A2) in fastboot mode with Debian or another Linux?

Again, thanks for your work.

(If it helps: my idea when I tried with another computer was because I read on forums that people had the same problem, which would come from the USB 3 port and that the solution was to try on a USB 2 port...)

@mkarpicki
Copy link

I had similar problem on Ubuntu laptop, some people were suggesting this is problem with USB 3.0, I took older Mac to try installing on it - and it worked (could be worth trying using other machine if available - even if idea sounds "funny")

@NeoTheThird NeoTheThird changed the title Failed to identify current slot [jasmine_sprout] formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stderr":"< waiting for any device >\nfastboot: error: Failed to identify current slot"} Mar 18, 2022
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

2 participants