Testing and workflow
Host and board scripts in tools/ automate firmware deployment, kernel
installation, serial GRUB selection, safe register inspection and dEQP-VK
regression runs.
Scripts in tools/
Script |
Runs on |
Purpose |
|---|---|---|
|
Host |
Build |
|
Host |
Build and install the kernel, modules, DTB and initramfs, append the
|
|
Host |
Reboot over SSH, select a GRUB menu index over the serial console with
inter-key delays, and wait for |
|
Board |
|
|
Board |
Like |
|
Board |
Sample selected registers through |
|
Board |
Black-box register survey: dump non-zero values (E007) or probe writable-bit masks with restore and deny list (E008) |
|
Board |
Run |
|
Board |
Run |
|
Board |
Install |
|
Board |
Stability loop: |
|
Host |
Parse render register dumps from firmware debug trace |
|
Host |
Build helpers (Build and toolchain) |
SSH note: if the board alternates between different OS images (for example,
mainline on SD card and vendor kernel on eMMC) with different SSH host keys,
pass a dedicated known_hosts file via KH=<known_hosts>
(-o UserKnownHostsFile=$KH). tools/deploy.sh reads KH from the
environment.
Booting the img-gpu GRUB entry
Select the 0-based GRUB menu index of the img-gpu entry over the board’s
serial console:
python3 tools/boot-entry.py <serial-device> <grub-index> <user>@<board-ip> \
-o UserKnownHostsFile=$KH
Typical edit → deploy → test cycle
make -C src
KH=<known_hosts> tools/deploy.sh fw
scp tools/*.sh tools/*.py <user>@<board-ip>:/tmp/
ssh <user>@<board-ip> 'sudo modprobe -r powervr; bash /tmp/gpu-test.sh'
ssh <user>@<board-ip> 'bash /tmp/deqp.sh "dEQP-VK.compute.pipeline.basic.empty_shader" 60'
Expected kernel log on a healthy load:
powervr cac00000.gpu: [drm] FW version v1.0 (build 1 OS)
[drm] Initialized powervr 1.0.0 for cac00000.gpu on minor 0