Skip to content

nano-mujina v5.1.0

Choose a tag to compare

@IxTechCrypto IxTechCrypto released this 17 Nov 18:51

Release Notes: Mujina v5.1.0

Release: v5.1.0
Target Hardware: Canaan Avalon Nano 3S (12x A3197S ASICs, Kendryte K230 RV64GC SoC)
Git Branch / Commit: IxTechCrypto/mujina:nano3s/v6 @ c17b8cc
Date: November 17, 2026


Highlights

Mujina v5.1.0 delivers major stability, resilience, and UI upgrades for the Canaan Avalon Nano 3S:

  1. Core 1 Freeze Recovery & Stall Resilience: Eliminates silent warmup lockups. Core 0 monitors Core 1 status telemetry age; if Core 1 falls silent (>60s) or stalls, Core 0 immediately boosts fan to 100% and triggers rate-limited recovery reboot (request_recovery_reboot) after 5 minutes with flash-wear backoff protection.
  2. Smooth Thermal Fan Ramp: Proactive rising-temperature fan pre-ramping (dt > 0.25°C/tick within 6°C of target) with softened cooldown damping and SetFanMinPercent boost across cap .. cap + 3°C, preventing fan slam and acoustic oscillation.
  3. Persistent Target Tuning & Auto-Recovery: Retains target setpoint (power:<W> / hashrate:<TH/s>) across reboots with atomic fsync persistence in tuning.conf. Recovers smoothly from last converged SearchMemory setpoint without re-searching.
  4. Direction A Theme-Synced Circular LCD UI: Direct framebuffer rotation synced live with web dashboard themes (Cyberpunk, Minimal, Parasite). Features 25 FPS animated perimeter rings and smooth radial gauges on the 240×240 round screen.
  5. Modern Animated BLE Setup UI: Replaces legacy LVGL screen with a crisp 20 FPS anti-aliased Bluetooth radio wave animation during onboarding.

Detailed Changes

1. Core 1 Freeze Recovery & Stall Escalation (nano3s.rs, nano3s_tuner_core.rs, nano3s_ipc_shim)

  • Status Age Monitoring: Tracks Core 1 telemetry freshness via nano3s_ipc_status_age_ms. Skips AutoTune iterations and holds fan at 100% when Core 1 telemetry is stale (>60s) or missing (>180s).
  • Rate-Limited Recovery Reboot: Escalates to request_recovery_reboot("core1_stale_status") after 5 minutes of silence, gated by a 1-hour flash-wear suppression timer (/data/userdata/nano/last_recovery_reboot).
  • Deadlock Resolution for Stuck Chains: Detects stuck paused chains, retries resume_from_idle() at tick 8 (~2 min), and escalates to recovery reboot at tick 20 (~5 min).
  • StallStage::GaveUp Escalation: Triggers TuneAction::RebootRecovery after 40 consecutive stalled ticks following 2 failed chain re-inits.
  • Fan State Restoration: Invalidates AutoTune fan cache upon recovery from a stale episode to immediately restore normal PI thermal duty or manual duty.

2. Auto-Tuner & Thermal Envelope (mujina-miner/src/board/)

  • Persistent Targets: Saves active target mode (power:<W> / hashrate:<TH/s>) and warm boot SearchMemory setpoint to /data/userconfig/tuning.conf via atomic rename.
  • Dynamic Safety Trip Scaling: Scales instantaneous PSU safety trip (min(caps.power_w * 1.03, power_safety_w)) and applies window-mean over-cap backoff, eliminating premature throttling during cold warmup spikes while preserving safety envelopes on Balanced and Quiet.
  • Per-Chip Offset Reset: Resets all 12 chip frequency offsets to zero with IPC retry when switching profiles or targets; disables per-chip tuning by default on profile switch.
  • Brown-Out Resilience: Allows stalled chain telemetry (0 GH/s, valid power, temp_max = 0.0°C) to emit metrics so AutoTuner properly advances AVG x/20, reverts to best known frequency, and triggers ReinitChain.
  • Smooth Fan Ramping: Proactive fan pre-ramping on rising temperature (dt > 0.25°C/tick within 6°C of target), softened cooldown damping (-3%/tick max within 4.5°C of target), and proportional boost across cap .. cap + 3°C prevents acoustic slamming.
  • Companion Binaries Auto-Sync: Auto-provisions embedded rtos_core.elf (2e88ff5f...) and display scripts during boot/OTA with one-time automatic reboot when Core 1 firmware updates.

3. Manual Fan Arbitration & Safety Protection

  • Pauses AutoTune thermal fan loop when manual fan mode is commanded via PATCH /api/v0/boards/{name}/fan.
  • Hardens thermal breach protection: temperatures exceeding cap immediately override manual fan settings with 100% emergency cooling (hold_full) until cooled 5°C below cap, cleanly restoring the user's manual duty.

4. Direction A Theme-Synced LCD & Bluetooth UI

  • Live Display API: Added GET / PATCH /api/v0/display synced live with web dashboard theme selector (cyberpunk, minimal, parasite).
  • Framebuffer Optimization: Single-pass O(ring_lut_len) LUT traversal and early radial bounds rejection cuts 25 FPS display CPU load in half on the K230.
  • Theme-Synced WiFi/BLE Setup: Replaces legacy LVGL WiFi screen with 20 FPS anti-aliased animated Bluetooth radio symbol. Fixes display page respawn loop so provisioned miners show live telemetry immediately upon boot.

Release Artifacts & SHA256 Checksums

e2d74a4eee0f79f6ea2cc0a2ea3d386b5a3ab92b62e783e773162440fcb54bd6  nano-mujina-v5.1.0-bundle.bin (21,387,784 bytes)
57983d3a3e9c833f64dc6340448ba6f5b59e7de67020f4b4a3b4d2d57558c1c5  nano-mujina-v5.1.0-release.kdimg (129,232,128 bytes)
eff96369cfe6c9ec185906a97dd972f05541c606a0e0b48e2c2625b1e15b0049  mujina-minerd (21,387,768 bytes)
e8fecf0f30c3de67315a781e670541810894453c4bcf050e4c9d55b827507413  nano3s_ui (2,752,904 bytes)
d61b0513f0a0fe40f36a98a9e5843ea1654315553dd3c8b96f47031fdd41a1df  fb_button (822,128 bytes)
45d2b996258eb54a046c96edf25921783f0ef8ed79538ef0791c14d36110c2ab  v5.1.0_app_release.img (12,582,912 bytes)
96d7275dbb378742b175d7e01a0046b3e9ce6e61618e8e9ce8641c6b66c4794a  v5.1.0_data_release.img (58,720,256 bytes)

Upgrade Instructions

Method 1: Web Dashboard One-Click OTA (Recommended)

  1. Navigate to your miner's web dashboard at http://<MINER_IP>/.
  2. Go to Firmware / Maintenance $\rightarrow$ Update Firmware.
  3. Select nano-mujina-v5.1.0-bundle.bin and upload. The miner will validate, swap the binary, and reboot automatically.

Or via CLI:

curl -X POST --data-binary @nano-mujina-v5.1.0-bundle.bin \
  -H "Content-Type: application/octet-stream" \
  http://<MINER_IP>/api/v0/firmware/bundle

Method 2: Full USB Flash (Kendryte K230 Burn Tool)

  1. Write nano-mujina-v5.1.0-release.kdimg to a USB flash drive using PhoenixCard or the K230 Burn Tool.
  2. Insert into the Avalon Nano 3S and power cycle to flash factory firmware.