专栏底层软件J3烧写失败

J3烧写失败

已解决
Mumaren2023-01-04
65
14

麻烦帮助分析一下失败原因。

硬件:自己做的硬件板子

BSP:j3-mo-platformsdk

编译命令:./build.sh -e all

上位机:hbupdate_win64_v2.1.3,下载模式uart,下载方式uart,内存类型SAMSUNG-LPDDR4-3200-110-ddr

详细log请参看附件。

附件:
底层软件
征程3
评论2
0/1000
  • 费小财
    Lv.5

    您好,

    utils.py:47

    板子的ip有设置成功么

    2023-01-04
    0
    6
    • Mumaren回复费小财:

      您好,因为还没调试eth switch,所以没有连接网线也没有设置IP。用的是uart方式烧写。

      2023-01-04
      0
    • 费小财回复Mumaren:

      恩,那从后面的错误看

      可能镜像少封装了一层,可能少了一步加头,镜像编译的时候好像存在一些问题的

      [2023-01-04 13:41:27,691] [Update0] [INFO] core.py:92 [com] ERROR: Failed to determine the size of the image id=1 (0)

      [2023-01-04 13:41:27,692] [Update0] [INFO] core.py:92 [com] NOTICE: BL1: Booting BL2

      [2023-01-04 13:41:27,692] [Update0] [INFO] core.py:92 [com] ERROR: spl_header_off is not in a valid range: = 43495248

      [2023-01-04 13:41:27,692] [Update0] [INFO] core.py:92 [com] Auth fail

      2023-01-04
      0
    • Mumaren回复费小财:

      您好,以下是我的编译方法,是否有不妥之处导致镜像有误。

      zx@zx-VirtualBox:~/j3PoC/j3$ source build/envsetup.sh

      TOPDIR: /home/zx/j3PoC/j3

      including device/horizon/xj3/vendorsetup.sh

      . /home/zx/j3PoC/j3/build/core/mainenv.sh

      zx@zx-VirtualBox:~/j3PoC/j3/build$ lunch 1

      64-bit

      Debug Mode

      . /home/zx/j3PoC/j3/build/device/horizon/xj3/env.sh

      . /home/zx/j3PoC/j3/build/device/horizon/xj3/debug-env.sh

      ******************************

      start to make tools

      has extracted gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu

      end make tools

      ******************************

      =========================================

      ARCH="arm64"

      CROSS_COMPILE="/home/zx/j3PoC/j3/prebuilts/host/gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-"

      TARGET_VENDOR="horizon"

      TARGET_PROJECT="xj3"

      TARGET_MODE="debug"

      TARGET_BIT="64"

      ENABLE_BUILD_DEPENDENCY="false"

      N="2"

      KERNEL_VER="4.14.87"

      =========================================

      zx@zx-VirtualBox:~/j3PoC/j3/build$ ./build.sh -e all

      2023-01-04
      0
    • 费小财回复Mumaren:

      编译方式看着是没啥问题

      2023-01-04
      0
    • 费小财回复Mumaren:

      另外,看上去你这个板子的刷机模式都没进入,有完全按照操作手册来执行的吗

      2023-01-04
      0
    • Mumaren回复费小财:

      您好,编译参数加上 -s secure后已经完成烧写,感谢支持。

      2023-01-06
      0
  • 新手村
    Lv.4

    您好:

    请问一下你这边编译的镜像有在其他开发板上试过,能起来吗?

    2023-01-04
    0
    6
    • Mumaren回复新手村:

      您好,没有在其他开发板上试过,手上只有这一个J3板。我的编译方法贴在楼上了,麻烦也看一下是否有不妥之处。

      2023-01-04
      0
    • 新手村回复Mumaren:

      从你的log看,芯片应该是secure版本,麻烦用./build.sh -s secure这个编译试下,生成secure版本的镜像,再进行烧写

      2023-01-04
      0
    • Mumaren回复新手村:

      您好,确实是这样,编译参数加上 -s secure后已经完成烧写,感谢支持。

      2023-01-06
      0
    • 新手村回复Mumaren:

      嗯,不客气,现在已经OK了吧?

      2023-01-06
      0
    • Mumaren回复新手村:

      是的,已经OK了。

      2023-01-06
      0
    • 新手村回复Mumaren:

      好的,有问题随时再讨论

      2023-01-15
      0