File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def __init__(self, detector):
52
52
self .detector = detector
53
53
self ._board_id = None
54
54
55
- # pylint: disable=invalid-name, protected-access
55
+ # pylint: disable=invalid-name, protected-access, too-many-return-statements
56
56
@property
57
57
def id (self ):
58
58
"""Return a unique id for the detected board, if any."""
@@ -227,9 +227,14 @@ def _beaglebone_id(self):
227
227
"""Try to detect id of a Beaglebone."""
228
228
229
229
board_value = self .detector .get_device_compatible ()
230
+ # Older Builds
230
231
if "freedom-u74-arty" in board_value :
231
232
return boards .BEAGLEV_STARLIGHT
232
233
234
+ # Newer Builds
235
+ if "beaglev-starlight" in board_value :
236
+ return boards .BEAGLEV_STARLIGHT
237
+
233
238
try :
234
239
with open ("/sys/bus/nvmem/devices/0-00500/nvmem" , "rb" ) as eeprom :
235
240
eeprom_bytes = eeprom .read (16 )
Original file line number Diff line number Diff line change @@ -184,9 +184,14 @@ def _linux_id(self):
184
184
if self .detector .check_dt_compatible_value ("sun20iw1p1" ):
185
185
return chips .C906
186
186
187
+ # Older Builds
187
188
if self .detector .check_dt_compatible_value ("sifive" ):
188
189
return chips .JH71x0
189
190
191
+ # Newer Builds
192
+ if self .detector .check_dt_compatible_value ("jh7100" ):
193
+ return chips .JH71x0
194
+
190
195
if self .detector .check_dt_compatible_value ("sun8i-a33" ):
191
196
return chips .A33
192
197
You can’t perform that action at this time.
0 commit comments