Page 1 of 1

Raspberry Pi image on old Pi?

Posted: Mon 31 Jan 2022 4:58 pm
by TonyG
Hi,
I've just followed the really excellent, step by step instructions on the Wiki for using the pre-built raspberry pi image to install MX.
Sadly, although the Pi boots and I can access it through Putty Cumulus doesn't appear to be running.
Could the problem be the low spec of my Pi? Its a Model B rev2. I did have Cumulus running on it a few years ago but software and the OS moves on...
I've attached a screen shot of what comes up when I try and start Cumulus manually.
Thanks!

Re: Raspberry Pi image on old Pi?

Posted: Mon 31 Jan 2022 5:12 pm
by mcrossley
It does look like the processor is incompatible with mono.

You could probably fix that, uninstalling mono-complete and installing it again - it will compile some bits against your CPU.

Re: Raspberry Pi image on old Pi?

Posted: Mon 31 Jan 2022 8:09 pm
by TonyG
Thanks Mark. I have uninstalled Mono and have tried to re-install but the installation just hangs.
Searching around on the net there seems to be something of an issue with newer versions of Mono and ARMv6 Pies (and that includes the Pi Zero). There are no work arounds that I can find. I have no idea how to get an older version of Mono to install. :-(
Maybe it's time to bin the poor old thing.

Re: Raspberry Pi image on old Pi?

Posted: Tue 01 Feb 2022 3:34 pm
by philpugh
If you have built the Rpi image from the repository then you should be able to use sudo apt install mono-complete to install a working version of mono. It will be behind the current version of mono from their website - but it should work.

Re: Raspberry Pi image on old Pi?

Posted: Tue 01 Feb 2022 4:37 pm
by SamiS
TonyG wrote: Mon 31 Jan 2022 8:09 pm Thanks Mark. I have uninstalled Mono and have tried to re-install but the installation just hangs.
How long have you waited? If I remember correctly, at least on pi zero the installation of mono-complete will take several hours.

Re: Raspberry Pi image on old Pi?

Posted: Wed 02 Feb 2022 6:31 pm
by TonyG
Thanks for the comments. I've tried every which way to get Mono to install on my Pi VerB Rev2. I've tried latest Raspbian release then Mono (as per the commands on the Mono website). That gets to the point where it tells you how much space is needed Y/n. If you type Y return it simply quits to the root prompt, as does a simple return only.
I've tried earlier releases of Raspbian and earlier Mono releases from the official Mono repositories, again as per the methods on the Mono site. That always ends with something like 'line 1of the repository index is corrupt'
The closest to success I've had is using the image from the MX Wiki, deleting Mono from it as per Marks suggestion, and just using 'sudo apt install mono-complete' to install it again. However it's been stuck on 99% for 10 hours now so that looks like a fail too.
So annoying as it did all run quite happily a few years ago. Time for a later Pi!

Re: Raspberry Pi image on old Pi?

Posted: Wed 02 Feb 2022 6:50 pm
by mcrossley
Those compiles can take a loooong time on a slow CPU, they are not exactly fast on my i7 laptop! But 10 hours!

Re: Raspberry Pi image on old Pi?

Posted: Wed 02 Feb 2022 10:32 pm
by dane
I have used the instructions in viewtopic.php?f=40&t=17895 successfully on an old Pi.
Note the comment about a special "trick" relative to the Mono installation....
Good luck!

Re: Raspberry Pi image on old Pi?

Posted: Thu 03 Feb 2022 3:31 pm
by TonyG
Hurrah! Despite my last post about the Mono install hanging at 99% and giving up I have been successful!! After leaving the Pi overnight and still seeing 99% complete I just pulled the plug on it. On restarting it seemed fine. I ran the 'mono -V' command and it showed that 6.12 had actually been installed. I ran the 'sudo systemctl status cumulusmx' command to see if CMX was running and that got stuck (15 minutes+) creating a log? I again pulled the plug on that and haven't tried the command since. In all other respects it all seems excellent, the Stop, Start and Restart commands work as intended.
I decided to just copy my current windows 10 install and transfer it to the Pi. What could possibly go wrong? Well, nothing! CMX picked up my Ecowitt station, it's even updating my website.
The only difficulty I had with transferring my Windows install to the Pi was wrangling WinSCP to start SFTP as sudo so I could rename the image CMX install to 'old' ( just in case I needed to go back to it.) To save anyone else the time in WinSCP you need to edit - advanced/environment/SFTP/SFTP Server/and enter 'sudo /usr/lib/openssh/sftp-server' If you don't do this you will just get 'permission denied' when trying to rename the folder. (and yes, I worked that out on my own)
So, if anyone else is interested and in summary, to install on a raspberry Pi VerB Rev2;
Use the Wiki image as per the instructions: then remove Mono - 'sudo apt remove --purge --auto-remove mono-runtime' - Reboot and install Mono with 'sudo apt install mono-complete' - be prepared for a long wait, as SamiS said, several hours at least. On mine it hung at 99% but it had actually installed. Actually quite quick and easy once you've done it 20+ times.
Admittedly it runs slowly but it works and I have the satisfaction of using a Pi destined to gather dust in the back of a draw. :)

Re: Raspberry Pi image on old Pi?

Posted: Thu 03 Feb 2022 4:17 pm
by mcrossley
The bits it compiles at the end of the install are just the developer components from what I remember, so no they should not affect the run-time.

Phew! A marathon but you got there. And a pi 4 is really overkill x10 for running CMX, fine if you want to run lots of other stuff too, but if you have a old pi it seems a shame not to use it.