Skip to content

Flashing Guide

Flashing Tool Installation

For the flashing tool installation steps, refer to the Ubuntu System Installation guide — "Installing Flashing Tools" section.

Flash Programming

System Flashing

Switch to Flashing Mode

  • After the device is powered on, use a USB Type-A to Type-C cable to connect the PC and the device. Type-A connects to the PC, and Type-C connects to the device.

  • Once connected, press Win+R on the Windows PC, type cmd in the pop-up window to open a terminal, and run adb devices to list connected devices. If no device is listed, wait a moment or disconnect and reconnect the Type-C cable and try again.

shell
adb devices

alt text

  • Obtain root privileges by running adb root
shell
adb root
  • Switch to flashing mode by running adb shell reboot edl.
shell
adb shell reboot edl

alt text

Configure QFIL Configuration Items

  • Open QFIL, click ConfigurationFireHose Configuration at the top.

alt text

  • In the Download Configuration window, configure as follows:

    Download Protocol: select "0-Sahara"

    Device Type: select "ufs"

    Check "Reset After Download"

    Keep all other options consistent with the screenshot below.

alt text

  • After configuration, click OK to save.

Select Flashing Port

  • Click Select Port, in the pop-up window select the 9008 port that appears, and click OK.

alt text

Select Build Type

  • Under "Select Build Type", choose "Flat Build".

alt text

Select Flashing Files

  • Extract the ROM files.

  • Under "Select Programmer", click Browse... next to "Programmer Path". Navigate to the extracted path and select the extracted ROM files.

  • After opening, click the dropdown at the bottom right and select file type **All Files(\*.\*)**.

alt text

  • Navigate to find the "xbl_s_devprg_ns.melf" file, select it, and click Open.

alt text

Select Flashing XML Files

  • Under "Select Flat Build", click Load XML... to select the flashing XML files.

alt text

  • In the pop-up window, select the "rawprogram0_split.xml" file and click Open.

alt text

  • After selecting the XML file, another window will pop up automatically. Select "patch0.xml" and click Open.

alt text

Start Flashing

  • After all options are selected, click Download to start flashing and wait for completion.

alt text

Force Flashing

⚠ Warning

Only perform force flashing when flashing fails and the port is not recognized.

If flashing fails and the port is not recognized, you need to use the "2nd Generation Qualcomm Engineering Cable V2.0" to assist in forcing the device into flashing mode. This cable can be purchased by searching "二代高通工程线V2.0" on Taobao.

alt text

Follow these steps to enter force flashing mode:

  1. Disconnect power from the 2nd Generation Smart Camera.
  2. Connect the Type-A end of the Qualcomm engineering cable to the PC.
  3. Press and hold the round button on the Type-C end, then insert it into the 2nd Generation Smart Camera's Type-C port.
  4. Open the QFIL flashing tool on the PC and check if the 9008 port is recognized. If not, repeat the operation.
  5. Once recognized, release the round button, then power on the 2nd Generation Smart Camera and proceed with flashing.