1 (edited by haris 2018-02-14 20:44:39)

Topic: iRedMail support for aarch64

Is there going to be a release for these processors ???  (aarch64)

Thank you.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail support for aarch64

The AARCH64 is the ARM’s new 64-bit architecture.!!! Why iRedMail cannot support this??? Because it is new??? This is too bad .... Some technical info about it

So what is AArch64 then?

ARM’s new 64-bit architecture.
RISC-like; fixed 32-bit instruction width.
31 general purpose registers, x0-x30 with 32-bit
subregisters w0-w30 (+PC, +SP, +ZR)
Always an FPU; 32 registers, each 128-bits wide.
About as nice as a compiler could hope for.

3

Re: iRedMail support for aarch64

haris wrote:

The AARCH64 is the ARM’s new 64-bit architecture.!!! Why iRedMail cannot support this??? Because it is new??? This is too bad ....

It's simple: We don't have AARCH64 server for testing. Also:

*) which Linux/BSD distro do you want to run on AARCH64? Does the Linux/BSD distro offer binary packages for AARCH64?
*) Do you know many people run AARCH64 server in production?

4

Re: iRedMail support for aarch64

ZhangHuangbin wrote:
haris wrote:

The AARCH64 is the ARM’s new 64-bit architecture.!!! Why iRedMail cannot support this??? Because it is new??? This is too bad ....

It's simple: We don't have AARCH64 server for testing. Also:

*) which Linux/BSD distro do you want to run on AARCH64? Does the Linux/BSD distro offer binary packages for AARCH64?
*) Do you know many people run AARCH64 server in production?


I am running Ubuntu 16.04.3 LTS .! Yes it has support for these processors. ! Well it is best to do it manually then..!!
The hardware is years beyond the software..! I guess!!!!  Thank you for your reply..!

But I have a wired filling  that you put some restrictions inside the script because the repositories I am using are all from ports.ubuntu.com xenial release. The processor is a ARM 64 bit architect .!!! It doesn't have many differences. Can you please provide info on your scripts to change them and put myself the aarch64 to continue the script and install the packages??? Thank you. (If that is the case..)

5

Re: iRedMail support for aarch64

If Ubuntu offers binary packages for aarch64 like i386/amd64, please try this:

*) Run command "uname -m" on your aarch64 server. Copy its output string.
*) Open file 'conf/global' in iRedMail-0.9.7 (or iRedMail-0.9.8-beta1), find lines below:

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export OS_ARCH='i386' ;;
    x86_64|amd64) export OS_ARCH='x86_64' ;;
    armv6l|arm7l|armv7l)
        # Debian ARM platform and Raspberry Pi.
        export OS_ARCH='armhf' ;;
    *)
        echo "Your architecture is not supported yet: ${arch}."
        echo "Both i386 and x86_64 are supported by ${PROG_NAME}."
        exit 255
        ;;
esac

*) Now add one more switch for the output command "uname -m" in step 1, like below:

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export OS_ARCH='i386' ;;
    x86_64|amd64) export OS_ARCH='x86_64' ;;
    armv6l|arm7l|armv7l)
        # Debian ARM platform and Raspberry Pi.
        export OS_ARCH='armhf' ;;
    aarch64)
        export OS_ARCH='aarch64' ;;
    *)
        echo "Your architecture is not supported yet: ${arch}."
        echo "Both i386 and x86_64 are supported by ${PROG_NAME}."
        exit 255
        ;;
esac

Now run iRedMail installer. Show me the output if there's any error.

6

Re: iRedMail support for aarch64

Thank you for your quick reply but I have already done this and I get this :

iRedMail.sh: 28: [: X1: unexpected operator
iRedMail.sh: 162: [: Xxterm: unexpected operator
iRedMail.sh: 174: [: XLINUX: unexpected operator
iRedMail.sh: 230: [: XLINUX: unexpected operator
iRedMail.sh: 303: [: XLINUX: unexpected operator
iRedMail.sh: 323: [: XLINUX: unexpected operator
Error: Your OS is not supported yet.

Info about your export variables on my system
-----------------------------------------------------------
My OS is Ubuntu 16.04 ...!!!!!!!! (Armbian image)   
Uname -r -> 3.10.107-pine64
Uname -m ->aarch64

lsb-release
--------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

Thank you . I really think that a lot of things should be changed too..!!!
If it is too much trouble , please do not do anything. Thank you again for your time.


ZhangHuangbin wrote:

If Ubuntu offers binary packages for aarch64 like i386/amd64, please try this:

*) Run command "uname -m" on your aarch64 server. Copy its output string.
*) Open file 'conf/global' in iRedMail-0.9.7 (or iRedMail-0.9.8-beta1), find lines below:

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export OS_ARCH='i386' ;;
    x86_64|amd64) export OS_ARCH='x86_64' ;;
    armv6l|arm7l|armv7l)
        # Debian ARM platform and Raspberry Pi.
        export OS_ARCH='armhf' ;;
    *)
        echo "Your architecture is not supported yet: ${arch}."
        echo "Both i386 and x86_64 are supported by ${PROG_NAME}."
        exit 255
        ;;
esac

*) Now add one more switch for the output command "uname -m" in step 1, like below:

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export OS_ARCH='i386' ;;
    x86_64|amd64) export OS_ARCH='x86_64' ;;
    armv6l|arm7l|armv7l)
        # Debian ARM platform and Raspberry Pi.
        export OS_ARCH='armhf' ;;
    aarch64)
        export OS_ARCH='aarch64' ;;
    *)
        echo "Your architecture is not supported yet: ${arch}."
        echo "Both i386 and x86_64 are supported by ${PROG_NAME}."
        exit 255
        ;;
esac

Now run iRedMail installer. Show me the output if there's any error.

7

Re: iRedMail support for aarch64

haris wrote:

iRedMail.sh: 28: [: X1: unexpected operator
iRedMail.sh: 162: [: Xxterm: unexpected operator
iRedMail.sh: 174: [: XLINUX: unexpected operator
iRedMail.sh: 230: [: XLINUX: unexpected operator
iRedMail.sh: 303: [: XLINUX: unexpected operator
iRedMail.sh: 323: [: XLINUX: unexpected operator
Error: Your OS is not supported yet.
...
I really think that a lot of things should be changed too..!!!

There's only ONE thing should be changed: please run iRedMail installer with 'bash' shell, not 'sh':

bash iRedMail.sh

8

Re: iRedMail support for aarch64

Thank you very much Sir. I will give it a try and come back for details..!!

9

Re: iRedMail support for aarch64

Yes .. yes .. yes it worked.

Thank you dear Sir , have a nice day.