Project

General

Profile

Actions

Feature #1068

closed

Add support for PinePhone Pro to piboxGetPlatform()

Added by Hammel about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
05 Nov 2023
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

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.

Actions

Also available in: Atom PDF