Skip to contentSkip to conversation

travis-ci: Add config for QEMU m68k virt machine

PATCH In review Kuan-Wei Chiu 2 participants 5 messages Dec 30, 2025 – Jan 9

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 travis-ci: Add config for QEMU m68k virt machine

Add the configuration file required to run tests for the QEMU m68k 'virt' board. This setup uses 'qemu-system-m68k' with the '-M virt' machine type and '-cpu m68040'.

---
Changes in v2:
- Rename to conf.qemu-m68k_na

 bin/travis-ci/conf.qemu-m68k_na | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 bin/travis-ci/conf.qemu-m68k_na
bin/travis-ci/conf.qemu-m68k_na new file +28 -0
new file mode 100644
index 0000000..311177e
@@ -0,0 +1,28 @@
+# Copyright (c) 2025 Kuan-Wei Chiu <[email protected]>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+console_impl=qemu
+qemu_machine="virt"
+qemu_binary="qemu-system-m68k"
+qemu_cpu="m68040"
+qemu_extra_args="-nographic"
+qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/u-boot"
+reset_impl=none
+flash_impl=none
Signature · 1 line
2.52.0.358.g0dd7633a29-goog
#1 lore raw
Quoted 4 lines · Kuan-Wei Chiu

Add the configuration file required to run tests for the QEMU m68k 'virt' board. This setup uses 'qemu-system-m68k' with the '-M virt' machine type and '-cpu m68040'.

Quoted 8 lines

---
Changes in v2:
- Rename to conf.qemu-m68k_na

 bin/travis-ci/conf.qemu-m68k_na | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 bin/travis-ci/conf.qemu-m68k_na

It would be good, but not a big deal either way, to also leverage py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py here. And I say "would be good" because really, we need because I'm not sure it will add any coverage over what we have today.

Signature · 1 line
Tom
#2 lore raw

Hi Tom,

Quoted 11 lines · Tom Rini
Quoted 9 lines · Kuan-Wei Chiu

Add the configuration file required to run tests for the QEMU m68k 'virt' board. This setup uses 'qemu-system-m68k' with the '-M virt' machine type and '-cpu m68040'.

---
Changes in v2:
- Rename to conf.qemu-m68k_na

Quoted 8 lines
Quoted 3 lines
 bin/travis-ci/conf.qemu-m68k_na | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 bin/travis-ci/conf.qemu-m68k_na

It would be good, but not a big deal either way, to also leverage py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py here. And I say "would be good" because really, we need because I'm not sure it will add any coverage over what we have today.

I checked py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py and it appears to be primarily for network-related tests. Since I haven't implemented virtIO mmio support for network access yet, I think it would be better to introduce such tests in future along with the network support?

Regards,
Kuan-Wei

#3 lore raw
Quoted 23 lines · Kuan-Wei Chiu

Hi Tom,

Quoted 11 lines · Tom Rini
Quoted 9 lines · Kuan-Wei Chiu

Add the configuration file required to run tests for the QEMU m68k 'virt' board. This setup uses 'qemu-system-m68k' with the '-M virt' machine type and '-cpu m68040'.

---
Changes in v2:
- Rename to conf.qemu-m68k_na

Quoted 8 lines
Quoted 3 lines
 bin/travis-ci/conf.qemu-m68k_na | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 bin/travis-ci/conf.qemu-m68k_na

It would be good, but not a big deal either way, to also leverage py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py here. And I say "would be good" because really, we need because I'm not sure it will add any coverage over what we have today.

Quoted 4 lines

I checked py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py and it appears to be primarily for network-related tests. Since I haven't implemented virtIO mmio support for network access yet, I think it would be better to introduce such tests in future along with the network support?

Indeed, I just assumed networking was present in your patches, so later here is correct.

Signature · 1 line
Tom
#4 lore raw
In reply to Kuan-Wei Chiu
Quoted 5 lines · Kuan-Wei Chiu

Add the configuration file required to run tests for the QEMU m68k 'virt' board. This setup uses 'qemu-system-m68k' with the '-M virt' machine type and '-cpu m68040'.

Applied to u-boot/u-boot-test-hooks.git/master, thanks!

[1/1] travis-ci: Add config for QEMU m68k virt machine

      commit: 6cc3d2d90f12610f57d974b3d3295968c907e066
Signature · 1 line
Tom