Solutions and insights for problems encountered in Flash machine, and insights on flash machine Solutions
Because of the project, you need to brush your mobile phone. The mobile phone number is Nexus 4. I sent the project document and the image file of the flash system to me.
I have basically never used Android phones before, and I have never used Android phones. In addition, I have a careless character. I have been using Android phones for N days, and I have been wasting my work for a few days. Just now, I finally succeeded, and it is hard to express my excitement. During this period, I encountered various problems and made many detours. Now I think that sometimes the practices and ideas are really ridiculous, but I also realized some truth. To sum up, you may be able to use it.
Flash in Linux: Install adb and fastboot
Step 1: Enter the lsusb command on the linux terminal to query the devices on the USB bus. For example, the query result is as follows:
Bus 005 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 15a2: 0c02 Freescale semicondu, Inc.
Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
15a2 is the device ID number.
If it is not obvious, you can unplug the data line to find the device Number of the mobile phone.
Step 2: download the latest android SDK and decompress it to a directory ,.
The files downloaded here seem incomplete. After downloading the files, check whether there are tools and platform-tools folders. If not, search Baidu Network Disk,
Android sdk versions
I downloaded it from Baidu online storage. In addition, the 32-bit and 64-bit versions also seem to affect the flash drive. It is best to download the correct version.
So far the latest SDK for android-sdk_r12-linux_x86.tgz
Extracted name is android-sdk-linux_x86
Go to the following directory:
Cd android-sdk-linux_x86/tools/
Then run:./android update adb on the terminal.
Step 3: Modify ~ The/. android/adb_usb.ini file. Note that the path in root mode is normal,
This directory does not exist.
# ANDROID 3RD party usb vendor id list -- do not edit.
# USE 'android update adb' to generate.
#1 usb vendor id per line.
0x15a2
Step 4: create a file for a new udev rule, create a file named imx-android.rules in the/etc/udev/rules. d path, and edit the content as follows:
SUBSYSTEM = "usb", SYSFS {idVendor} = "15a2", MODE = "0666"
Step 5: declare the adb path in/etc/bash. bashrc:
Export PATH = ........
Then
Source/etc/bash. bashrc
If not, enter export PATH = $ PATH :/...........
However, you need to introduce the directory when you open the terminal next time.
Step 6: restart ADB
Adb kill-server
Adb start-server
Step 7: Use the adb devices command to find the device:
Root @ lqm:/opt/program/mx53_smd/out/host/linux-x86/bin # adb devices
List of devices attached
0123456789 ABCDEF device
So far, adb has been installed successfully.
Enter fastboot devices in the terminal to check whether the fastboot installation is successful.
Enter fastboot Mode
Enter adb fastboot bootloader in the terminal
You can also press the combination of buttons on your phone to enter the fastboot mode. For example, you can press the volume drop key + screen lock key to access Nexus 5.
Some posts need to enter fastboot mode with the root permission; otherwise, waiting for device will appear during the flash.
Image swiping. imgfile
Go to the directory where the image file is saved,
Set the "ANDROID_PRODUCT_OUT" environment variable, which specifies the path for storing the compiled image file on the PC.
Env ANDROID_PRODUCT_OUT = 'pwd' fastboot flashall-w
Pwd indicates the current directory
Flash on windows: Install adb
Download the corresponding sdk and add the platform-tools path to the environment variable.
You can also download the flashing genie to provide the environment required for flashing.
Enter fastboot Mode
Same as above
Image swiping. imgfile
Change env ANDROID_PRODUCT_OUT = 'pwd' to set ANDROID_PRODUCT_OUT = .....
Assume that the storage path of the image file is D:/product/and the ANDROID_PRODUCT_OUT environment variable is set ANDROID_PRODUCT_OUT = D:/product/
FAQs and reference blogs
Waiting for device solution:
1. The fastboot driver version does not match or the fastboot driver is not installed.
2. You need to grant the root permission to flash the machine, add sudo to the fastboot command, or switch to the root permission.
Adb version is different, 64 computer download is 32-bit, in ubuntu system install ia32-libs Method
Sudo cannot find the command: Modify the PATH of sudo
Fastboot mode upgrade
Error: coshould not load android-info.txt
Recovery Method After incorrect linux environment variable settings
Perception
1. the wrong file is very time-consuming.
For the sdk downloaded earlier, the platform-tools Folder is missing for the first download. I thought the tool directory is the platform-tools Directory, which delayed my day. Later, the download was 32-bit, and an error occurred during the flash.
2. Check related knowledge before you start
For example, the previous env ANDROID_PRODUCT_OUT = 'pwd', I set ANDROID_PRODUCT_OUT = 'pwd' in windows, the error: cocould not load android-info.txt, I checked a lot of methods, then we found out the meaning of pwd. After correction, the machine was successfully installed. Because of this problem, I have taken many detours. If I find out the purpose of this command in advance, it will not delay so long.
3. Do not trust in authority
Sometimes I ask some experts, maybe their research direction is not in this aspect, even in this aspect, it may also make mistakes. In the past, the word "too superstitious" came to the forefront.
Flash machine problems
Hi!
We recommend that you check your mobile phone at a repair point near you. Address and phone number query: telephone. The Xiaomi house works from Tuesday to Sunday and from ten o'clock A.M.. During the warranty period, non-manual damages are free of charge. If you do not have any outlets nearby, please go to www.xiaomi.com on the Xiaomi official website, log on to your account for purchasing this product, select apply for after-sales service in the order details, and then ask your phone to stay open, our staff will contact you.
A more detailed description of the problem helps netizens understand your troubles and help you solve the problem more accurately. Thank you for your support for Xiaomi mobile phone!
Xiaomi enterprise Platform [Official Certification]
I encountered a problem with flash.
SP FLASH TOOL
[8200 Error]: The reason is that the mobile phone system is different from the refresh system's Chip Platform.
[Solution]: Method 1: Find the ROM again. Your ROM is incorrect! For example, if the machine is 6575 and the machine is 6577
This error is reported. Method 2: update the latest flash brush software.