Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    编译T113的固件时,pack失败,显示u-boot.fex 无法打开

    MR Series
    7
    11
    5168
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RTQQQ LV 5 last edited by

      使用芒果的tina固件,环境是Ubuntu 18.04 WSL2。make无报错,pack时报错,pack的log如下:

      rtqq@DESKTOP-JHGQ7D4:~/Tina-Linux$ pack
      --==========--
      PACK_CHIP         sun8iw20p1
      PACK_PLATFORM     tina
      PACK_BOARD        t113-mq_r
      PACK_KERN
      PACK_DEBUG        uart0
      PACK_SIG          none
      PACK_SECURE       none
      PACK_MODE         normal
      PACK_FUNC         android
      PACK_PROGRAMMER   none
      PACK_TAR_IMAGE    none
      PACK_TOPDIR       /home/rtqq/Tina-Linux
      --==========--
      No kernel param, parse it from t113
      copying tools file
      copying configs file
      storage_type value is 1
      rm /home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition_nor.fex
      rm /home/rtqq/Tina-Linux/out/t113-mq_r/image/image_nor.cfg
      copying boot resource
      copying boot file
      make user resource for : /home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition.fex
      handle partition user-res
      no user resource partitions
      APP_PART_DOWNLOAD_FILE = /home/rtqq/Tina-Linux/out/t113-mq_r/image/app.fex
      Need size of filesystem
      no data resource partitions
      don't build dtbo ...
      update_chip
      
      sboot file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sboot.bin
      script file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_config.bin
      
      update:unable to open sboot file
      script update sboot ok
      pack boot package
      GetPrivateProfileSection read to end
      content_count=3
      file /home/rtqq/Tina-Linux/out/t113-mq_r/image/u-boot.fex cant be open
      /home/rtqq/Tina-Linux/scripts/pack_img.sh: line 1250: 25338 Segmentation fault      dragonsecboot -pack boot_package.cfg
      ERROR: dragon pack run error
      

      在git拉取时均没有报错,都是很顺利的拉下来了
      在out文件夹中没有找到 u-boot.fex 这个文件,求助大家。

      1 Reply Last reply Reply Quote Share 2
      • R
        RTQQQ LV 5 last edited by

        将brandy中的spl-pub文件夹重命名为spl然后 使用mboot之后可以解决该错误,但是又会出现新的错误ERROR: boot0 files are all invalid files, now exit
        pack的log如下:

        rtqq@DESKTOP-JHGQ7D4:~/Tina-Linux$ pack
        --==========--
        PACK_CHIP         sun8iw20p1
        PACK_PLATFORM     tina
        PACK_BOARD        t113-mq_r
        PACK_KERN        
        PACK_DEBUG        uart0
        PACK_SIG          none
        PACK_SECURE       none
        PACK_MODE         normal
        PACK_FUNC         android
        PACK_PROGRAMMER   none
        PACK_TAR_IMAGE    none
        PACK_TOPDIR       /home/rtqq/Tina-Linux
        --==========--
        No kernel param, parse it from t113
        copying tools file
        copying configs file
        storage_type value is 1
        rm /home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition_nor.fex
        rm /home/rtqq/Tina-Linux/out/t113-mq_r/image/image_nor.cfg
        copying boot resource
        copying boot file
        make user resource for : /home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition.fex
        handle partition user-res
        no user resource partitions
        APP_PART_DOWNLOAD_FILE = /home/rtqq/Tina-Linux/out/t113-mq_r/image/app.fex
        Need size of filesystem
        no data resource partitions
        don't build dtbo ...
        update_chip
        
        sboot file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sboot.bin
        script file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_config.bin
        
        update:unable to open sboot file
        script update sboot ok
        pack boot package
        GetPrivateProfileSection read to end
        content_count=3
        LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk
        --mkenvimage create redundant env data!--
        ---redundant env data size 0x20000---
        packing for tina linux
        normal
        mbr count = 4
        
        partitation file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition.bin
        mbr_name file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sunxi_mbr.fex
        download_name file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/dlinfo.fex
        
        mbr size = 16384
        mbr magic softw411
        disk name=boot-resource
        disk name=env
        disk name=env-redund
        disk name=boot
        disk name=rootfs
        disk name=private
        disk name=rootfs_data
        disk name=UDISK
        this is not a partition key
        update_for_part_info 0
        crc 0 = 18a6eedc
        crc 1 = 8d1bbf81
        crc 2 = e8ad4a27
        crc 3 = 7d101b7a
        gpt_head->header_crc32 = 0x43fe0f4e
        GPT----part num 8---
        gpt_entry: 128
        gpt_header: 92
        GPT:boot-resource: 12000         121f7       
        GPT:env         : 121f8         123ef       
        GPT:env-redund  : 123f0         125e7       
        GPT:boot        : 125e8         157e7       
        GPT:rootfs      : 157e8         247e7       
        GPT:private     : 247e8         26fe7       
        GPT:rootfs_data : 26fe8         334c7       
        GPT:UDISK       : 334c8         ffffffde    
        update gpt file ok
        update mbr file ok
        temp = 20
        mbr count = 4 total_sectors = 15269888 logic_offset = 40960
        
        partitation file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sys_partition.bin
        mbr_name file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/sunxi_mbr.fex
        download_name file Path=/home/rtqq/Tina-Linux/out/t113-mq_r/image/dlinfo.fex
        
        mbr size = 16384
        mbr magic softw411
        disk name=boot-resource
        disk name=env
        disk name=env-redund
        disk name=boot
        disk name=rootfs
        disk name=private
        disk name=rootfs_data
        disk name=UDISK
        this is not a partition key
        update_for_part_info 0
        crc 0 = 18a6eedc
        crc 1 = 8d1bbf81
        crc 2 = e8ad4a27
        crc 3 = 7d101b7a
        gpt_head->header_crc32 = 0xd9faa6dc
        GPT----part num 8---
        gpt_entry: 128
        gpt_header: 92
        GPT:boot-resource: 12000         121f7       
        GPT:env         : 121f8         123ef       
        GPT:env-redund  : 123f0         125e7       
        GPT:boot        : 125e8         157e7       
        GPT:rootfs      : 157e8         247e7       
        GPT:private     : 247e8         26fe7       
        GPT:rootfs_data : 26fe8         334c7       
        GPT:UDISK       : 334c8         e8ffde      
        update gpt file ok
        update mbr file ok
        ====================================
        show "sys_partition_for_dragon.fex" message
        ------------------------------------
          [mbr]
          mbr_size  : 16384 Kbyte
        ------------------------------------
          partition_name  : boot-resource
          partition_size  : 504
          downloadfile  : boot-resource.fex
          boot-resource.fex size : 80K byte
        ------------------------------------
          partition_name  : env
          partition_size  : 504
          downloadfile  : env.fex
          env.fex size : 128K byte
        ------------------------------------
          partition_name  : env-redund
          partition_size  : 504
          downloadfile  : env.fex
          env.fex size : 128K byte
        ------------------------------------
          partition_name  : boot
          partition_size  : 12800
          downloadfile  : boot.fex
          boot.fex -> /home/rtqq/Tina-Linux/out/t113-mq_r/boot.img
          boot.img size : 4.0M byte
        ------------------------------------
          partition_name  : rootfs
          partition_size  : 61440
          downloadfile  : rootfs.fex
          rootfs.fex -> /home/rtqq/Tina-Linux/out/t113-mq_r/rootfs.img
          rootfs.img size : 14M byte
        ------------------------------------
          partition_name  : private
          partition_size  : 10240
        ------------------------------------
          partition_name  : rootfs_data
          partition_size  : 50400
        ------------------------------------
          partition_name  : UDISK
        ------------------------------------
        ERROR: boot0 files are all invalid files, now exit
        
        DAIZEBIN F 2 Replies Last reply Reply Quote Share 1
        • DAIZEBIN
          DAIZEBIN LV 7 @RTQQQ last edited by

          @rtqqq 感觉是你的SDK不完整,是直接git pull芒果的SDK还是直接百度网盘下载的呢?

          G 2 Replies Last reply Reply Quote Share 1
          • G
            gonboy LV 5 @DAIZEBIN last edited by

            @daizebin 百度的SDK包

            1 Reply Last reply Reply Quote Share 1
            • G
              gonboy LV 5 @DAIZEBIN last edited by

              @daizebin

              update:unable to open sboot file
              script update sboot ok
              pack boot package
              GetPrivateProfileSection read to end
              content_count=3
              file /T113/Tina-Linux/out/t113-mq_r/image/u-boot.fex cant be open
              /T113/Tina-Linux/scripts/pack_img.sh: line 1250: 13891 Segmentation fault      dragonsecboot -pack boot_package.cfg
              ERROR: dragon pack run error
              

              make -j4 顺利,
              但是 pack 找不到 u-boot.fex这个文件,确定不存在

              whycan 1 Reply Last reply Reply Quote Share 1
              • whycan
                whycan晕哥 LV 9 @gonboy last edited by

                @gonboy 在 编译T113的固件时,pack失败,显示u-boot.fex 无法打开 中说:

                dragonsecboot

                这个二进制文件执行出现段错误。

                G 1 Reply Last reply Reply Quote Share 0
                • G
                  gonboy LV 5 @whycan last edited by

                  @whycan make的时候没有报告错误。 只有一个eyesee 错误。
                  怎么修复这个问题?

                  1 Reply Last reply Reply Quote Share 0
                  • K
                    knight.jiang LV 2 last edited by

                    pack 命令之前,使用mboot 生成u-boot.fex

                    1 Reply Last reply Reply Quote Share 3
                    • Z
                      zzz123 LV 4 last edited by

                      @gonboy 你好,您是怎么解决这个问题的

                      G 1 Reply Last reply Reply Quote Share 0
                      • G
                        gonboy LV 5 @zzz123 last edited by

                        @zzz123 eyesee 错误没理会。 忘记后续执行mboot了

                        1 Reply Last reply Reply Quote Share 1
                        • F
                          Frances LV 3 @RTQQQ last edited by

                          @rtqqq 也出现同样报错,老哥解决了吗?我这边无论docker还是晕哥说的ubuntu18的虚拟机都有同样问题,看脚本内容感觉好像是update_boot0这个工具没有正确生成产物

                          1 Reply Last reply Reply Quote Share 0
                          • 1 / 1
                          • First post
                            Last post

                          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                          行为准则 | 用户协议 | 隐私权政策