Skip to content

Instantly share code, notes, and snippets.

@s0kil
s0kil / Antminer_S19_XP_6060_API.md
Last active March 11, 2025 15:33
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 February 22, 2024 20:02
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 :
@s0kil
s0kil / 01-zynq-uart-exploit.md
Created January 6, 2024 19:17 — forked from four0four/01-zynq-uart-exploit.md
Zynq BootROM Secrets: BootROM dump exploit

Zynq BootROM Secrets: Exposing the bootROM with the UART loader

Last time I wrote about this, I lied a little - There is an interesting bug in the UART loader, and it may have been exactly why Xilinx didn't document it. In short: The UART loader writes the entire UART payload to a location in memory (nominally 0x4_0000). The ROM is architected such that when the boot mode is selected, it registers a callback that is called when the ROM wants more data from the boot device. For the UART loader, this is pretty simple - here's the whole thing:

; void uart_callback(u32 r0_offset, void* r1_dest, i32 r2_nbytes)
ROM:0000A578 PUSH            {R3,LR}
ROM:0000A57C MOV             R3, #uart_buff
ROM:0000A584 MOV             R12, #1
ROM:0000A588 LDR             R3, [R3]
@s0kil
s0kil / btc-tools.sh
Last active September 13, 2023 15:40
Chrome OS Linux BTC Tools
#!/bin/bash
xhost +si:localuser:root
DISABLE_WAYLAND=1 sudo /snap/bin/btctools
xhost -si:localuser:root
# References
# https://support.google.com/chromebook/thread/173115216/linux-terminal-unable-to-open-display-0?hl=en