File tree 5 files changed +15
-2
lines changed
5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ def id(self):
75
75
board_id = self ._pi_id ()
76
76
elif chip_id == chips .AM33XX :
77
77
board_id = self ._beaglebone_id ()
78
+ elif chip_id == chips .DRA74X :
79
+ board_id = self ._bbai_id ()
78
80
elif chip_id == chips .GENERIC_X86 :
79
81
board_id = boards .GENERIC_LINUX_PC
80
82
elif chip_id == chips .SUN8I :
@@ -232,6 +234,13 @@ def _beaglebone_id(self):
232
234
233
235
# pylint: enable=no-self-use
234
236
237
+ def _bbai_id (self ):
238
+ """Try to detect id of a Beaglebone AI related board."""
239
+ board_value = self .detector .get_device_model ()
240
+ if "BeagleBone AI" in board_value :
241
+ return boards .BEAGLEBONE_AI
242
+ return None
243
+
235
244
# pylint: disable=too-many-return-statements
236
245
def _armbian_id (self ):
237
246
"""Check whether the current board is an OrangePi board."""
Original file line number Diff line number Diff line change @@ -239,6 +239,8 @@ def _linux_id(self):
239
239
if not linux_id :
240
240
if "AM33XX" in hardware :
241
241
linux_id = chips .AM33XX
242
+ elif "DRA74X" in hardware :
243
+ linux_id = chips .DRA74X
242
244
elif "sun8i" in hardware :
243
245
linux_id = chips .SUN8I
244
246
elif "ODROIDC" in hardware :
Original file line number Diff line number Diff line change 12
12
BEAGLEBONE_ENHANCED = "BEAGLEBONE_ENHANCED"
13
13
BEAGLEBONE_USOMIQ = "BEAGLEBONE_USOMIQ"
14
14
BEAGLEBONE_AIR = "BEAGLEBONE_AIR"
15
+ BEAGLEBONE_AI = "BEAGLEBONE_AI"
15
16
BEAGLEBONE_POCKETBONE = "BEAGLEBONE_POCKETBONE"
16
17
BEAGLELOGIC_STANDALONE = "BEAGLELOGIC_STANDALONE"
17
18
OSD3358_DEV_BOARD = "OSD3358_DEV_BOARD"
253
254
BEAGLEBONE_ENHANCED ,
254
255
BEAGLEBONE_USOMIQ ,
255
256
BEAGLEBONE_AIR ,
257
+ BEAGLEBONE_AI ,
256
258
BEAGLEBONE_POCKETBONE ,
257
259
BEAGLELOGIC_STANDALONE ,
258
260
OSD3358_DEV_BOARD ,
Original file line number Diff line number Diff line change 1
1
"""Definition of chips."""
2
2
AM33XX = "AM33XX"
3
+ DRA74X = "DRA74X"
3
4
IMX6ULL = "IMX6ULL"
4
5
IMX8MX = "IMX8MX"
5
6
BCM2XXX = "BCM2XXX"
Original file line number Diff line number Diff line change 13
13
print ("Is this a Pi 4B?" , detector .board .RASPBERRY_PI_4B )
14
14
print ("Is this a 40-pin Raspberry Pi?" , detector .board .any_raspberry_pi_40_pin )
15
15
print ("Is this a Raspberry Pi Compute Module?" , detector .board .any_raspberry_pi_cm )
16
- print ("Is this a BeagleBone Black?" , detector .board .BEAGLEBONE_BLACK )
17
- print ("Is this a BeagleBone Green?" , detector .board .BEAGLEBONE_GREEN )
16
+ print ("Is this a BeagleBone Board?" , detector .board .any_beaglebone )
18
17
print ("Is this a Giant Board?" , detector .board .GIANT_BOARD )
19
18
print ("Is this a Coral Dev Board?" , detector .board .CORAL_EDGE_TPU_DEV )
20
19
print ("Is this a Coral Dev Board Mini?" , detector .board .CORAL_EDGE_TPU_DEV_MINI )
You can’t perform that action at this time.
0 commit comments