Navigation

    全志在线开发者论坛

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

    【FAQ】全志R系列启动频率的修改方法

    其它全志芯片讨论区
    r329 r328 r818 faq 技术支持
    1
    1
    237
    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.
    • q1215200171
      budbool LV 8 last edited by

      【问题背景】

      硬件:R系列公板
      软件:Tina3.0及以上
      说明:该FAQ旨在总结Tina系统启动频率的修改方法。

      【问题简述】

      R11设置启动频率以1.2G启动出现高概率挂死,且挂死阶段不唯一(uboot和内核乃至rootfs都出现过)。

      【问题分析】

      1.分析启动log没有异常打印。
      2.初步怀疑是IC的启动频率的设置太高。

      这里记录一下修改启动频率的方法:

      方法一:进入系统后从寄存器更改。

      1.利用sunxi_dump节点启动后更改为1.2G。(具体寄存器以具体IC为准)
          echo 0x01c20000 > /sys/class/sunxi_dump/dump;
          cat /sys/class/sunxi_dump/dump;
          echo 0x01c20000 0x90001810 > /sys/class/sunxi_dump/write;
          cat /sys/class/sunxi_dump/write;

      方法二:全部配置好后再启动。

      1.内核配置选上dvfs驱动

      make kernel_menuconfig
              CPU Power Management  --->
                          CPU Frequency scaling  --->
                                   [*] CPU Frequency scaling   
        │ │                                      <*>   CPU frequency translation statistics      
        │ │                                      [ ]     CPU frequency translation statistics details  
        │ │                                            Default CPUFreq governor (performance)  --->        
        │ │                                      -*-   'performance' governor                           
        │ │                                      < >   'powersave' governor        
        │ │                                      < >   'userspace' governor for userspace frequency scaling
        │ │                                      < >   'ondemand' cpufreq policy governor      
        │ │                                      < >   'interactive' cpufreq policy governor           
        │ │                                      < >   'conservative' cpufreq governor              
        │ │                                            ARM CPU frequency scaling drivers  --->
                                                              [*] SUNXI CPUFreq driver support
      

      利用调频策略的节点更改
      echo usrspace > scaling_governor
      echo 频点 > scaling_setspeed

      2.sys_config.fex配置.

      boot_clock=912
      extremity_freq = 1200000000
      max_freq = 1200000000
      LV1_freq = 1200000000

      方法三:系统无法启动时进入uboot临时更改使正常。

      按住s启动进入uboot
      执行:

      sunxi#setcfg dvfs_table
      –dvfs_table–
      extremity_freq :912000000?1200000000
      max_freq :1200000000?
      min_freq :60000000?
      LV_count :8?
      LV1_freq :1200000000?
      LV1_volt :1200?
      LV2_freq :912000000?
      LV2_volt :1100?
      LV3_freq :912000000?
      LV3_volt :1100?
      LV4_freq :912000000?
      LV4_volt :1100?sunxi#boot
      

      需要更改的直接在后面输入更改的数字,不需要更改就按enter,最后按下ctrl+c停止设置回到
      sunxi#命令行,输入boot重启即可。

      【解决办法】

      最终发现的确是启动频率太高,后改为uboot和kernel启动均以912M。
      启动挂死问题得以修复。

      1 Reply Last reply Reply Quote Share 0
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • 1 / 1
      • First post
        Last post

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

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