RescueMei GitHub avatar

BC250-DXE-SMU-Core-Unlock

RescueMei

一个专为 AMD BC-250 设计的 DXE 驱动,在启动早期通过 SMU 消息解锁全部 8 个 CPU 核心,仅在核心存在掩码显示为 7 核时触发。

Stars

5

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

暂无数据

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该驱动将核心解锁序列直接嵌入 BIOS 作为 DXE 驱动,使得解锁在操作系统重装、硬盘更换和冷启动后仍然保持,同时包含安全检查以避免启用有缺陷的核心。

适合谁使用

  • BC-250 硬件拥有者和运维人员
  • 修改 AMI BIOS 的固件工程师
  • 使用 BC-250 ASIC 的矿工和系统集成商
  • 对 SMU 核心激活感兴趣的安全研究人员

典型使用场景

  • 在确认所有核心均正常但出厂掩码限制为 7 核的 BC-250 主板上恢复完整 8 核功能
  • 将解锁集成到自定义 BIOS 镜像中,避免依赖操作系统级别的工具
  • 在 BC-250 矿机群中自动化核心解锁,无需逐台手动刷写
  • 解锁后进行压力测试以验证核心稳定性

项目优势

  • 在操作系统加载前的极早期启动阶段执行,对启动时间影响极小
  • 包含安全防护:仅在检测到预期的 0x77 掩码时触发,对异常掩码不做操作
  • 提供容器化和本地主机两种构建脚本,便于集成到固件工作流
  • 基于已验证的参考实现(rw‑r‑r‑0644),生成标准的 .ffs 驱动文件,可直接用 UEFITool 插入

使用前须知

  • 仅适用于已通过其他方法确认全部 8 个 CPU 核心均正常的 BC-250 主板
  • 需要刷写修改后的 BIOS,若没有外部编程器则存在变砖风险
  • 会导致报告的 GPU 时钟频率不正确(仅显示问题,未发现性能影响)

README 快速开始

CAUTION: ONLY USE THIS ON BC250s THAT HAVE BEEN VERIFIED TO HAVE ALL 8 CPU CORES FUNCTIONAL VIA ANOTHER METHOD FIRST

Credit to https://github.com/rw-r-r-0644 for creating an implementation of this unlock, which I used as a reference when making this driver

For how to use the patch to apply to the BC250_3.00_CHIPSETMENU.ROM BIOS, please see the bottom of this readme

Why a DXE Driver?

This is so it can run extremely early in the boot process and add a minimal amount of time to the boot of BC250s that are already known to have good cores. By placing this driver in the bios, it prevents drive failures, updates, or OS reinstalls from breaking the cpu core unlock.

Like the other methods of core unlock, for some reason it causes the reported GPU clocks to be wrong. I have not noticed any negative impact on GPU performance however, so it appears to just be a visual/reporting issue?

BC250-DXE-SMU-Core-Unlock

It is a standalone EDK II DXE driver for the AMD BC-250 that mirrors the SMU core-unlock sequence from rw-r-r-0664, from this repo: https://github.com/rw-r-r-0644/bc250-core-unlock

This build script generates an .ffs driver for insertion into an AMI BIOS DXE firmware volume with UEFITool.

Behavior

The driver reads the core presence mask at SMN 0x0115A870 via PCI config space on 00:00.0.

  • If the low byte is 0xFF: exit and boot normally.
  • If the low byte is 0x77: send SMU Queue 3 message 0x98, verify the mask becomes 0xFF, then issue a warm reboot.
  • If the low byte is anything else: exit and boot normally to avoid lockout on abnormal masks.

This should prohibit it from unintentionally enabling defective cores on unexpected core masks.

Files

Bc250CoreUnlockPkg/
  Bc250CoreUnlockPkg.dec
  Bc250CoreUnlockPkg.dsc
  Bc250CoreUnlockDxe/
    Bc250CoreUnlockDxe.inf
    Bc250CoreUnlockDxe.c
scripts/
  build_ffs.sh

Prerequisites for Building

Default containerized path

  • podman installed locally (or docker if you set CONTAINER_ENGINE=docker)
  • network access on first run to pull the Tianocore dev image and clone edk2

By default, the build helper uses the Tianocore Fedora 41 development container:

  • ghcr.io/tianocore/containers/fedora-41-dev:latest

It maintains a reusable edk2 checkout under:

.cache/edk2

Optional host build path

If you already have a working host-side EDK

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,660
bjan
精选
bjan GitHub avatar

claudemux

Claudemux is a lightweight, dependency-minimal message bus that lets multiple Claude Code sessions communicate in real-time over tmux, enabling one session to ask another a question and receive the answer without manual intervention.

AI 与机器学习AI 智能体
9
0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577