Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

How to config ELF format using C6RUN for OMAPL137?

$
0
0
Hi,Experts,
I'm new to omapL1XX series board and also new to c6run. Now I have problems to set up elf format for omapl137 evm board using c6run and syslink.
Here is my working procedure:
1. Build Linux kernel(Linux version 2.6.33,MontaVista(R) Linux(R) Professional Edition 5.0.0) ,u-boot1.3.3 and flash them to the evm board.
2. Make stand alone c6run env,get components for C6Run_0_98_03_03:
 SYSLINK_VERSION=2_10_08_35
 SYSBIOS_VERSION=6_35_03_47 
 IPC_VERSION=1_25_03_15
 XDCTOOLS_VERSION=3_25_02_70
 LINUXUTILS_VERSION=3_23_00_0
3.Write the envionment path for rules.mak,config.mak.
4.Make a new platform named omapl137_syslink in "platforms" folder  copied from omapl138_syslink. Make some tiny modification which I think is right...Also rewrite platform.mak to point to rignt linux kernel and u-boot kernel.
5.In c6run root kernel,type make omapl137_syslink_config in  my host ubuntu-linux,then make everything... 
 
After debug for a week I can build cmemk.ko ,syslink.ko file  insert them to board successfully.Then I make my own executable using c6run lib and app,and run it on target board.Here problems comes:
syslink debug info assert those words below to me:

*** HeapMemMP_sharedMemReq: params->sharedAddr is not in a valid SharedRegion!
Error [0xffffffff] at Line no: 1748 in file /local/home/lc-C6Run_0_98_03_03/syslink_2_10_08_35/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/HeapMemMP.c
Assertion at LinElfLoader_getSymbolAddress: symName [_Ipc_ResetVector]

*** ListMP_getHead: handle passed is NULL!
e no: 220 in /db/atree/library/trees/sl/sl-c35/src/packages/ti/syslink/product/export/syslink_2_10_08_35/packages/ti/syslink/../../ti/syslink/utils/hlos/Memory.c: (size > 0) : failed
Error [0xfffffffe] at Line no: 1181 in file /local/home/lc-/C6Run_0_98_03_03/syslink_2_10_08_35/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/ListMP.c
ProcMgr_translateAddr: srcAddr [0xc3770c00] dstAddr [0xc5be6c00]

I guess my memory mapping is :

0xc000 0000  ~ 0xc200 0000  Linux

0xc200 0000 ~ 0xc300 0000  cmem

0xc300 0000 ~ 0xc3e0 0000  sdram

0xc3e0 0000 ~ 0xc3f0 0000   SR0

0xc3f0 0000 ~ 0xc400 0000  SR1

 What's wrong with my mapping or my config ? It works well when I using dsplink to build coff format,but not for elf format using syslink.

 


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>