Steam Deck

Steam Deck

Steam Deck: Recovering from a Locked Secure Boot (Lost Platform Key)
========================================
POST 1 OF 4 — intro, requirements, steps 1-3
========================================

Steam Deck: Recovering from a Locked Secure Boot (Lost Platform Key)

Status: confirmed working. Tested on a Steam Deck LCD (Jupiter), 512 GB, stuck on BIOS F7A0105 with a self-signed Platform Key whose private key was lost in 2024. After following this guide the PK was gone, Setup Mode was restored, Secure Boot was off, and an unsigned SteamOS recovery stick booted for the first time in three years.

Who this is for

You enrolled your own Secure Boot keys on a Steam Deck (usually after following a tutorial), then lost the private key for the Platform Key — most commonly because you generated it on a live USB and rebooted.

Symptoms:
  • SetupMode = 0
    ,
    SecureBoot = 1
  • efi-readvar -v PK
    shows a self-signed
    CN=Platform Key
    that isn't Valve's or Microsoft's
  • Unsigned bootloaders are rejected with "blocked by security policy"
  • The SteamOS recovery image no longer boots
  • The BIOS Security tab has no Secure Boot option — only TPM and passwords

The Steam Deck has no Secure Boot toggle in firmware. Secure Boot is active purely because a PK exists. No PK means Setup Mode, which means Secure Boot is off. And you cannot delete a PK without its private key — that is the entire point of the design.

The way out is not to delete the PK. It is to overwrite the entire flash chip, NVRAM included, with a normal BIOS update — after removing the protections that normally keep the variable region intact.

What this actually does, and what you lose

Insyde's flasher (
h2offt
, shipped by Valve inside
jupiter-hw-support
) reads a config file called
platform.ini
. By default Valve protects the variable region so that a routine BIOS update does not destroy user Secure Boot keys. Three settings turn that protection off.

With them off, the update rewrites the NV storage area as well. Insyde documents this exact outcome in its own error strings: without a working IHISI interface providing the NV storage location, the authenticated variables will be modified or cleared by the flash process. That warning is the mechanism this guide relies on.

You will lose: PK, KEK, db, dbx, boot entries, and any other UEFI variables. That is the goal.

You will not lose: anything on your SSD. The flash chip and the SSD are different hardware.

Risk

This is a full SPI flash rewrite. A power loss during the firmware-side write can brick the device, and there is no built-in recovery (Crisis Mode does not work on the Deck — see Post 3). Keep the charger plugged in.

A CH341A programmer with a 3.3 V adapter and a SOIC8 clip is worth owning as insurance, but it was not needed in the confirmed run. If you buy one, get the 3.3 V version — standard CH341A boards put 5 V on the data bus and kill chips.

Requirements
  • Steam Deck LCD (Jupiter). OLED users: same method, different firmware file — see Post 4.
  • A second Linux install on the Deck's internal SSD (Ubuntu or similar), able to boot. You need working GRUB to launch a SteamOS kernel manually.
  • A SteamOS recovery USB stick, already written. Its
    var
    partition is used as writable scratch space.
  • The charger.
  • Roughly an hour.

If you cannot boot anything at all on the device, this guide will not help you and you need a hardware programmer.




Step 1 — Get Valve's BIOS package

On your working Linux install:

wget https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/jupiter-hw-support-20240209.1-2-any.pkg.tar.zst tar --use-compress-program=unzstd -xf jupiter-hw-support-20240209.1-2-any.pkg.tar.zst

This gives you a local
usr/
tree containing:

usr/share/jupiter_bios_updater/h2offt the Insyde flasher usr/share/jupiter_bios_updater/platform.ini the config file that matters usr/share/jupiter_bios_updater/msg_eng.ini error strings (worth reading) usr/share/jupiter_bios/F7A0121_sign.fd LCD firmware, 17,778,888 bytes usr/bin/jupiter-biosupdate Valve's wrapper script

Read the wrapper. It tells you exactly how Valve invokes the flasher:

cat usr/bin/jupiter-biosupdate | grep -A3 'cmd=('

cmd=("$BIOS_FLASHER" "$biosfile" -all -AC $desiredargs)

That is the real command line.
-all
is what selects the full-chip Secure Flash path. Most people trying this have been guessing at flags; there is no need to guess.

Step 2 — Prepare a working copy on the USB stick

The SteamOS root filesystem is read-only btrfs, so the flasher needs to live somewhere writable. The recovery stick's
var
partition works.

Plug the stick in, find its partitions with
lsblk -f
, and mount the one labelled var (ext4, the fourth partition):

sudo mkdir -p /mnt/stick sudo mount /dev/sda4 /mnt/stick # adjust device name sudo mkdir -p /mnt/stick/flash sudo cp -r ~/usr/share/jupiter_bios_updater/* /mnt/stick/flash/ sudo cp ~/usr/share/jupiter_bios/F7A0121_sign.fd /mnt/stick/flash/

Verify:

ls -la /mnt/stick/flash/ md5sum /mnt/stick/flash/F7A0121_sign.fd

You should see
h2offt
,
platform.ini
,
msg_eng.ini
and the 17,778,888-byte firmware file.

Step 3 — Edit platform.ini (this is the whole trick)

Three values. Everything else stays as it is.

Find them first — line numbers vary between package versions:

cd /mnt/stick/flash/ grep -n "^Variable=" platform.ini grep -n -A2 "\[SkipSecureBootProtectNV\]" platform.ini grep -n -A2 "\[EngineeringErrorDisable\]" platform.ini

In the 20240209.1 package these are lines 13, 421 and 1120:

sudo cp platform.ini platform.ini.orig sudo sed -i '13s/^Variable=0/Variable=1/' platform.ini sudo sed -i '421s/^Enable=0/Enable=1/' platform.ini sudo sed -i '1120s/^SkipSecureBootProtectionCheck=0/SkipSecureBootProtectionCheck=1/' platform.ini sync

What the three changes mean:
  • [ForceFlash] → Variable: 0 to 1 — flash the variable region even though the BIOS reports it as protected
  • [SkipSecureBootProtectNV] → Enable: 0 to 1 — do not protect NV storage just because Secure Boot is on (same as the
    -ssb
    flag)
  • [EngineeringErrorDisable] → SkipSecureBootProtectionCheck: 0 to 1 — do not abort when the IHISI interface can't supply an NV storage location

Two values should already be correct — check, don't assume:

[ForceFlash] ALL=1 [SecurityFlashFactoryUpdate] UpdateNvStorage=1

Confirm you changed exactly three lines:

diff platform.ini.orig platform.ini

Careful:
Enable=0
appears in several sections of this file. Only change the one directly under
[SkipSecureBootProtectNV]
. That is why you look up line numbers first.

Continued in Post 2.
< >
Showing 1-3 of 3 comments
========================================
POST 2 OF 4 — steps 4-10
========================================

Step 4 — Add a GRUB entry that boots the SteamOS kernel into a shell

h2offt
needs
/dev/phy_alloc
, which is created by a driver built into Valve's neptune kernel. Your Ubuntu kernel does not have it, and the driver sources are not included in the package, so it cannot be built. Running the flasher under Ubuntu will always fail with exit code 167.

So boot Valve's kernel directly. Add to
/etc/grub.d/40_custom
:
menuentry "SteamOS Shell" { insmod part_gpt insmod btrfs set root=(hd0,gpt5) linux /boot/vmlinuz-linux-neptune-616 root=UUID=<your-rootfs-uuid> rw console=tty1 amd_iommu=off loglevel=7 nomodeset init=/bin/bash initrd /boot/amd-ucode.img /boot/initramfs-linux-neptune-616.img }

Replace
(hd0,gpt5)
and the UUID with your SteamOS btrfs rootfs partition (
lsblk -f
shows it). The kernel version suffix may differ — check what is in
/boot
on that partition.

sudo chmod +x /etc/grub.d/40_custom sudo update-grub

Unmount everything on the stick, but leave it plugged in:

sudo umount /mnt/stick sudo umount /run/media/$USER/* 2>/dev/null sync sudo reboot

Pick SteamOS Shell in GRUB.

Step 5 — Build the environment

You land in the initramfs emergency shell, prompt
[rootfs ~]#
, BusyBox. Messages about plymouth hooks, a missing EFI partition and "can't access tty" are normal.

The keyboard is US layout here. On a German keyboard:
/
is right of the period,
-
is on the ß key,
_
is Shift+ß, Y and Z are swapped. Use tab completion.

Check what the stick is called — it may differ from what Ubuntu showed:

ls /dev/sd*

Then mount and enter:

mount /dev/nvme0n1p5 /new_root mount /dev/sda4 /new_root/var mount -o bind /dev /new_root/dev mount -t sysfs sys /new_root/sys chroot /new_root /bin/bash mount -t proc proc /proc cd /var/flash/

Sanity check — this also proves the flasher is reading your platform.ini and not another copy:

./h2offt -SC

Expected:
CHACHANI-VANGOGH
and your current BIOS version, preceded by
Read file successfully. (path="platform.ini")
. Warnings about upowerd and AC-plug info are harmless.

Step 6 — Mount the EFI System Partition (the step everyone misses)

This is the one that costs people days.

With
-all
, h2offt does not write the chip directly. It performs a Secure Flash via the ESP: it drops a staging file at
/boot/efi/EFI/Insyde/isflash.bin
, sets a boot variable, and the firmware itself does the actual write on the next boot.

If
/boot/efi
is not mounted, or the Insyde directory does not exist, you get:

Error: Open file failed. (path="/boot/efi/EFI/Insyde/isflash.bin") Error: Write Buffer to ESP failed. (40h) Error: Failed to run "Secure Flash". exit=3

Nothing is written. The device is untouched. Fix it:

mkdir -p /boot/efi mount /dev/nvme0n1p4 /boot/efi mkdir -p /boot/efi/EFI/Insyde ls -la /boot/efi/EFI/ df -h /boot/efi

Use the partition labelled efi (vfat, 128 MiB on a standard SteamOS layout). The flasher does not create the Insyde directory itself. You need ~18 MB free.

A FAT warning about the volume not being properly unmounted is harmless here.

Step 7 — Back up the current firmware

Free, fast, and the only thing standing between you and a paperweight if something goes wrong later:

./h2offt /var/flash/backup-before-flash.bin -O ls -la /var/flash/backup-before-flash.bin md5sum /var/flash/backup-before-flash.bin

Expect exactly 16,777,216 bytes (16 MiB).

Note what this backup is and is not. It contains your current NVRAM, including the PK you are trying to get rid of. Restoring it puts you back in the locked state. It is anti-brick insurance, not a solution.

Step 8 — Flash

Charger plugged in. Then:

./h2offt F7A0121_sign.fd -all -AC ; echo exit=$?

  • -all
    — full flash including protected areas, per [ForceFlash]
  • -AC
    — skip the AC-plug check (the chroot can't reach upowerd)
  • no -N — Valve uses
    -N
    to mean do not reboot, because Steam handles the restart. You do not want that.
  • no
    -SSB
    or
    -skipsbp
    — both are already set through platform.ini, and
    -skipsbp
    isn't accepted by every build

Expected output ends with:

Current BIOS version: F7A0105 New BIOS version: F7A0121 Running in chroot, ignoring request. exit=0

exit=0 is success. Other acceptable codes: 194 ("will apply after reboot"). 167 means the environment is wrong. 3 means the ESP problem from Step 6.

"Running in chroot, ignoring request" is not an error from the flasher. It is systemd refusing to execute a reboot inside a chroot. The staging file has already been written. See Post 3 — this message sent me down a two-day dead end.

Verify the staging file exists:

ls -la /boot/efi/EFI/Insyde/

It should be the same size as your firmware file (17,778,888 bytes for F7A0121). If it isn't there, do not reboot — something went wrong.

Step 9 — Reboot and let the firmware work

sync umount /boot/efi exit sync umount /new_root/var /new_root/dev /new_root/sys umount /new_root sync reboot -f

If
umount /new_root
reports "target is busy", ignore it. What matters is that
/boot/efi
unmounted cleanly and you ran
sync
.
On the next boot the firmware flashes itself. You will see a progress bar — blue on the LCD model — and the screen may go black in between. This took about five minutes in the confirmed run, followed by automatic restarts.

Do not touch anything. Do not unplug. Do not power off. This is the only genuinely dangerous moment in the whole process.

Afterwards the device may sit at the Steam logo. That is just a failed SteamOS boot, unrelated to the flash — hold power for ten seconds and move on.

Step 10 — Verify

Fastest test, and the most convincing: boot the unsigned SteamOS recovery stick. If it was rejected before with "blocked by security policy" and now boots into the installer, Secure Boot is off. No further proof needed.

For the formal check, from any Linux on the device:

cat /sys/devices/virtual/dmi/id/bios_version mokutil --sb-state sudo efi-readvar -v PK

Wanted:

F7A0121 SecureBoot disabled Variable PK has no entries

efi-readvar
needs efitools, which lives in universe on Ubuntu:

sudo add-apt-repository universe && sudo apt update && sudo apt install efitools

Also worth checking: BIOS setup → Security tab. It will still show only TPM and passwords. That is correct — with no PK there is nothing for it to show.

Then install SteamOS with "Wipe device and install SteamOS" and you are back to stock.

Continued in Post 3.
========================================
POST 3 OF 4 — what doesn't work
========================================

What does not work — don't waste your time

Every one of these was tried and failed on the confirmed run.

  • Crisis Mode (Vol− + "…" + Power, F7ARecovery.fd on FAT32) — never triggers on the Deck
  • Running h2offt under Ubuntu — exit 167.
    /dev/phy_alloc
    is missing; the driver is built into Valve's neptune kernel
  • The -DR flag ("Enable driver in Linux") — listed in
    -Z
    help but rejected by this build.
    H2OFFTx64.sh
    expects a
    driver/
    directory to compile
    phy_alloc.ko
    — Valve removed it from the package
  • Boot menu → "Boot From File" — "blocked by security policy". Firmware checks against db
  • Smokeless_UMAF via SREP — loads, prints its banner, hangs
  • UMAF UiApp.efi — runs, but both Device Managers show only AMD PBS, AMD CBS and Driver Health Manager. No Secure Boot form on this device. Dead end regardless of BIOS version
  • Chainloading SteamOS via shim — shim loads fine (it's Microsoft-signed and in db), Valve's GRUB starts, kernel loads, then hangs at Plymouth. The shim was never the obstacle
  • MOK signing — would work in principle but breaks on the first SteamOS update. Pointless if you're selling the device
  • switch_root instead of chroot — solves a problem that doesn't exist, see below
  • systemd.unit=rescue.target — same
  • Making the btrfs root writable —
    mount -o remount,rw /
    succeeds silently and stays read-only
  • tmpfs / ramfs in the initramfs — not compiled in
  • CH341A hardware programmer — never needed. Reasonable as insurance, but the software path works

The myth that cost two days

Running in chroot, ignoring request.

This string does not exist in the h2offt binary. Check with
strings h2offt | grep -i chroot
and you get nothing. It comes from systemd, which refuses to execute reboot inside a chroot.

h2offt has no chroot detection. It ran to completion, asked for a restart, and systemd declined. Every hour spent on switch_root, rescue.target and "escaping the chroot" was spent on a problem that was never there.

The real blockers were, in order:
Variable=0
in platform.ini, and an unmounted ESP.

Flag confusion worth avoiding

  • -N
    — do not reboot after flash. Not "NVRAM"
  • -NV
    — flash NV Storage. A different flag entirely
  • -RVA
    — preserve the variable region. The opposite of what you want
  • -SSB
    — skip Secure Boot NV protection (equivalent to the platform.ini setting)

Also:
strings h2offt
lists options from every Insyde build, not just yours. Check against
./h2offt -Z
before relying on any flag.

Continued in Post 4.
========================================
POST 4 OF 4 — other models, why it works
========================================

Notes for other models and situations

Steam Deck OLED (Galileo): same method. Use
F7G0109_sign.fd
, or whatever the version map in jupiter-biosupdate points to for your current version. Never flash an LCD file to an OLED or vice versa.

Already on the newest BIOS: the flasher may refuse to install the same version.
-DC
disables the comparison check. Reflashing the same version still rewrites NVRAM, so this method still applies.

Check the version map first to see what your BIOS is supposed to upgrade to:

grep '"F7A0105"' usr/bin/jupiter-biosupdate

Keep your backups. The .bin files on the USB stick cost nothing to keep and are the only thing that makes a hardware programmer useful later.

Why this works, briefly

Insyde's flasher normally honours the firmware's declared protected regions. Valve keeps the variable region protected so an ordinary BIOS update doesn't destroy a user's Secure Boot configuration — sensible, and exactly what stands in your way.

Two things combine here. The variable region is not reported in the ROM protection map —
./h2offt -PQ
lists only EC, DXE, FTW State, FTW Backup and PEI. And the BIOS does not answer the IHISI query that would tell the flasher where NV storage lives —
./h2offt -IV
returns a tool version but no BIOS version.

Insyde's own error text describes what happens in exactly that case: without that interface, the authenticated variables get modified or cleared by the flash. The vendor treats this as a hazard to warn about. For anyone locked out of their own hardware, it is the way back in.




Verified on: Steam Deck LCD, 512 GB, BIOS F7A0105 → F7A0121, September 2026. Corrections and confirmations from other models welcome.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Sep 22 @ 1:23pm
Posts: 3