Flash rom on linux

j-jith / miui-fastboot-howto.rst

@moraisvinny If you can’t find the script, you may have the recovery flash image.

Get your ROM images from https://xiaomifirmwareupdater.com/ (much easier to use than MIUI forums) and make sure to get a Fastboot image for your device.

You sure it will work?
cause i have an mtk chip so its like impossible to recover it after hard bricking
sorry for doubting

@headsets17 I have never used a MTK device. But from what I’ve read online, SP Flash Tool is recommended for flashing MTK devices.

@headsets17 I have never used a MTK device. But from what I’ve read online, SP Flash Tool is recommended for flashing MTK devices.

hey anybody knows if this works?

Successfully tested on Poco F1

Works just fine with POCO F1! And I actually prefer this one!

Work Fine with redmi note 7
lavender

thnx worked fine
on k20 pro(raphaelin)

Thank you so much! Worked fine on Poco F2 Pro

redmi note 7 (lavender), miui12 latest stable eu, works fine and very simple. thanks!

Thank you a lot! Xiaomi Redmi Note 5, worked like a charm.

why wouldn’t it work ,its just a script that uses fastboot directly. MiUi apparently isnt doing anything special

Worked as expected on a Mi9T EEA device. Thanks a lot !

works fine on xiaomi mi5 standard edition, thanks a bunch.

works fine on my Redmi Note 10(sunny) device . thanks ! no sparse crc problem on linux , im glad now my device is no longer bootloop from flashing using win10

Hi, I’m using Poco F1. Suddenly 2 days back, it went black. no led blinking or vibration while charging. Not Switching ON. when connected in pc, its showing as Qualcomm HS-USB QDLoader 9008 (COM5). I’m using stable rom miui till now. What to do? Please help

Hi, I’m using Poco F1. Suddenly 2 days back, it went black. no led blinking or vibration while charging. Not Switching ON. when connected in pc, its showing as Qualcomm HS-USB QDLoader 9008 (COM5). I’m using stable rom miui till now. What to do? Please help

that mean you are in EDL mode , just use fastboot to flash the rom again , miui stable rom maybe i dont know what kind of rom u want so flash it using the script. hope its help you

Читайте также:  Разработка модулей ядра линукс

Does anyone know if one can relock the bootloader after flashing a global ROM to an international device (Snapdragon, not Chinese)? Asking because I would like to switch to Global to EEA.

Источник

How To Install flashrom on Ubuntu 21.10

In this tutorial we learn how to install flashrom on Ubuntu 21.10.

What is flashrom

flashrom is a tool for identifying, reading, writing, verifying and erasing flash chips. It’s often used to flash BIOS/EFI/coreboot/firmware/optionROM images in-system using a supported mainboard, but it also supports flashing of network cards (NICs), SATA controller cards, and other external devices which can program flash chips.

It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32/40/48, and BGA chips, which use various protocols such as LPC, FWH, parallel flash, or SPI.

The tool can be used to flash BIOS/firmware images for example – be it proprietary BIOS images or coreboot (previously known as LinuxBIOS) images.

It can also be used to read the current existing BIOS/firmware from a flash chip.

  • internal (for in-system flashing in the mainboard)
  • dummy (virtual programmer for testing flashrom)
  • nic3com (for flash ROMs on 3COM network cards)
  • nicrealtek (for flash ROMs on Realtek and SMC 1211 network cards)
  • nicnatsemi (for flash ROMs on National Semiconductor DP838* network cards)
  • nicintel (for parallel flash ROMs on Intel 10/100Mbit network cards)
  • gfxnvidia (for flash ROMs on NVIDIA graphics cards)
  • drkaiser (for flash ROMs on Dr. Kaiser PC-Waechter PCI cards)
  • satasii (for flash ROMs on Silicon Image SATA/IDE controllers)
  • satamv (for flash ROMs on Marvell SATA controllers)
  • atahpt (for flash ROMs on Highpoint ATA/RAID controllers)
  • atavia (for flash ROMs on VIA VT6421A SATA controllers)
  • atapromise (for flash ROMs on Promise PDC2026x ATA/RAID controllers)
  • it8212 (for flash ROMs on ITE IT8212F ATA/RAID controller)
  • ft2232_spi (for SPI flash ROMs attached to an FT2232/FT4232H/FT232H family based USB SPI programmer), including the DLP Design DLP-USB1232H, FTDI FT2232H Mini-Module, FTDI FT4232H Mini-Module, openbiosprog-spi, Amontec JTAGkey/JTAGkey-tiny/JTAGkey-2, Dangerous Prototypes Bus Blaster, Olimex ARM-USB-TINY/-H, Olimex ARM-USB-OCD/-H, TIAO/DIYGADGET USB Multi-Protocol Adapter (TUMPA), TUMPA Lite, GOEPEL PicoTAP, Google Servo v1/v2, and FIC OpenMoko Neo1973 Debug board.
  • serprog (for flash ROMs attached to a programmer speaking serprog), including AVR flasher by Urja Rannikko, AVR flasher by eightdot, Arduino Mega flasher by fritz, InSystemFlasher by Juhana Helovuo, and atmegaXXu2-flasher by Stefan Tauner.
  • buspirate_spi (for SPI flash ROMs attached to a Bus Pirate)
  • dediprog (for SPI flash ROMs attached to a Dediprog SF100)
  • rayer_spi (for SPI flash ROMs attached to a RayeR parport based programmer)
  • pony_spi (for SPI flash ROMs attached to a SI-Prog serial port bitbanging adapter)
  • nicintel_spi (for SPI flash ROMs on Intel Gigabit network cards)
  • ogp_spi (for SPI flash ROMs on Open Graphics Project graphics card)
  • linux_spi (for SPI flash ROMs accessible via /dev/spidevX.Y on Linux)
  • usbblaster_spi (for SPI flash ROMs attached to an Altera USB-Blaster)
  • nicintel_eeprom (for SPI EEPROMs on Intel Gigabit network cards)
  • mstarddc_spi (for SPI flash ROMs accessible through DDC in MSTAR-equipped displays)
  • pickit2_spi (for SPI flash ROMs accessible via Microchip PICkit2)
  • ch341a_spi (for SPI flash ROMs attached to WCH CH341A)
Читайте также:  Jabber клиенты для linux

There are three ways to install flashrom on Ubuntu 21.10. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install flashrom Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install flashrom using apt-get by running the following command:

sudo apt-get -y install flashrom 

Install flashrom Using apt

Update apt database with apt using the following command.

After updating apt database, We can install flashrom using apt by running the following command:

sudo apt -y install flashrom 

Install flashrom Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

After updating apt database, We can install flashrom using aptitude by running the following command:

sudo aptitude -y install flashrom 

How To Uninstall flashrom on Ubuntu 21.10

To uninstall only the flashrom package we can use the following command:

sudo apt-get remove flashrom 

Uninstall flashrom And Its Dependencies

To uninstall flashrom and its dependencies that are no longer needed by Ubuntu 21.10, we can use the command below:

sudo apt-get -y autoremove flashrom 

Remove flashrom Configurations and Data

To remove flashrom configuration and data from Ubuntu 21.10 we can use the following command:

sudo apt-get -y purge flashrom 

Remove flashrom configuration, data, and all of its dependencies

We can use the following command to remove flashrom configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge flashrom 

References

Summary

In this tutorial we learn how to install flashrom package on Ubuntu 21.10 using different package management tools: apt, apt-get and aptitude.

Читайте также:  Браузер для linux i386

Источник

[HowTo] Flash Fastboot ROM with Linux

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Muhamed

Members

Tutorial for flashing/install xiaomi.eu Fastboot ROM’s (Android 12 — MIUI 13) over Linux-Terminal.
First of all we need adb and fastboot. We will get all what we need over android-tools:

0.png

Arch Based distros (Manjaro, EndeavourOS, etc.)
sudo pacman -S android-tools

Debian based distros (Ubuntu, Linux Mint, PopOS, etc.)
sudo apt install android-tools

RPM based distros (Fedora, RedHat, Opensuse, etc.)
sudo dnf install android-tools

1.png

Download the ROM -> extract -> right click (empty space in folder) -> open in Terminal

2.png

1. Connect the phone with USB cable
2. run -> adb devices
3. a windows will pop up on your Xiaomi smartphone -> press yes/ok and «never forget»
4. run -> adb reboot bootloader -> wait few seconds, your phone will reboot in fastboot mode
5. run -> fastboot devices -> you need to see a number (if not switch USB port/cable)
6. with -> ls -> check if u see the firmware files (if not you are in wrong folder)
7. now u got 2 options:
fresh install -> ./linux_fastboot_first_install_with_data_format.sh -> will wipe all data and only for first install
update rom -> ./linux_fastboot_update_rom.sh -> will update without wipe

3.png

You need to wait untill you see this:

4.png

Finished and Rebooting . This will not happen immediately, just wait untill your phone reboot, than u can close the terminal and disconnect USB cable.

— you can use USB 3.0/3.1 but it’s useless, because all Xiaomi’s only got USB 2.0
— use the original cable, some cable will not work, I use deleyCON USB 3.0 cable and its working with any phone
— some Debian distros need a «sudo», so not «adb devices» but «sudo adb devices», just before any command here sudo .
— don’t touch it, don’t disconnect, just wait untill it reboots
— first boot after flash/install can be 5-10 min. -> just wait and don’t panic
— generally it works on Linux without any issue, any USB port but some cable doesn’t, the original one from the box works always

Источник

Оцените статью
Adblock
detector