Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steamdeck-bios-fwupd: Complete Galileo support #229

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkgs/jupiter-hw-support/SteamDeckBIOS.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
<component type="firmware">
<id>unofficial.valve.steamdeck.@[email protected]</id>
<name>Steam Deck (@model@)</name>
<requires>
<id compare="ge" version="1.0.1">org.freedesktop.fwupd</id>
<hardware>@hwid@</hardware>
</requires>
<provides>
<firmware type="flashed">@guid@</firmware>
<firmware type="flashed">@uefi_guid@</firmware>
</provides>
<custom>
<value key="LVFS::UpdateProtocol">org.uefi.capsule</value>
Expand Down
25 changes: 18 additions & 7 deletions pkgs/jupiter-hw-support/bios-fwupd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Board prefixes to build the output for.
, boards ? [
"F7A" # Jupiter
#"F7G" # Galileo
"F7G" # Galileo
]

# Directory containing the BIOS files.
Expand Down Expand Up @@ -56,15 +56,25 @@ in runCommand "steamdeck-bios-fwupd-${version}" {

>&2 echo ":: Detected numeric BIOS version $versionNumber"

uefi_guid=bbb1cf06-f7b9-4466-adcc-6b8815bd99e6

# Run `fwupdtool hwids`
# Manufacturer + Family + ProductName
case "$board" in
F7A)
guid=bbb1cf06-f7b9-4466-adcc-6b8815bd99e6
# Manufacturer: Valve
# Family: Aerith
# ProductName: Jupiter
hwid=c92f10e2-b04e-59fd-9a1c-e9f354fe80d0
model="LCD [Jupiter]"
;;
#F7G)
# guid=00000000-0000-0000-0000-000000000000
# model="OLED [Galileo]"
# ;;
F7G)
# Manufacturer: Valve
# Family: Sephiroth
# ProductName: Galileo
hwid=642e9dd3-94fe-5b66-a403-5e765427de87
model="OLED [Galileo]"
;;
*)
>&2 echo ":: No GUID for board '$board'"
exit 1
Expand All @@ -73,7 +83,8 @@ in runCommand "steamdeck-bios-fwupd-${version}" {

export model
export board
export guid
export hwid
export uefi_guid
export filename=$(basename "$biosFile")
export sha1=$(sha1sum "$biosFile" | awk '{ print $1 }')
export sha256=$(sha1sum "$biosFile" | awk '{ print $1 }')
Expand Down
Loading