Unex devices support two main firmware upgrade methods: Remote Firmware Upgrade and Standard Firmware Upgrade. You may select the most suitable option depending on your requirements.
1. Remote Firmware Upgrade
Remote upgrades are applicable when the device’s system file structure is relatively simple and no major BSP (Board Support Package) changes are involved.
Upgrade Steps:
- Prepare the upgrade package, which must include the required configuration files
(e.g.,wlist.gz and wlist.sign). - Run the following script to verify, package, and upload the upgrade files to the remote device:
./unex-firmware-upgrade.sh
- Before uploading, the script will check the device status and confirm that the device is included in the whitelist.
- During the upgrade, all partitions except for the UBI area will be overwritten and updated. Important configuration files will be automatically backed up and restored.
*or detailed instructions, please refer to the Remote Firmware Upgrading Method section of the Software Development Guide:
2. Standard Firmware Upgrade
The standard upgrade method applies to SDK v2.2.X and above. This process must be performed in a Linux environment and is suitable when minor BSP changes are required.
Prerequisites:
- Ensure the device is properly mounted in the Linux system.
- Install the following dependencies:
sudo apt install dfu-util u-boot-tools mtd-utils
- If running Linux in a virtual environment, confirm that the device has been mounted correctly.
Upgrade Steps:
- Navigate to the
flasherdirectory.
- Execute the following command to start the firmware upgrade:
sudo ./dfu_flasher-x86_64 -f <bsp-path>/config-unex-image-full-rootfs-atk42xx-vtx352-nand.txt
- After execution, enable DFU mode and reboot the device. The upgrade process will start automatically.
Example Output:
Writing UBI2 (32243712 bytes) from 0x12000000 to 0x13EC0000 Flashing done%
Final Step:
- For detailed instructions, please refer to the Standard Firmware Upgrading Method section of the Software Development Guide:
<INSTALL_DIR>/Unex-Software-Development-Guide-us/modules/Firmware_Upgrade/usage/firmware_upgrade.html#standard-firmware-upgrading-method