Feature #1068
closedAdd support for PinePhone Pro to piboxGetPlatform()
100%
Description
The first test is to check that
/sys/firmware/devicetree/base/model
exists. If it does, read the first word of its contents and test against the following:
- Raspberry
- Pine64
Choose an appropriate subroutine to call based on that.
If that file does not exist, call the subroutine for Raspberry Pi, which would be the old way of doing things anyway.
Note that the existing code that tests the hardware type from /proc/cpuinfo needs to be moved into a RaspberryPi specific subroutine.
Updated by Hammel about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
The change for this is in the libpibox sandbox. It needs testing on both RPi and Xeon.
Updated by Hammel about 1 year ago
- % Done changed from 30 to 50
Worked on an RPI3B. Xeon buildroot is being updated. When that's done I'll test the update libpibox on there.
Updated by Hammel about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
This is probably okay, but the X server failed to boot so until I fix that I can't quite test this fully.
Going to commit and push this code and will deal with it on Xeon later.
Code committed and pushed.
Closing issue.