This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omapconf for OMAP 5432

Hi,

I need to vary the cpu frequency so I am trying to install omapconf on my OMAP 5432 board which has Ubuntu 12.04.5 LTS installed on it.

First I tried:

root@localhost:~# sudo apt-get install tiomapconf

and got the following result:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tiomapconf

Later I tried the following instructions:

1. cloned sources from github: https://github.com/omapconf/omapconf.git

2. # cd ~/omapconf/omapconf

3. #export PATH=/home/bin/toolchains/arm-2010q1/bin/:$PATH

4.#make CROSS_COMPILE=arm-none-linux-gnueabi- omapconf

and led to the following:

root@localhost:~/omapconf-master# make CROSS_COMPILE=arm-none-linux-gnueabi- omapconf
make: arm-none-linux-gnueabi-gcc: Command not found
make: Warning: File `omapconf.c' has modification time 1.4e+09 s in the future
arm-none-linux-gnueabi-gcc -D_OMAP5430 -D_SC_VER_1_16 -c -Wall -Wextra -Wno-missing-field-initializers -I -I. -Icommon -Ipmic -Iaudioic -Ilinux -Ii2c-tools -Iarch/arm/mach-omap/common -Iarch/arm/mach-omap/common/prcm -Iarch/arm/mach-omap/common/statcoll -Iarch/arm/mach-omap/omap4 -Iarch/arm/mach-omap/omap4/prcm -Iarch/arm/mach-omap/omap4/dpll -Iarch/arm/mach-omap/omap4/pmi -Iarch/arm/mach-omap/omap5 -Iarch/arm/mach-omap/omap5/prcm -Iarch/arm/mach-omap/omap5/dpll -Iarch/arm/mach-omap/omap5/ctrlmod -Iarch/arm/mach-omap/dra7 -Iarch/arm/mach-omap/dra7/ctrlmod -Iarch/arm/mach-omap/dra7/prcm -Iarch/arm/mach-omap/dra7/dpll -Iarch/arm/mach-omap/dra7/statcoll -Iarch/arm/mach-omap/am335x -Iarch/arm/mach-omap/am335x/prcm -Iarch/arm/mach-omap/am335x/dpll -static omapconf.c -o omapconf.o
make: arm-none-linux-gnueabi-gcc: Command not found
make: *** [omapconf.o] Error 127

Have I gone wrong somewhere or is there an alternate way for installing omapconf.

Thanks,

Rebel

  • Hello Rebel,

    The omapconf reuqires arm-none-linux-gnueabi- cross compiler, in order to be build.

    Please see following thread http://e2e.ti.com/support/omap/f/849/t/345533.aspx

    I notice you that if you use GLSDK packet for your OMAP5. The OMAPCONF is part of GLSDK- ftp://91.215.122.205/doc/TI/dra7xx-evm/GLSDK_6_03_00_01_release_manifest.html

    It is not needed to be build on your OMAP5 board.

    In the attached file I am sending you my OMAPCONF, you can use it directly. 3252.omapconf.zip

    Best regards,

    Yanko

  • Hi Yanko,

    Thanks for your reply.

    Yes I have installed Ubuntu following OMAP5 GLSDK Software Developers Guide

    I placed the file you sent at the location mentioned below and I got the following result. Is there any particular instruction that I need to call to enable your omapconf copy on my device.

    root@localhost:~/3252.omapconf# pwd
    /root/3252.omapconf
    root@localhost:~/3252.omapconf# ls
    omapconf
    root@localhost:~/3252.omapconf# ./omapconf --version
    -bash: ./omapconf: Permission denied

    Thanks,

    Rebel

  • Hello Rebel,

    I would like to notice that OMAPCONF is integrated in the OMAP5 GLSDK release.

    You can use it directly in GLSDK on OMAP5 uEVM.

    See the log from my terminal:

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org omap5-evm ttyO2

    Arago 2013.10 omap5-evm ttyO2

    omap5-evm login: root
    root@omap5-evm:~#
    root@omap5-evm:~#
    root@omap5-evm:~#
    root@omap5-evm:~#
    root@omap5-evm:~#
    root@omap5-evm:~# omapconf read 0x4AE06000
    40000301

    OMAPCONF tool is located in following directory in Ubuntu.

    root@omap5-evm:/# find . -name omapconf
    ./usr/bin/omapconf

    root@omap5-evm:/usr/bin# ls -la

    -rwxr-xr-x    1 root     root       1915792 May  6 16:27 omapconf

    You can push omapconf file (which I had sent you) in /usr/bin directory. 

    You must not run omapconf with ./.

    root@omap5-evm:~# omapconf --version  
    OMAPCONF (rev 1.68 built Tue May 6 21:54:41 IST 2014)

    Do you run omapconf on your OMAP5 board?

    If you make trial to run OMAPCONF on your host machine, it doesn't work so.

    Best regards,

    Yanko

  • Hi, Yanko

    Can the Panda5AJ.1.5 use the OMAPCONF tool?

    Thanks.

    Best regards,

    Shuhua

  • Hello Shuhua,

    Yes, OMAPCONF tool can be used in Android releases.

    You can use the attached file in the my previous post to download the OMAPCONF binary.

    To use OMAPCONF in Panda5AJ.1.5 you must apply following:

    1. Connect your OMAP5 device to host machine.

    Change permission to adb device.

    2. sudo adb root

    3. sudo adb remount

    Push OMAPCONF to /system/bin

    4. adb push omapconf /system/bin

    Afterwards you can already use OMAPCONF in Android.

    Best regards,

    Yanko

  • Hi Yanko,

    Thanks a ton for your help. I tried the command omapconf --cpuversion which gives an error saying I2C read failed.  The Error is as displayed below.  I noticed I do not have a folder named 'cpufreq' in '/sys/devices/system/cpu/cpu0/' which I believe is the reason. Is there some fix for that? 

    root@localhost:/usr/bin# omapconf --cpuinfo
    /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state not found, no CPUFREQ?

    OMAPCONF (rev 1.67 built Mon Aug 12 17:05:19 EEST 2013)

    HW Platform:
    Generic OMAP5 (Flattened Device Tree)
    OMAP5432 ES2.0 TEST Device (STANDARD performance (1.5GHz))
    DIE ID: 10700001-00000503-015D475F-1601300D
    Error: I2C Read failed
    Error: I2C Read failed
    Error: I2C Read failed
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
    TWL6035 ES UNKNOWN (EPROM rev UNKNOWN)
    Error: I2C Read failed
    UNKNOWN AUDIO IC

    Thanks,

    Rebel

  • Hello Rebel,

    You are right, there are not problems with your hardware or software.

    I got the same message with my OMAP5 board:

    root@omap5-evm:~# omapconf --cpuinfo
    OMAPCONF (rev 1.68 built Tue May 6 21:54:41 IST 2014)

    HW Platform:
      OMAP5 Panda board
      OMAP5432 ES2.0 GP Device (STANDARD performance (1.5GHz))
        DIE ID: 29D000A1-00000503-015D475F-08010019
    [  245.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    [  246.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    [  247.779327] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    [  248.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    [  249.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
    [  250.779327] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    [  251.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
    [  252.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_chip_revision_get(): could not read register! (-4)
    [  253.779266] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
    twl603x_eprom_revision_get(): could not read register! (-4)
      TWL6035  ES UNKNOWN (EPROM rev UNKNOWN)
    [  254.779327] omap_i2c 48072000.i2c: controller timed out
    Error: I2C Read failed
      UNKNOWN AUDIO IC

    This is normal for OMAP5. OMAP5 device does not support Smartreflex class 3 and DFVS (Dynamic Frequency and Voltage Scaling). AVS strategy is used: as SmartReflex AVS class 0 - Manufacturing Test Calibration.

    Therefore the reading from PMIC TWL603x is impossible, because the I2C interface to PMIC is not supported.

    I was wondered, when I found out this feature for OMAP5 before several months.

    You can use OMAPCONF with the commands describe in the link - https://github.com/omapconf/omapconf/wiki

    However, take in mind that you cannot control PMIC and the I2C errors will be available only for information.

    Best regards,

    Yanko

  • Hi Yanko,

    Thanks a ton for your help!!

    Do you know of any other board where I could measure the Power, access the GPU's(I did not get access to the OPENCL library for OMAP 5432), and also vary CPU voltage and Frequency. 

    Thanks,

    Rebel

  • Hello Rebel,

    You can use all power measurement options with all OMAP4 board.

    Because OMAP4 devices support AVS Smartreflex technology class 3.0.

    See following link - http://www.vectorfabrics.com/blog/item/power_consumption_omap4430_pandaboard

    Best regards,

    Yanko

  • Hi Yanko,

    Thanks for your patience in answering all my queries. 

    When you mentioned I cannot vary the cpu freq and voltage dynamically, is there like a method to statically change the voltage and frequency for OMAP5432?

    Also does OMAP 4 support DFVS? I also need to run OPENCL to access the GPU's to calculate the performance of the GPU's. Are the OPENCL libraries available for OMAP4(As I could not do that for OMAP 5432)?

    Thanks a ton again!!

    Regards,

    Rebel

  • Hello Rebel,

    #Q1: When you mentioned I cannot vary the cpu freq and voltage dynamically, is there like a method to statically change the voltage and frequency for OMAP5432?

    -No, there is no option for changing CPU FREQ and Voltage dynamically. You can see their settings in these files:

    ti-glsdk_dra7xx-evm_6_04_00_02/board-support/linux/arch/arm/boot/dts/ omap5-uevm.dts

    ti-glsdk_dra7xx-evm_6_04_00_02/board-support/linux/arch/arm/boot/dts/ omap5.dtsi

    See my unsuccessful trials for changing CPU freq:

    root@omap5-evm:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_gov
    userspace ondemand performance
    root@omap5-evm:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    ondemand
    root@omap5-evm:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
    500000
    root@omap5-evm:~# cat /sys/class/regulator/regulator.3/microvolts
    3300000
    quencies 5-evm:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_fre
    500000 1000000 1500000
    root@omap5-evm:~#
    root@omap5-evm:~#
    root@omap5-evm:~#
    speedomap5-evm:~# echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_set
    speedomap5-evm:~# echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_set
    -sh: echo: write error: Invalid argument

    Take look on following files about CPU freq:

    drivers/cpufreq/cpufreq-cpu0.c
    Generic CPUFreq driver, now used by all TI SoCs supported by 3.12 kernel
    drivers/power/opp/omap-opp-modifier.c
    Opp-modifier driver for eFuse controlled opp’s
    Documentation/devicetree/bindings/power/opp-modifier.txt
    Device tree binding documentation for opp-modifier

    #Q2: Also does OMAP 4 support DFVS? I also need to run OPENCL to access the GPU's to calculate the performance of the GPU's. Are the OPENCL libraries available for OMAP4(As I could not do that for OMAP 5432)?

    - Yes, OMAP4 support Class-1.5 SmartReflex Voltage Control.
    - Yes, there is OpenCL support fro OMAP44xx SGX540.
    See following links:

    http://e2e.ti.com/support/omap/f/849/t/283314.aspx

    http://e2e.ti.com/support/omap/f/885/t/280567.aspx

    Best regards,

    Yanko