Files
RedBear-OS/local/scripts/test-amd-gpu.sh
T
vasilito 43fd088349 Rename rbos → redbear everywhere, add redbear-info system tool
Replace all 'rbos'/'RBOS' references with 'redbear'/'Red Bear OS'
across the build system, scripts, docs, and configs. Renamed files:
  rbos.ipxe → redbear.ipxe
  assets/rbos-icon.png → assets/redbear-icon.png
  recipes/system/rbos-info → recipes/system/redbear-info

Added redbear-info: a system tool that enumerates all Red Bear OS
custom components, checks runtime availability via scheme paths and
binary presence, and prints status/test info. Supports --verbose,
--json, and --test output modes. Zero external dependencies.
2026-04-12 19:46:54 +01:00

44 lines
994 B
Bash
Executable File

#!/usr/bin/env bash
# Test AMD GPU driver on Red Bear OS
# Run this inside Red Bear OS (or via QEMU serial console)
set -euo pipefail
echo "=== AMD GPU Driver Test ==="
echo ""
# Check if scheme:drm exists
if [ -e "/scheme/drm" ]; then
echo "✅ scheme:drm registered"
else
echo "❌ scheme:drm NOT found — redox-drm daemon not running?"
exit 1
fi
# Check card0
if [ -e "/scheme/drm/card0" ]; then
echo "✅ /scheme/drm/card0 exists"
else
echo "❌ /scheme/drm/card0 NOT found — AMD GPU not detected?"
exit 1
fi
# Try to read connector info
echo ""
echo "=== Connector Info ==="
if command -v modetest &>/dev/null; then
modetest -M amd 2>&1 | head -50
else
echo "modetest not available — reading raw scheme"
# Read from scheme directly
cat /scheme/drm/card0 2>&1 | head -20 || true
fi
echo ""
echo "=== PCI Devices (GPU) ==="
ls /scheme/pci/ 2>/dev/null | while read -r entry; do
echo " $entry"
done
echo ""
echo "=== Test Complete ==="