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  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: extensions CONFIG_SITE file for linux-aarch64 of Raspberry Pi 64-bit OS
From: Akira Chen via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Thu, 14 Jul 2022 14:27:54 +0800
Hi there,

      Recently, I tried to install epics base and its relatively simple modules and extensions. During the installation, I found there is no CONFIG_SITE of extensions for linux-aarch64. I learned from community of EPICS's tech-talk, and found Dr. Jeong Han Lee had tried to make one for linux-arm, so I tried to use Dr. Jeong Han Lee's experience to make one for linux-aarch64.

  Here, I use the following

packages:

  * baseR7.0.6.1
  * extensions_20120904
  * StripTool2_5_17_0
  * alh1_2_35
  * medm3_1_17
  * probe1_1_8_0
  * cau_phoevus_20130115

tested Hardwares:

  * Raspberry Pi 4
  * Rock Pi 4 C+

tested OSs:

  * Raspberry Pi OS with Desktop 64-bit Release date:Apr 04 2022 (Raspberry Pi 4)
  * Ubuntu Server 20.04.4 with post Desktop installation (Rock Pi 4C+)


before make aarch64-ubuntu extensions we have to install the following packages

sudo apt-get install libxt-dev
sudo apt-get install libmotif-dev
sudo apt-get install x11proto-print-dev
sudo apt-get install libxmu-headers
@sudo apt-get install libxp-dev
sudo apt-get install libxmu-dev libxmu6


@ aarch64 has no libxp support for apt

Since there is no libxp for easy installation, we can obtain libxp in this website

https://archlinuxarm.org/packages/aarch64/libxp

get this file.

http://mirror.archlinuxarm.org/aarch64/extra/libxp-1.0.3-5-aarch64.pkg.tar.xz

copy and extract this file in root directory /


make a CONFIG_SITE.linux-aarch64.linux-aarch64 file in
${EPICS_ROOT}/extensions/configure/os       for aarch64
 

##################################################################
https://blog.csdn.net/Namcodream521/article/details/88379307                           #
#                                                                                                                                #
# gcc for arm reference aarch64 (ARMv8) vs arm (ARMv7 and ARMv8)                 #
#                                    aarch64-linux-gnu vs arm-linux-guneabifh                          #
##################################################################


-include /configure/os/CONFIG_SITE.linux-x86.linux-x86

#X11_LIB=/usr/lib/arm-linux-gnueabihf
X11_LIB=/usr/lib/aarch64-linux-gnu
X11_INC=/usr/include


#MOTIF_LIB=/usr/lib/arm-linux-gnueabihf
MOTIF_LIB=/usr/lib/aarch64-linux-gnu
MOTIF_INC=/usr/include

###################################################################

After this, I could compile the extensions packages ex: medm, Striptool, and alh.

But I am not a developer of EPICS, so I don't know whether there is any restriction to add this file into the extensions folder. Maybe it still needs some modification. And I hope this will be helpful for other aarch64 users.

Reference:
[1]  Dr. Jeong Han Lee "extensionsTop CONFIG_SITE file for Raspberry Pi"  https://epics.anl.gov/tech-talk/2014/msg00002.php
[2] https://archlinuxarm.org/packages/aarch64/libxp
[3] https://blog.csdn.net/Namcodream521/article/details/88379307 

************************************

************************************

ChienHsu Chen Ph. D.
Technical Scientist

Accelerator Laboratory
Nuclear Science and Technology Development Center
National Tsing Hua University

No. 101, Section 2, Kuang-Fu Road, Hsinchu, Taiwan 30013
Tel: +886-3-5722-418
+886-3-5715131 ext 42886
Fax: +886-3-5717-160
E-mail: akiracc at gmail.com
achchen at mx.nthu.edu.tw

*************************************


Navigate by Date:
Prev: RE: ADEiger acquisiton problem Mark Rivers via Tech-talk
Next: Phoebus Alarm Area Panel custom colours Ian Gillingham 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  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: ADEiger acquisiton problem Mark Rivers via Tech-talk
Next: Phoebus Alarm Area Panel custom colours Ian Gillingham 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  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·