-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install Mono on ev3dev? #8
Comments
The way I had used was simply via The problem is that Mono has not been supporting armel architecture (which the EV3 processor is) since 5.16 release, so newer versions even cannot be installed =( But you can try to downgrade the package version via |
It seems like the default apt repositories in ev3dev has been broken since Debian archived the stretch repos. So some preparations should be done: sudo sed -i 's|security.debian.org|archive.debian.org/debian-security|g' /etc/apt/sources.list
sudo sed -i 's|httpredir.debian.org|archive.debian.org|g' /etc/apt/sources.list This will fix the dependencies. After that, you can execute the mono install instructions with small modifications: sudo apt install dirmngr ca-certificates gnupg apt-transport-https
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stretch/snapshots/5.14.0.177 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update These instructions contain additional apt-transport-https required for using https links to repos and link to mono snapshot 5.14.0.177 instead of the main branch. |
How did you manage to install mono with battery power? Just installing the mono-roslyn package takes so long on my system that the battery power runs out. If I start the installation again with a fresh batteries, it continues with package mono-roslyn until the batteries are empty again. The installation is never finished. I've already tried to compile mono myself, but the file „method-to-ir.c“ takes so long to compile that even then the battery power runs out. Whatever I try cannot be completed with fully charged batteries. Do you have a tip for me? Thanks in advance! |
Actually, I couldn't install any 5.* version of mono on device because of just the same problem as yours. Looks like installing the mono-roslyn package requires so many RAM that it goes to the swap and becomes insanely slow. As far as I've tested, any 4.* version can be installed just fine, but you lose some language features with it. The solution I came to is to create your own system image of ev3dev with preinstalled mono. You need to create custom docker image based on the ev3dev official images and flash it using brickstrap tool. I wrote an instruction with detailed steps. During the instruction preparation I've found two problems:
I'll try to find a solutions if possible. |
Hi! Thanks for the instructions. However, an error occurs while preparing the base image using the command: The error is:
It seems to be related to the architecture, which of course doesn't match. Tested with Debian 12 and Ubuntu 22.04.1. |
I managed to build the base image by running this first: But now the generic images fails to build because of package ca-certificates-java. The error is: I am still searching for a solution. |
I created an image with mono using the ev3dev base image. I prefer using the full image, but for now this is all I need. Thanks again for the instruction! |
I know this might be a dumb question, but how do you install Mono on a ev3dev?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: