EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
<== Date ==> <== Thread ==>

Subject: Re: Cannot execute application on ARM target
From: "Williams Jr., Ernest L. via Tech-talk" <tech-talk@aps.anl.gov>
To: 刘佳 <liujia@ihep.ac.cn>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Sun, 13 Jan 2019 04:51:03 +0000
On 1/12/19 6:57 PM, 刘佳 wrote:



-----原始邮件-----
发件人:"Williams Jr., Ernest L." <ernesto@slac.stanford.edu>
发送时间:2019-01-11 23:52:15 (星期五)
收件人: "刘佳" <liujia@ihep.ac.cn>
抄送: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
主题: Re: Cannot execute application on ARM target

Yes, I built the IOC application via the EPICS templates:

    makeBaseApp.pl -t example armexample

    makeBaseApp.pl -i -t example armexample ( the architechture choose linux-arm, and the application name is armexample)


I didn't change any configuration of the application, and then MAKE is no error. So I copy the <appTop> to the target.


when I try to start the application on the target,   ../../bin/linux-arm/armexample st.cmd,    the Error is: 

-bash: ../../bin/linux-arm/armexample: No such file or directory 


and then I change to the <appTop>/bin/linux-arm/, chmod +x armexample, and ./armexample, the Error is:

-bash: ./armexample: No such file or directory

Okay, another suggestion Jia Liu:

Please do the following instead on your target --

cd  <appTop>/iocBoot/iocarmexample

chmod +x  st.cmd

./st.cmd


This should work for you.


Meanwhile, please list the contents of your  "st.cmd" file as well.




I didn't known what to do next, please give some advices, thanks a lot!


Jia LIU




From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> on behalf of 刘佳 via Tech-talk <tech-talk@aps.anl.gov>
Sent: Thursday, January 10, 2019 6:59 PM
To: tech-talk@aps.anl.gov
Subject: Cannot execute application on ARM target
 
Hi,
I am trying to build EPICS application on ARM target, and the cross compiling on host have no error,
but the IOC on the target cannot execute:
    -bash: ./armexample: No such file or directory 

============================================================================================
[Ernest]:
If you are building  your IOC application via the EPICS Templates, then executable is found here by default:
<TOP>/bin/<T_A>/armexample

For example, I built and application called "Jupiter" for a linux target:
<TOP>/bin/rhel6-x86_64/Jupiter

Please provide more information such as did you first create a skeleton for you app with:
makeBaseApp.pl -t example
============================================================================================


########################################################
my configuration as following:
    HOST: Ubuntu 14.04 (on VMware)
    TARGET: Exynos4412
    BASE: base-3.14.12.5
    GCC: arm-none-linux-gnueabi-gcc-4.4.1

the cross compiling configuration is:   
    configure/CONFIG_SITE:
        CROSS_COMPILER_TARGET_ARCHS=linux-arm
        CROSS_COMPILER_HOST_ARCHS=linux-x86
        SHARED_LIBRARIES=NO
        STATIC_BUILD=YES
    configure/os/CONFIG_SITE.Common.linux-arm:
        #COMMANDLINE_LIBRARY = READLINE
    configure/os/CONFIG_SITE.linux-x86.linux-arm:
        GNU_DIR = /opt/armtoolchain/arm-2009q3
        GNU_TARGET = arm-none-linux-gnueabi
########################################################

the .bashrc configuration is:
    export EPICS_HOST_ARCH=linux-x86 
    export EPICS_BASE=/home/control/epics/base-3.14.12.5
    export LD_LIBRARY_PATH=/opt/armtoolchain/arm-2009q3/lib:$EPICS_BASE/lib/linux-arm

I am still getting the error message on target, Please solve my above query. 

Thanks 
Jia LIU





References:
Cannot execute application on ARM target 刘佳 via Tech-talk
Re: Cannot execute application on ARM target Williams Jr., Ernest L. via Tech-talk
Re: Re: Cannot execute application on ARM target 刘佳 via Tech-talk

Navigate by Date:
Prev: Re: Cannot execute application on ARM target Jemian, Pete R. via Tech-talk
Next: autoConnect could not connect from drvAsynSerialPortConfigure Zhibang Shen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
Navigate by Thread:
Prev: Re: Cannot execute application on ARM target Jemian, Pete R. via Tech-talk
Next: Stanford Research Drivers Daniel Cuneo via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020