Skip to content

Commit

Permalink
discover mpfs flash device rather than hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jan 25, 2024
1 parent 8ce45bf commit d1d038f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,17 @@ jobs:
# Wait a bit for the USB to connect then flash
sleep 10
dd if=build-mpfs64/buildroot.build/images/sdcard.img of=/dev/sda bs=4M oflag=direct
FOUND_DEVICE=""
for d in /dev/sd? ; do
if [[ ! -z $(udevadm info --query=all -n "$d" | grep -i polarfire) ]]; then
FOUND_DEVICE="yes"
dd if=build-mpfs64/buildroot.build/images/sdcard.img of="$d" bs=4M oflag=direct
break
fi
done
$POWER_OFF_CMD
[[ ! -z "$FOUND_DEVICE" ]]
- name: Test Keystone system
env:
Expand Down

0 comments on commit d1d038f

Please sign in to comment.