[PATCH 2/2] test: arm: describe Qemu Raspberry Pi 3b labgrid environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Raspberry Pi 3b has multiple non-secure UARTs, which can be useful
for debugging.

The existing Qemu ARM64 Virt platform can already gain multiple UARTs
via virtio, but PL011/8250 UARTs may be easier to use from secure monitors
or EFI runtime services.

The second console can be connected to with:

  microcom -t localhost:2302

But requires the Bluetooth serdev node to be removed manually for now.

All tests run successfully, but the default heartbeat throws errors,
presumably, because the VideoCore firmware used with Qemu doesn't
implement GPIO control as expected by the gpio-raspberrypi-exp driver
used for heartbeat. This doesn't bother us in CI and can be solved
later on though.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 test/arm/qemu-raspi3b@multi_v8_defconfig.yaml | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 test/arm/qemu-raspi3b@multi_v8_defconfig.yaml

diff --git a/test/arm/qemu-raspi3b@multi_v8_defconfig.yaml b/test/arm/qemu-raspi3b@multi_v8_defconfig.yaml
new file mode 100644
index 000000000000..4f591ba21596
--- /dev/null
+++ b/test/arm/qemu-raspi3b@multi_v8_defconfig.yaml
@@ -0,0 +1,20 @@
+targets:
+  main:
+    drivers:
+      QEMUDriver:
+        qemu_bin: qemu-system-aarch64
+        machine: raspi3b
+        cpu: cortex-a53
+        memory: 1G
+        kernel: barebox-raspberry-pi.img
+        extra_args: "\
+          -serial chardev:serial2 \
+          -chardev socket,id=serial2,host=localhost,port=2302,nodelay=on,server=on,wait=off"
+      BareboxDriver:
+        prompt: 'barebox@[^:]+:[^ ]+ '
+        bootstring: 'commandline:'
+      BareboxTestStrategy: {}
+images:
+  barebox-raspberry-pi.img: !template "$LG_BUILDDIR/images/barebox-raspberry-pi.img"
+imports:
+  -  ../strategy.py
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux