Skip to content

RPi 2 doesn't boot on linux-raspberrypi 5.10.31-2 when connected with HDMI #4299

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

Closed
nightBulb opened this issue Apr 20, 2021 · 19 comments
Closed

Comments

@nightBulb
Copy link

nightBulb commented Apr 20, 2021

Describe the bug
Raspberry Pi 2 fails to boot when using linux-raspberrypi 5.10.31-2 with HDMI connected.

Good Kernel : Linux 5.10.31-1 

Bad Kernel: Linux 5.10.31-2  and Linux 5.10.31-3

To reproduce
Reboot R Pi 2 after update to linux-raspberrypi 5.10.31-2
with the the RPi 2 connected via HDMI to a screen

Expected behaviour
System to boot

Actual behaviour
Raspberry Pi 2 fails to boot when using linux-raspberrypi 5.10.31-2 with RPi 2 connected to a screen with HDMI.

System

Arch Linux ARM (latest)

 (Don't have rpi-issue file)
  • Which firmware version (vcgencmd version)?
Apr 12 2021 15:54:06 
Copyright (c) 2012 Broadcom
version 0227a0840ee8c94294cf3b2c4b2d42031a58f05a (clean) (release) (start)
  • Which kernel version (uname -a)?
Linux rpi 5.10.31-1-ARCH #1 SMP Mon Apr 19 13:33:01 UTC 2021 armv7l GNU/Linux

Logs
(Unable to get dmesg when boot fails)
dmesg log when system boots -> #4299 (comment)

photo of boot screen when boot fails -> #4299 (comment)

dmesg with good kernel in disconnected state -> #4299 (comment)

Additional context

Note 1: 
Linux 5.10.31-1 boots successfully with and without HDMI connected.

Linux 5.10.31-2 boot fails when HDMI screen is connected.
Linux 5.10.31-2 boot succeeds when HDMI is **disconnected**.

--------------------
Note 2:
The Bootloader manages to switch to systemd (I think)
It is during systemD initialization that HDMI screen goes blank.
 
It feels like the boot gets stuck right before the login prompt is supposed to appear.
(No network, although I think I am able to see [  ok  ]  for network service. )

@nightBulb
Copy link
Author

dmesg output:

  1. When boot succeeds with bad kernel ( DISCONNECTED HDMI ) linux 5.10.31-2
    dmesg-2021-04-21-bad-kernel-log.txt

  2. When boot succeeds with good kernel Linux ( CONNECTED HDMI ) 5.10.31-1
    dmesg-2021-04-21-good-kernel-log.txt

  3. Couldn't get the failure ( linux 5.10.31-2, HDMI Connected) dmesg output as no login prompt


Colored variants of above logs
$ dmesg --color=always

dmesg-2021-04-21-bad-kernel-log-colored.txt

dmesg-2021-04-21-good-kernel-log-colored.txt

@nightBulb
Copy link
Author

This is the last thing that happens when booting with Linux 5.10.31-2
(bad kernel) connected via HDMI to the screen.

IMG_20210421_042256462_BURST073

@henkv1
Copy link

henkv1 commented Apr 21, 2021

Same issue here on RPi3.
The system crashes when kms refreshes the screen. The issue does not occur when fkms is used. So this is probably a bug in the new vc4 code.

@pelwell
Copy link
Contributor

pelwell commented Apr 21, 2021

Can one of you provide a dmesg log for the good kernel in the disconnected state?

@popcornmix
Copy link
Collaborator

I can reproduce this (on Pi3+). No panic out of uart when it hangs. Presumably related to clock changes.

@popcornmix
Copy link
Collaborator

Yes, 9e081a7 seems to be first commit which hangs. It's okay on Pi4.

@nightBulb
Copy link
Author

@pelwell This is the dmesg for good kernel (Linux 5.10.31-1 ) in HDMI disconnected state
dmesg-2021-04-21-3-good-kernel-disconnected.txt


Same dmesg with dmesg --color=always

dmesg-2021-04-21-3-good-kernel-disconnected-colored.txt

@pelwell
Copy link
Contributor

pelwell commented Apr 21, 2021

Thanks. Now that popcornmix has reproduced the problem we shouldn't need any more info.

popcornmix added a commit to popcornmix/linux that referenced this issue Apr 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: raspberrypi#4299
Signed-off-by: Dom Cobley <[email protected]>
pelwell pushed a commit that referenced this issue Apr 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
@popcornmix
Copy link
Collaborator

I've pushed a new kernel to rpi-update that should hopefully resolve this. Can you test?

pelwell pushed a commit that referenced this issue Apr 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
pelwell pushed a commit that referenced this issue Apr 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
@nightBulb
Copy link
Author

@popcornmix Problem still persists.

Unable to complete boot with linux 5.10.31-3 while HDMI is connected.

Boot only succeeds with it disconnected.

@popcornmix
Copy link
Collaborator

With hdmi disconnected what does uname -a report?

@nightBulb
Copy link
Author

@popcornmix Linux rpi 5.10.31-3-ARCH #1 SMP Wed Apr 21 14:04:34 UTC 2021 armv7l GNU/Linux

@popcornmix
Copy link
Collaborator

You aren't using rpi-update kernel, so I'm unsure what commits are in there.
From the timestamp of your kernel, it doesn't look like you'll have the commit that fixes it.

commit 01a6d727b407ed064bdd72e3a6611101102a2228
Author: Dom Cobley <[email protected]>
Date:   Wed Apr 21 15:15:42 2021 +0100

    vc4/drm: hdmi: Handle case when bvb clock is null
    
    Pi2/3 have no bvb clock but want the other clocks to remain enabled here
    
    See: https://github.com/raspberrypi/linux/issues/4299
    Signed-off-by: Dom Cobley <[email protected]>

@popcornmix
Copy link
Collaborator

This is booting with hdmi output on a pi3 for me:

pi@b3plus:~ $ uname -a
Linux domnfs 5.10.31-v7+ #62 SMP Wed Apr 21 15:41:57 BST 2021 armv7l GNU/Linux

@nightBulb
Copy link
Author

@graysky2 could you please update the linux kernel to commit 01a6d72

@graysky2
Copy link

@nightBulb - Building 203f704 and will test/push if all is well.

@nightBulb
Copy link
Author

@graysky2 Thanks 😄 👍

@graysky2
Copy link

archlinuxarm/PKGBUILDs@c9ee729

@nightBulb
Copy link
Author

I just tested Linux rpi 5.10.31-4-ARCH #1 SMP Wed Apr 21 17:54:17 UTC 2021 armv7l GNU/Linux

and can confirm the problem is fixed, and the system is booting with HDMI connected. 😄 👍

Thanks 👍 👍 and Kudos 🥇 everyone.

I can now recommend we close this bug.

popcornmix added a commit that referenced this issue Apr 27, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Apr 27, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Apr 30, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue May 7, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue May 7, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Jul 27, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Jul 27, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Jul 27, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
pelwell pushed a commit that referenced this issue Jul 29, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Aug 11, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Aug 11, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
Noltari pushed a commit to Noltari/rpi-linux that referenced this issue Aug 20, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: raspberrypi#4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Aug 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Aug 21, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
limeng-linux pushed a commit to limeng-linux/linux-yocto-develop that referenced this issue Aug 24, 2021
commit  5e8442892eda8db362919cff27a61ccd5b41dea6 from
https://github.com/raspberrypi/linux.git rpi-5.14.y

Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: raspberrypi/linux#4299
Signed-off-by: Dom Cobley <[email protected]>
Signed-off-by: Meng Li <[email protected]>
popcornmix added a commit that referenced this issue Sep 8, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 8, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 15, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 15, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 15, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
mripard pushed a commit to mripard/rpi-linux that referenced this issue Sep 16, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: raspberrypi#4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 17, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 23, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 30, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 30, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Sep 30, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 5, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 12, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 13, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 19, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 19, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Oct 22, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Nov 8, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Nov 15, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
popcornmix added a commit that referenced this issue Nov 29, 2021
Pi2/3 have no bvb clock but want the other clocks to remain enabled here

See: #4299
Signed-off-by: Dom Cobley <[email protected]>
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

5 participants