Brief introduction


LQ3399 core board uses Rockchip high-performance six-core 64-bit processor RK3399, onboard AI neural network processor NPU SPR5801S, high computing power, ultra-high performance, powerful hardware decoding capabilities and rich expansion interfaces, which can be flexibly applied to clusters Server, computer vision, commercial display integrated equipment and other industries.

核心板外观

236


LQ3399 special performance parameter summary table


System Configuration
CPURK3399
Main frequency1.8GHz
RAM2G&4G
Memory8G/16G/32G/64G/128G
Power ICRK809
Core board structure parameters
size55mm*55mm*3mm
Number of pins200pin
Pin pitch1.0mm
Layer10 floors
241


Firmware upgrade introduction

The Android operating system is installed on the LQ3399 by default. If users want to run other operating systems, they need to use the corresponding firmware to burn to the motherboard.


LQ3399 has a flexible starting method. Under normal circumstances, unless the hardware is damaged, the LQ3399 development board will not be bricked.


If an accident occurs during the upgrade process and the bootloader is damaged, making it impossible to upgrade again, you can still enter the MaskRom mode to repair it.


Upgrade method


LQ3399 supports the following two ways to update the firmware:


Update the firmware using a USB cable


Use the USB cable to connect the motherboard to the computer, and use the upgrade tool to burn the firmware onto the motherboard.


Use MicroSD card.


Use the upgrade card creation tool to make the MicroSD card into an upgrade card, insert the upgrade card into the motherboard, power on, and the machine will automatically perform the upgrade.


Boot medium


LQ3399 loads the system from the following devices:


eMMC interface


SDMMC interface


In addition, LQ3399 supports downloading the system code from the dual male USB data cable interface.


Start mode


LQ3399 has three startup modes:


Normal mode


Loader mode


MaskRom mode


Normal mode


Normal mode is the normal startup process. Each component is loaded in turn and enters the system normally.


Loader mode


In Loader mode, the bootloader will enter the upgrade state, waiting for host commands for firmware upgrades, etc. To enter the Loader mode, the bootloader must detect that the RECOVERY button is pressed during startup and the USB is connected.


The method to make the device enter the upgrade mode is as follows:


One way is to disconnect the power adapter


Connect the device and the host with a double male USB data cable.


Press and hold the RECOVERY button on the device.


Plug in


After about two seconds, release the RECOVERY button.


Another way is to connect the power adapter


Connect the device and the host with a double male USB data cable.


Press and hold the RECOVERY button on the device.


Briefly press the RESET button.


After about two seconds, release the RECOVERY button.


MaskRom mode


MaskRom mode is used to repair the system when the bootloader is damaged.


Generally, it is not necessary to enter the MaskRom mode. Only when the bootloader verification fails (the IDR block cannot be read, or the bootloader is damaged), the BootRom code will enter the MaskRom mode. At this time, the BootRom code waits for the host to transmit the bootloader code through the USB interface, load and run it.


246


Detailed introduction of software upgrade

Burn to the flash memory of the LQ3399 core board through a double male USB data cable. When upgrading, you need to select an appropriate upgrade method according to the host operating system and firmware type.


Ready to work


LQ3399 core board


firmware


Host


Good double male USB data cable


Firmware file


There are generally two types of firmware files:


Single unified firmware


The unified firmware is a single file that is packaged and merged by all files such as partition table, bootloader, uboot, kernel, and system. The firmware officially released by Firefly adopts the unified firmware format. Upgrading the unified firmware will update the data and partition table of all partitions on the motherboard, and erase all data on the motherboard.


Multiple partition mirroring


That is, files with independent functions, such as partition table, bootloader, kernel, etc., are generated during the development phase. Independent partition mirroring can only update the specified partition, while keeping other partition data from being damaged, which is very convenient for debugging during the development process.


With the unified firmware unpacking/packaging tool, the unified firmware can be unpacked into multiple partition images, or multiple partition images can be merged into one unified firmware.


Windows


Tool: Androidtool_xxx (version number)


Note: The version of the tool used by different firmware may be different, please download the corresponding version according to the 'Notes for Programming with USB Cable (Important)'


Install RK USB driver


Download Release_DriverAssistant.zip, unzip, and then run DriverInstall.exe inside. In order to use the updated driver for all devices, please select the driver uninstall first, and then select the driver installation.

系统软件升级详细介绍

Connect the device


The method for the device to enter the upgrade mode is as follows:


One method is to disconnect the power adapter and the dual-male USB data cable:


One end of the double male USB data cable is connected to the host computer, and the other end is connected to the development board


Press and hold the RECOVERY button on the device and hold


Connect to power


After about two seconds, release the RECOVERY button


Another method, no need to disconnect the power adapter and the double male USB data cable:


One end of the double male USB data cable is connected to the host computer, and the other end is connected to the development board


Press and hold the RECOVERY button on the device and hold


Short press the RESET button


After about two seconds, release the RECOVERY button


The host should be prompted to find new hardware and configure the driver. Open the device manager, you will see the new device Rockusb Device appears, as shown in the figure below. If not, you need to go back to the previous step to reinstall the driver.


系统软件升级详细介绍

Burn firmware


Download AndroidTool (if the system is Android8.1, version 2.54 or higher is required), unzip it, and run AndroidTool.exe in the AndroidTool_Release_v2.38 directory (note that if it is Windows 7/8, you need to press the right mouse button and choose to run as administrator) ,As shown below:


系统软件升级详细介绍

Burn unified firmware update.img


The steps to flash the unified firmware update.img are as follows:


Switch to the upgrade firmware page.


Press the firmware button to open the firmware file to be upgraded. The upgrade tool will display detailed firmware information.


Press the upgrade button to start the upgrade.


If the upgrade fails, you can try to erase the Flash by pressing the Erase Flash button first, and then upgrade.


Note: If the laoder version of the firmware you burned is inconsistent with that of the original machine, please erase the Flash before upgrading the firmware.


系统软件升级详细介绍

Burn partition image


The partition of each firmware may be different, please pay attention to the following two points:


Use Androidtool_2.38 to flash ubuntu(MBR) and Android7.1 firmware using the default configuration;


Use Androidtool_2.58 to burn ubuntu(GPT) with the default configuration. To burn Android8.1 firmware, please perform the following operations first: Switch to the download mirror page; right-click on the table and select import configuration; select rk3399-Android81.cfg


Use Androidtool_2.71 to burn Android10 or Android9 firmware using the default configuration;


The steps to flash the partition image are as follows:


Switch to the download mirror page.


Tick the partition to be burned, you can choose more than one.


Make sure that the path of the image file is correct. If necessary, click the blank table cell to the right of the path to select again.


Click the execute button to start the upgrade, and the device will automatically restart after the upgrade is complete.




系统软件升级详细介绍

Linux


There is no need to install the device driver under Linux, just refer to the Windows chapter to connect the device.


Tool: Linux_Upgrade_Tool


Note: The tool version used by different firmware may be different, please download the corresponding version according to [Burning Instructions]


upgrade_tool


Download Linux_Upgrade_Tool (Linux_Upgrde_Tool_for_android8.1 is required if the system is Android8.1), and install it to the system according to the following method for easy calling:


unzip Linux_Upgrade_Tool_xxxx.zipcd Linux_UpgradeTool_xxxxsudo mv upgrade_tool /usr/local/binsudo chown root:root /usr/local/bin/upgrade_toolsudo chmod a+x /usr/local/bin/upgrade_tool

Burn unified firmware update.img:

sudo upgrade_tool uf update.img

If the upgrade fails, you can try to erase and then upgrade.

# To erase the flash, use the ef parameter to specify the loader file or the corresponding update.img sudo upgrade_tool ef update.img #update.img: the Ubuntu firmware you need to burn# Re-burn sudo upgrade_tool uf update.img

Flash partition image

Android7.1、Android8.1Use the following way:

sudo upgrade_tool di -b boot.imgsudo upgrade_tool di -k kernel.imgsudo upgrade_tool di -s system.imgsudo upgrade_tool di -r recovery.imgsudo upgrade_tool di -m misc.imgsudo upgrade_tool di -re resource.imgsudo upgrade_tool di -p paramater sudo upgrade_tool ul bootloader.bin

Android9.0、Android10.0Use the following way:

sudo upgrade_tool di -b boot.imgsudo upgrade_tool di -dtbo dtbo.img sudo upgrade_tool di -misc misc.imgsudo upgrade_tool di -parameter parameter.txtsudo upgrade_tool di -r recovery.imgsudo upgrade_tool di -super super.imgsudo upgrade_tool di -trust trust.imgsudo upgrade_tool di -uboot uboot.imgsudo upgrade_tool di -vbmeta vbmeta.img

Ubuntu(GPT)Use the following way:

sudo upgrade_tool ul $LOADER
sudo upgrade_tool di -p $PARAMETER
sudo upgrade_tool di -uboot $UBOOT
sudo upgrade_tool di -trust $TRUST
sudo upgrade_tool di -boot $BOOT
sudo upgrade_tool di -recovery $RECOVERY
sudo upgrade_tool di -misc $MISC
sudo upgrade_tool di -oem $OEM
sudo upgrade_tool di -userdata $USERDATA
sudo upgrade_tool di -rootfs $ROOTFS

If an error occurs during the upgrade due to flash problems, you can try low-level formatting and erasing nand flash:

sudo upgrade_tool lf update.img # low-level format sudo upgrade_tool ef update.img # erase


common problem


1. How to forcefully enter MaskRom mode


If the board cannot enter the Loader mode, you can try to enter the MaskRom mode forcibly. For the operation method, see 'MaskRom Mode'.


2. Analysis of programming failure


If Download Boot Fail occurs during the programming process, or an error occurs during the programming process, as shown in the figure below, it is usually caused by poor USB cable connection, poor quality cable, or insufficient drive capacity of the computer USB port. Please replace the USB cable or Computer USB port troubleshooting.


系统软件升级详细介绍upgrade_fail



251