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.

MCSDK-HPC 66AK2H12 - Installation probelm related "KMOD-HWMON-CORE" module

Other Parts Discussed in Thread: 66AK2H12

HI ,

I am using 66AK2H12 board and there is certain issue in installation of IPK files as follows -

//-------

root@128:~/ipk# opkg install keystone-hpc_3.0.1.4_cortexa15hf-vfp-neon.ipk                                     
Installing keystone-hpc (3.0.1.4) to root...                                                                   
Configuring kmod-hwmon-core.                                                                                   
//var/lib/opkg/info/kmod-hwmon-core.postinst: line 3: /etc/functions.sh: No such file or directory             
Configuring kmod-hwmon-lm75.                                                                                   
//var/lib/opkg/info/kmod-hwmon-lm75.postinst: line 3: /etc/functions.sh: No such file or directory             
Configuring keystone-hpc.                                                                                      
Collected errors:                                                                                              
 * pkg_run_script: package "kmod-hwmon-core" postinst script returned status 1.                                
 * opkg_configure: kmod-hwmon-core.postinst returned 1.                                                        
 * pkg_run_script: package "kmod-hwmon-lm75" postinst script returned status 1.                                
 * opkg_configure: kmod-hwmon-lm75.postinst returned 1.   

This issue hwmon has also prevented me form installing and linking temperature_kmodule.

>

root@128:~/ipk# insmod /lib/modules/3.10.10/extra/temperature_kmodule.ko                                       
[ 5716.846800] temperature_kmodule: Unknown symbol hwmon_device_register (err 0)                               
[ 5716.854011] temperature_kmodule: Unknown symbol hwmon_device_unregister (err 0)                             
Error: could not insert module /lib/modules/3.10.10/extra/temperature_kmodule.ko: Unknown symbol in module

Due to this error ,

dsptop is also not functioning

DSP_0    0.00  00:00:00.000  00:00:00.000
DSP_1    0.00  00:00:00.000  00:00:00.000
DSP_2    0.00  00:00:00.000  00:00:00.000
DSP_3    0.00  00:00:00.000  00:00:00.000
DSP_4    0.00  00:00:00.000  00:00:00.000
DSP_5    0.00  00:00:00.000  00:00:00.000
DSP_6    0.00  00:00:00.000  00:00:00.000
>SP_7    0.00  00:00:00.000  00:00:00.000

dsptop internal error: Fatal: : Can not open temperature module name sysfs entry for reading 

.

Is there is hwmon-core Kmodule available to be installed on Keystone 2 ?

Thanks

Ravi Gupta

  • Ravi,

    I will try the installation and let you know.

    Regards, Eric

  • Ravi,

    If you are using MCSDK HPC 3.0.1.4, then you need to follow the wiki page http://processors.wiki.ti.com/index.php/MCSDK_HPC_3.x_Getting_Started_Guide#Software_Installation

    The installation uses shell script instead of "opkg":

    > mkdir temp
     > cd temp
     > cp [mcsdk-hpc install dir]/mcsdk_hpc_<version>/images/*.ipk .
     > cp [mcsdk-hpc install dir]/mcsdk_hpc_<version>/images/*.sh .
     > chmod +x install_hpc_packages_evm.sh
     > ./install_hpc_packages_evm.sh
     > cd ..
     > rm -rf temp

    With new steps, we didn't see the issue you mentioned.

    Regards, Eric
  • Hi Eric ,
    I tried the steps you said . But I see the same error. Inside the shell script all it does the same thing , calls opkg command , iteratively .
    Can you just tell me what does "lsmod" command return for you ? Or if the hwmon k-module is installed on your system .
    Another possibility , I feel is that i installed operf and valgrind and in the process might have screwed some kernel portion.

    Would you suggest that I restart over and reinstall root file system ? Would that solve the problem ?

    PS- I used ti-sdk-k2h root file to create my root file system.
  • Ravi,

    First of all, the drop 4 is an engineer drop, there need addition work to make the installation a smooth experience. Sorry for this!

    I practiced the installation and share it with you:

    1) My rootfs is a clean one from MCSDK 3.0.4.18 tisdk-rootfs.tar.gz

    root@keystone-evm:~/temp# lsmod
    Module Size Used by
    uio_module_drv 5076 0

    2) To install to EVM, you need to copy .ipk and .sh from your Linux machine MCSDK HPC installation images folder into the file system of EVM

    3) The EVM doesn't support "sudo", so you need to remove "sudo" in the installation script install_hpc_packages_evm.sh

    4) As you mentioned, the shell script is a loop using opkg to install each ipk package

    When you run the installation, you will see:

    Installing ./keystone-hpc_3.0.1.4_cortexa15hf-vfp-neon.ipk ..
    Installing keystone-hpc (3.0.1.4) to root...
    Collected errors:
    * satisfy_dependencies_for: Cannot satisfy the following dependencies for keystone-hpc:
    * ti-openmpi * ti-opencl * ti-openmpacc *
    * opkg_install_cmd: Cannot install package keystone-hpc.

    This is because the order of the IPK package installation, hpc is installed before dependencies.

    In the first round installation, you can see those are installed later:

    Installing ./ti-opencl_0.14.0_cortexa15hf-vfp-neon.ipk ..

    Installing ti-opencl (0.14.0) to root...
    Configuring ti-opencl.
    Installing ./ti-openmpacc_1.1.1_cortexa15hf-vfp-neon.ipk ..
    Installing ti-openmpacc (1.1.1) to root...
    Configuring ti-openmpacc.
    Installing ./ti-openmpi_1.0.0.14_cortexa15hf-vfp-neon.ipk ..
    Installing ti-openmpi (1.0.0.14) to root...
    Configuring ti-openmpi.

    5) So, you have to manually install keystone-hpc_3.0.1.4_cortexa15hf-vfp-neon.ipk after this: 

    # opkg install keystone-hpc_3.0.1.4_cortexa15hf-vfp-neon.ipk  --force-overwrite
    Installing keystone-hpc (3.0.1.4) to root...
    Configuring keystone-hpc.

    I don't have issue for this. I suggest you to do the installation with a new rootfs as I did. 

    Regards, Eric

  • Hi eric ,
    I did fresh installation of everything , but still error comes up .
    My ultimate goal of installing temperature_kmodule and using dsptop did not succeed .

    insmod /lib/modules/3.10.10/extra/temperature_kmodule.ko
    [ 4595.844889] temperature_kmodule: Unknown symbol hwmon_device_register (err 0)
    [ 4595.852084] temperature_kmodule: Unknown symbol hwmon_device_unregister (err 0)
    Error: could not insert module /lib/modules/3.10.10/extra/temperature_kmodule.ko: Unknow

    Total Mode
    Average DSP Usage: 0.00% Accuracy 100.00%

    >
    DSP %USAGE RUN TIME+ IDLE TIME+
    DSP_0 0.00 00:00:00.000 00:00:00.000
    DSP_1 0.00 00:00:00.000 00:00:00.000
    DSP_2 0.00 00:00:00.000 00:00:00.000
    DSP_3 0.00 00:00:00.000 00:00:00.000
    DSP_4 0.00 00:00:00.000 00:00:00.000
    DSP_5 0.00 00:00:00.000 00:00:00.000
    DSP_6 0.00 00:00:00.000 00:00:00.000
    >SP_7 0.00 00:00:00.000 00:00:00.000


    dsptop internal error: Fatal: : Can not open temperature module name sysfs entry for reading.


    It all revolves around hwmon-kmodule .
    Can you find out about this.
    Also I would like to know , that would you consider compiled packages valgrind , operf and others for K2H.
    I compiled them for myself , just thinking that you can probably include in your list of ipks for future.
    Do let me know.

    Thanks
    Best regards
    Ravi Gupta
  • To fix the errors encountered below while inserting temperature_kmodule, the 3.10 kernel for the EVM needs to be re-built with HWMON support. Please enable the below flags in kernel .config file and re-built the kernel:

    CONFIG_HWMON=y

    # CONFIG_HWMON_VID is not set

    CONFIG_HWMON_DEBUG_CHIP=y

  • Thanks for this info .

    I rebuilt the image with the above parameters set in .config file .

    I am still not able to get DSPTOP install and working .

    debugss_kmodule.ko is linked succesfully .

    But temperature_kmodule.ko doesnt link  . 

    and hence I am unable to DSPTOP .

    My aim is to be able to use features of dpstop to monitor my dsp cores for activity .

    I can either do using DSPTOP or by some means use debugss_module directly in user space c codes .

    Third approach can be , if i get a uImage-keystone.bin which works with DSPTOP.

    Please suggest what should I do ?

    Are you guys able to install DSPTOP in keystone successfully ?

  • Ravi,

    I tried the latest HPC package + mcsdk linux 3.0.4.18 and the issue is the same. I will check what the problem is.

    Regards, Eric

  • Hi,


    Any update on this issue? How to actually enable dsptop properly?


    Thanks,

    Miguel

  • Sorry, we are still working on it.Regards, Eric
  • Hi Eric,

    Do you have some updates on the dsptop issue? Is the problem still present on the lastest 03.00.01.12 release? Can dsptop run with the temperature_module.ko?

    Is there a new MCSDK-HPC release plan?

    Thanks,
    Anthony