Navigation

    全志在线开发者论坛

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

    pack 时 ERROR: unable to open file boot-resource.fex

    D1系列-RISC-V
    4
    6
    660
    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.
    • H
      hikaruhg LV 2 last edited by

      请问我在 pack 时出现下列讯息
      ERROR: unable to open file boot-resource.fex
      update_for_part_info -1
      ERROR: update mbr file fail
      ERROR: update_mbr failed
      这要怎么解决?
      谢谢

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

        没有生成 boot-resource.fex

        C 3 Replies Last reply Reply Quote Share 0
        • C
          chunzhang LV 4 @whycan last edited by

          @whycan 你好。这个 boot-resource.fex 未生成是在编译 boot-resource 的时间出错了还是别的什么情况呀?能提供个解决的思路吗?我这边编译完了也没报错,pack 的时间也出现了这个问题。谢谢

          1 Reply Last reply Reply Quote Share 0
          • C
            chunzhang LV 4 @whycan last edited by

            @whycan 这是 pack 之后的log
            $ pack
            --==========--
            PACK_CHIP sun20iw1p1
            PACK_PLATFORM tina
            PACK_BOARD d1s-nezha
            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/zc/tina-d1-h
            --==========--
            No kernel param, parse it from d1s
            copying tools file
            copying configs file
            storage_type value is 5
            rm /home/zc/tina-d1-h/out/d1s-nezha/image/sys_partition_nor.fex
            rm /home/zc/tina-d1-h/out/d1s-nezha/image/image_nor.cfg
            copying boot resource

            LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
            copying boot file
            make user resource for : /home/zc/tina-d1-h/out/d1s-nezha/image/sys_partition.fex
            handle partition user-res
            no user resource partitions
            APP_PART_DOWNLOAD_FILE = /home/zc/tina-d1-h/out/d1s-nezha/image/app.fex
            Need size of filesystem
            no data resource partitions
            don't build dtbo ...
            update_chip
            /home/zc/tina-d1-h/scripts/pack_img.sh: line 1354: /home/zc/tina-d1-h/out/host/bin/fsbuild: cannot execute binary file: Exec format error
            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/zc/tina-d1-h/out/d1s-nezha/image/sys_partition.bin
            mbr_name file Path=/home/zc/tina-d1-h/out/d1s-nezha/image/sunxi_mbr.fex
            download_name file Path=/home/zc/tina-d1-h/out/d1s-nezha/image/dlinfo.fex

            mbr size = 16384
            mbr magic softw411
            disk name=boot-resource
            ERROR: unable to open file boot-resource.fex
            update_for_part_info -1
            ERROR: update mbr file fail
            ERROR: update_mbr failed

            aldfaaa 1 Reply Last reply Reply Quote Share 0
            • C
              chunzhang LV 4 @whycan last edited by

              @whycan 你好,单独编译 boot-resource 的命令是什么呀?

              1 Reply Last reply Reply Quote Share 0
              • aldfaaa
                whycan矿工-小叶 LV 6 @chunzhang last edited by

                @chunzhang
                查询./scripts/pack_img.sh发现./tools/pack-bintools/src/fsbuild这个程序是32位的, 所以安装以下组件可解决问题:

                apt-get install lib32z1 lib32z1-dev
                
                1 Reply Last reply Reply Quote Share 0
                • 1 / 1
                • First post
                  Last post

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

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