Navigation

    全志在线开发者论坛

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

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

    Linux
    1
    1
    242
    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.
    • Y
      YterAA LV 7 last edited by 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 即可。

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

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

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