Skip to content

BC-250 BIOS Reader

BC-250 BIOS Reader shows the BIOS settings of the AMD BC-250 on Bazzite. The layout is like the BIOS setup screen, hidden menus included. The app only reads. Nothing on the board or in the BIOS changes.

It also tells a stock BIOS from a modded one and says what gave it away.

Using it

The window opens on This board. It shows the setup screens of the board's BIOS release and the values Linux can read.

  • Tabs: The tabs are Main, Advanced, Security, Boot and Save & Exit. After them come the pages other BIOS modules add, such as AMD CBS, network and recovery. Left and Right switch tabs.
  • Items: Up and Down select an item. Enter opens a submenu. Esc goes back. The right side shows the item's help, its value and default, and its options. It also shows where the BIOS stores it, for example AmdSetup + 0x25F (4 bytes).
  • Lines without a name: The BIOS names some lines only while it runs, such as a boot device in Boot Override. Such a line has no name in the file. A link shows the name of the menu it opens. The app leaves out any other line without a name. A blank spacer stays blank, as on the BIOS's own screen. The BIOS's own text between the settings wraps to the list's width.
  • Show hidden items (or H): Also lists what the BIOS does not show, in gray italics. The extra Not linked tab opens the menus that no menu links to. Each hidden item gives its reason, one of these:
    • hidden always
    • hidden by the value of another setting
    • a menu no link leads to
  • The status next to the title says Stock BIOS or Modded BIOS. Hover over it to see why.
  • Read BIOS chip…: Reads the flash chip and opens the dump. See below.
  • Open dump…: Opens a BIOS image made earlier. This board goes back to the running board.

What this board shows without a dump

Linux can read only the UEFI variables the BIOS leaves visible after boot. On the BC-250 that is AmdSetup, the AMD CBS settings, so those show their real values. The BIOS hides the main Setup variable after boot. It holds the Main, Advanced, Chipset and Boot options. Those options show [?], and their help shows the default. A dump of the flash chip has both.

The setup screens themselves come from a table built into the app, one per known BIOS release (P5.00). For another release, read the chip. The app then reads the screens from the dump.

Where the settings come from

The BC-250 runs an AMI Aptio BIOS. It keeps its settings as UEFI variables in the NVRAM part of the BIOS flash chip.

Variable What it holds Readable from Linux
AmdSetup the AMD CBS options (CPU, memory, GPU) yes, /sys/firmware/efi/efivars, no root needed
Setup the main Aptio options (Advanced, Chipset, Boot) only in a flash dump, the BIOS hides it after boot
StdDefaults the default values only in a flash dump
AMITSESetup settings of the setup screen itself only in a flash dump

A variable is just bytes. The BIOS image holds the names, allowed values and menus of the options as forms (HII/IFR). These forms map each byte in Setup or AmdSetup to an option such as "UMA Frame Buffer Size". They also hold the conditions under which the setup screen hides an option or a menu. That is how the app knows what the BIOS hides.

Reading the BIOS flash chip (optional)

You decide whether to make a full dump of the flash chip. The app works without one. Reading is safe, because flashrom only reads with -r. The app never runs it otherwise. Never run flashrom with -w or -E yourself.

The BC-250's BIOS sits on a Winbond W25Q128.V (16 MiB, SPI) behind the AMD FCH.

Getting flashrom

Homebrew's flashrom lacks the internal programmer, so it cannot read the board's own chip. Fedora's package can. Unpack it into a folder of your own instead of layering it onto Bazzite:

mkdir -p ~/flashrom && cd ~/flashrom
dnf download flashrom.x86_64 libjaylink.x86_64
rpm -K ./*.rpm                      # signatures must be OK
for p in ./*.rpm; do rpm2cpio "$p" | cpio -idm; done

The app finds flashrom in ~/flashrom and on the PATH.

From the app

Read BIOS chip… asks first. Then it runs flashrom twice through a password prompt and compares the two reads. The dump goes to ~/.local/share/bc250-bios-reader/dumps/ and opens right away. Removing the app keeps the dumps. --purge removes them.

By hand

Probe first. This only detects the chipset and the chip:

sudo env LD_LIBRARY_PATH="$HOME/flashrom/usr/lib64" ~/flashrom/usr/bin/flashrom -p internal

Look for Found Winbond flash chip "W25Q128.V" (16384 kB, SPI). Then read the chip, twice:

sudo env LD_LIBRARY_PATH="$HOME/flashrom/usr/lib64" ~/flashrom/usr/bin/flashrom -p internal -c "W25Q128.V" -r bios.bin
sudo env LD_LIBRARY_PATH="$HOME/flashrom/usr/lib64" ~/flashrom/usr/bin/flashrom -p internal -c "W25Q128.V" -r bios2.bin
sha256sum bios.bin bios2.bin        # both must match

Two identical dumps mean the read is stable. Each ends with Reading flash... done. Open bios.bin with Open dump….

What flashrom prints on the BC-250, and why it does no harm:

  • No DMI table found and the laptop warning: flashrom cannot tell what kind of machine this is and turns off some buses to be careful. The warning is about an embedded controller (EC), and the BC-250 has none. flashrom still finds the SPI bus it needs. You don't need a laptop= override.
  • Enabling flash write... OK: flashrom prepares the chipset as it always does. It writes nothing without -w.
  • /dev/mem mmap failed lines: These show only in a probe without -c. flashrom tries chip types larger than 16 MiB at addresses that are not flash on this board. The kernel refuses them. Naming the chip with -c skips them.

A dump is your board's own firmware, with its settings. Keep it to yourself.

Unpacking a dump

The app unpacks a dump itself. You can also look inside one by hand. A dump is a 16 MiB image, and about 80 % of it is empty (0xFF). UEFITool opens it. Its command-line tool UEFIExtract unpacks it:

uefiextract bios.bin report     # bios.bin.report.txt: a list of everything in the image
uefiextract bios.bin all        # bios.bin.dump/: every volume, file and section as a folder

What is inside:

  • The NVRAM store (the first volume): Every UEFI variable, Setup, AmdSetup, StdDefaults and AMITSESetup among them. A variable saved more than once is a chain of entries, and the last one is current.
  • The firmware volumes: The BIOS code. The main volume is LZMA-compressed, so its text is not readable in the raw dump.
  • The setup modules in the firmware volumes hold the forms (IFR) and their strings. The strings are the option names in en-US. On the BC-250 these are Setup (the main menus) and CbsSetupDxe (AMD CBS), plus small ones for the network card, HTTP boot, NVMe, the Super I/O and recovery. IFRExtractor-RS turns them into readable text.
  • The SMBIOS data: The BIOS vendor, version and release date (American Megatrends Inc., P5.00, 05/03/2022).

Stock or modded

  • With a dump (certain): The app compares the setup screens in the dump with those of the stock release of the same version, byte for byte. A modded BIOS changes them to show hidden menus. The status then lists the changed screens. It also lists the menus that stock hides and this BIOS shows.
  • Without a dump (a strong hint): The app looks at the version string and at the size of the AmdSetup variable. A modded BIOS often names itself in the version string. The size changes when the AMD CBS screens change. Many modded BIOSes keep the stock version string, so only a dump proves a BIOS is stock.

Install

Install it from the BC250 Bazzite Suite portal, or from a clone or release folder, as your own user:

./install.sh                         # app menu entry and Desktop icon
./install.sh --no-desktop-shortcut   # app menu entry only
./install.sh --uninstall             # remove the app; keeps its settings and BIOS dumps
./install.sh --uninstall --purge     # also remove its settings and BIOS dumps

bc250-bios-reader --dump FILE opens a dump from the terminal. bc250-bios-reader --build-table DUMP makes the built-in table of a stock release from a dump of it.

License

GPL-3.0-or-later. See LICENSE.