导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    编译 Tina Linux 遇到 ERROR: update_mbr failed 的解决方法

    Linux
    5
    5
    3689
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Y
      YterAA LV 7 最后由 YterAA 编辑

      情况一:dl file xxxx.fex size too large

      这种情况通常是因为 m menuconfig 选择了其他包、改了开机启动图片、kernel 新增了驱动 导致的。

      常见的有:

      • dl file rootfs.fex size too large
      • dl file boot.fex size too large
      • dl file boot-resource.fex size too large

      例如这里的 rootfs.fex 过大。

      ERROR: dl file rootfs.fex size too large
      ERROR: filename = rootfs.fex
      ERROR: dl_file_size = 45824 sector
      ERROR: part_size = 45360 sector
      update_for_part_info -1
      ERROR: update mbr file fail
      ERROR: update_mbr failed
      

      2fdafeb7-715f-45b0-abca-a73f6c0ce2a3-lQLPJxZ48bJC2HbNA4LNBlewMb4zJFuFSzgCxzieCsBUAA_1623_898.png

      解决方法:修改 sys_partition.fex 的 size 项

      路径:device\config\chips\{芯片名称}\configs\{板子名称}\linux-4.9\sys_partition.fex

      例如 v853-vision 开发板:device\config\chips\v853\configs\vision\linux-4.9\sys_partition.fex

      323a9936-ace1-4ee3-a0a4-e1e63874bab7-image.png

      情况二:ERROR: unable to open file xxx.fex

      ERROR:  unable to open file rootfs.fex
      update_for_part_info -1
      ERROR: update mbr file fail
      ERROR: update_mbr failed
      

      65c57a3e-44e0-4c58-a5f9-232eb5dd0df4-image.png

      这是由于编译未完全完成导致的。重新运行 make 即可。

      Z 1 条回复 最后回复 回复 引用 分享 1
      • Z
        ZhangJun LV 3 @YterAA 最后由 编辑

        @yteraa 重新make之后再pack还是这个问题

        C 1 条回复 最后回复 回复 引用 分享 1
        • C
          creaznico LV 4 @ZhangJun 最后由 编辑

          @zhangjun clean后再make试试

          1 条回复 最后回复 回复 引用 分享 1
          • T
            tjfck LV 2 最后由 编辑

            我与遇到这个问题

            1 条回复 最后回复 回复 引用 分享 1
            • N
              NathanLiu LV 5 最后由 编辑

              @yteraa 在 编译 Tina Linux 遇到 ERROR: update_mbr failed 的解决方法 中说:

              ERROR: unable to open file xxx.fex

              ERROR: unable to open file xxx.fex 这个问题我也遇到过,当时make clean 之后手动 mboot、kernel,再make 好像就行了

              1 条回复 最后回复 回复 引用 分享 0
              • 1 / 1
              • First post
                Last post

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

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