FPGA Dev Linux for the S9 Control Board · by JMSCNC, makers of RotatoCAM (jmscnc.com)
Website: revjmoney.github.io/orphan
In Bitcoin, an orphan block is one the chain left behind. Orphan is for the control boards the mining world left behind: the Antminer S9's controller has a Xilinx Zynq XC7Z010 (a dual-core ARM plus an FPGA), 512 MB of RAM, Ethernet, 51 free FPGA pins, and costs a few dollars used. Orphan turns it into a hacker's bench computer: a BBS-style menu, a web control page, and instruments, game consoles, a miner and a language model built inside the FPGA.
The Orphan menu at login: file manager, system info, fan control with live rpm, LED toys, board status
(temperature, voltages, FPGA state), network, and FPGA projects as a tree: [orphan] and [ardzy], each split
into [games], [mining], [science], [radio & sound], [lab toys], [starters & tests]. Every item says where
it runs: {fpga core}, {arm linux} or {fpga + arm}. Every project has a description and a quick start.
The board page (http://orphan.local): the same tree in the browser, in the Orphan look (matrix rain, lime,
translucent cards). Click a project for its quick start and wiring; Load starts it and opens its own page in a new
tab. Ardzy's upload, program output and register tools are still there ("Ardzy inside").
41 FPGA projects: Ardzy's 19 examples (LED strips, steppers, VGA, audio, RISC-V, an FM transmitter, neural networks ...), 6 starters and tests, and Orphan's own sixteen:
| Project | Runs | What |
|---|---|---|
| Orphan Radio (Orphan 7600) | fpga + arm | Software defined receiver, 1 kHz to 49 MHz from one pin: 4 tuners, panadapter, AM/SAM/SSB/CW/NFM, noise blanker, CW, NAVTEX, WWVB and SSTV decoders on the board, scanner, memories. An RTL-SDR on your PC can be a second tuner (radio/nesdr-remote). |
| Orphan Synth | fpga + arm | 8 voices, 6-oscillator mixer, filters, envelopes, LFOs, mod matrix, drive, bitcrusher, delay, looper, arpeggiator, presets; web keys, terminal keyboard or network MIDI. |
| Orphan Games: NES | fpga core | fpganes in the FPGA: CPU, picture, sound, mappers 0 to 4. Real NES controllers plug into the hashboard headers through a 3.3 V adapter: wiring guide. |
| Orphan Games: Game Boy | fpga core | VerilogBoy with Orphan's own boot ROM, stereo, carts to 128 KB (MBC1/3/5). |
| Orphan Games: Master System + Game Gear | fpga core | MiSTer's SMS core turned into Verilog with GHDL, T80 Z80, VDP, jt89 sound; .gg switches to Game Gear mode. Own test cart included. |
| Orphan Games: Atari 2600 | fpga core | A2601 (Retromaster) from MiSTer's Atari 2600 core, turned into Verilog with GHDL: 6507, TIA picture and sound, RIOT. Carts to 32 KB with automatic bank switching (2K, 4K, F8, F6, F4, FA, FE, E0, E7, 3F, UA, DPC) and Superchip RAM; real NES pads work as joysticks. Own test cart included. |
| Orphan Games: Apple IIe | fpga core | MiSTer's Apple-II core (apple2fpga by Stephen A. Edwards, //e work by Gyorgy Szombathelyi) turned into Verilog with GHDL, with T65 as the 65C02: 64K + 64K aux RAM, 560 x 192 picture with NTSC colour, speaker sound, Disk II drive 1 (.dsk .do .po .nib), keyboard typing, paddles and buttons from real NES pads. Apple's ROMs are not included: put your own in roms/a2/system. Own test ROM included. |
| Orphan Games: PC Engine | fpga core | MiSTer's TurboGrafx16 core (HuC6280 + PSG, HuC6270, HuC6260) turned into Verilog with GHDL, LITE build (HuCards only, no CD-ROM or SuperGrafx): HuCards to 4 MB in the board's DDR, stereo PSG, real NES pads. Own test card included. |
| Orphan Games: Atari 7800 | fpga core | MiSTer's Atari7800 core (Jamie Blanks, MIT) turned into plain Verilog with sv2v: SALLY, MARIA, TIA and POKEY sound, RIOT, the 7800 cart mappers; carts to 128 KB plus 16 KB cart RAM, no BIOS needed; real NES pads as joysticks with both buttons. 2600 carts play on Orphan Games: Atari 2600. Own test cart included. |
| Orphan Games: Commodore 64 | fpga core | MiSTer's C64 core (FPGA64 by Peter Wendrich with the MiSTer VIC-II, CIA and SID work, T65 CPU) turned into Verilog with GHDL and sv2v: 64 KB RAM, VIC-II picture, keyboard by position, joystick on port 2 from a real NES pad; .prg programs load and RUN by themselves. Commodore's ROMs are not included: put your own in roms/c64/system. Not working yet: SID sound (silent), disk drive, .crt carts. Own test program included. |
| Orphan TinyLM | fpga + arm | Karpathy's stories15M / stories42M Llama models with every matrix product in the FPGA: 64 lanes, 4 stories per weight pass. Modes: Write, 4 Stories, Adventure (4 takes per chapter, you pick), model selector, FPGA vs ARM race. |
| Orphan BTC | fpga + arm | A real Stratum v1 SHA-256 miner on Ardzy's SHA-256 core, ARM-checked shares, coin and earnings panel (honest numbers: it is a lottery miner). The 4 board LEDs breathe in a slow scanner while it mines. |
| Orphan KAS | fpga + arm | A Kaspa (kHeavyHash) miner in the FPGA, verified at 575 kH/s on the S9: overlapped nonce stages, Stratum with ARM-checked shares, live forge dashboard, payouts and estimates; the 4 board LEDs breathe in a slow scanner while it mines. Its own repo: kas-zynq-fpga-miner. |
| H4SHR-CH3KR | fpga + arm | Hashboard tester and miner for Antminer S9 (BM1387) and L3+ (BM1485, Scrypt) boards on the S9 control board: finds each board, reads its PIC, counts and maps every chip, per-chip clocks and chip tests, temperatures, fan curve or manual, power timer. Mines on any of J6 to J8 at once with its own FPGA work builder and dispatcher (SHA-256 at 2+ TH/s per S9 board) and a Scrypt miner for the L3+ boards; pool, solo or alternating. C++ daemon (hashrd), tabbed web page on port 8000. 3 % dev fee, opt-out. |
| SPEKTOR / INJEKTOR 3000 | fpga + arm | ORPHAN LOGIC LAB: a 16-channel 100 MSa/s logic analyzer on any of the 36 header pins, 4-stage trigger, UART / I2C / SPI dekoders, meetrz, VCD for PulseView, probe builder pages, terminal drawer. INJEKTOR: INTERSEKTOR, a UART man-in-the-middle bridge (pass, rewrite, drop, inject, hand-edit bytes live). |
| MIMIK | fpga + arm | ORPHAN LOGIC LAB chip emulator: the FPGA answers as an I2C chip at the chip's own speed. EEPROMs (24C02 .. 24C256, page writes, WP, write-cycle ACK polling) and sensors that report whatever you set (TMP102, LM75, MLX90614 IR, SRF02, TF-Luna, HMC5883L, QMC5883L, MPU-6050, BH1750): sliders or sine / ramp / noise, live bus log with a hit map, hex editor. Chip models are plugins. |
| Orphan Graphics Toys | fpga + arm | A raycaster, colour waves, XOR fields and the Game of Life drawn by the FPGA. |
Fan control everywhere: Orphan's designs and Ardzy's examples 01 to 17 carry Orphan's fan block (bus slot 15),
so the S9's fans keep working whatever design is loaded (orphan/add-fan.py rebuilds Ardzy's examples with it).
ORPHAN Remote (cyd-remote/): firmware that turns a $15 ESP32 "Cheap Yellow Display" into a Wi-Fi touch screen
for the board: system, radio and synth views, and a screen for Graphics Toys and Games.
Orphan is one complete firmware for the board: download it, flash a card, boot. Inside it, as components, are
Debian 13 and Ardzy by chryso (the open bootloader and kernel, the
ardzy command, the FPGA project loader and its example designs), credited in NOTICE.md. You do not
install anything else first.
- An Antminer S9 control board (the one with the Zynq XC7Z010; often sold alone as a spare)
- A 12 V supply with a 6-pin PCIe plug
- A microSD card, 8 GB or more
- An Ethernet cable to your router, and a PC on the same network
- Recommended: a fan on one of the board's fan headers, or a heatsink on the Zynq
- Download
Orphan-<version>-sdcard.img.xzfrom this repo's Releases. - Write it to the card with balenaEtcher or Raspberry Pi Imager (no need to unpack it).
- Optional, on the PC: the card's boot partition has
ardzy.txt(hostname, root password, network, timezone, SSH) andORPHAN-README.txt. Editardzy.txtbefore the first boot if you want.
- Set the boot jumpers to SD card: JP2 = 1, JP4 = 1.
- Put the card in, plug in Ethernet, then power.
- The first start takes a few minutes: the card grows to its full size, the board makes its own SSH keys, and if it is online it pulls the newest Orphan from GitHub by itself (offline is fine: the card already has everything).
- Then it answers as orphan.local:
| http://orphan.local:8080 | VIZOR, the Orphan desktop: menus, windows, a shell, every FPGA project, real X apps |
| http://orphan.local | the board page: the project tree, logs, the hardware tools |
ssh [email protected] |
password root: change it with passwd. The Orphan menu opens at login |
Update any time with orphan-update (or let the first start do it). Several boards: give each its own hostname in
ardzy.txt, or keep them identical from a PC with bash orphan/sync-boards.sh <board ip> ....
Build the image yourself on a Linux PC: sudo bash tools/make-sdimage.sh <orphan tree> Ardzy-0.3-sdcard.img
(it starts from Ardzy 0.3's open image and adds Orphan; see the script's header).
Already running Ardzy on a card? git clone https://github.com/revjmoney/orphan && sh orphan/orphan/setup-board.sh orphan
turns it into Orphan in place.
- Radio: in the menu press R, then Enter. Open
http://orphan.local:8000and press SPK for sound. On the PC without a browser:ffplay -nodisp -f s16le -ar 12207 -ch_layout mono -fflags nobuffer tcp://orphan.local:8001 - Synth: F FPGA projects, Sound toys, Orphan Synth (terminal keyboard right there; web panel on port 8000).
- Games: copy free homebrew to the board:
.nesto/opt/orphan-games/roms/nes,.gbto/opt/orphan-games/roms/gb,.smsand.ggto/opt/orphan-games/roms/sms,.bin/.a26to/opt/orphan-games/roms/a26. Then F, Games, pick the console; openhttp://orphan.local:8000, pick a game, press Sound on. Arrows move, Z / X are the buttons, Enter is Start. Free games: nesdev.org and itch.io (NES), Homebrew Hub and gbdev.io (Game Boy), SMS Power (Master System, Game Gear), AtariAge homebrew (Atari 2600; Select and Start are the GAME SELECT and GAME RESET switches). Check each game's licence before you share it further. - TinyLM: fetch and pack the model files once on a PC (see
lm/orphan_tinylm/README.md), then loadorphan_tinylmand open port 8000. Start with "Once upon a time, ...": the models only know children's stories. - BTC: load
orphan_btc, enter your address and a pool on port 8000, Start mining.
Antenna: the radio's input is J8 pin 12. A plain wire works as a first test (the FPGA biases the pin itself), but it mostly shows the board's own noise. A resistor and a capacitor make a proper 1-bit ADC front end: R from J8 pin 15 to the input node, C from the node to ground (see the radio's project page in the menu).
| docs/hardware.md | the board, jumpers, headers, LEDs, fans |
| docs/pinmap.md | every FPGA pin on the headers |
| docs/headers.md | J1..J9: which project uses which pins, VGA / HDMI / DAC / antenna attachments |
| orphan/vizor/README.md | VIZOR, the Orphan desktop in a browser (port 8080), and the BLITTR / HDMI plan |
| docs/projects.md | build and change the FPGA designs (Yosys + nextpnr, no Vivado), project.json keys |
| docs/netboot.md | run a second board from a Linux PC over the network (no SD card) |
| docs/flash.md | advanced: boot Orphan from the board's own NAND flash |
Keep several boards identical from a PC: bash orphan/sync-boards.sh <board ip> ... installs the menu and the
same project set on each.
Orphan is open and everyone is welcome: bug fixes, new FPGA cores and modules, SPEKTOR dekoders, INJEKTOR modules, VIZOR windows, chip models for the coming chip emulator, theming, the README and the website, translations, wiring photos, testing on other board revisions. If you want the S9 to run something, ask. See CONTRIBUTING.md and the issues (start with good first issue).
- Your network: the web pages, VIZOR and the board API have no login, and the board API can upload and run programs. Use Orphan on a network you trust, never expose the board to the internet, and change the root password.
- Radio transmitting: Orphan Radio has a test transmitter on J8 pin 5, and Ardzy's FM transmitter project drives a pin with RF. Keep them on short wires or into a dummy load or a resistor plus attenuator into an SDR. Do not connect an antenna to them: transmitting needs a licence where you live.
- Heat: the menu's About this board and Cooling screens show the chip temperature and fan speed.
Orphan is made by one person in a garage. If it brought your old control board back to life, buy me a coffee. Every Orphan page, game and the menu carry the same link.
Mining cores carry a 3 % dev fee, on by default, opt-out. For every 97 minutes mined for you, a mining core
mines 3 minutes for the developer: Orphan BTC on the developer's own pool account (a separate connection), and its
page shows a DEV FEE SLICE badge while that runs. Untick "3 % dev fee" in the miner's settings to turn it off;
mined time is remembered, so the fee is never skipped or charged twice (orphan/devfee.py). No other Orphan
project takes a fee.
Orphan is free software: GPL-3.0-or-later (LICENSE) with two additional terms (ADDITIONAL-TERMS.md): keep
the "by JMSCNC, makers of RotatoCAM" credit, and a modified version must use its own name and logo.
The monkey logo is not GPL (LOGO-LICENSE.md). Credits for everything Orphan builds on are in NOTICE.md.
No Bitmain software, firmware or schematic is in this repository.
[Rev. J. Money - 2026]
![The Orphan board page: matrix rain, metric tiles, the [orphan] / [ardzy] project tree](/api/image?u=https%3A%2F%2Fgithub.com%2Frevjmoney%2Forphan%2Fraw%2Fmain%2Fdocs%2Fscreenshots%2Fboard.png)





