Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.2 build 3052 - 13 September 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

RPi zero (W), mono and Illegal instruction

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Post Reply
vr34
Posts: 28
Joined: Wed 13 Jan 2010 12:43 pm
Weather Station: Aercus Instruments WS3083
Operating System: Raspbian Stretch, CumulusMX
Location: South of France
Contact:

RPi zero (W), mono and Illegal instruction

Post by vr34 » Thu 30 May 2019 1:53 pm

Hi,
With my RPi3b there is no problem to run CumulusMX with mono (version 4.0.5) and a fine offset WS: :D http://les.matelles.free.fr/meteo/

I would like to set up another fine offset WS with a RPi zero W. I installed mono 4.0.5 but the RPi answers "Illegal instruction" to "mono -V" whereas my RPi3b answers "Mono JIT compiler version 4.0.5..."
Same answer with mono version 3.10.
Search on the web gives an explanation: "It usually says "Illegal instruction" if you try to run a Pi3 binary on a Pi Zero."
If my RPi zero is in this case, do you know where I can download precompiled of mono 3.10 (or 4.0.5) for PiZero not for Pi3? or where to download sources and how to compile them?

Thanks by advance for your answer

User avatar
mcrossley
Posts: 5619
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RPi zero (W), mono and Illegal instruction

Post by mcrossley » Thu 30 May 2019 3:36 pm

As far as I know it should work, I know other people have run MX on Pi zero.

A similar question here, they just started again with a fresh Rasbian image install and it all worked.

Depending what else you are asking it to do, you may find the zero may be a bit stretched.

vr34
Posts: 28
Joined: Wed 13 Jan 2010 12:43 pm
Weather Station: Aercus Instruments WS3083
Operating System: Raspbian Stretch, CumulusMX
Location: South of France
Contact:

Re: RPi zero (W), mono and Illegal instruction

Post by vr34 » Thu 30 May 2019 7:02 pm

Thank you mcrossley for your answer
But I did it 3 times: download a new img (stretch lite) install it on a microsd card, create ssh and wpa_supplicant.conf on the boot partition. Then by SSH, update and upgrade, install mono 3.10 (or 4.0.5.1-0xamarin0). Each time, the same result: "Illegal instruction" at mono -V or mono --version

vr34
Posts: 28
Joined: Wed 13 Jan 2010 12:43 pm
Weather Station: Aercus Instruments WS3083
Operating System: Raspbian Stretch, CumulusMX
Location: South of France
Contact:

Re: RPi zero (W), mono and Illegal instruction

Post by vr34 » Fri 31 May 2019 1:42 pm

I found the solution:
Among the multiple steps to setup the RPi zero W to work with mono and CumulusMX, at each time I changed the localisation options in raspi-config.
It seems it generated an "Illegal instruction" error for mono 3.1 or 4.0.5. This forth time I changed only the password of pi in raspi-config. Now mono is working well :P

User avatar
mcrossley
Posts: 5619
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RPi zero (W), mono and Illegal instruction

Post by mcrossley » Fri 31 May 2019 2:28 pm

Hmm, maybe the version of Mono that is available for the Pi Zero does not have additional locales coded?

Post Reply