系统:Ubuntu 18.04.6 LTS
环境:安装了python2.7,同时也安装python3.6.9版本
X3开发板自带镜像程序,上电后,用串口工具可以连接开发板,PCIP地址在同一局域网,点击升级固件,工具直接闪退,看log似乎是PY运行出错。
hbupdate-linux版本为V1.0.7和v0.8.4两个版本都测试过,问题出现一样。
[2022-01-11 20:28:06,334] [MainThread] [INFO] hbupdate-gui.py:1630 Linux #103~18.04.2-Ubuntu SMP Wed Dec 1 16:50:36 UTC 2021, pwd: /home/neil/horizon/hbupdate-linux, encode: UTF-8
[2022-01-11 20:28:06,415] [MainThread] [DEBUG] tftpd.py:38 tftp server start on /home/neil/horizon/hbupdate-linux
[2022-01-11 20:28:08,028] [MainThread] [ERROR] utils.py:47 <urlopen error [Errno -2] 未知的名称或服务>
[2022-01-11 20:28:17,572] [MainThread] [DEBUG] hbupdate-gui.py:830 /home/neil/horizon/xj3_release/PLATFORMSDK_OUT/disk.img
[2022-01-11 20:28:22,511] [MainThread] [DEBUG] hbupdate-gui.py:1343 {'compress_img': True, 'check_latest': True, 'external_tftp': '', 'title': '', 'total_baudrate': ['4800', '9600', '38400', '115200', '921600'], 'ota_support_files': 'update files(all*.zip gpt_main*.zip sbl*.zip ddr*.zip uboot.zip boot.zip kernel.zip system.zip app*.zip bpu*.zip)', 'uboot_support_files': 'update files(*disk*.img gpt_main*.img sbl*.img ddr*.img uboot.img kernel.img boot.img system.img app*.img ut*.img gpt_backup*.img u-boot-spl*.bin *mcore*.img.bin *ddrc*.img.bin *bl31*.img.bin *uboot*.img.bin vbmeta*.img bpu*.bin userdata*.img *.img)', 'fastboot_support_files': 'update files(*disk*.img *.json)', 'uart_support_files': 'update files(*disk*.img gpt_main*.img u-boot-spl*.bin *mcore*.img.bin *ddrc*.img.bin *bl31*.img.bin *uboot*.img.bin *boot*.img vbmeta*.img system*.img app*.img bpu*.bin *.img)', 'mcu_support_files': 'update files(*.zip)', 'board_user': 'root', 'password': '', 'uboot_prompt': 'Hobot>', 'login_prompt': 'Horizon Robotic', 'shell_prompt': 'root@', 'recovery_prompt': '/userdata/cache', 'boot_timeout': 120, 'ota_update_timeout': 380, 'ota_app_update_timeout': 120, 'name': 'xj3_sdb', 'ota_mode': ['sftp', 'tftp', 'adb'], 'support_mode': ['ota', 'uboot', 'uart', 'fastboot', 'ota_old'], 'boot_choose': ['lpddr4-samsung-3200-110', 'lpddr4-hynix-2666-608', 'choose'], 'uart_mode': ['tftp', 'uart', 'fastboot'], 'erase_part': ['all', 'veeprom', 'sbl', 'ddr', 'bl31', 'uboot', 'vbmeta', 'boot', 'recovery', 'system', 'bpu', 'app', 'userdata'], 'baudrate': 921600, 'support_os': ['Linux', 'Darwin', 'Windows'], 'partition_backup': ['veeprom', 'ddr', 'sbl', 'bl31'], 'ddr_size': '0x40000000', 'load_address': '0x06000000', 'download_root': '/userdata', 'download_speed': 200, 'download_speed_uart': 5, 'boot_config': {'lpddr4-samsung-3200-110': 'data/board_config/xj3-key1/boot_config/xj3_sdb_lpddr4_samsung_secure_boot.json', 'lpddr4-hynix-2666-608': 'data/board_config/xj3-key1/boot_config/xj3_sdb_lpddr4_hynix_secure_boot.json'}}
[2022-01-11 20:28:22,512] [MainThread] [DEBUG] hbupdate-gui.py:1344 uboot
[2022-01-11 20:28:22,513] [MainThread] [DEBUG] hbupdate-gui.py:1345 True
[2022-01-11 20:28:22,513] [MainThread] [DEBUG] hbupdate-gui.py:1346 True
[2022-01-11 20:28:22,513] [MainThread] [DEBUG] hbupdate-gui.py:1349 =================
[2022-01-11 20:28:22,514] [MainThread] [DEBUG] hbupdate-gui.py:1350 /home/neil/horizon/xj3_release/PLATFORMSDK_OUT/disk.img
[2022-01-11 20:28:22,514] [MainThread] [DEBUG] hbupdate-gui.py:1351 /dev/ttyUSB0
[2022-01-11 20:28:22,514] [MainThread] [DEBUG] hbupdate-gui.py:1352 192.168.1.11
[2022-01-11 20:28:22,515] [MainThread] [DEBUG] hbupdate-gui.py:1353 192.168.1.10
[2022-01-11 20:28:22,515] [MainThread] [DEBUG] hbupdate-gui.py:1354 192.168.1.20
[2022-01-11 20:28:22,515] [MainThread] [DEBUG] hbupdate-gui.py:1355 255.255.255.0
[2022-01-11 20:28:22,515] [MainThread] [DEBUG] hbupdate-gui.py:1356 192.168.1.255
[2022-01-11 20:28:22,519] [MainThread] [DEBUG] hbupdate-gui.py:1374 invalid MAC



