public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] RPi: Enable serial console on RPi 4 B
@ 2025-04-07 14:47 Natalia Tasci
  2025-04-07 16:39 ` 'MOESSBAUER, Felix' via isar-users
  2025-04-15  7:01 ` Uladzimir Bely
  0 siblings, 2 replies; 4+ messages in thread
From: Natalia Tasci @ 2025-04-07 14:47 UTC (permalink / raw)
  To: isar-users; +Cc: Natalia Tasci

Tested with Raspbian Linux 12, baud rate of 115200 bps, 500 lines kernel
log.

Signed-off-by: Natalia Tasci <nt@ilbers.de>
---
 meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
index 417d53f1..6d742f27 100644
--- a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
+++ b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
@@ -1,5 +1,11 @@
 [pi3]
 # Restore UART0/ttyAMA0 over GPIOs 14 & 15
+# On RPi 3, using mini UART for serial console is unstable.
+# 1/3 boots produce garbage and doesn't reach login
 dtoverlay=miniuart-bt
 
+[pi4]
+# Enable mini UART (UART1/ttyS0) for serial console for RPi 4
+enable_uart=1
+
 [all]
-- 
2.39.5

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250407144723.273275-1-nt%40ilbers.de.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RPi: Enable serial console on RPi 4 B
  2025-04-07 14:47 [PATCH] RPi: Enable serial console on RPi 4 B Natalia Tasci
@ 2025-04-07 16:39 ` 'MOESSBAUER, Felix' via isar-users
  2025-04-10 10:19   ` Natalia Tasci
  2025-04-15  7:01 ` Uladzimir Bely
  1 sibling, 1 reply; 4+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2025-04-07 16:39 UTC (permalink / raw)
  To: nt, isar-users

On Mon, 2025-04-07 at 16:47 +0200, Natalia Tasci wrote:
> Tested with Raspbian Linux 12, baud rate of 115200 bps, 500 lines
> kernel
> log.

I thought about this as well. We should also consider switching the
RPi4b target over to EFI, as done here:
https://github.com/siemens/mtda/commit/37b0349f59b1c608727907c771f047fb72003fa8

By that, things like the kernel cmdline can be done by the imager and
no longer need to come from bsp packages. This would also easily enable
the use of mount-by-uuid to support USB boot and SD boot at the same
time.

Felix

> 
> Signed-off-by: Natalia Tasci <nt@ilbers.de>
> ---
>  meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> index 417d53f1..6d742f27 100644
> --- a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> +++ b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> @@ -1,5 +1,11 @@
>  [pi3]
>  # Restore UART0/ttyAMA0 over GPIOs 14 & 15
> +# On RPi 3, using mini UART for serial console is unstable.
> +# 1/3 boots produce garbage and doesn't reach login
>  dtoverlay=miniuart-bt
>  
> +[pi4]
> +# Enable mini UART (UART1/ttyS0) for serial console for RPi 4
> +enable_uart=1
> +
>  [all]
> -- 
> 2.39.5

-- 
Siemens AG
Linux Expert Center
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/55ff99d858cb8d8db441151ff27f1e7944691698.camel%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RPi: Enable serial console on RPi 4 B
  2025-04-07 16:39 ` 'MOESSBAUER, Felix' via isar-users
@ 2025-04-10 10:19   ` Natalia Tasci
  0 siblings, 0 replies; 4+ messages in thread
From: Natalia Tasci @ 2025-04-10 10:19 UTC (permalink / raw)
  To: MOESSBAUER, Felix, isar-users

Hi Felix,

On 4/7/25 18:39, MOESSBAUER, Felix wrote:
> On Mon, 2025-04-07 at 16:47 +0200, Natalia Tasci wrote:
>> Tested with Raspbian Linux 12, baud rate of 115200 bps, 500 lines
>> kernel
>> log.
> I thought about this as well. We should also consider switching the
> RPi4b target over to EFI, as done here:
> https://github.com/siemens/mtda/commit/37b0349f59b1c608727907c771f047fb72003fa8
>
> By that, things like the kernel cmdline can be done by the imager and
> no longer need to come from bsp packages. This would also easily enable
> the use of mount-by-uuid to support USB boot and SD boot at the same
> time.

Thanks for the input. Doing this by the imager sounds reasonable. We 
could consider the improvement after release.

With kind regards,

Natalia



> Felix
>
>> Signed-off-by: Natalia Tasci <nt@ilbers.de>
>> ---
>>   meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
>> b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
>> index 417d53f1..6d742f27 100644
>> --- a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
>> +++ b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
>> @@ -1,5 +1,11 @@
>>   [pi3]
>>   # Restore UART0/ttyAMA0 over GPIOs 14 & 15
>> +# On RPi 3, using mini UART for serial console is unstable.
>> +# 1/3 boots produce garbage and doesn't reach login
>>   dtoverlay=miniuart-bt
>>   
>> +[pi4]
>> +# Enable mini UART (UART1/ttyS0) for serial console for RPi 4
>> +enable_uart=1
>> +
>>   [all]
>> -- 
>> 2.39.5

-- 
Natalia Tasci
ilbers GmbH
Maria-Merian-Str. 8
D-85521, Ottobrunn
+49 (89) 122 67 24-2
http://ilbers.de/
Amtsgericht München, HRB 214197
Geschäftsführer: Baurzhan Ismagulov

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/eeed3630-26a9-411e-9ed5-c1d8a871894c%40ilbers.de.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RPi: Enable serial console on RPi 4 B
  2025-04-07 14:47 [PATCH] RPi: Enable serial console on RPi 4 B Natalia Tasci
  2025-04-07 16:39 ` 'MOESSBAUER, Felix' via isar-users
@ 2025-04-15  7:01 ` Uladzimir Bely
  1 sibling, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2025-04-15  7:01 UTC (permalink / raw)
  To: Natalia Tasci, isar-users

On Mon, 2025-04-07 at 16:47 +0200, Natalia Tasci wrote:
> Tested with Raspbian Linux 12, baud rate of 115200 bps, 500 lines
> kernel
> log.
> 
> Signed-off-by: Natalia Tasci <nt@ilbers.de>
> ---
>  meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> index 417d53f1..6d742f27 100644
> --- a/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> +++ b/meta-isar/recipes-bsp/bootconfig-rpi/files/config.txt
> @@ -1,5 +1,11 @@
>  [pi3]
>  # Restore UART0/ttyAMA0 over GPIOs 14 & 15
> +# On RPi 3, using mini UART for serial console is unstable.
> +# 1/3 boots produce garbage and doesn't reach login
>  dtoverlay=miniuart-bt
>  
> +[pi4]
> +# Enable mini UART (UART1/ttyS0) for serial console for RPi 4
> +enable_uart=1
> +
>  [all]
> -- 
> 2.39.5

Applied to next.

-- 
Best regards,
Uladzimir.


-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/148a50912a76370832b3ffa2ab85732cf99dd2fe.camel%40ilbers.de.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-15  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-07 14:47 [PATCH] RPi: Enable serial console on RPi 4 B Natalia Tasci
2025-04-07 16:39 ` 'MOESSBAUER, Felix' via isar-users
2025-04-10 10:19   ` Natalia Tasci
2025-04-15  7:01 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox