Skip to content

Commit

Permalink
config: runtime: boot: add support for barebox bootloader
Browse files Browse the repository at this point in the history
Barebox is used by platforms in Pengutronix' LAVA laboratory.

Signed-off-by: Leonard Göhrs <[email protected]>
  • Loading branch information
hnez authored and nuclearcat committed Jan 28, 2025
1 parent 845deed commit 0274eb3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions config/runtime/boot/barebox.jinja2
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0274eb3

Please sign in to comment.