Skip to content

Mujina v5.0.3 – Large-Coinbase Pool (Ocean) Chunking & IPC Protocol Fix

Choose a tag to compare

@IxTechCrypto IxTechCrypto released this 09 Nov 20:51
· 4 commits to v6 since this release

Mujina v5.0.3 – Large-Coinbase Pool (Ocean) Chunking & IPC Protocol Fix

This release introduces chunked split-job IPC transmission to resolve 80–90% stratum job drops on mining pools with large payout coinbases (such as Ocean Pool), adds full-versioned release artifact naming, and eliminates HTTP caching of the dashboard system capability status.


Key Bug Fixes & Improvements

  1. Large Coinbase Stratum Job Chunking (Ocean Pool Fix):

    • Root Cause: Canaan's K230 kernel static IPC driver (libipcmsg.a) enforces K_IPCMSG_MAX_CONTENT_LEN = 1024 with no hardware fragmentation. On standard pools (coinbase ~199 bytes), job wire size is ~800 B (<= 1024 B). On Ocean Pool, payout coinbases range from 554 B to 753 B. Any block template with >= 8 merkle branches exceeded 1024 B, causing kd_ipcmsg_send_only to reject the message. The miner applied only ~2 of 11 jobs, starving the hashboard.
    • Fix: Implemented chunked split-job framing (IPC_MSG_JOB_SPLIT_HEAD = 13 and IPC_MSG_JOB_SPLIT_COINBASE = 14). Standard <= 1024 B jobs transmit unfragmented for zero latency, while large jobs transmit header + merkles via head framing followed by 1016-byte coinbase chunks. Core 1 RTOS reassembles and verifies the payload before applying to the A3197S chain.
    • Result: 100% of jobs applied on Ocean Pool, 0 CRC errors, steady 3.5–3.6 TH/s hashrate.
  2. Synchronized Core 0 (Linux) & Core 1 (RTOS) Release Packaging:

    • Packages synchronized binaries for both Core 0 (/data/mujina-minerd) and Core 1 (/mntapp/release/rtt/rtos_core.elf), with matching UBI sequence numbers (image_seq = 248013053 for app_ubi and image_seq = 590221451 with autoresize for data).
    • Resolves all dual-core IPC version skew, eliminating the "warming up" loop on AutoTune initialization.
  3. Dashboard Real-Time Refresh & Cache Invalidation:

    • Prevents browsers from caching stale /api/v0/system capability documents by attaching timestamp query parameters and no-store cache controls to loadSystem().
    • Pool configuration menu dynamically re-fetches pool settings upon opening.

Artifact SHA-256 Checksums

File SHA-256 Checksum Size (Bytes) Description
nano-mujina-v5.0.3-release.kdimg 1adb98b2d2462246899d0efd1b9de5da200122595a47971ac7f3b8beb87cdc34 129,232,128 Full flash image (flashes all partitions via Torii)
v5.0.3_app_release.img aa963c0d78923378cc61cf94788153a20bf340473be7242b416fbc6daf970505 12,582,912 UBI Partition 9 (app_ubi): Core 1 RTOS & watchdog
v5.0.3_data_release.img fa52457de44881cb251c928ecc4dc1c5e1b8ef76e5e2c42314ba4bfb2a4f5535 58,720,256 UBI Partition 10 (data): Core 0 Linux miner & configs
nano-mujina-v5-release.kdimg 1adb98b2d2462246899d0efd1b9de5da200122595a47971ac7f3b8beb87cdc34 129,232,128 Alias for backward compatibility with tooling
v5_app_release.img aa963c0d78923378cc61cf94788153a20bf340473be7242b416fbc6daf970505 12,582,912 Alias for backward compatibility
v5_data_release.img fa52457de44881cb251c928ecc4dc1c5e1b8ef76e5e2c42314ba4bfb2a4f5535 58,720,256 Alias for backward compatibility
rtos_core.elf 2e88ff5f2b58acbe3761a1ab083ad3c46b89b296f7491f05ca1e0970717299d1 522,088 Core 1 RT-Smart ASIC chain driver
mujina-minerd 9bd36b98368a592a7f663b02f3a6c13e692bce4db254d1600343f128d7fee20e 19,556,592 Core 0 Linux mining daemon
mujina_display_startup.sh e638a37ad83af407e8c5ff20057c1898fc0e68944c09a7a6bd4e68366ca33ebb 5,334 Display & autonomous watchdog supervisor

Installation / Upgrade Instructions

  1. Torii USB Flash (Recommended for all users):
    • Connect the Avalon Nano 3S via USB to your PC while holding the recessed recovery button to enter K230 burn mode.
    • Open Torii, select Avalon Nano 3S, choose nano-mujina-v5.0.3-release.kdimg, and click Burn Firmware.
  2. Network / SSH Upgrade (from existing v5.x):
    scp rtos_core.elf root@<miner-ip>:/mntapp/release/rtt/rtos_core.elf
    scp mujina-minerd root@<miner-ip>:/data/mujina-minerd
    ssh root@<miner-ip> "sync; /sbin/reboot -f"