diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2020-02-20 14:23:01 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-03-02 15:12:17 +0000 |
commit | 2fdca1e97be464d1768c3401349fde50a4390517 (patch) | |
tree | 1485e7521acb850726baf3bf174ba9bf71697fe7 /templates/machines | |
parent | 2bec07832b43a1d549a52b0964510b9a9f2f78a4 (diff) |
SPEC-3004: Add support for raspberrypi4
This patch add the template for raspberrypi4.
Like rpi3, the job need some custom parameters like console_device and
extra_kernel_args.
Unlike rpi3, we use directly extra_kernel_args as the device_type will
permit to override it.
Bug-AGL: SPEC-3004
Change-Id: Iac88f04e0954f77bc2e3a3daf0baf43aec3fa7c7
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'templates/machines')
-rw-r--r-- | templates/machines/raspberrypi4.jinja2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/machines/raspberrypi4.jinja2 b/templates/machines/raspberrypi4.jinja2 new file mode 100644 index 0000000..d4ef568 --- /dev/null +++ b/templates/machines/raspberrypi4.jinja2 @@ -0,0 +1,23 @@ +{%- extends 'boot/generic-uboot-tftp.jinja2' %} +{%- set device_arch = "arm64" %} +{%- set sdk_arch = "arm64" %} +{%- set device_mach = "broadcom" %} +{%- set device_type = "bcm2711-rpi-4-b" %} +{%- set rootfs_type = rootfs_type|default("nbd") %} +{%- set kernel_image = kernel_image|default("Image") %} +{%- if rootfs_type == 'nbd' %} + {%- set initrd = "initramfs-netboot-image-" + yocto_machine +".ext4.gz" %} +{%- endif %} +{%- set dtb = dtb|default("bcm2711-rpi-4-b.dtb") %} +{%- if (build_type == 'daily') or (build_type == 'release') %} + {%- set rfs_image = rfs_image|default("agl-demo-platform-crosssdk-raspberrypi4.ext4.xz") %} +{%- else %} + {%- set rfs_image = rfs_image|default("agl-demo-platform-raspberrypi4.ext4.xz") %} +{%- endif %} + +{%- block main %} +{{ super() }} +context: + console_device: ttyS0 + extra_kernel_args: "8250.nr_uarts=1 cma=64M" +{% endblock %} |