Private
Public Access
2
0

96boards: Fix recognizing the HiKey platform on recent kernels

Somewhere between kernel v3.18 and v4.4 the output of /proc/cpuinfo
stopped showing the board model. This confused MRAA when running on
HiKey. Eventually we want to do a better job of getting the kernel to
express hardware information to userspace, but in the mean time fix the
test so that MRAA will work on HiKey.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Grant Likely
2016-02-07 20:00:42 +00:00
committed by Brendan Le Foll
parent c101117ece
commit 14960c4190

View File

@@ -79,6 +79,8 @@ mraa_arm_platform()
if (platform_type == MRAA_UNKNOWN_PLATFORM) {
if (mraa_file_contains("/sys/firmware/devicetree/base/compatible", "qcom,apq8016-sbc"))
platform_type = MRAA_96BOARDS;
if (mraa_file_contains("/sys/firmware/devicetree/base/model", "HiKey Development Board"))
platform_type = MRAA_96BOARDS;
}
switch (platform_type) {