Navigation

    全志在线开发者论坛

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

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

    V Series
    5
    6
    2020
    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.
    • C
      chegyy LV 2 last edited by 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 Replies Last reply Reply Quote Share 2
      • Y
        yubeer LV 5 @chegyy last edited by

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

        S 1 Reply Last reply Reply Quote Share 4
        • S
          sunyong LV 2 @yubeer last edited by

          @yubeer 请问大佬有解决吗?

          1 Reply Last reply Reply Quote Share 1
          • S
            sunyong LV 2 @chegyy last edited by

            @chegyy 大佬有解决吗?

            1 Reply Last reply Reply Quote Share 2
            • J
              jasonzhang LV 5 last edited by

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

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

              1 Reply Last reply Reply Quote Share 0
              • Z
                zoipuus LV 5 last edited by

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

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

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

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