Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static boolean isLinux() {
}

public static boolean isRK3588() {
return Platform.isOrangePi() || Platform.isCoolPi4b();
return Platform.isOrangePi() || Platform.isCoolPi4b() || Platform.isRock5C();
}

public static boolean isRaspberryPi() {
Expand Down Expand Up @@ -217,7 +217,7 @@ public static Platform getCurrentPlatform() {
return LINUX_32;
} else if (OS_ARCH.equals("aarch64") || OS_ARCH.equals("arm64")) {
// TODO - os detection needed?
if (isOrangePi()) {
if (isRK3588()) {
return LINUX_RK3588_64;
} else {
return LINUX_AARCH64;
Expand All @@ -243,6 +243,10 @@ private static boolean isOrangePi() {
return fileHasText("/proc/device-tree/model", "Orange Pi 5");
}

private static boolean isRock5C() {
return fileHasText("/proc/device-tree/model", "ROCK 5C");
}

private static boolean isCoolPi4b() {
return fileHasText("/proc/device-tree/model", "CoolPi 4B");
}
Expand Down
Loading