导航

    全志在线开发者论坛

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

    swupdate能更新kernel,但是不能更新rootfs

    V Series
    5
    6
    1782
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • C
      chegyy LV 2 最后由 xiaowenge 编辑

      按照ota指南,进行swupdate升级 ,但是kernel可刷新 100%,rootfs没有见到更新,请帮忙指点

      root@(none):/sbin# 
      root@(none):/sbin# ./swupdate_cmd.sh -i /mnt/UDISK/tina-v851s-lizard.swu -e stab
      le,upgrade_kernel
      config new swupdate
      swu_input: ##-i /mnt/UDISK/tina-v851s-lizard.swu -e stable,upgrade_kernel##
      ## set swupdate_param done ##
      swu_param: ##-i /mnt/UDISK/tina-v851s-lizard.swu##
      swu_software: ##stable##
      swu_mode: ##upgrade_kernel##
      ###now do swupdate###
      ###log in /mnt/UDISK/swupdate.log###
      ## swupdate -v  -i /mnt/UDISK/tina-v851s-lizard.swu -e stable,upgrade_kernel ##
      Connected to SWUpdate via /tmp/swupdateprog
      
      Update started !
      Interface: UNKNOWN
      
      [ ==============================[  370.488629] ubi0 error: get_exclusive: 2 users for volume 4
      [ ------------------------------------------------------------ ] 2 of 2 0% (rootfs)
      
      FAILURE !
      Connection closing..
      Trying to connect to SWUpdate...
      swu_next: ####
      swu_param: ##-i /mnt/UDISK/tina-v851s-lizard.swu##
      swu_software: ##stable##
      swu_mode: ##upgrade_kernel##
      ###now do swupdate###
      ###log in /mnt/UDISK/swupdate.log###
      ## swupdate -v  -i /mnt/UDISK/tina-v851s-lizard.swu -e stable,upgrade_kernel ##
      Connected to SWUpdate via /tmp/swupdateprog
      [ ==============================[  372.999308] ubi0 error: get_exclusive: 2 users for volume 4
      [ ------------------------------------------------------------ ] 2 of 2 0% (rootfs)
      
      FAILURE !
      Connection closing..
      Trying to connect to SWUpdate...
      swu_next: ####
      swu_param: ##-i /mnt/UDISK/tina-v851s-lizard.swu##
      swu_software: ##stable##
      swu_mode: ##upgrade_kernel##
      ###now do swupdate###
      ###log in /mnt/UDISK/swupdate.log###
      ## swupdate -v  -i /mnt/UDISK/tina-v851s-lizard.swu -e stable,upgrade_kernel ##
      Connected to SWUpdate via /tmp/swupdateprog
      [ ==============================[  375.508322] ubi0 error: get_exclusive: 2 users for volume 4
      [ ------------------------------------------------------------ ] 2 of 2 0% (rootfs)
      
      FAILURE !
      Connection closing..
      
      Y S 2 条回复 最后回复 回复 引用 分享 1
      • Y
        yubeer LV 5 @chegyy 最后由 编辑

        @chegyy 前辈解决了吗?遇到同样的问题了😧

        S 1 条回复 最后回复 回复 引用 分享 3
        • S
          sunyong LV 2 @yubeer 最后由 编辑

          @yubeer 请问大佬有解决吗?

          1 条回复 最后回复 回复 引用 分享 1
          • S
            sunyong LV 2 @chegyy 最后由 编辑

            @chegyy 大佬有解决吗?

            1 条回复 最后回复 回复 引用 分享 2
            • J
              jasonzhang LV 5 最后由 编辑

              这种更新方式是在嵌入式Linux执行的时候更新本身,u-boot和kernel已经被加载到DRAM中了,所以可以更新flash中的文件;rootfs本身还在flash中,也就是还在运行中,当然不可能更新自己,这个一般用来SD卡更新emmc,或者反过来的。

              不过也不是没有办法,就是系统内部有双rootfs,其中一个rootfs专门用来升级,另一个是用来运行rootfs;升级时先跳转到升级区域的系统,用那个系统执行升级命令,就能够更新rootfs了,升级完成后切换回来重启就可以。

              1 条回复 最后回复 回复 引用 分享 0
              • Z
                zoipuus LV 5 最后由 编辑

                你这种是AB分区的升级方式吗?如果是,看看rootfs的分区名是不是跟当前运行的一样导致冲突了,或者再贴一下swupdate.log的信息看看

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

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

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