Welcome to iraf.net Friday, November 24 2017 @ 09:23 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 compile iraf from source on ARM-processor
   
mfrankovic
 10/16/2013 08:03PM (Read 1683 times)  
+----
Newbie

Status: offline


Registered: 10/16/2013
Posts: 3
Has anyone attempted to compile IRAF on an ARM machine? I have compiled ds9 and other programs, so I already have X11 development libraries.

I am unable to even get started. When i try to source the irafuser.csh script, I get the following error:
setenv: Too many arguments.

Any help would be appreciated.

 
Profile Email
 Quote
fitz
 10/16/2013 09:36PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 3988

What you're describing requires a full port to the ARM platform, both to add specific cpu code such as the zsvjmp.s assembly source to do error recovery but also to add a new architecture to the system files to support the system. The error you get from the irafuser.csh is because 'arm' isn't a supported architecture name (this error is fixed in the coming patch), but there are likely also code changes to be required for whatever OS is running the machine.

A port isn't impossible but isn't currently in the plans (mostly due to lack of interest and local hardware). I can guarantee the system won't compile as-is without at least some moderate code changes.

 
Profile Email
 Quote
mfrankovic
 10/16/2013 11:39PM  
+----
Newbie

Status: offline


Registered: 10/16/2013
Posts: 3
Le sigh, good to know though.

Guess I'll have to stick with ssh'ing into an Intel based server and running IRAF remotely. Hopefully interest in ARM chips increases, I am blown away with the speed and efficiency of these chips compared to an Intel core.

Thanks for the quick reply, fitz.

 
Profile Email
 Quote
mfrankovic
 10/16/2013 11:49PM  
+----
Newbie

Status: offline


Registered: 10/16/2013
Posts: 3
Just as a side note to my above response, most ARM machines run a 32bit Linux OS, so code changes for the OS may not be necessary. I run two Linux environments concurrently, Ubuntu xfce and ChromeOS (which in reality isn't an OS), and can switch back and forth between them with a keystroke. They share the same file system.

Cheers!

 
Profile Email
 Quote
astrorafael
 01/17/2014 09:40AM  
+----
Newbie

Status: offline


Registered: 12/21/2005
Posts: 2
I used to reduce my amateur CCD images in IRAF more than fifteen years ago, running on a humble 486, 256 MB PC and the result was very satisfactory. I can imagine that these new inexpensive, very low power gadgets like BeagleBone or Raspberry Pi could perform even better nowdays. Hope that we can see IRAF on ARM some day ...

 
Profile Email
 Quote
olebole
 05/03/2014 10:53AM  
++++-
Regular Member
magical

Status: online


Registered: 05/01/2014
Posts: 82
Quote by: fitz
What you're describing requires a full port to the ARM platform, both to add specific cpu code such as the zsvjmp.s assembly source to do error recovery [...]

Here is a zsvjmp.s for armhf and armel (raspberrypi is armhf):
PLAIN Formatted Code
        .file   "zsvjmp.s"

@ Copyright (c) 2014 Ole Streicher
@ Distributable under the same license as IRAF
@ This file contains the Linux armel/armhf version of ZSVJMP for Debian.

        .arch armv6
        .text
        .global zsvjmp_
        .type   zsvjmp_, %function

zsvjmp_:
        mov     r2, #0         @
        str     r2, [r1, #0]   @ *status = 0
        str     r1, [r0, #0]   @ buf[0] = status
        add     r0, r0, #4     @ &buf[1] --> 1st arg for sigsetjmp
        mov     r1, #0         @ 0       --> 2nd arg for sigsetjmp
        b       __sigsetjmp    @ call sigsetjmp

I couldn't compile the whole IRAF for Debian/armhf yet, however the rest should be quite straightforward (armhf and armel are big endian). Maybe you could include this in IRAF as a starting point?

 
Profile Email Website
 Quote
olebole
 05/04/2014 03:56PM  
++++-
Regular Member

Status: online


Registered: 05/01/2014
Posts: 82
(armhf and armel are big endian)
It is actually little endian.

The asm is tested on a raspberry hardware and on armel qemu.

 
Profile Email Website
 Quote
   
Content generated in: 0.12 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login