aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2018-02-07 09:52:51 -0800
committerKevin Hilman <khilman@baylibre.com>2018-02-07 10:21:14 -0800
commit25bccfd28a51d1dda8a84700dbcae166eef35036 (patch)
tree4e67a79971fc5595e533944a400a160e4d773ec9 /templates
parentdac6eb8edd9184d0c01f57d5ec9e2a27b6ead9bd (diff)
templates/machines: rpi3: switch to upstream device-type
Switch the rpi3 to use the upstream LAVA device-type. Note that the the default kernel-command line arguments in the upstream device-type are suited for the upstream kernel. When building with an yocto/AGL kernel, those need to be overridden, so also update the machine template to use the correct kernel command-line. Change-Id: I823a1946bf761aa1019a9ec808fa99594337f4f4 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/machines/raspberrypi3.jinja28
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/machines/raspberrypi3.jinja2 b/templates/machines/raspberrypi3.jinja2
index 8123586..2380254 100644
--- a/templates/machines/raspberrypi3.jinja2
+++ b/templates/machines/raspberrypi3.jinja2
@@ -1,7 +1,7 @@
{%- extends 'boot/generic-uboot-tftp.jinja2' %}
{%- set device_arch = "arm" %}
{%- set device_mach = "broadcom" %}
-{%- set device_type = "raspberrypi3-uboot" %}
+{%- set device_type = "bcm2837-rpi-3-b-32" %}
{# Default boot method if not specified #}
{%- set rootfs_type = rootfs_type|default("nbd") %}
{# Defaults image names dependng on boot method #}
@@ -14,3 +14,9 @@
{%- else %}
{%- set rfs_image = rfs_image|default("agl-demo-platform-raspberrypi3.ext4.xz") %}
{%- endif %}
+
+{%- block main %}
+{{ super() }}
+context:
+ custom_kernel_args: "8250.nr_uarts=1 bcm2709.uart_clock=48000000 smsc95xx.macaddr=AA:BB:CC:DD:EE:AA"
+{% endblock %}