agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
532 stars 410 forks source link

"ENABLE_UART=0" do not disables console totally #567

Closed myfreescalewebpage closed 2 years ago

myfreescalewebpage commented 4 years ago

Description

When setting ENABLE_UART=0 to disable the console on GPIO14/15, the kernel boot log is not shown, but the console is started and the login prompt is displayed. It is possible to login and use the terminal.

Steps to reproduce the issue:

  1. Build with ENABLE_UART=0
  2. Load the raspberry pi (I'm using CM3+)
  3. Open serial console and boot the pi
  4. At the end of the boot the prompt is displayed on the console

Describe the results you received:

The console is available on the UART

Describe the results you expected:

The console should not be available at all on the UART, instead the UART should remain available for other usage

Additional information you deem important (e.g. issue happens only occasionally):

I have solved the issue setting "enable_uart=0" in the "config.txt" file. When ENABLE_UART=0 is set, the config file is just not filled. Instead it should be completed with "enable_uart=0".

Additional details (revisions used, host distro, etc.):

I'm using warrior branch

I can propose à PR if you indicate me on which branch I should do it. master ? How to apply on all branches then ?

texierp commented 4 years ago

Hi @myfreescalewebpage

I can propose à PR if you indicate me on which branch I should do it. master ? How to apply on all branches then ?

This must first be fixed on master and then backported to the specific branch with a new PR (with git cherry-pick -x <commit>)

Example:

Thanks !

myfreescalewebpage commented 4 years ago

Hi @texierp thanks for the quick answer, will do that!

myfreescalewebpage commented 4 years ago

PR proposed on master : https://github.com/agherzan/meta-raspberrypi/pull/568

lokeb commented 3 years ago

Has this problem been fixed? I am observing the same problem on RPI-4 on Debian buster arm64.