Skip to content

Move XU4 detection above hardware field check#416

Merged
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main
Jun 23, 2026
Merged

Move XU4 detection above hardware field check#416
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:main

Conversation

@makermelissa

Copy link
Copy Markdown
Collaborator

The ODROID XU4 has a generic hardware field value for /proc/cpuinfo, so it was never checking the /proc/device-tree/compatible value.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes ODROID XU4 chip detection on Linux by ensuring the device-tree compatible string is checked before relying on the /proc/cpuinfo Hardware field, which can be too generic on that platform.

Changes:

  • Add an early /proc/device-tree/compatible check for hardkernel,odroid-xu4 to correctly identify the EXYNOS5422 chip.
  • Remove the later fallback check for "odroid-xu4" inside the hardware is None branch (since XU4 detection is now handled earlier via DT compatible).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@makermelissa makermelissa merged commit 98a09d3 into adafruit:main Jun 23, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants