Fix Orange Pi detection on non-Armbian systems (Debian)#412
Merged
makermelissa merged 1 commit intoadafruit:mainfrom Apr 22, 2026
Merged
Conversation
Add _orange_pi_id() to H616 and H6 chip detection paths so that Orange Pi boards are detected via device-tree model strings on non-Armbian OS distributions (e.g. Debian). Expand _orange_pi_id() to handle Orange Pi Zero 2, Zero 3, Zero 2W (with space variant), and 3 LTS model strings from /proc/device-tree/model. Fixes adafruit#285
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #285 — Orange Pi boards (Zero 2, Zero 3, 3 LTS) were not detected on Debian and other non-Armbian distributions because the detection path relied on
_armbian_id()which reads/etc/armbian-release(not present on Debian).Changes
1. Add
_orange_pi_id()to H616 and H6 chip detection pathsThe H618 path already included
_orange_pi_id()as a fallback, but H616 (used by Orange Pi Zero 2) and H6 (used by Orange Pi 3 LTS) did not. Now all three share the same fallback chain.2. Expand
_orange_pi_id()with additional model stringsAdded detection for device-tree model strings (
/proc/device-tree/model) used by non-Armbian OSes:OrangePi Zero2,Orange Pi Zero 2ORANGE_PI_ZERO_2OrangePi Zero3,Orange Pi Zero 3ORANGE_PI_ZERO_3Orange Pi Zero 2W(space variant)ORANGE_PI_ZERO_2WOrange Pi 3 LTS,OrangePi 3 LTSORANGE_PI_3_LTSThe ordering ensures the more specific
Zero 2Wmatch is checked before the broaderZero 2match.