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

Nightly: Unexpected kernel BRK exception at EL1 with reference to dwc_otg_hcd_init #2780

Closed
jens-maus opened this issue Jun 18, 2024 · 0 comments
Labels
🐛 bug-report Something isn't working platform/raspberrypi RaspberryPi platform 👍 important This is an important issue/ticket with high priority 🧠 unstable-snapshot This ticket references the use of an unsupported unstable snapshot being used.

Comments

@jens-maus
Copy link
Owner

Describe the issue you are experiencing

After upgrading to the latest nightly snapshot version (3.77.2.20240618) for the RaspberryPi3, the bootup hangs in an endless loop after the last U-Boot Starting kernel... output.

After some investigation it seems the Linux kernel (6.6.31) runs into a Kernel panic mentioning Unexpected kernel BRK exception at EL1 and a pc pointing at dwc_otg_hcd_init. This can be seen by changing the content of /boot/cmdline.txt to console=tty1 loglevel=10. Then the following kernel panic pops up:

BFDEF11E-8DBE-4686-8774-DF790F1CF040_1_105_c

As a workaround to get the kernel booted again, the /boot/config.txt file can be changed and dtoverlay=dwc2 added so that the DWC2 USB controller support is used instead of the default dwc_otg one.

Describe the behavior you expected

The kernel should properly boot up.

Steps to reproduce the issue

  1. Download the latest 3.77.2.20240618 version for RaspberryPi3
  2. Flash image to fresh SD card
  3. Bootup system and note the endless loop ending up in U-Boot starting over and over again...
  4. Modify /boot/cmdline.txt and set console=tty1 loglevel=10 to see that the system now outputs the above mentiojned Kernel panic.
  5. Modify /boot/config.txt and add dtoverlay=dwc2 and note that now the kernel bootsup properly.

What is the version this bug report is based on?

3.77.2.20240618

Which base platform are you running?

rpi3 (RaspberryPi3, ARM64/aarch64)

Which HomeMatic/homematicIP radio module are you using?

RPI-RF-MOD

Anything in the logs that might be useful for us?

See screenshot above for kernel panic output.

Additional information

After some first investigation for the root cause it seems that with the introduction of the latest Buildroot 2024.05 the issue seem to have suddenly appeared. This seems to be related to the GCC v11 => GCC v13 upgrade which this buildroot version introduces. Downgrading GCC v13 to GCC v12 seem to recover/solve that issue point at some GCC related kernel compilation/setup issue.

@jens-maus jens-maus added 🐛 bug-report Something isn't working 👍 important This is an important issue/ticket with high priority platform/raspberrypi RaspberryPi platform labels Jun 18, 2024
@jens-maus jens-maus added this to the next release milestone Jun 18, 2024
@jens-maus jens-maus added the 🧠 unstable-snapshot This ticket references the use of an unsupported unstable snapshot being used. label Jun 18, 2024
jens-maus added a commit that referenced this issue Jun 18, 2024
with the RaspberryPi kernel running into a kernel panic in dwc_otg
(this refs #2780)
@jens-maus jens-maus changed the title Nightly: Unexpected kernel BRK exception at EL1 with refernce to dwc_otg_hcd_init Nightly: Unexpected kernel BRK exception at EL1 with reference to dwc_otg_hcd_init Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working platform/raspberrypi RaspberryPi platform 👍 important This is an important issue/ticket with high priority 🧠 unstable-snapshot This ticket references the use of an unsupported unstable snapshot being used.
Projects
None yet
Development

No branches or pull requests

1 participant