mfrankovic |
10/16/2013 08:03PM (Read 2516 times)
|
|
|
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.
|
|
|
|
fitz |
10/16/2013 09:36PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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.
|
|
|
|
mfrankovic |
10/16/2013 11:39PM
|
|
|
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.
|
|
|
|
mfrankovic |
10/16/2013 11:49PM
|
|
|
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!
|
|
|
|
astrorafael |
01/17/2014 09:40AM
|
|
|
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 ...
|
|
|
|
olebole |
05/03/2014 10:53AM
|
|
|
Status: offline
Registered: 05/01/2014
Posts: 103
|
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?
|
|
|
|
olebole |
05/04/2014 03:56PM
|
|
|
Status: offline
Registered: 05/01/2014
Posts: 103
|
(armhf and armel are big endian) It is actually little endian.
The asm is tested on a raspberry hardware and on armel qemu.
|
|
|
|