专栏底层软件HBUPDATE下载问题-fastboot烧写分区:app 失败

HBUPDATE下载问题-fastboot烧写分区:app 失败

已解决
danyxnever2022-12-05
73
10

用户您好,请详细描述您所遇到的问题。

1.硬件获取渠道:自制

2.当前系统镜像版本:matrix5_1-M5.1_K5.10_J5_D_V2.0.1_20221018.zip

3.当前天工开物版本:

4.问题定位:

之前也碰到过,有时候重新下载一次就好了,这次连续两次都失败

这个可能是什么原因

5.开发的demo/案例:

6.需要提供的解决方案:

底层软件
征程5
+1
评论4
0/1000
  • 疯狂星期6
    Lv.1

    您好:

    使用bhupdate烧录,遇到图示问题(开始烧写是14:09,报错是14:16),大概率是由于烧写超时引起的(15min)。建议查看以下两点:

    1. 烧写时,请给J5添加散热片,或风扇降温;

    2. 烧写时,请确认此时的网络连接状态,若link在100M网络时,可能导致上述问题,烧录时,请确保网络link在千兆。

    2022-12-05
    0
    4
    • danyxnever回复疯狂星期6:
      这次应该是matrix5_1-M5.1_K5.10_J5_D_V2.0.1_20221018.zip里面的package的问题,用matrix5_1-M5.1_LNX5.10_PL3.0_V0.2.0_20220715 v0.2.0是没问题的。

      用1.9报下面错误

      2022-12-05
      0
    • 疯狂星期6回复danyxnever:

      您好:

      这个报错和您最开始提问的报错不是同一个。

      请提供下这个报错”system_a 失败“发生时,这个桌面升级工具的完整log,然后我们进一步看下可能的原因。

      谢谢!

      2022-12-05
      0
    • danyxnever回复疯狂星期6:

      [2022-12-05 18:14:36,641] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -S 1M -s udp:10.10.16.12:5554 flash boot_b "D:/J5/package\boot.img"

      [2022-12-05 18:14:36,641] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -S 1M -s udp:10.10.16.12:5554 flash boot_b "D:/J5/package\boot.img"

      [2022-12-05 18:14:41,175] [Update0] [DEBUG] utils.py:256 Invalid sparse file format at header magic

      Sending sparse 'boot_b' 1/18 (1020 KB) OKAY [ 0.215s]

      Writing 'boot_b' OKAY [ 0.021s]

      Sending sparse 'boot_b' 2/18 (1020 KB) OKAY [ 0.216s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 3/18 (1020 KB) OKAY [ 0.218s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 4/18 (1020 KB) OKAY [ 0.220s]

      Writing 'boot_b' OKAY [ 0.028s]

      Sending sparse 'boot_b' 5/18 (1020 KB) OKAY [ 0.215s]

      Writing 'boot_b' OKAY [ 0.030s]

      Sending sparse 'boot_b' 6/18 (1020 KB) OKAY [ 0.220s]

      Writing 'boot_b' OKAY [ 0.030s]

      Sending sparse 'boot_b' 7/18 (1020 KB) OKAY [ 0.215s]

      Writing 'boot_b' OKAY [ 0.030s]

      Sending sparse 'boot_b' 8/18 (1020 KB) OKAY [ 0.217s]

      Writing 'boot_b' OKAY [ 0.031s]

      Sending sparse 'boot_b' 9/18 (1020 KB) OKAY [ 0.222s]

      Writing 'boot_b' OKAY [ 0.031s]

      Sending sparse 'boot_b' 10/18 (1020 KB) OKAY [ 0.220s]

      Writing 'boot_b' OKAY [ 0.030s]

      Sending sparse 'boot_b' 11/18 (1020 KB) OKAY [ 0.215s]

      Writing 'boot_b' OKAY [ 0.031s]

      Sending sparse 'boot_b' 12/18 (1020 KB) OKAY [ 0.218s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 13/18 (1020 KB) OKAY [ 0.222s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 14/18 (1020 KB) OKAY [ 0.214s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 15/18 (1020 KB) OKAY [ 0.213s]

      Writing 'boot_b' OKAY [ 0.029s]

      Sending sparse 'boot_b' 16/18 (1020 KB) OKAY [ 0.216s]

      Writing 'boot_b' OKAY [ 0.050s]

      Sending sparse 'boot_b' 17/18 (1020 KB) OKAY [ 0.215s]

      Writing 'boot_b' OKAY [ 0.028s]

      Sending sparse 'boot_b' 18/18 (464 KB) OKAY [ 0.105s]

      Writing 'boot_b' OKAY [ 0.086s]

      Finished. Total time: 4.427s

      [2022-12-05 18:14:42,179] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -s udp:10.10.16.12:5554 flash vbmeta_a "D:/J5/package\vbmeta.img"

      [2022-12-05 18:14:42,180] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -s udp:10.10.16.12:5554 flash vbmeta_a "D:/J5/package\vbmeta.img"

      [2022-12-05 18:14:42,317] [Update0] [DEBUG] utils.py:256 Sending 'vbmeta_a' (1 KB) OKAY [ 0.001s]

      Writing 'vbmeta_a' OKAY [ 0.009s]

      Finished. Total time: 0.029s

      [2022-12-05 18:14:42,818] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -s udp:10.10.16.12:5554 flash vbmeta_b "D:/J5/package\vbmeta.img"

      [2022-12-05 18:14:42,818] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -s udp:10.10.16.12:5554 flash vbmeta_b "D:/J5/package\vbmeta.img"

      [2022-12-05 18:14:42,948] [Update0] [DEBUG] utils.py:256 Sending 'vbmeta_b' (1 KB) OKAY [ 0.002s]

      Writing 'vbmeta_b' OKAY [ 0.009s]

      Finished. Total time: 0.029s

      [2022-12-05 18:14:43,950] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -S 32M -s udp:10.10.16.12:5554 flash bpu_a "D:/J5/package\bpu_image.bin"

      [2022-12-05 18:14:43,951] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -S 32M -s udp:10.10.16.12:5554 flash bpu_a "D:/J5/package\bpu_image.bin"

      [2022-12-05 18:14:44,161] [Update0] [DEBUG] utils.py:256 Sending 'bpu_a' (320 KB) OKAY [ 0.072s]

      Writing 'bpu_a' OKAY [ 0.011s]

      Finished. Total time: 0.102s

      [2022-12-05 18:14:44,662] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -S 32M -s udp:10.10.16.12:5554 flash bpu_b "D:/J5/package\bpu_image.bin"

      [2022-12-05 18:14:44,662] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -S 32M -s udp:10.10.16.12:5554 flash bpu_b "D:/J5/package\bpu_image.bin"

      [2022-12-05 18:14:44,860] [Update0] [DEBUG] utils.py:256 Sending 'bpu_b' (320 KB) OKAY [ 0.066s]

      Writing 'bpu_b' OKAY [ 0.016s]

      Finished. Total time: 0.100s

      [2022-12-05 18:14:45,863] [Update0] [INFO] transfer_to_board.py:459 cmd:fastboot -S 32M -s udp:10.10.16.12:5554 flash system_a "D:/J5/package\system.img"

      [2022-12-05 18:14:45,863] [Update0] [DEBUG] transfer_to_board.py:463 estimate : 170

      [2022-12-05 18:14:45,863] [Update0] [DEBUG] core.py:633 cd tools/adb/windows-j5 && fastboot -S 32M -s udp:10.10.16.12:5554 flash system_a "D:/J5/package\system.img"

      [2022-12-05 18:16:52,762] [Update0] [DEBUG] utils.py:256 Invalid sparse file format at header magic

      Sending sparse 'system_a' 1/10 (30364 KB) OKAY [ 6.426s]

      Writing 'system_a' (bootloader) writing

      OKAY [ 0.479s]

      Sending sparse 'system_a' 2/10 (32764 KB) OKAY [ 7.066s]

      Writing 'system_a' OKAY [ 0.519s]

      Sending sparse 'system_a' 3/10 (32764 KB) OKAY [ 6.898s]

      Writing 'system_a' OKAY [ 0.463s]

      Sending sparse 'system_a' 4/10 (32632 KB) OKAY [ 7.062s]

      Writing 'system_a' OKAY [ 0.635s]

      Sending sparse 'system_a' 5/10 (32764 KB) OKAY [ 6.805s]

      Writing 'system_a' (bootloader) writing

      OKAY [ 0.366s]

      Sending sparse 'system_a' 6/10 (32764 KB) OKAY [ 6.860s]

      Writing 'system_a' OKAY [ 0.348s]

      Sending sparse 'system_a' 7/10 (30676 KB) OKAY [ 6.413s]

      Writing 'system_a' OKAY [ 15.635s]

      Sending sparse 'system_a' 8/10 (31860 KB) UDP error: no response from target

      FAILED (Write to device failed (No error))

      fastboot: error: Command failed

      [2022-12-05 18:16:53,263] [Update0] [ERROR] transfer_to_board.py:475 fastboot 烧写分区:system_a 失败,请检查网络是否连通!

      [2022-12-05 18:16:53,368] [Update0] [ERROR] hbupdate-gui.py:149 update fail:

      [2022-12-05 18:32:49,949] [MainThread] [DEBUG] hbupdate-gui.py:629 app exit

      贴log好像有字数限制,这个留言板能附加txt文档吗

      2022-12-06
      3
    • 疯狂星期6回复danyxnever:

      您好:

      从”Sending sparse 'system_a' 8/10 (31860 KB) UDP error: no response from target“看,应该是网络问题。看您前面回复,是经过了千兆switch的。怀疑是UDP网络不稳定。可以确认下switch接入的设备,是否有mac或者IP冲突?还有J5芯片的散热您是否添加了?
      2022-12-06
      0
  • Daitao
    Lv.1

    您好:

    这个问题可以通过以下方法来排查。

    1. J5板子是否和PC通过网线直连,还是中间经过了以太网switch。

    2. J5芯片是否有添加散热片。

    3. 可以尝试linux下烧录。

    谢谢

    2022-12-05
    0
    2
    • danyxnever回复Daitao:

      经过了千兆switch,这次问题是必现

      2022-12-05
      0
    • Daitao回复danyxnever:

      您好:

      建议用PC直连板子,或者用linux的PC试一下。

      windows下稳定性还是不如linux要高一些。

      谢谢

      2022-12-06
      0
  • 费小财
    Lv.5

    您好,

    网络是正常的吗,由于app的大小比较大,烧写时间长,如果烧写过程中网络断开,确实会导致烧写失败,我们开发环境也碰到这个问题的,你可以烧写的时候用局域网或者直连

    2022-12-05
    0
    0
  • 新手村
    Lv.4

    您好:

    出现你的这种情况,一般都是网络不稳导致的,我们内部之前经常遇到;请使用PC网线直连开发板的方式进行烧录,不要走内网;

    谢谢

    2023-01-17
    0
    0