Repository navigation
How forks and distributions fit into Mujina #150
rkuester
announced in
Announcements
Replies: 1 comment
|
This post grew out of my reply in a forum thread where Karpuzmining showed a Mujina build for Canaan's Avalon Nano 3S and asked about the project's long-term plan. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
People are now building their own firmware on Mujina, which is what we hoped would happen. The model is one shared mining daemon, with many distributions built around it. Some of them will start from Mujina OS, the project's own distribution.
Terms
We use "Mujina" loosely for several things. Here are some terms to use when the distinctions matter.
Android is a Linux distribution, and it runs a fork of the Linux kernel. In the same way, the builds for Canaan's Avalon Nano 3S, such as nano-mujina, are Mujina distributions, and they run forks of mujina-minerd.
A distribution should probably have its own name and version numbers. Ubuntu is a Linux distribution, not Linux itself, and nano-mujina is a Mujina distribution, not Mujina itself.
Shared work belongs in mainline
Distributions can differ in UI, images, and packaging as much as they like. Chip drivers, tuning, and pool handling are different, because they help all distributions once they are in mainline. A fork is a good place to start that work. We bank it in mainline so that the progress is not lost and the next person can build on it.
Merging a fork's work into mainline takes effort on both sides. Mainline needs enough structure to show where a new piece belongs, and that structure is still growing. The fork's work needs to arrive in small pieces that can be reviewed and merged. The progress in the forks is amazing to see, and I would like us, as a community, to get good at contributing that work up to mainline.
Mujina OS and derived distributions
Mujina OS is the project's own distribution. Users will get it as images, and an installer will put an image on a control board. The first image is for the Amlogic control board in the Antminer S19 and S21 series.
Today's distributions start from a vendor's Linux system, as the Nano 3S builds start from Canaan's. Mujina OS is being built to be an easier place to start. A distribution can start from Mujina OS and change only what it needs, and that includes a distribution that goes into a commercial product. A distribution made this way is a derived distribution, as Ubuntu is derived from Debian.
Mujina needs Linux
mujina-minerd is a Linux program, so it needs a control processor that runs Linux. I would resist calling anything Mujina that runs on a microcontroller without Linux, such as standalone firmware for a Bitaxe, a NerdQX, or a Bitair. Such firmware is not built around mujina-minerd.
Within that limit, the goal is for mujina-minerd to drive any hashboard from any vendor, and for Mujina OS to run on any control board that can run Linux. That includes closed machines such as the Antminer S19 and the Whatsminer M64, which run Linux on their control processors. A Bitaxe has an ESP32, which does not run Linux, so firmware such as AxeOS belongs there. The Bitair is the same, and as far as I know the Hammer miners are too.
Mujina does support the Bitaxe, but as a hashboard. The Bitaxe plugs into a Linux host over USB, and firmware on its ESP32 passes the chip's serial bus through to mujina-minerd. The Bitaxe is easy to get and use, which makes it a good development board for Mujina, and it may find its way into small systems. Mujina is not meant to replace AxeOS on a standalone Bitaxe.
All reactions