导航

    全志在线开发者论坛

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

    t113 recovery模式无法进入,no ATAGS support: can't continue

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

      之前都是用USB下载新固件(spinand),现在想用swupdate工具做本地和OTA升级。
      1.更改了分区文件sys_partition.fex

      [partition]
          name      = recovery
          size         =26128
          ;size        = 10240
          downloadfile = "recovery.fex"
          user_type    = 0x8000
      

      sw-subimgs.cfg

      swota_file_list=(
      ${TINA_BUILD_TOP=}/target/allwinner/${TARGET_BOARD}/swupdate/sw-description-ubi:sw-description
      out/${TARGET_BOARD}/boot_initramfs_recovery.img:recovery
      #out/${TARGET_BOARD}/image/recovery.fex:recovery
      out/${TARGET_BOARD}/image/boot0_nand.fex:boot0
      out/${TARGET_BOARD}/image/boot_package.fex:uboot
      out/${TARGET_BOARD}/image/rootfs.fex:rootfs
      out/${TARGET_BOARD}/image/boot.fex:kernel
      #out/${TARGET_BOARD}/usr.img:usr
      )
      
      

      2.swupdate_make_recovery_img,(主系统和recovery,都设置了ubi-env-redund)

      3.swupdate_pack_swu -ubi

      4.pack,然后升级固件。

      5.尝试进入recovery,失败~

      root@t113:~# fw_setenv boot_partition recovery
      root@t113:~# reboot
      can't run '/etc/init.d/rcK': No such file or directory
      can't run '/sbin/swapoff': No such file or directory
      [  148.645894] UBIFS (ubi0:9): un-mount UBI device 0
      umount: can't remount adb read-only
      [  148.654991] UBIFS (ubi0:9): background thread "ubifs_bgt0_9" stops
      umount: can't remount tmpfs read-only
      umount: /proc busy - remounted read-only
      umount: devtmpfs busy - remounted read-only
      The system is going down NOW!
      Sent SIG[  148.742104] android_work: sent uevent USB_STATE=DISCONNECTED
      TERM to all processes
      netifd_ubus_reconnect_timer(336): failed to reconnect, trying again in 2 seconds
      [  148.758620] android_work: did not send uevent (0 0 00000000)
      Sen[  150.737586] [ohci1-controller]: ohci shutdown start
      [  150.743047] [ohci1-controller]: ohci shutdown end
      [  150.748390] [ehci1-controller]: ehci shutdown start
      [  150.753993] [ehci1-controller]: ehci shutdown end
      [  150.759855] reboot: Restarting system
      [29]HELLO! BOOT0 is starting!
      [31]BOOT0 commit : adaf1174cc
      [34]set pll start
      [40]periph0 has been enabled
      [43]set pll end
      [46][pmu]: bus read error
      [48]board init ok
      [50]ZQ value = 0x31
      [52]get_pmu_exist() = -1
      [54]DRAM BOOT DRIVE INFO: V0.33
      [57]DRAM CLK = 936 MHz
      [59]DRAM Type = 3 (2:DDR2,3:DDR3)
      [63]DRAMC read ODT  off.
      [65]DRAM ODT value: 0x42.
      [68]ddr_efuse_type: 0xa
      [71]DRAM SIZE =128 M
      [73]dram_tpr4:0x0
      [74]PLL_DDR_CTRL_REG:0xf8004d00
      [77]DRAM_CLK_REG:0xc0000000
      [80][TIMING DEBUG] MR2= 0x20
      [87]DRAM simple test OK.
      [89]rtc standby flag is 0x0, super standby flag is 0x0
      [94]dram size =128
      [97]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
      [102]block from 8 to 32
      [206]Check is correct.
      [208]dma 0x29c9c int is not used yet
      [211]dma 0x29c9c int is free, you do not need to free it again
      [217]Entry_name        = u-boot
      [224]Entry_name        = optee
      [228]Entry_name        = dtb
      [231]Jump to second Boot.
      M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
      
      
      U-Boot 2018.05-g2a1965a-dirty (Jul 10 2022 - 02:50:57 +0000) Allwinner Technology
      
      [00.284]CPU:   Allwinner Family
      [00.287]Model: sun8iw20
      [00.289]DRAM:  128 MiB
      [00.292]Relocation Offset is: 04ec1000
      [00.317]secure enable bit: 0
      [00.320]smc_tee_inform_fdt failed with: -65526[00.324]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.330]gic: sec monitor mode
      [00.333]flash init start
      [00.335]workmode = 0,storage type = 0
      
      device nand0 <nand>, # parts = 4
       #: name                size            offset          mask_flags
       0: boot0               0x00100000      0x00000000      1
       1: uboot               0x00300000      0x00100000      1
       2: secure_storage      0x00100000      0x00400000      1
       3: sys                 0x0fb00000      0x00500000      0
      
      active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
      
      defaults:
      mtdids  : nand0=nand
      mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
      [00.511]ubi0: attaching mtd4
      [00.712]ubi0: scanning is finished
      [00.719]ubi0: attached mtd4 (name "sys", size 251 MiB)
      [00.724]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [00.730]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [00.736]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [00.742]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0
      [00.748]ubi0: user volume: 10, internal volumes: 1, max. volumes count: 128
      [00.755]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
      [00.762]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40
      [00.771]sunxi flash init ok
      [00.774]line:703 init_clocks
      [00.777]drv_disp_init
      fdt get node offset faill: hdmi
      [00.786]unable to map hdmi registers
      [00.790]drv_disp_init finish
      [00.894]Loading Environment from SUNXI_FLASH... OK
      [00.914]boot_gui_init:start
      [00.917]set disp.dev2_output_type fail. using defval=0
      drv_lcd_open_callback lcd open flow is NULL! LCD enable fail!
      [00.928]boot_gui_init:finish
      partno erro : can't find partition bootloader
      54 bytes read in 0 ms
      [00.947]bmp_name=bootlogo.bmp size 38454
      38454 bytes read in 3 ms (12.2 MiB/s)
      [00.958]Item0 (Map) magic is bad
      [00.961]out of usb burn from boot: not need burn key
      List file under ULI/factory
      ** Unrecognized filesystem type **
      [00.982]update bootcmd
      [00.994]change working_fdt 0x44880e70 to 0x44860e70
      [01.016]update dts
      Hit any key to stop autoboot:  0
      [02.491]no vendor_boot partition is found
      Android's image name: t113-RtkDongle
      [02.508]Starting kernel ...
      
      no ATAGS support: can't continue
      
      
      

      6.uboot更改 boot_partition为boot,启动后恢复正常~

      7.尝试本地Upgrade_kernel,

      
      [INFO ] : SWUPDATE running :  Installing image kernel into volume /dev/ubi0_4(boot)
      [TRACE] : SWUPDATE running :  [update_volume] : Updating UBI : kernel 4958208
      [TRACE] : SWUPDATE running :  [install_single_image] : Found installer for stream rootfs ubivol[  125.837121] ubi0 error: get_exclusive: 2 users for volume 5
      
      [ERROR] : SWUPDATE failed [0] ERROR handlers/ubivol_handler.c : update_volume : 205 : cannot start volume "/dev/ubi0_5" update
      [TRACE] : SWUPDATE running :  [install_single_image] : Installer for ubivol not successful !
      Software updated failed
      
      

      全志OTA升级的过程实在是不熟悉,有没有大神普及下哇

      Y 1 条回复 最后回复 回复 引用 分享 0
      • Y
        yubeer LV 5 @yubeer 最后由 编辑

        @yubeer 本地swupdate_cmd.sh执行upgrade_kernel后,重启日志,彻底挂了~

        
        
        [217]Entry_name        = u-boot
        [224]Entry_name        = optee
        [228]Entry_name        = dtb
        [231]Jump to second Boot.
        M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
        
        
        U-Boot 2018.05-g2a1965a-dirty (Jul 10 2022 - 02:50:57 +0000) Allwinner Technology
        
        [00.284]CPU:   Allwinner Family
        [00.287]Model: sun8iw20
        [00.289]DRAM:  128 MiB
        [00.292]Relocation Offset is: 04ec1000
        [00.317]secure enable bit: 0
        [00.320]smc_tee_inform_fdt failed with: -65526[00.324]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
        [00.330]gic: sec monitor mode
        [00.333]flash init start
        [00.335]workmode = 0,storage type = 0
        
        device nand0 <nand>, # parts = 4
         #: name                size            offset          mask_flags
         0: boot0               0x00100000      0x00000000      1
         1: uboot               0x00300000      0x00100000      1
         2: secure_storage      0x00100000      0x00400000      1
         3: sys                 0x0fb00000      0x00500000      0
        
        active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
        
        defaults:
        mtdids  : nand0=nand
        mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
        [00.512]ubi0: attaching mtd4
        [00.713]ubi0: scanning is finished
        [00.720]ubi0: attached mtd4 (name "sys", size 251 MiB)
        [00.725]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
        [00.731]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
        [00.737]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
        [00.743]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0
        [00.749]ubi0: user volume: 10, internal volumes: 1, max. volumes count: 128
        [00.755]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
        [00.763]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40
        [00.772]sunxi flash init ok
        [00.774]line:703 init_clocks
        [00.777]drv_disp_init
        fdt get node offset faill: hdmi
        [00.787]unable to map hdmi registers
        [00.790]drv_disp_init finish
        [00.895]Loading Environment from SUNXI_FLASH... OK
        [00.915]boot_gui_init:start
        [00.918]set disp.dev2_output_type fail. using defval=0
        drv_lcd_open_callback lcd open flow is NULL! LCD enable fail!
        [00.929]boot_gui_init:finish
        partno erro : can't find partition bootloader
        54 bytes read in 0 ms
        [00.948]bmp_name=bootlogo.bmp size 38454
        38454 bytes read in 2 ms (18.3 MiB/s)
        [00.960]Item0 (Map) magic is bad
        [00.962]out of usb burn from boot: not need burn key
        List file under ULI/factory
        ** Unrecognized filesystem type **
        [00.983]update bootcmd
        damaged volume, update marker is set[00.998]change working_fdt 0x44880e70 to 0x44860e70
        [01.020]update dts
        Hit any key to stop autoboot:  0
        damaged volume, update marker is set[02.041]no vendor_boot partition is found
        Wrong Image Format for bootm command
        ERROR: can't get kernel image!
        
        
        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

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

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