Skip to content

Commit

Permalink
Merge pull request #229 from Jovian-Experiments/galileo-bios
Browse files Browse the repository at this point in the history
steamdeck-bios-fwupd: Complete Galileo support
  • Loading branch information
K900 authored Nov 26, 2023
2 parents f27ec73 + 447741e commit 1be16b9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
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

0 comments on commit 1be16b9

Please sign in to comment.