Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No serial console on CM4 (5.19) #5182

Open
juergh opened this issue Sep 27, 2022 · 4 comments
Open

No serial console on CM4 (5.19) #5182

juergh opened this issue Sep 27, 2022 · 4 comments

Comments

@juergh
Copy link
Contributor

juergh commented Sep 27, 2022

Describe the bug

With current rpi-5.19.y there is no serial console on a CM4 unless commandline option 8250.nr_uarts=1 is added explicitly. This seems to have been introduced by commit b9e6232.

Steps to reproduce the behaviour

Boot kernel built from rpi-5.19.y branch.

Device (s)

Raspberry Pi CM4

System

rpi-5.19.y

Logs

[    1.866359] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    1.866390] bcm2708_fb: probe of soc:fb failed with error -2
[    1.937327] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.937663] bcm2835-aux-uart fe215040.serial: error -ENOSPC: unable to register 8250 port
[    1.937701] bcm2835-aux-uart: probe of fe215040.serial failed with error -28
[    1.939472] iproc-rng200 fe104000.rng: hwrng registered
[    1.939896] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)

Additional context

No response

@juergh
Copy link
Contributor Author

juergh commented Sep 27, 2022

See PR #5183.

@pelwell
Copy link
Contributor

pelwell commented Sep 27, 2022

You're right - CM4 and CM4S are both wrong, in opposite directions. CM4S is like CM3 in that it should be using UART0 as the console UART, and yet it includes 8250.nr_uarts=1 in its bootargs (partial command line), while as you've seen CM4 selects UART1 for the console but is missing 8250.nr_uarts=1. I'll fix the CM4S bootargs so everything is consistent.

(But the fact that 8250.nr_uarts=1 is necessary in the first place in the Device Tree-equipped 21st century is absurd).

pelwell added a commit that referenced this issue Sep 27, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor

pelwell commented Sep 27, 2022

See ed40d79 for the companion patch (which will be forward-ported to the newer branches).

pelwell added a commit that referenced this issue Sep 27, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this issue Sep 27, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor

pelwell commented Sep 27, 2022

It should all be done now.

herrnst pushed a commit to herrnst/linux-raspberrypi that referenced this issue Sep 28, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: raspberrypi#5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 3, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 5, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix added a commit to raspberrypi/firmware that referenced this issue Oct 5, 2022
kernel: media: i2c: imx477: Allow dynamic horizontal blanking control
See: raspberrypi/linux#5194

kernel: bcm2835-codec: Allow encoder cmds on ISP resize and deinterlace
See: raspberrypi/linux#5197

kernel: ARM: dts: Don't enable the 8250 UART on CM4S
See: raspberrypi/linux#5182

kernel: overlays: Add rpi-sense-v2
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this issue Oct 5, 2022
kernel: media: i2c: imx477: Allow dynamic horizontal blanking control
See: raspberrypi/linux#5194

kernel: bcm2835-codec: Allow encoder cmds on ISP resize and deinterlace
See: raspberrypi/linux#5197

kernel: ARM: dts: Don't enable the 8250 UART on CM4S
See: raspberrypi/linux#5182

kernel: overlays: Add rpi-sense-v2
popcornmix pushed a commit that referenced this issue Oct 12, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 12, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
herrnst pushed a commit to herrnst/linux-raspberrypi that referenced this issue Oct 12, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: raspberrypi#5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
herrnst pushed a commit to herrnst/linux-raspberrypi that referenced this issue Oct 12, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: raspberrypi#5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 17, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 17, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this issue Oct 25, 2022
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: #5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
lsahn-gh pushed a commit to lsahn-org/ubuntu-raspi that referenced this issue Jan 13, 2023
CM4S (like CM3, but unlike some CM4) has no Bluetooth, so don't enable
the 8250 support in the kernel.

See: raspberrypi/linux#5182

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
(cherry picked from commit 6b7655d030686fb16799774f2944c6f2e4a8b803 rpi-5.19.y)
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants