ubports / ubports-installer

A simple tool to install Ubuntu Touch on UBports devices
https://github.com/ubports/ubports-installer/releases
GNU General Public License v3.0
543 stars 120 forks source link

Redmi 9A - Bricked ... SD Card? #3205

Open AquaMCU opened 1 year ago

AquaMCU commented 1 year ago

Hello guys. First of all: I am not mad. I love the project and I am happy to help. And if it helps, I would brick my phone again!

So I tried to flash my Xiaomi R9 with Ubports using the below mentioned installer . Before that, I have successfully unlocked the phone.

Unfortunately, after downloading and flashing two files, My phone is in an endless reboot loop to the start screen, where it says "Redmi" and I can not enter the fast boot mode to continue.

First: One thing that might have screwed up the installation, I have left the SD card in the phone. Can this be an issue?

Second: Does anybody know, how to get into fastboot? ( I have tried to push the power button for several seconds as well as the power and volume up / down at the same time. All with the same result)

I would really like to see ubports in action! Help is appreciated.

INFO:


snap info ubports-installer name: ubports-installer summary: The easy way to install Ubuntu Touch on UBports devices. publisher: UBports store-url: https://snapcraft.io/ubports-installer contact: https://github.com/ubports/ubports-installer/issues/new license: GPL-3.0 description: | A friendly cross-platform Installer for Ubuntu Touch. Just connect a supported device to your PC, follow the on-screen instructions and watch this awesome tool do all the rest. commands:

AquaMCU commented 1 year ago

This might help:

cat ubports-installer.log

{"level":"info","message":"Welcome to the UBports Installer version 0.9.7-beta!"} {"level":"verbose","message":"Versions: {\"node\":\"16.15.0\",\"v8\":\"10.4.132.22-electron.0\",\"uv\":\"1.43.0\",\"zlib\":\"1.2.12\",\"brotli\":\"1.0.9\",\"ares\":\"1.18.1\",\"modules\":\"107\",\"nghttp2\":\"1.47.0\",\"napi\":\"8\",\"llhttp\":\"6.0.4\",\"openssl\":\"1.1.1\",\"cldr\":\"41.0\",\"icu\":\"71.1\",\"tz\":\"2022a\",\"unicode\":\"14.0\",\"electron\":\"20.1.1\",\"chrome\":\"104.0.5112.102\"}"} {"level":"verbose","message":"Reading config file: undefined"} {"level":"command","message":"exec: {\"cmd\":[\"heimdall\",\"detect\"],\"error\":{\"message\":\"Command failed: heimdall detect\nERROR: Failed to detect compatible download-mode device.\",\"code\":1},\"stderr\":\"ERROR: Failed to detect compatible download-mode device.\"}"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"kill-server\"],\"stderr\":\"cannot connect to daemon at tcp:5037: Connection refused\"}"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"start-server\"],\"stderr\":\" daemon not running; starting now at tcp:5037\n daemon started successfully\"}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"wait-for-any-any\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"heimdall\",\"detect\"],\"error\":{\"message\":\"Command failed: heimdall detect\nERROR: Failed to detect compatible download-mode device.\",\"code\":1},\"stderr\":\"ERROR: Failed to detect compatible download-mode device.\"}"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"get-state\"],\"stdout\":\"device\"}"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"shell\",\"getprop ro.product.device\"],\"stdout\":\"dandelion\"}"} {"level":"info","message":"device detected: dandelion"} {"level":"warn","message":"Please update: snap refresh ubports-installer --stable"} {"level":"info","message":"Installing Ubuntu Touch on your Xiaomi Redmi 9A (dandelion)"} {"level":"info","message":"configuring..."} {"level":"info","message":"settings: {\"bootstrap\":true,\"partition\":true,\"wipe\":true,\"channel\":\"16.04/armhf/android9/devel\"}"} {"level":"verbose","message":"running step {\"actions\":[{\"adb:reboot\":{\"to_state\":\"bootloader\"}}],\"fallback\":[{\"core:user_action\":{\"action\":\"bootloader\"}}]}"} {"level":"verbose","message":"running adb action reboot"} {"level":"command","message":"exec: {\"cmd\":[\"adb\",\"-P\",5037,\"reboot\",\"bootloader\"]}"} {"level":"verbose","message":"running step {\"actions\":[{\"fastboot:wait\":null}]}"} {"level":"verbose","message":"running fastboot action wait"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"]}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"],\"stdout\":\"FQ45JZSKNNL75PH6\tfastboot\"}"} {"level":"verbose","message":"running step {\"actions\":[{\"fastboot:assert_var\":{\"variable\":\"unlocked\",\"value\":\"yes\"}}],\"fallback\":[{\"core:user_action\":{\"action\":\"unlock_phone\"}}]}"} {"level":"verbose","message":"running fastboot action assert_var"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"],\"stdout\":\"FQ45JZSKNNL75PH6\tfastboot\"}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"getvar\",\"unlocked\"],\"stderr\":\"unlocked: yes\nFinished. Total time: 0.000s\"}"} {"level":"verbose","message":"running step {\"actions\":[{\"core:download\":{\"group\":\"firmware\",\"files\":[{\"url\":\"https://github.com/ubuntu-touch-mt6765/ut-images/releases/download/bootstrap-images/recovery_dandelion.img\",\"name\":\"recovery.img\",\"checksum\":{\"sum\":\"40b5ea262e08be110302c8f73eec8dcf16acc051be54217735d5ded5b3172da9\",\"algorithm\":\"sha256\"}},{\"url\":\"https://dl.google.com/developers/android/qt/images/gsi/vbmeta.img\",\"name\":\"vbmeta.img\",\"checksum\":{\"sum\":\"f6da5489fd877cb69cf61fa721cfd6d77e530084aefe9b96664f818947ff61f6\",\"algorithm\":\"sha256\"}}]}}],\"condition\":{\"var\":\"bootstrap\",\"value\":true}}"} {"level":"verbose","message":"running core action download"} {"level":"debug","message":"checking previously downloaded firmware files"} {"level":"info","message":"Downloading 1 files"} {"level":"debug","message":"downloading firmware files"} {"level":"info","message":"Downloaded file 1 of 1"} {"level":"verbose","message":"running step {\"actions\":[{\"fastboot:format\":{\"partition\":\"userdata\",\"type\":\"ext4\"}}],\"condition\":{\"var\":\"wipe\",\"value\":true}}"} {"level":"verbose","message":"running fastboot action format"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"format:ext4\",\"userdata\"],\"stdout\":\"Creating filesystem with 5945595 4k blocks and 1488032 inodes\nFilesystem UUID: b636bbef-6858-451c-bc44-63eddf88917a\nSuperblock backups stored on blocks: \n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, \n\t4096000\n\nAllocating group tables: 0/182\b\b\b\b\b\b\b \b\b\b\b\b\b\bdone \nWriting inode tables: 0/182\b\b\b\b\b\b\b \b\b\b\b\b\b\bdone \nCreating journal (32768 blocks): done\nWriting superblocks and filesystem accounting information: 0/182\b\b\b\b\b\b\b \b\b\b\b\b\b\bdone\",\"stderr\":\"Warning: userdata type is f2fs, but ext4 was requested for formatting.\nmke2fs 1.46.2 (28-Feb-2021)\nSending 'userdata' (180 KB) OKAY [ 0.010s]\nWriting 'userdata' OKAY [ 0.017s]\nFinished. Total time: 0.103s\"}"} {"level":"verbose","message":"running step {\"actions\":[{\"fastboot:flash\":{\"partitions\":[{\"partition\":\"vbmeta\",\"file\":\"vbmeta.img\",\"group\":\"firmware\",\"flags\":[\"--disable-verity\",\"--disable-verification\"]},{\"partition\":\"recovery\",\"file\":\"recovery.img\",\"group\":\"firmware\"}]}}],\"condition\":{\"var\":\"bootstrap\",\"value\":true}}"} {"level":"verbose","message":"running fastboot action flash"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"],\"stdout\":\"FQ45JZSKNNL75PH6\tfastboot\"}"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"devices\"],\"stdout\":\"FQ45JZSKNNL75PH6\tfastboot\"}"} {"level":"command","message":"spawn:start: {\"cmd\":[\"fastboot\",\"flash\",\"vbmeta\",\"--disable-verity\",\"--disable-verification\",\"/home/oliver/snap/ubports-installer/435/.cache/ubports/dandelion/firmware/vbmeta.img\"]}"} {"level":"command","message":"spawn:exit: {\"cmd\":[\"fastboot\",\"flash\",\"vbmeta\",\"--disable-verity\",\"--disable-verification\",\"/home/oliver/snap/ubports-installer/435/.cache/ubports/dandelion/firmware/vbmeta.img\"]}"} {"level":"command","message":"spawn:start: {\"cmd\":[\"fastboot\",\"flash\",\"recovery\",\"/home/oliver/snap/ubports-installer/435/.cache/ubports/dandelion/firmware/recovery.img\"]}"} {"level":"command","message":"spawn:exit: {\"cmd\":[\"fastboot\",\"flash\",\"recovery\",\"/home/oliver/snap/ubports-installer/435/.cache/ubports/dandelion/firmware/recovery.img\"]}"} {"level":"verbose","message":"running step {\"actions\":[{\"fastboot:reboot_fastboot\":null}],\"fallback\":[{\"core:user_action\":{\"action\":\"fastbootd\"}}],\"condition\":{\"var\":\"partition\",\"value\":true}}"} {"level":"verbose","message":"running fastboot action reboot_fastboot"} {"level":"command","message":"exec: {\"cmd\":[\"fastboot\",\"reboot-fastboot\"],\"error\":{\"message\":\"Command failed: fastboot reboot-fastboot\nRebooting into fastboot OKAY [ 0.001s]\n< waiting for any device >\",\"signal\":\"SIGINT\"},\"stderr\":\"Rebooting into fastboot OKAY [ 0.001s]\n< waiting for any device >\"}"} {"level":"debug","message":"attempting to handle Error: rebooting to fastboot failed: Error: {\"error\":{\"signal\":\"SIGINT\",\"cmd\":\"fastboot reboot-fastboot\"},\"stderr\":\"Rebooting into fastboot OKAY [ 0.001s]\n< waiting for any device >\"}"} {"level":"verbose","message":"running core action user_action"}