Commit 159e6d17 authored by Corentin LABBE's avatar Corentin LABBE
Browse files

device-types: bcm2711-rpi-4-b: support booting rpi-sources

The current device-type of bcm2711-rpi-4-b works well with mainline
But the rpi-sources does not boot with it.
First it miss the cma size.
Then without 8250.nr_uarts=1, the rpi-sources fail to open the console.
But with 8250.nr_uarts=1, ttyS1 become ttyS0.

Instead of hardcoding too many things, lets's permit to override extra_kernel_args.
parent fbeaa15a
......@@ -17,5 +17,13 @@
{% set bootloader_prompt = bootloader_prompt|default('U-Boot>') %}
{% set console_device = console_device|default('ttyS1') %}
# rpi-sources does not boot without 8250.nr_uarts=1
# The normal console (on pinouts) is ttyS1, but with 8250.nr_uarts=1, ttyS1 become ttyS0
# The earlycon is for this console
# rpi-sources need also the cma to be >= 64M
# so a job with rpi-sources probably need to set in job definitions:
# context:
# extra_kernel_args: "8250.nr_uarts=1 cma=64M"
# console_device: ttyS0
{% set extra_kernel_args = "earlycon=uart,mmio32,0xfe215040" %}
{% set extra_kernel_args = extra_kernel_args|default("earlycon=uart,mmio32,0xfe215040") %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment