Skip to content

Commit 9818eaf

Browse files
committed
asahi-diagnose: Add warning about unsupported firmware version
Signed-off-by: Hector Martin <[email protected]>
1 parent b3f64f1 commit 9818eaf

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

asahi-diagnose

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ logfile() {
133133

134134
environment() {
135135
echo "## Environment"
136-
set | grep -E 'MESA|XDG_SESSION_TYPE|DISPLAY|ASAHI|TERM|LANG|LOCALE|LC_' | sed 's/^/ /'
136+
set | grep -E 'MESA|AGX|ASAHI|XDG_SESSION_TYPE|DISPLAY|TERM|LANG|LOCALE|LC_' | sed 's/^/ /'
137137
echo
138138
}
139139

@@ -166,6 +166,23 @@ diagnose() {
166166
)
167167

168168
log "Saved diagnostic information to $f"
169+
170+
plat="$(cat /proc/device-tree/compatible | sed -re 's/.*apple,(t....).*/\1/g')"
171+
ver="$(tr -d '\0' </proc/device-tree/chosen/asahi,os-fw-version)"
172+
case "${plat}:${ver}" in
173+
t8103:12.3*) ;;
174+
t600[012]:12.3*) ;;
175+
t8112:12.4*) ;;
176+
*)
177+
echo
178+
echo "** WARNING! **"
179+
echo "You are using an unsupported firmware version ($ver) on this platform ($plat)."
180+
echo "This means you explicitly chose expert mode when installing Asahi Linux,"
181+
echo "and then explicitly selected a non-default unsupported version."
182+
echo "You are on your own. Please do not file bugs. We can't help you."
183+
echo "Reinstall without using expert mode if you want support."
184+
;;
185+
esac
169186
}
170187

171188
if [ -z "$1" ]; then

0 commit comments

Comments
 (0)