Page 1 of 1

Anyone installed Mono on a Raspberry Pi0-W recently?

Posted: Thu 22 Jul 2021 8:14 pm
by whitling2k
Just wondering, because I have managed to get CumulusMX running with Mono (all latest versions as of the 22/07/21) on a Raspberry Pi4b - but I can't, for love nor money get it running on my Pi Zero with Wifi.

Well, that's a lie - I did have it running for a short time - but only because I unplugged during a long (2+hr) mono install. After which, it unexpectedly sprung into life.

When I tried to install another package, it reminded me that something wasn't right with the Pi OS, and that I needed to run some repairs.

And the repairs ended up reinstalling Mono - and got stuck at the same place again.

Again, I unplugged - then all was running fine until I tried to install another package.

So this time, I have left it going to see if it ever finishes.

Currently it has been running for over 24hrs, and it's the same part of the install that it is stuck at - the process of:

Code: Select all

Mono precompiling /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll
Just wondering if anyone else has been in the same position on a Pi zero - and how long it took!

Re: Anyone installed Mono on a Raspberry Pi0-W recently?

Posted: Fri 23 Jul 2021 3:21 pm
by philpugh
I did an install in late June following the directions in the wiki

Basically:

Install Debian 10
sudo apt update
sudo apt upgrade
sudo apt install mono-complete (you don't need to do any compiling of mono just use the standard version, yes it's a bit behind the latest version - but the version in the Pi Debian 10 repository is more than adequate for the job.

Copy the CumulusMX sw to a directory of choice.

I then created a systemd service as per wiki. You may prefer to test it out first directly from the console so you can edit the CumulusMX config


Below is the first few lines of the diags log - gives you version info:

2021-06-30 21:12:02.124 ========================== Cumulus MX starting ==========================
2021-06-30 21:12:02.164 Command line: /usr/lib/mono/4.5/mono-service.exe -d:/home/pi/CumulusMX CumulusMX.exe -service
2021-06-30 21:12:02.165 Cumulus MX v.3.11.4 build 3133
2021-06-30 21:12:02.179 Platform: Unix
2021-06-30 21:12:02.185 OS version: Unix 5.4.79.0
2021-06-30 21:12:02.190 Mono version: 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

It's been running continually since then.

Hope this helps.

Re: Anyone installed Mono on a Raspberry Pi0-W recently?

Posted: Fri 23 Jul 2021 3:42 pm
by whitling2k
sudo apt install mono-complete
On the Pi-zero?

This is how I am installing mono-complete on my 0 and 4b. On the 0, it seems to involve a load of precompiling as part of the install.

I have followed the directions on the Wiki to the letter... on the 0 and the Pi4 B.

On the 4b, it installed with no compiling. On the zero, it performed the pre-compiling.

Just to be clear, MX does run, I do have it working - but mono does not fully install correctly (using the above command). The only way I can unfreeze the Pi-0 when installing mono-complete, is to unplug it. I have tried just leaving it - and I'm nearly at 48 hours now.

When unplugging it - It installs fully enough for CumulusMX to run perfectly. But the bodged mono-complete install leaves the OS unable to process further updates or installs of any package, without repairing first. Then when I try repair the process just tries to pre-compile the line in my original post.

This is the error I get when I try to install anything:

Code: Select all

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
when I run

Code: Select all

sudo dpkg --configure -a
I get the same problem I get as when I try to install mono-complete.

I'm wondering if the Pi-0 is running out of memory whilst compiling?

It looks very similar to this thread - for a different architecture of course - but same sort of thread - specific distro needs some compiling - which seems to kill low performance devices.

Re: Anyone installed Mono on a Raspberry Pi0-W recently?

Posted: Fri 23 Jul 2021 7:48 pm
by whitling2k
Sorted it - I upped the size of the swapfile to 512mb and it flew through in 15 mins :D :D :D :D

Re: Anyone installed Mono on a Raspberry Pi0-W recently?

Posted: Sat 24 Jul 2021 3:04 pm
by philpugh
Glad you got it working!