-
Notifications
You must be signed in to change notification settings - Fork 187
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
Does it work on raspberry pi 3 / arm ? #225
Comments
Hi, @anarchy89, I'm successfully running innernet on Raspberry 4B, so I think it should work. I've compiled from sources by installing the Rust toolchain on the Pi and then running BTW, innernet's GitHub Discussions is the best place to ask support questions. |
Hi @stheid , you'll likely need a newer version of cargo/rustc than what's currently installed on that raspberry pi. I think you need Rust 1.56 or later. |
Hardware wise sure. I'm running it on even older 1st gen PIs. You just have to compile it. You'll need a newish Rust and such. As long as you have a supported kernel and Rust and a platform Rust can compile to innernet shouldn't be a problem. |
Brought me further. thanks for the fast replies. Maybe it would be a good idea to add the first command to the readme as this will effect everyone that uses a debian-based system that rolls out software from the last century :D It fails after 2:30 hours, with a segfault though. I assume it gets killed because 500MB RAM of my Pi1B is probalbly not sufficient for compilation... |
If you had a ton of patience, you could attach an external drive (spinning rust, or lower-powered SSD) via USB, and format it with a swap partition. Then use the "swapon" and "swapoff" commands to temporarily use that additional swap. I hand-compiled the Veloren server once using this trick (also written in rust, build took more RAM than I had). |
I've successfully built innernet on a Pi 4 (faster/better hardware, I know) by increasing the swap. The default swap settings resulted in a failed build. I followed steps here to enable it.
Here is the contents of
Then:
I did this as well, but I'm not sure if it's necessary as I didn't test without it after setting up a swapfile:
After that I was able to run The more proper version will be to cross-compile for ARM targets in github CI when releases are cut. |
I just compiled innernet 1.5.5 on Raspberry Pi OS lite 64bit, on a Raspberry Pi 4B with 2GB of RAM. I had disabled the small amount of default swap. As in:
... trusting the 2GB would be enough. I kept an eye on the used RAM, to see if it would run out. The rust compile briefly surged above 1GB of usage by a couple hundred MB or so (and this is command-line only, no desktop environment). So yeah, you'll have no compilation problems whatsoever on a Raspberry Pi with >= 2GB of RAM. |
I successfully crosscompiled it for pi 3 on my x86 machine. Needed 2 things:
And then cargo deb -p client --target armv7-unknown-linux-gnueabihf Of course the rust toolchaing and arm-linux-gnueabihf-gcc need to be installed (OS-specific). |
Can this be installed on debian on raspberry pi 3?
The text was updated successfully, but these errors were encountered: