Skip to content

Instantly share code, notes, and snippets.

@s0kil
s0kil / Antminer_S19_XP_get_pll_config_err.md
Last active March 12, 2026 16:20
Antminer S19 XP get pll config err

"chain[1] get pll config err" — Root Cause Analysis

Summary

The chain[1] get pll config err, times N error indicates that ASIC chips on hashboard chain 1 are not responding to SPI register read commands during the PLL frequency ramping phase of initialization. This is a communication timeout — the control board sends a command to read PLL registers, but the chips never reply.

Error Source

The error originates from bmminer (/usr/bin/bmminer), not cgminer. Specifically from function sub_252f0 in the binary (sha256: c1c3952edb7b774446e7405c64e846d9c1c75a654ab76bda04d1d824c4b56a8b).

@s0kil
s0kil / questdb_graalvm.sh
Last active November 5, 2025 16:30
questdb + graalvm
#!/bin/bash
# QuestDB startup script using GraalVM
# Configuration - adjust these paths as needed
GRAALVM_DIR="$HOME/graalvm/graalvm-community-openjdk-25.0.1+8.1"
QUESTDB_JAR="$HOME/questdb/questdb-9.1.1-no-jre-bin/questdb.jar"
QUESTDB_ROOT="$HOME/.questdb"
# Derived paths
JAVA_BIN="$GRAALVM_DIR/bin/java"
@s0kil
s0kil / keybase.md
Created August 11, 2025 18:21
keybase.md

Keybase proof

I hereby claim:

  • I am s0kil on github.
  • I am danielsokil (https://keybase.io/danielsokil) on keybase.
  • I have a public key whose fingerprint is A34E 6CF4 4D78 0A11 81D3 AD3F 4D5B 5B0E 47E4 BD55

To claim this, I am signing this object:

@s0kil
s0kil / Antminer_S19_XP_6060_API.md
Last active March 8, 2026 03:17
Antminer S19 XP - 6060 API Command Reference - Fri Feb 7 18:12:53 CST 2025 - 20250208020137

6060 API Command Reference

This document provides a comprehensive list of all commands supported by the 6060 API, as extracted from the decompiled code.

Fan Control

Command Description Example
/fan-<value> Sets fan PWM (speed) value (1-99) /fan-80
@s0kil
s0kil / s19_xp_errorcode.json
Created March 11, 2025 15:01
Antminer S19 XP Errors - Fri Feb 7 18:12:53 CST 2025 - 20250208020137
{
"version": "3.0.4",
"errorcode": [
{
"id": 100,
"code": "R:1",
"reason": "Average total hashrate is low",
"suggestion": "Update the firmware to the latest version, replace the power supply, or return to factory for repair"
},
{
@s0kil
s0kil / errorcode.json
Created February 26, 2025 18:54
Antminer L9 Mon Feb 10 10:01:06 CST 2025
{
"version": "G2.0.1",
"errorcode": [
{
"id": 100,
"code": "R:1",
"reason": "Average total hashrate is low",
"suggestion": "Update the firmware to the latest version, replace the power supply, or return to the factory for repairs"
},
{
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WhatsMiner Product Categories</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
@s0kil
s0kil / OpenAI-Platform-Invoices-Sum.md
Last active May 23, 2024 13:48
OpenAI Platform, Calculate Invoices Sum
@s0kil
s0kil / Antminer-reg-type-error.md
Last active November 21, 2025 15:56
Antminer !!! REG_TYPE = 1

Antminer !!! REG_TYPE = 1

Find The Chain

With the error of 2024-02-22 19:18:10 !!! REG_TYPE = 1. 539042562, take the last value: 539042562, do an and operation with 0xF to get the chain number the reg error is from:

python3 -c "import sys; print(int(sys.argv[1]) & 0xF)" 539042562
@s0kil
s0kil / Antminer-S19j-Pro-Pic-less-Voltage-Error.md
Last active February 19, 2024 19:19
Antminer S19j Pro Pic Less Voltage Error

Antminer S19j Pro Pic Less Voltage Error

Model

BHB42603

Logs

===========================================Miner log===========================================
1970-01-01 00:00:10 Open miner sn file /config/sn error
1970-01-01 00:00:10 Miner compile time: Mon Dec 26 17:09:26 CST 2022 type: Antminer BHB42XXX sn :