Running Fastboot Script on Linux (Ubuntu/Pop OS)


4fun20

Members
Feb 18, 2021
180
40
Hi,
i am a Linux noob but i want to learn more about it.
to start with a real world thing i tried to update my Mi11Ultra weekly rom and failed xD.
before i started i installed android studio through the pop shop, i am running pop os on my laptop(dell xps 9380).


@ingbrzy told me to"
connect phone via USB
run command adb reboot bootloader
cd to unpacked ROM folder
run in terminal ./linux_fastboot_update_rom.sh"
(Thank You for that!)

which i did.
after running the command "adb reboot bootloader" the terminal told me that i have to install adb with the command "sudo apt install adb".
so i did that.
after adb installation i run the command "adb reboot bootloader" succsessfully and the phone bootet into fastboot.
then in terminal i navigated to the unpacked rom folder via "cd" command, as mentioned.
i did the "ls"command to see the list of all files in the folder and then let the command "./linux_fastboot_update_rom.sh" run.

nothing happend.

what did i wrong?

do i have to run the script command with sudo? "sudo ./linux_fastboot_update_rom.sh"
do i need to "cd" into rom folder before i run the reboot to bootloader command?
do i need to install further adb packages?

i hope you can help me and other linux newbies.

thanks a lot.

Edit: Meanwhile i found out that running the command "sudo apt install adb" isn't everything needed.
On top, it's necessary to run "sudo apt install adb fastboot", which installs 28 new packages.

Edit2: i flashed my phone with the current weekly ROM successfully now.

To flash successfully you need the following steps:
1. open shell(terminal) and run the command: sudo apt install adb , when it's done
2. in the shell run the command: sudo apt install adb fastboot , when it's done
3. navigate to the downloaded rom via cd (or in file explorer, folder of the ROM, right click "open in terminal".)
4. connect the phone via usb
5. in shell run the command: adb reboot bootloader
6. when the phone rebooted into fastboot run in terminal: ./linux_fastboot_update_rom.sh (make sure that the terminal is navigated to the correct location)
7. flashing begins and you have to just wait.
 
Last edited:
Just ensure the adb and fastboot binaries are copied into /usr/bin or /usr/local/bin to make them available systemwide, that's particular all you need to prepare.

Regards.

Sent from my Mi 11 Ultra.
 
  • Like
Reactions: 4fun20
Just ensure the adb and fastboot binaries are copied into /usr/bin or /usr/local/bin to make them available systemwide, that's particular all you need to prepare.

Regards.

Sent from my Mi 11 Ultra.
hey, thank you for the tips.
doesn't get these files installed in the correct place by default?