Commit 92ef6a9572 for qemu.org

commit 92ef6a9572220bde7a7ce6e22cc13508a4183ea9
Author: Daniel P. Berrangé <berrange@redhat.com>
Date:   Tue Dec 1 12:01:42 2026 +0000

    tests/functional: update to newer sunxi kernels again

    The recent update to 6.6.44 kernels did not survive long, before
    armbian purged that version from their download site.

    Update to the newer 6.18.65 version that is the newest version
    published which has 'linux-image-current' kernels for sunxi.

    The newer kernels do not detect a gmac device, possibly due to
    the driver being disabled.

    Reviewed-by: Thomas Huth <thuth@redhat.com>
    Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
    Tested-by: Alex Bennée <alex.bennee@linaro.org>
    Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

diff --git a/tests/functional/arm/test_bpim2u.py b/tests/functional/arm/test_bpim2u.py
index e6fd80ae9d..69cb3e6f31 100755
--- a/tests/functional/arm/test_bpim2u.py
+++ b/tests/functional/arm/test_bpim2u.py
@@ -10,14 +10,16 @@
 from qemu_test import skipBigDataTest
 from qemu_test.utils import image_pow2ceil_expand

+from unittest import skip
+

 class BananaPiMachine(LinuxKernelTest):

     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
-         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
-         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
-        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
+        ('https://apt.armbian.com/pool/main/l/linux-6.18.65/'
+         'linux-image-current-sunxi_26.11.4_armhf__6.18.65-'
+         'S4700-D7c7d-P2865-C70ca-H4b9e-HKff8b-V014b-Bdf9b-CVEfee3-R448a.deb'),
+        '2884801a24fa8da60b8ee07ec7650c1cc73571a4013c0bf4a986c136bd077715')

     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -38,8 +40,8 @@ class BananaPiMachine(LinuxKernelTest):
     def test_arm_bpim2u(self):
         self.set_machine('bpim2u')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)

@@ -57,8 +59,8 @@ def test_arm_bpim2u(self):
     def test_arm_bpim2u_initrd(self):
         self.set_machine('bpim2u')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -84,14 +86,15 @@ def test_arm_bpim2u_initrd(self):
         # Wait for VM to shut down gracefully
         self.vm.wait()

+    @skip("latest armbian sunxi kernels appear to be missing gmac driver")
     def test_arm_bpim2u_gmac(self):
         self.set_machine('bpim2u')
         self.require_netdev('user')

         deb_path = self.ASSET_DEB.fetch()
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         rootfs_path = self.uncompress(self.ASSET_ROOTFS)
@@ -118,7 +121,8 @@ def test_arm_bpim2u_gmac(self):
         exec_command_and_wait_for_pattern(self, 'cat /proc/partitions',
                                                 'mmcblk')
         exec_command_and_wait_for_pattern(self, 'ifconfig eth0 up',
-                                                 'eth0: Link is Up')
+                                                 'eth0: Link is Up',
+                                                 'No such device')
         exec_command_and_wait_for_pattern(self, 'udhcpc eth0',
             'udhcpc: lease of 10.0.2.15 obtained')
         exec_command_and_wait_for_pattern(self, 'ping -c 3 10.0.2.2',
diff --git a/tests/functional/arm/test_cubieboard.py b/tests/functional/arm/test_cubieboard.py
index eeafc26f90..83c654ad95 100755
--- a/tests/functional/arm/test_cubieboard.py
+++ b/tests/functional/arm/test_cubieboard.py
@@ -13,10 +13,10 @@
 class CubieboardMachine(LinuxKernelTest):

     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
-         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
-         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
-        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
+        ('https://apt.armbian.com/pool/main/l/linux-6.18.65/'
+         'linux-image-current-sunxi_26.11.4_armhf__6.18.65-'
+         'S4700-D7c7d-P2865-C70ca-H4b9e-HKff8b-V014b-Bdf9b-CVEfee3-R448a.deb'),
+        '2884801a24fa8da60b8ee07ec7650c1cc73571a4013c0bf4a986c136bd077715')

     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -38,8 +38,8 @@ class CubieboardMachine(LinuxKernelTest):
     def test_arm_cubieboard_initrd(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/' +
                     'sun4i-a10-cubieboard.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -69,8 +69,8 @@ def test_arm_cubieboard_initrd(self):
     def test_arm_cubieboard_sata(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/' +
                     'sun4i-a10-cubieboard.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)

diff --git a/tests/functional/arm/test_orangepi.py b/tests/functional/arm/test_orangepi.py
index c9cfdbd67a..2c690a9dcf 100755
--- a/tests/functional/arm/test_orangepi.py
+++ b/tests/functional/arm/test_orangepi.py
@@ -16,10 +16,10 @@
 class OrangePiMachine(LinuxKernelTest):

     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
-         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
-         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
-        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
+        ('https://apt.armbian.com/pool/main/l/linux-6.18.65/'
+         'linux-image-current-sunxi_26.11.4_armhf__6.18.65-'
+         'S4700-D7c7d-P2865-C70ca-H4b9e-HKff8b-V014b-Bdf9b-CVEfee3-R448a.deb'),
+        '2884801a24fa8da60b8ee07ec7650c1cc73571a4013c0bf4a986c136bd077715')

     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -50,8 +50,8 @@ class OrangePiMachine(LinuxKernelTest):
     def test_arm_orangepi(self):
         self.set_machine('orangepi-pc')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)

@@ -69,8 +69,8 @@ def test_arm_orangepi(self):
     def test_arm_orangepi_initrd(self):
         self.set_machine('orangepi-pc')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -100,8 +100,8 @@ def test_arm_orangepi_sd(self):
         self.set_machine('orangepi-pc')
         self.require_netdev('user')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.18.65-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.18.65-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         rootfs_path = self.uncompress(self.ASSET_ROOTFS)
diff --git a/tests/functional/arm/test_replay.py b/tests/functional/arm/test_replay.py
index ee61f47593..b8015e2ee5 100755
--- a/tests/functional/arm/test_replay.py
+++ b/tests/functional/arm/test_replay.py
@@ -24,10 +24,10 @@ def test_virt(self):
         self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=1)

     ASSET_CUBIE_KERNEL = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
-         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
-         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
-        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
+        ('https://apt.armbian.com/pool/main/l/linux-6.18.65/'
+         'linux-image-current-sunxi_26.11.4_armhf__6.18.65-'
+         'S4700-D7c7d-P2865-C70ca-H4b9e-HKff8b-V014b-Bdf9b-CVEfee3-R448a.deb'),
+        '2884801a24fa8da60b8ee07ec7650c1cc73571a4013c0bf4a986c136bd077715')

     ASSET_CUBIE_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,9 +37,9 @@ def test_virt(self):
     def test_cubieboard(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='boot/vmlinuz-6.6.44-current-sunxi')
+            member='boot/vmlinuz-6.18.65-current-sunxi')
         dtb_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='usr/lib/linux-image-6.6.44-current-sunxi/sun4i-a10-cubieboard.dtb')
+            member='usr/lib/linux-image-6.18.65-current-sunxi/sun4i-a10-cubieboard.dtb')
         initrd_path = self.uncompress(self.ASSET_CUBIE_INITRD)

         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +