From f259460ae4920ef93a735bbb28930b5b2cb1259f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Thu, 23 Jan 2025 09:58:16 +0100 Subject: [PATCH] config: runtime: boot: add support for barebox bootloader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Barebox is used by platforms in Pengutronix' LAVA laboratory. Signed-off-by: Leonard Göhrs --- config/runtime/boot/barebox.jinja2 | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 config/runtime/boot/barebox.jinja2 diff --git a/config/runtime/boot/barebox.jinja2 b/config/runtime/boot/barebox.jinja2 new file mode 100644 index 0000000000..ea6d6eb9ea --- /dev/null +++ b/config/runtime/boot/barebox.jinja2 @@ -0,0 +1,48 @@ +{%- if boot_commands == 'nfs' and nfsroot is not defined %} +{%- set nfsroot = 'http://storage.kernelci.org/images/rootfs/debian/bookworm-kselftest/20250117.0/' + debarch %} +{%- endif %} + +- deploy: + kernel: + type: {{ node.data.kernel_type }} + url: '{{ node.artifacts.kernel }}' + modules: + compression: xz + url: '{{ node.artifacts.modules }}' +{%- if device_dtb %} + dtb: + url: '{{ node.artifacts.dtb }}' +{%- endif %} +{%- if boot_commands == 'nfs' %} + nfsrootfs: + url: '{{ nfsroot }}/full.rootfs.tar.xz' + compression: xz + ramdisk: + url: '{{ nfsroot }}/initrd.cpio.gz' + compression: gz + os: debian +{%- else %} + ramdisk: + url: 'http://storage.kernelci.org/images/rootfs/buildroot/buildroot-baseline/20230703.0/{{ brarch }}/rootfs.cpio.gz' + compression: gz + os: oe +{%- endif %} + timeout: + minutes: 10 + to: tftp + +- boot: + method: barebox + commands: {{ boot_commands | default('ramdisk', true) }} + failure_retry: 3 + prompts: + - '/ #' + timeout: + minutes: 20 + timeouts: + bootloader-commands: + minutes: 3 + auto-login-action: + minutes: 6 + login-action: + minutes: 2