Skip to content

Added PineH64 detection; Modified Allwinner A64 Detection #90

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

Merged
merged 7 commits into from
Nov 1, 2020

Conversation

dmanla
Copy link
Contributor

@dmanla dmanla commented Jul 23, 2020

When adding PineH64 and Allwinner H6 detection I ran into an issue; Both the Allwinner A64 and Allwinner H6 return sun50iw1p1 as a cpu info hardware identifier. Because of this I do not feel it should be considered a valid chip identifier in this context. I have added logic which ignores sun50iw1p1 if it is the hardware identifier.

I have added logic for detecting the Allwinner H6 and PineH64.

dmanla added 4 commits July 23, 2020 15:14
In chip.py hardware identifiers take precedence over all other forms of chip detection. This causes issues with differentiating between the Allwinner H6 and Allwinner A64. Both the Allwinner H6 and Allwinner A64 return "sun50iw1p1 when checking the cpu info Hardware field. I have added logic to prevent the use of sun50iw1p1 as an identifier. I have added additional logic which successfully detects the Allwinner H6.
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

Thanks for adding. Could you run black on your code? It should automatically format it.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

It appears to be failing because of the long comment lines. You could either break them up into multiple lines or just remove them.

@makermelissa
Copy link
Collaborator

I submitted #113 to change the A64 detection Based on #112 which should resolve the main issue. I'd suggest you change the chip detection to use the dt-compatible value as well.

@makermelissa makermelissa merged commit 9b8c8cd into adafruit:master Nov 1, 2020
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