ci: testbed: labgrid: bump OSPv2 login_timeout for lcm_data reformat

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: 5432e4a864 ("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 <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2026-07-02 07:02:01 +02:00
parent 5432e4a864
commit 0d7897408c
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
2 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,7 @@ targets:
console_ready: Please press Enter to activate this console. console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ ' prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash) login_prompt: built-in shell (ash)
login_timeout: 80
username: kingbanik username: kingbanik
UBootDriver: UBootDriver:
prompt: 'Lightning #' prompt: 'Lightning #'

View File

@ -190,6 +190,7 @@ targets:
console_ready: Please press Enter to activate this console. console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ ' prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash) login_prompt: built-in shell (ash)
login_timeout: 80
username: kingbanik username: kingbanik
UBootDriver: UBootDriver:
prompt: 'Lightning #' prompt: 'Lightning #'