riecoind and rieMiner on Pinephone using postmarketOS
Posted: 2023-11-15 22:48:16
I'm sorry if this is in the wrong forum. Here's a write-up for an interesting project I'm working on.
Riecoin Core and rieMiner on Pinephone/Postmarket OS 23.06
Background: Pinephone is a smartphone built to be a Linux phone utilizing the Allwinner A64 chip-set. postmarketOS(pmOS) is based on Alpine Linux and is designed to be installed on smartphones and tablets.
Goal: To re-purpose old phones and tablets to be Riecoin nodes and/or miners.
Considerations: While there has been success with running Riecoin and Rieminer directly on Android, these Android devices are or will no longer supported by Android. This may leave these devices wide open to be exploited in the future. pmOS seeks to run mainline Linux kernel and will allow the devices to receive updates into the foreseeable future, which is important for an always-on/always-connected device.
Steps:
Step 1 - Run Riecoind, and/or rieMiner on Pinephone running postmarketOS.
Step 2 - Install pmOS on an old Samsung Galaxy Tab S I have on hand.
Step 3 – Run riecoind and/or rieMiner on Tablet.
If successful, this can serve as a model for others to do likewise. pmOS has great community support and documentation for many different mobile device chip-sets(SoC’s).
This could potentially keep a lot of still functional devices out of landfills.
While phones and tablets are not the most powerful, some of them are comparable in power to PI’s with the added benefit of not having to purchase a new device.
Results for Phase 1:
Installing and booting postmarketOS on Pinephone was trivial. Just flashed the image to eMMC and powered on.
Alpine Linux, and pmOS, does not use glibc but musl, so the binaries would not execute as is.
Fortunately, Alpine’s documentation lists a few options to run glibc programs.
Flatpak is the preferred choice for graphical programs but since riecoin-qt is not necessary to achieve the goal of the project, I was able to skip that option.
The easiest path to follow for my smoother brain was to Chroot a Debian Bootstrap kernel in conjunction with the app Bubblewrap.
I followed the steps in the documentation exactly, besides having to change the kernel architecture to arm64.
After this I was able to execute both the official Linux arm64 riecoind and rieMiner binaries without having to recompile.
Both seemed to be functioning appropriately, I even managed to reach a blazing(emphasis on hot) 0.4 Ric/d at 250 c/s!
Step 2: Upcoming, Attempting to install pmOS on Samsung Galaxy Tab S and then repeat steps to run riecoind and rieMiner.
Thanks for your time and happy mining!
Riecoin Core and rieMiner on Pinephone/Postmarket OS 23.06
Background: Pinephone is a smartphone built to be a Linux phone utilizing the Allwinner A64 chip-set. postmarketOS(pmOS) is based on Alpine Linux and is designed to be installed on smartphones and tablets.
Goal: To re-purpose old phones and tablets to be Riecoin nodes and/or miners.
Considerations: While there has been success with running Riecoin and Rieminer directly on Android, these Android devices are or will no longer supported by Android. This may leave these devices wide open to be exploited in the future. pmOS seeks to run mainline Linux kernel and will allow the devices to receive updates into the foreseeable future, which is important for an always-on/always-connected device.
Steps:
Step 1 - Run Riecoind, and/or rieMiner on Pinephone running postmarketOS.
Step 2 - Install pmOS on an old Samsung Galaxy Tab S I have on hand.
Step 3 – Run riecoind and/or rieMiner on Tablet.
If successful, this can serve as a model for others to do likewise. pmOS has great community support and documentation for many different mobile device chip-sets(SoC’s).
This could potentially keep a lot of still functional devices out of landfills.
While phones and tablets are not the most powerful, some of them are comparable in power to PI’s with the added benefit of not having to purchase a new device.
Results for Phase 1:
Installing and booting postmarketOS on Pinephone was trivial. Just flashed the image to eMMC and powered on.
Alpine Linux, and pmOS, does not use glibc but musl, so the binaries would not execute as is.
Fortunately, Alpine’s documentation lists a few options to run glibc programs.
Flatpak is the preferred choice for graphical programs but since riecoin-qt is not necessary to achieve the goal of the project, I was able to skip that option.
The easiest path to follow for my smoother brain was to Chroot a Debian Bootstrap kernel in conjunction with the app Bubblewrap.
I followed the steps in the documentation exactly, besides having to change the kernel architecture to arm64.
After this I was able to execute both the official Linux arm64 riecoind and rieMiner binaries without having to recompile.
Both seemed to be functioning appropriately, I even managed to reach a blazing(emphasis on hot) 0.4 Ric/d at 250 c/s!
Step 2: Upcoming, Attempting to install pmOS on Samsung Galaxy Tab S and then repeat steps to run riecoind and rieMiner.
Thanks for your time and happy mining!