Hi,
I have been working with cross-compiling EPICS for arm, but the ioc
application can't run on the target.
Building EPICS for linux-arm on the host
====================================
1. Install a suitable cross compiler. This release was built with a
version
of gcc 3.3.3 configured as a cross compiler with prefix arm-linux. Let
ARM_LINUX_GCC be the root of the compiler, so that GCC is available as
$ARM_LINUX_GCC/bin/arm-linux-gcc.
2. Extract EPICS from
http://www.aps.anl.gov/epics/download/base/baseR3.14.8.2.tar.gz into
a
suitable directory. Let EPICS_BASE be the path to the root directory of
this
distribution.
3. Apply the patch thus:
$ cd $EPICS_BASE
$ patch -p0 <$LIBERA_EPICS/install/patch-epics-3.14.8.2
4. Editing the site configuration file
$EPICS_BASE/configure/os/CONFIG_SITE.linux-x86.linux-arm
and defining
GNU_DIR=<expansion of ARM_LINUX_GCC>
5. Make sure that linux-arm is included as a cross compiler target
architecture, by editing
$EPICS_BASE/configure/CONFIG_SITE
and defining
CROSS_COMPILER_TARGET_ARCHS=linux-arm
6. Run make from $EPICS_BASE. This will take a while...
$ cd $EPICS_BASE
$ make
Creating a example ioc application on the host
=================================
1. mkdir <top>
cd <top>
2. $EPICS_BASE/bin/linux-x86/makeBaseApp.pl -t example myexample
$EPICS_BASE/bin/linux-x86/makeBaseApp.pl -i -t example myexample
The following target architectures are available in base:
linux-arm
linux-x86
What architecture do you want to use? linux-arm
3. Run make.
$ make linux-arm
Run the ioc example on the target
=================================
1. cd <top>/iocBoot/iocmyexample
2. ../../bin/linux-arm/myexample st.cmd
The error appear:
../../bin/linux-arm/myexample: relocation
error: ../../bin/linux-arm/myexample: undefined symbol: pvar_func_asSub
What's wrong?
Thanks in advance
Yan Yingbing
SSRF BI group
- Replies:
- Re: Error while cross-compiling EPICS for arm Michael Abbott
- Re: Error while cross-compiling EPICS for arm Andrew Johnson
- Navigate by Date:
- Prev:
RE: GOOD Naming conventions for devices and Epics records Lawrence T. Hoff
- Next:
Re: Error while cross-compiling EPICS for arm Michael Abbott
- 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
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: GOOD Naming conventions for devices and Epics records Lawrence T. Hoff
- Next:
Re: Error while cross-compiling EPICS for arm Michael Abbott
- 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
2019
2020
2021
2022
2023
2024
|