SECO A62 quad processor seem to stay under 792MHz

Discussion in 'SECOSBC-A62' started by alain PAUMIER, Nov 9, 2016.

  1. alain PAUMIER

    alain PAUMIER New Member

    Joined:
    Nov 7, 2016
    Messages:
    10
    Likes Received:
    3
    I got Android6 working onto the SECO A62 Board, starting from the Android6 imahe from A62 BSP download page.
    it works well but very slowly. It seems the Quad processor do not run their full speed. I installed ''system monitor light'' to see the CPU activity, and the CPU graphs show a max of 792MHz.
    I could change the Parameters-general-governor parameter from ''interactive'' to ''performance'' but it does not change the CPU activity to a speeder one. and I think I lose it at every reboot.
    does somebody have an idea how to have the full speed available, and how to keep it after reboot ?

    Thanks a lot for your help.
     
  2. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Sorry to can't help you but i never use android on this board. Perhaps @Francesco can help you ?
     
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    At the moment @Francesco is ill, but I'm moving to give you an answer shortly (hopefully)
     
  4. alain PAUMIER

    alain PAUMIER New Member

    Joined:
    Nov 7, 2016
    Messages:
    10
    Likes Received:
    3
    Does anybody else have a solution ? or a way to analyse the problem?
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @alain PAUMIER,
    On Dual Lite you should get these frequencies (on Quad it goes up to 1200000).

    cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
    996000
    cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
    396000
    cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
    396000

    If the CPU is doing anything wrong, the frequency is supposed to be low. To see it going up you should stress the system, making it run something. For example, making it unpack a bzip.
    I exclude problems that force the CPU to clock at 792MHz.
    In the sources the frequencies that the processor can use are set here:

    kernel_imx/arch/arm/boot/dts/imx6q.dtsi
     
  6. alain PAUMIER

    alain PAUMIER New Member

    Joined:
    Nov 7, 2016
    Messages:
    10
    Likes Received:
    3
    OK,
    the reason why is that the CPU is frequency limited in large Temperature range in orer to avoid the CPU overheating.
    I have bought a commercial temperature range which is less large, and the CPU is no more limited.
    With this board I could have the 4 CPU running full frequencies.
     
    modjo likes this.
  7. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @alain PAUMIER,
    I haven't understood: you bought another board, did you? Larger temperature ranger means that the board can resist hotter and colder temperatures, does it?
     
  8. alain PAUMIER

    alain PAUMIER New Member

    Joined:
    Nov 7, 2016
    Messages:
    10
    Likes Received:
    3
    yes I bought a new board with commercial Temp. Range.
    This new one can only support 0° to 50° instead of -20 à° 70°
    so they allow the processor to run at full speed.
    the normal A62 in industrial T range is not allowed run at 1.2GHz

    By the way, this new board has also 2GB of RAM but the Android 6 image only take care of 1GB.
    Where can I said to Android thtat There are 2GB ?
    which config file do I need to change ? u-boot config file ?
    do I need to re-compile Android ? or can we just change a config file ?
     
  9. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    As far as I know the guys at Seco did not implemented a way to detect the board variants So there is no u-boot capable of detecting what d-ram config is available. There is an I2C EEPROM attached to the board but as far as I know there is as-well no identification provided. So only hardcoded variant of u-boot with 2G is possible. Maybe @Andrea Rovai or @Francesco do have a tipp
     
  10. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @graugans,
    hi @alain PAUMIER,
    you should recompile the kernel. Anyway, we've contacted SECO to know if they already have a precompiled version, so I can share it with you.
     
  11. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    @Andrea Rovai thanks for the fast response. For the DRAM you need a special u-boot. It would be really helpful if there is a way to detect what kind of RAM is attached so I can select it in SPL code
     
    Andrea Rovai likes this.
  12. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Here is an u-boot for A62 2GB Android (attachment at the bottom of the page).
    It's been tested without any display, but according to the logcat at boot it should be ok.

    The only change is in this file
    Code:
    myandroid60/bootable/bootloader/uboot-imx/configs/mx6qdl_a62_android_defconfig
    this is the change
    Code:
       # Android support for A62 Quad/Dual and DualLite/Solo boards with 1024 memory size
       CONFIG_SPL=y
       CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6QDL,DDR_SIZE=2048,ANDROID_SUPPORT"
       CONFIG_ARM=y
       CONFIG_TARGET_A62=y
       CONFIG_DM=y
       CONFIG_DM_THERMAL=y
    Could you give us a feedback?
     

    Attached Files:

Share This Page