Difference between revisions of "RK Platform Upgrage Firmware USB CAN"
From ESS-WIKI
Yunjin.jiang (talk | contribs) |
Yunjin.jiang (talk | contribs) |
||
| Line 18: | Line 18: | ||
For early versions, download the tool from here : [[Media:Usb-flash.tar.gz|usb-flash]] | For early versions, download the tool from here : [[Media:Usb-flash.tar.gz|usb-flash]] | ||
| − | And unzip <code>usb-flash</code> to <code>/usr/local/bin/</code> | + | And unzip <code>usb-flash</code> to <code>/usr/local/bin/</code> on DUT. |
== Firmware in DUT == | == Firmware in DUT == | ||
Revision as of 09:01, 8 April 2025
Contents
Prepare
For Upgrade firmware, A tool named usb-flash and a new firmware are needed.
New Firmware
Ask PM for help to get the latest firmware like SLCAN-FD0V0102.bin.
Tools
usb-flash is integrated by default in version 20250408 or later.
Check usb-flash :
# usb-flash -v Advantech HID IAP Console v0.1
For early versions, download the tool from here : usb-flash
And unzip usb-flash to /usr/local/bin/ on DUT.
Firmware in DUT
Check firmware version in DUT, taking can0 for example:
# Command # /tools/test/adv/can/can_get_firmware_version.sh can0 [ OK ]: can0 Firmware Version : 0102
CAUTION
Firmware upgrades are only supported in V0102 or later versions
Enter Upgrade Mode
Stop slcan driver
# pkill slcanfd
Get Can port
Get can port ttyACMx (x=0、1、2...)
# dmesg | grep slcan [ 6.880193] can0: slcan on ttyACM0. [ 6.890344] can1: slcan on ttyACM1.
Swith MCU to IAP mode
# usb-flash -s /dev/ttyACM0 # usb-flash -s /dev/ttyACM1 # usb-flash -s /dev/ttyACM2 ... ...
Reboot DUT
Reboot DUT for upgrading.
# reboot