[Letux-kernel] Tried to enable cpufreq-info on i.MX6/Udoo neo

H. Nikolaus Schaller hns at goldelico.com
Sat Jul 27 12:50:25 CEST 2019


well,
the basics are simple:

commit 8772a80ff179cf08f63bca3f940f109d18a1c54c (HEAD -> temp)
Author: H. Nikolaus Schaller <hns at goldelico.com>
Date:   Sat Jul 27 09:19:12 2019 +0200

    Letux: defconfig: configure for i.MX6 cpufreq driver
    
    Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>

diff --git a/arch/arm/configs/letux_defconfig b/arch/arm/configs/letux_defconfig
index dd1df3b1e7c3..5d94790d3cc3 100644
--- a/arch/arm/configs/letux_defconfig
+++ b/arch/arm/configs/letux_defconfig
@@ -614,6 +614,7 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
 CONFIG_CPUFREQ_DT=y
 CONFIG_CPUFREQ_DT_PLATDEV=y
 # CONFIG_ARM_BIG_LITTLE_CPUFREQ is not set
+CONFIG_ARM_IMX6Q_CPUFREQ=y
 CONFIG_ARM_OMAP2PLUS_CPUFREQ=y
 CONFIG_ARM_TI_CPUFREQ=y
 # CONFIG_QORIQ_CPUFREQ is not set
@@ -3407,7 +3408,7 @@ CONFIG_REGULATOR_USERSPACE_CONSUMER=m
 # CONFIG_REGULATOR_88PG86X is not set
 # CONFIG_REGULATOR_ACT8865 is not set
 # CONFIG_REGULATOR_AD5398 is not set
-# CONFIG_REGULATOR_ANATOP is not set
+CONFIG_REGULATOR_ANATOP=y
 # CONFIG_REGULATOR_DA9210 is not set
 # CONFIG_REGULATOR_DA9211 is not set
 # CONFIG_REGULATOR_FAN53555 is not set


Then, I can boot and cpufreq-info is showing 4 frequency
points.

root at letux:~# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq at vger.kernel.org, please.
analyzing CPU 0:
  driver: imx6q-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 91.0 us.
  hardware limits: 198 MHz - 996 MHz
  available frequency steps: 198 MHz, 396 MHz, 792 MHz, 996 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 198 MHz and 996 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 792 MHz (asserted by call to hardware).
  cpufreq stats: 198 MHz:60.41%, 396 MHz:9.01%, 792 MHz:8.54%, 996 MHz:22.04%  (364)
root at letux:~#

But the Udoo neo isn't running well. Doing apt-get upgrade
leads to random Illegal Instruction and Segfault aborts.

So in summary it doesn't run stable...

Which is a reason why this patch can't be included in the Letux
tree :(

BR,
Nikolaus



More information about the Letux-kernel mailing list