File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
photon-server/src/main/java/org/photonvision
photon-targeting/src/main/java/org/photonvision/common/hardware Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,13 @@ public static void main(String[] args) {
179
179
+ (Platform .isRaspberryPi () ? (" (Pi " + PiVersion .getPiVersion () + ")" ) : "" ));
180
180
181
181
if (Platform .isSystemCore ()) {
182
+ logger .error (
183
+ "SystemCore is not a supported platform for PhotonVision!\n "
184
+ + "PhotonVision will now proceed to uninstall itself from this device.\n "
185
+ + "Please visit https://docs.photonvision.org/en/latest/docs/quick-start/common-setups.html#unsupported-devices for more information." );
186
+
182
187
File jarLocation = getJarLocation ();
183
188
if (jarLocation == null ) {
184
- logger .error ("SystemCore is not a supported platform for PhotonVision!" );
185
189
System .exit (1 );
186
190
}
187
191
// Make a file where the PV JAR is located indicating systemcore is not supported
@@ -191,7 +195,8 @@ public static void main(String[] args) {
191
195
try (FileWriter writer = new FileWriter (notSupportedFile )) {
192
196
writer .write ("SystemCore is not a supported platform for PhotonVision.\n " );
193
197
writer .write ("PhotonVision has been uninstalled from this device.\n " );
194
- writer .write ("Please visit https://docs.photonvision.org/en/stable/docs/quick-start/common-setups.html#Unsupported-devices for more information." );
198
+ writer .write (
199
+ "Please visit https://docs.photonvision.org/en/latest/docs/quick-start/common-setups.html#unsupported-devices for more information." );
195
200
}
196
201
} catch (IOException e ) {
197
202
logger .error ("Failed to create SystemCore not supported file" , e );
Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ public enum Platform {
44
44
true ,
45
45
OSType .LINUX ,
46
46
true ), // Raspberry Pi 3/4 with a 64-bit image
47
+ LINUX_SYSTEMCORE (
48
+ "Linux Systemcore 64-bit NOT SUPPORTED" ,
49
+ Platform ::getUnknownModel ,
50
+ "linuxarm64" ,
51
+ false ,
52
+ OSType .LINUX ,
53
+ false ), // SystemCore 64-bit
47
54
LINUX_RK3588_64 (
48
55
"Linux AARCH 64-bit with RK3588" ,
49
56
Platform ::getLinuxDeviceTreeModel ,
@@ -125,7 +132,8 @@ public static boolean isRK3588() {
125
132
}
126
133
127
134
public static boolean isSystemCore () {
128
- return new File ("/home/systemcore" ).exists ();
135
+ File sysCore = new File ("/home/systemcore" );
136
+ return sysCore .exists ();
129
137
}
130
138
131
139
public static boolean isRaspberryPi () {
@@ -198,7 +206,9 @@ public static Platform getCurrentPlatform() {
198
206
}
199
207
200
208
if (OS_NAME .startsWith ("Linux" )) {
201
- if (isPiSBC ()) {
209
+ if (isSystemCore ()) {
210
+ return LINUX_SYSTEMCORE ;
211
+ } else if (isPiSBC ()) {
202
212
if (OS_ARCH .equals ("arm" ) || OS_ARCH .equals ("arm32" )) {
203
213
return LINUX_RASPBIAN32 ;
204
214
} else if (OS_ARCH .equals ("aarch64" ) || OS_ARCH .equals ("arm64" )) {
You can’t perform that action at this time.
0 commit comments