diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2024-11-25 10:19:02 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2024-11-28 12:20:59 +0000 |
commit | 90587ff17294823fb62a2624ac0223292e3970ad (patch) | |
tree | f478fb5426c0b836fa7cb781230ff9566706183b | |
parent | 709e0af5e358a46136ffa490fe82e07ddd2c3df8 (diff) |
SPEC-5293: Add final rpi5 templatequillback_17.1.5quillback/17.1.517.1.5quillback
This patchs adds the final raspberrypi5 machine template.
Remove un-needed raspberrypi5-64 as rpi5 is 64bit only.
Add an override of boot-method in templates since rpi5 start via PXE and
so need to boot in "minimal" boot mode.
Bug-AGL: SPEC-5293
Change-Id: Ided5312d25bee4b34ac3a5ea2d01b028664bcf73
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
-rw-r--r-- | templates/boot/generic-uboot-tftp.jinja2 | 2 | ||||
-rw-r--r-- | templates/machines/raspberrypi5-64.jinja2 | 1 | ||||
-rw-r--r-- | templates/machines/raspberrypi5.jinja2 | 26 |
3 files changed, 26 insertions, 3 deletions
diff --git a/templates/boot/generic-uboot-tftp.jinja2 b/templates/boot/generic-uboot-tftp.jinja2 index 8befb6d..d65b284 100644 --- a/templates/boot/generic-uboot-tftp.jinja2 +++ b/templates/boot/generic-uboot-tftp.jinja2 @@ -1,5 +1,5 @@ {%- extends 'boot/generic-base-boot.jinja2' %} -{%- set boot_method = "u-boot" %} +{%- set boot_method = boot_method|default("u-boot") %} {%- block main %} {{ super() }} {%- if rootfs_type == 'nbd' %} diff --git a/templates/machines/raspberrypi5-64.jinja2 b/templates/machines/raspberrypi5-64.jinja2 deleted file mode 100644 index 063ca3b..0000000 --- a/templates/machines/raspberrypi5-64.jinja2 +++ /dev/null @@ -1 +0,0 @@ -{%- extends 'machines/raspberrypi4.jinja2' %} diff --git a/templates/machines/raspberrypi5.jinja2 b/templates/machines/raspberrypi5.jinja2 index 063ca3b..d035084 100644 --- a/templates/machines/raspberrypi5.jinja2 +++ b/templates/machines/raspberrypi5.jinja2 @@ -1 +1,25 @@ -{%- extends 'machines/raspberrypi4.jinja2' %} +{%- extends 'boot/generic-uboot-tftp.jinja2' %} +{%- set device_arch = "arm64" %} +{%- set sdk_arch = "arm64" %} +{%- set device_mach = "broadcom" %} +{%- set device_type = "bcm2712-rpi-5-b" %} +{%- set rootfs_type = rootfs_type|default("nbd") %} +{%- set kernel_image = kernel_image|default("Image") %} +{%- set uboot_type = "booti" %} +{%- if rootfs_type == 'nbd' %} + {%- set initrd = "initramfs-netboot-image-" + yocto_machine +".ext4.gz" %} +{%- endif %} +{%- set dtb = dtb|default("bcm2712-rpi-5-b.dtb") %} +{%- if (build_type == 'snapshot') or (build_type == 'daily') or (build_type == 'release') or (build_type == 'prerelease') %} + {%- set rfs_image = rfs_image|default("agl-ivi-demo-qt-crosssdk-" + yocto_machine + ".ext4.xz") %} +{%- else %} + {%- set rfs_image = rfs_image|default("agl-ivi-demo-qt-" + yocto_machine + ".ext4.xz") %} +{%- endif %} +{%- set boot_method = "minimal" %} + +{%- block main %} +{{ super() }} +context: + console_device: ttyAMA10 + extra_kernel_args: " coherent_pool=1M rw fstab=no systemd.mask=systemd-network-generator.service" +{% endblock %} |