prplos/.testbed/labgrid/default.yaml
Petr Štetiar 0d7897408c
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>
2026-07-02 07:30:07 +02:00

183 lines
5.9 KiB
YAML

targets:
nokia-valyrian-initramfs:
resources:
RawSerialPort:
port: "/dev/nokia-valyrian"
ModbusTCPCoil:
host: quido.testbed-01.vpn.true.cz
coil: 3
managed_coils: 8
exclusive_coil_mode: True
write_multiple_coils: True
drivers:
ModbusCoilDriver: {}
DigitalOutputPowerDriver: {}
SerialDriver:
txdelay: 0.01
ShellDriver:
console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash)
await_login_timeout: 15
username: kingbanik
UBootDriver:
prompt: 'AN7581> '
interrupt: '0'
init_commands:
- setenv ipaddr 192.168.1.1
- setenv serverip 192.168.1.2
- tftpboot 0x91800000 prplos-airoha-an7581-nokia_valyrian-initramfs-kernel.bin
boot_command: bootm
UBootStrategy: {}
# needs patched u-boot for emmc r/w https://lists.denx.de/pipermail/u-boot/2021-February/441964.html
turris-omnia-emmc:
resources:
RawSerialPort:
port: "/dev/turris-omnia"
ModbusTCPCoil:
host: quido.testbed-01.vpn.true.cz
coil: 0
managed_coils: 8
exclusive_coil_mode: True
write_multiple_coils: True
drivers:
ModbusCoilDriver: {}
DigitalOutputPowerDriver: {}
SerialDriver:
txdelay: 0.01
ShellDriver:
console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash)
await_login_timeout: 15
username: kingbanik
UBootDriver:
prompt: '=> '
init_commands:
- setenv bootargs earlyprintk console=ttyS0,115200
- setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x7ffff && setexpr blkcnt ${blkcnt} / 0x80000 && setexpr blkcnt ${blkcnt} * 0x400'
- dhcp ${kernel_addr_r} prplos-mvebu-cortexa9-cznic_turris-omnia-sysupgrade.img
boot_command: run set_blkcnt && mmc dev 0 0 && mmc erase 0 ${blkcnt} && mmc write ${kernel_addr_r} 0 ${blkcnt} && run bootcmd
UBootStrategy: {}
turris-omnia-initramfs:
resources:
RawSerialPort:
port: "/dev/turris-omnia"
ModbusTCPCoil:
host: quido.testbed-01.vpn.true.cz
coil: 0
managed_coils: 8
exclusive_coil_mode: True
write_multiple_coils: True
drivers:
ModbusCoilDriver: {}
DigitalOutputPowerDriver: {}
SerialDriver:
txdelay: 0.01
ShellDriver:
console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash)
await_login_timeout: 15
username: kingbanik
UBootDriver:
prompt: '=> '
init_commands:
- setenv kernel_addr_r 0x2000000
- setenv bootargs earlyprintk console=ttyS0,115200
- dhcp 0x2000000 prplos-mvebu-cortexa9-cznic_turris-omnia-initramfs-kernel.bin
boot_command: bootm 0x2000000
UBootStrategy: {}
wnc-freedom-emmc:
resources:
RawSerialPort:
port: "/dev/wnc-freedom"
ModbusTCPCoil:
host: quido.testbed-01.vpn.true.cz
coil: 2
managed_coils: 8
exclusive_coil_mode: True
write_multiple_coils: True
drivers:
ModbusCoilDriver: {}
DigitalOutputPowerDriver: {}
SerialDriver: {}
ShellDriver:
console_ready: Please press Enter to activate this console.
prompt: 'root@[\w()]+:[^ ]+ '
login_prompt: built-in shell (ash)
login_timeout: 120
await_login_timeout: 16
username: kingbanik
UBootDriver:
prompt: 'IPQ9574# '
init_command_timeout: 75
init_commands:
- setenv serverip 10.0.0.1
- setenv ipaddr 10.0.0.2
- setenv loadaddr 0x50000000
- sleep 5
- tftpboot ${loadaddr} prplos-ipq95xx-generic-prpl_freedom-update_script.itb
- source ${loadaddr}:update-script
- setenv tftppath
- setenv img_kernel prplos-ipq95xx-generic-prpl_freedom-kernel.itb
- setenv img_rootfs prplos-ipq95xx-generic-prpl_freedom-rootfs.itb
- setenv img_uboot
- setenv img_xbl
- setenv img_smd
- setenv update_rescue_bank yes
- mmc dev 0
- mmc erase 0x534022 0x40000 # rootfs_data
- mmc erase 0x134022 0x400 # lcm_data
- run update_prpl
boot_command: run bootcmd
UBootStrategy: {}
mxl25641-hdk-6-emmc:
resources:
RawSerialPort:
port: "/dev/mxl25641-hdk-6"
ModbusTCPCoil:
host: quido.testbed-01.vpn.true.cz
coil: 1
managed_coils: 8
exclusive_coil_mode: True
write_multiple_coils: True
drivers:
ModbusCoilDriver: {}
DigitalOutputPowerDriver: {}
SerialDriver:
txdelay: 0.01
ShellDriver:
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 #'
console_decodeerrors: 'backslashreplace'
init_command_timeout: 60
init_commands:
- setenv serverip 192.168.1.2
- setenv ipaddr 192.168.1.1
- setenv loadaddr 0x8200000
- tftpboot ${loadaddr} prplos-intel_x86-lgm-PRPL_OSP_v2-update_script.itb
- source ${loadaddr}:update-script
- setenv tftppath
- setenv img_kernel prplos-intel_x86-lgm-PRPL_OSP_v2-wgrtd159be_b_wav700-ext4.img
- setenv img_uboot
- setenv img_rbe
- setenv img_smd
- setenv update_rescue_bank yes
- mmc dev 0
- mmc erase 0x86c00 0x10000 # rootfs_data
- mmc erase 0xa6c00 0x400 # lcm_data
- run update_prpl
boot_command: run bootcmd
UBootStrategy: {}