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.

syslink compile and vanilla kernel for L138

Hi,


I can build and execute the last vanilla kernel 4.2.0 (mainline git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git) for L138 (using davinci_all_defconfig) on L138 experimental kit (ZOOM by logicpd).

I have some problems building syslink. Is there some patch or "dedicated steps" to build syslink using a mainline kernel? Maybe syslink build with kernel 4.1 or above?

best regards

max

  • I solved the build issue:

    just follow the speps described here: http://processors.wiki.ti.com/index.php/MCSDK_OMAPL138_User_Guide_Chapter_Exploring#Build_Syslink

    and two other change (asm/system.h become asm/system_info.h in file packages/ti/syslink/utils/hlos/knl/osal/Linux/OsalIsr.c and ioremap_cached() become ioremap_cache() in file packages/ti/syslink/utils/hlos/knl/osal/Linux/MemoryOS.c)

    these changes make syslink to build without errors, but the module cannot be loaded:

    syslink: Unknown symbol putname (err 0)
    syslink: Unknown symbol getname (err 0)
    

    so also the kernel needs to be patched to re-export the symbols getname/putname in file fs/namei.c

    At this point syslink can be loaded, but tryng the examples the fails.

    root@arago:/ex02_messageq/release# ./run.sh 
    + ./slaveloader startup DSP server_dsp.xe674
    Attached to slave procId 0.
    Loading procId 0.
    Error in ProcMgr_load [0x83046005]
    + ./app_host DSP
    --> main:
    --> Main_main:
    Main_main: load callback failed
    <-- Main_main:
    <-- main:
    + ./slaveloader shutdown DSP
    Stopped slave procId 0.
    Unloaded slave procId 0.
    Detached from slave procId 0.
    

    best regards

    max

  • Hi,
    We have not tested syslink with latest kernel version.
  • and two other change (asm/system.h become asm/system_info.h in file packages/ti/syslink/utils/hlos/knl/osal/Linux/OsalIsr.c and ioremap_cached() become ioremap_cache() in file packages/ti/syslink/utils/hlos/knl/osal/Linux/MemoryOS.c)

    this is helpful, I met those errors when making syslink. After modified two files, making syslink successed. Thanks.