EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS on ARM (continued)
From: Dirk Zimoch <[email protected]>
To: Rod Nussbaumer <[email protected]>, EPICS tech-talk <[email protected]>
Date: Tue, 26 Oct 2010 11:51:12 +0200
Hi Emmanuel,

For each cross compile architecture you have several configuration files. Let's have a look on linux-arm (in configure/os):
> ls -1 *linux-arm*
CONFIG.Common.linux-arm
CONFIG.Common.linux-arm_eb
CONFIG.Common.linux-arm_el
CONFIG.linux-x86.linux-arm
CONFIG.linux-x86.linux-arm_eb
CONFIG.linux-x86.linux-arm_el
CONFIG_SITE.linux-x86.linux-arm
CONFIG_SITE.linux-x86.linux-arm_eb
CONFIG_SITE.linux-x86.linux-arm_el


So we have 3 different cross architectures here (linux-arm, linux-arm_eb, linux-arm_el). Select one as your starting point.

Either modify the corresponding files (eg. for linux-arm_el:)
CONFIG.Common.linux-arm_el
CONFIG.linux-x86.linux-arm_el
CONFIG_SITE.linux-x86.linux-arm_el

or make your own files (*.linux-armv4l), copy or include the existing files and overwrite what is different yor you.

Then you add the cross architecture to CROSS_COMPILER_TARGET_ARCHS (either in CONFIG or CONFIG_SITE or CONFIG_SITE.linux-x86.Common) and run make.

If you have further questions, please ask.
Dirk

[email protected] wrote:
Rod,

I am basically trying to compile EPICS for the TS7370 (arm based arch).
How I achieve this is not important to me.

I looked at the TS cross toolchain.
I understand I am supposed to change my makefiles following
CROSS = /opt/crosstool/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
CC = $(CROSS)gcc

but how do I do that in EPICS?
I am not even sure how to correctly setup a target architecture...
export T_A=linux-arm; make
or even make T_A=linux-arm
seem to work. My target EPICS_HOST_ARCH is linux-armv4l
My host is linux 64 bit. It seems I need to create the files CONFIG.linux-x86_64.armv4tl
CONFIG_SITE.linux-x86.linux-armv4tl
CONFIG.Common.linux-armv4tl


I copied ../configure/os/CONFIG...linux-arm... files to compile

But I run into several issues...

Is there any resource for cross compiling on EPICS?
Any other info on how you achieve to run epics on a TS7370 is welcome.

On 08:57 Mon 25 Oct , Rod Nussbaumer wrote:
I have also been able to cross compile EPICS and other applications using the Technologics Systems cross toolchain, but am not using that for production work.



Replies:
Re: EPICS on ARM (continued) emmanuel_mayssat
References:
RE: Thread model for EPICS on ARM CPU michael.abbott
Re: Thread model for EPICS on ARM CPU Rod Nussbaumer
EPICS on ARM (continued) emmanuel_mayssat

Navigate by Date:
Prev: RE: EPICS CA problems Jeff Hill
Next: ChannelArchiver build problem with 3.14.11 on Suse linux Burkhard Kolb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS on ARM (continued) emmanuel_mayssat
Next: Re: EPICS on ARM (continued) emmanuel_mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 26 Oct 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·