From 0d7897408c2c80515953607026e9e5a10b7080a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Thu, 2 Jul 2026 07:02:01 +0200 Subject: [PATCH] ci: testbed: labgrid: bump OSPv2 login_timeout for lcm_data reformat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lcm_data cleanup erases the first 0x400 blocks (the ext4 filesystem metadata) of the lcm_data partition in U-Boot, so on the next boot the block-mount layer finds a bad superblock on /lcm (mmcblk0p16, a ~3 GiB partition on OSPv2) and runs a full mke2fs before it can be mounted: e2fsck: Bad magic number in super-block while trying to open /dev/mmcblk0p16 mount: mounting /dev/mmcblk0p16 on /lcm failed: Invalid argument mke2fs 1.47.0 (5-Feb-2023) Creating filesystem with 786432 4k blocks and 196608 inodes That reformat is the whole point (it is what keeps /lcm clean between CI runs), but it adds enough boot time to push the login prompt just past the ShellDriver default login_timeout of 60s on the OSPv2 (mxl25641-hdk-6) eMMC target, which has no override, so board bringup fails with: pexpect.exceptions.TIMEOUT: Timeout of 60 seconds exceeded during waiting for login Bump the OSPv2 login_timeout to 80s, which is enough headroom to absorb the reformat on top of its usual boot while still failing bringup fast on a genuinely dead board. The Freedom (wnc-freedom) eMMC target keeps its own 120s, which reflects its longer/different boot time expectations rather than the lcm_data reformat. Fixes: 5432e4a8642c ("ci: testbed: labgrid: restore lcm_data cleanup dropped by FEAT-29 flow") Fixes: CI-2 References: PPW-718 Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/15140103104#L697 Assisted-by: claude:opus-4-8:1m-context Signed-off-by: Petr Štetiar --- .testbed/labgrid/default.yaml | 1 + .testbed/labgrid/testbed-02.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.testbed/labgrid/default.yaml b/.testbed/labgrid/default.yaml index 97c7b1c303..98d27d269e 100644 --- a/.testbed/labgrid/default.yaml +++ b/.testbed/labgrid/default.yaml @@ -156,6 +156,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) + login_timeout: 80 username: kingbanik UBootDriver: prompt: 'Lightning #' diff --git a/.testbed/labgrid/testbed-02.yaml b/.testbed/labgrid/testbed-02.yaml index d625ba0b1b..489e8e8c6e 100644 --- a/.testbed/labgrid/testbed-02.yaml +++ b/.testbed/labgrid/testbed-02.yaml @@ -190,6 +190,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) + login_timeout: 80 username: kingbanik UBootDriver: prompt: 'Lightning #'