ibm-messaging / mq-raspberry-pi-developers

Apache License 2.0
1 stars 0 forks source link

Support for Raspberry Pi 4 (arm64) #1

Open AntonioTrindade opened 3 years ago

AntonioTrindade commented 3 years ago

The IBM MQ for Raspberry Pi is not compatible with the arm64 architechture (Raspberry Pi 4).

Is it possible to provide such a version?

Thank you.

maxkahan commented 3 years ago

Hi Antonio,

Thanks for your comment. We're looking into this; can you provide some more details about how you're using MQ?

What OS are you using?

Max

maxkahan commented 3 years ago

Note: We have successfully tested a 32 bit queue manager on a 64-bit architecture when we released the build

jonathanwoodford commented 3 years ago

Hi Antonio,

Could this be specific to your environment? What operation were you attempting to perform when you encountered the problem and what error was reported?

pi@raspberrypi:/opt/mqm/bin $ dspmqver Name: IBM MQ Version: 9.2.0.0 Level: p920-L200602.1 BuildType: IKAP - (Production) Platform: IBM MQ for Linux (ARM platform) Mode: 32-bit O/S: Linux 5.4.51-v7l+ O/S Details: Raspbian GNU/Linux 10 (buster) InstName: Installation1 InstDesc: Primary: No InstPath: /opt/mqm DataPath: /var/mqm MaxCmdLevel: 920 LicenseType: Developer pi@raspberrypi:/opt/mqm/bin $ crtmqm qm1 IBM MQ queue manager created. Directory '/var/mqm/qmgrs/qm1' created. The queue manager is associated with installation 'Installation1'. Creating or replacing default objects for queue manager 'qm1'. Default objects statistics : 83 created. 0 replaced. 0 failed. Completing setup. Setup completed. pi@raspberrypi:/opt/mqm/bin $ strmqm qm1 The system resource RLIMIT_NOFILE is set at an unusually low level for IBM MQ. IBM MQ queue manager 'qm1' starting. The queue manager is associated with installation 'Installation1'. 5 log records accessed on queue manager 'qm1' during the log replay phase. Log replay for queue manager 'qm1' complete. Transaction manager state recovered for queue manager 'qm1'. IBM MQ queue manager 'qm1' started using V9.2.0.0.

jonathanwoodford commented 3 years ago

In my current setup, Raspberry Pi OS (previously called Raspbian) is running in 32 bit mode (32 bit install of Raspberry Pi OS). The 64 bit version of Raspberry Pi OS still seems to be in an early beta.

pi@raspberrypi:/opt/mqm/bin $ cat /proc/cpuinfo ..... ..... model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2711 Revision : c03112 Serial : 10000000ad0b3638 Model : Raspberry Pi 4 Model B Rev 1.2

pi@raspberrypi:/opt/mqm/bin $ free total used free shared buff/cache available Mem: 3867188 155256 3299040 113248 412892 3471696 Swap: 102396 0 102396

AntonioTrindade commented 3 years ago

Hi Max.

Here is my Rapberry Pi's hardware info: ~$ cat /proc/cpuinfo processor : 0 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2835 Revision : c03112 Serial : 10000000d52f5815 Model : Raspberry Pi 4 Model B Rev 1.2 ~$ uname -a Linux **.net 5.4.0-1019-raspi #21-Ubuntu SMP PREEMPT Mon Sep 14 07:20:34 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

This is an ARMv8, not v7 like the RPi 3 and older. In the MQ for Raspberry Pi distribution, the only packages available are for the armv7 architecture.

I am using MQ professionally in AIX, Linux and Solaris. I'm a professional MQ administrator. I'm also, on a non professional level, an IoT curious.

The Raspberry Pi would be another platform to test MQ on.

Regards, António

jonathanwoodford commented 3 years ago

From your output, it looks as though you are running Ubuntu (64bit) on a Raspberry Pi4. I am running Raspberry Pi OS (previously called Raspbian) on a Raspberry Pi4.

Regarding my previous question: What operation were you attempting to perform when you encountered the problem and what error was reported?

From your statement, the implication is that no commands run correctly. What error are you getting, presumably something relating to libraries not being found?

AntonioTrindade commented 3 years ago

Jonathan, following is the output from the mqlicense.sh script:

./mqlicense.sh

Licensed Materials - Property of IBM

5724-H72

(C) Copyright IBM Corporation 1993, 2020

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

ERROR: This package is incompatible with this system. This package was built for Linux_arm

Hope this helps.

AntonioTrindade commented 3 years ago

I edited the mqlicense.sh script to remove the architecture check and added the -jre option to specify the JRE location and was able to make it accept the license. Afterwards, I tried installing the DEB files, resulting in the following output: $ dpkg -i ibmmq-runtime_9.2.0.0_armhf.deb ibmmq-sdk_9.2.0.0_armhf.deb ibmmq-server_9.2.0.0_armhf.deb ibmmq-man_9.2.0.0_armhf.deb ibmmq-amqp_9.2.0.0_armhf.deb ibmmq-client_9.2.0.0_armhf.deb ibmmq-gskit_9.2.0.0_armhf.deb ibmmq-java_9.2.0.0_armhf.deb ibmmq-jre_9.2.0.0_armhf.deb ibmmq-samples_9.2.0.0_armhf.deb ibmmq-web_9.2.0.0_armhf.deb dpkg: error processing archive ibmmq-runtime_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-sdk_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-server_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-man_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-amqp_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-client_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-gskit_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-java_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-jre_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-samples_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) dpkg: error processing archive ibmmq-web_9.2.0.0_armhf.deb (--install): package architecture (armhf) does not match system (arm64) Errors were encountered while processing: ibmmq-runtime_9.2.0.0_armhf.deb ibmmq-sdk_9.2.0.0_armhf.deb ibmmq-server_9.2.0.0_armhf.deb ibmmq-man_9.2.0.0_armhf.deb ibmmq-amqp_9.2.0.0_armhf.deb ibmmq-client_9.2.0.0_armhf.deb ibmmq-gskit_9.2.0.0_armhf.deb ibmmq-java_9.2.0.0_armhf.deb ibmmq-jre_9.2.0.0_armhf.deb ibmmq-samples_9.2.0.0_armhf.deb ibmmq-web_9.2.0.0_armhf.deb

pelekekona commented 2 years ago

On January 28th 2022 the final 64bit version of Raspberry Pi OS was released.

Are there plans to provide MQ for this OS?

AntonioTrindade commented 1 year ago

Hi all.

I managed to install IBM MQ 9.3.2 32-bit in Ubuntu Server 22.04 64-bit. I was missing the 32-bit libraries as IBM MQ packages are not dependent on those. After installing a 32-bit Ubuntu package, I was then able to create, run, delete, etc., a queue manager.

I've not read the release notes and was sad because this version does not support AMQP.

my05 commented 1 year ago

Hi,

Quite eager to try this one out, but i'm having the same issues as Antonio (running 64-bit on Rpi 4) and get hit by:

pi@raspberrypi:~/Downloads/MQServer $ sudo ./mqlicense.sh -text_only

Licensed Materials - Property of IBM

5724-H72

(C) Copyright IBM Corporation 1993, 2023

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

ERROR: This package is incompatible with this system. This package was built for Linux_arm

My details are:

pi@raspberrypi:~/Downloads/MQServer $ cat /proc/cpuinfo processor : 0 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2835 Revision : d03115 Serial : 100000002becd857 Model : Raspberry Pi 4 Model B Rev 1.5

AntonioTrindade commented 1 year ago

Hi,

Quite eager to try this one out, but i'm having the same issues as Antonio (running 64-bit on Rpi 4) and get hit by:

pi@raspberrypi:~/Downloads/MQServer $ sudo ./mqlicense.sh -text_only

Licensed Materials - Property of IBM

5724-H72

(C) Copyright IBM Corporation 1993, 2023

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

ERROR: This package is incompatible with this system. This package was built for Linux_arm

My details are:

pi@raspberrypi:~/Downloads/MQServer $ cat /proc/cpuinfo processor : 0 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2835 Revision : d03115 Serial : 100000002becd857 Model : Raspberry Pi 4 Model B Rev 1.5

my05,

You have to edit the mqlicense.sh script and remove the architecture check.

Regards.

my05 commented 1 year ago

Hi Antonio,

That sorted it out. Thank you :)

But of course now i'm stuck on the install part where it expects 32-bit libs. I will try to fiddle around a bit.

(any chance to get 64-bit support for this package dear MQ team?)