Refresh local build and test scripts, add DRM and Intel GPU test scripts

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-18 17:59:15 +01:00
parent b029ab628f
commit 841773c3a7
14 changed files with 572 additions and 198 deletions
+2 -40
View File
@@ -1,43 +1,5 @@
#!/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 ==="
script_dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
exec "${script_dir}/test-drm-display-runtime.sh" --vendor amd "$@"