@@ -42,7 +42,7 @@ def __init__(self, detector) -> None:
42
42
self .detector = detector
43
43
self ._board_id = None
44
44
45
- # pylint: disable=invalid-name, protected-access, too-many-return-statements
45
+ # pylint: disable=invalid-name, protected-access, too-many-return-statements, too-many-lines
46
46
@property
47
47
def id (self ) -> Optional [str ]:
48
48
"""Return a unique id for the detected board, if any."""
@@ -177,7 +177,12 @@ def id(self) -> Optional[str]:
177
177
elif chip_id == chips .RK3568 :
178
178
board_id = self ._rk3568_id ()
179
179
elif chip_id == chips .RK3588 :
180
- board_id = self ._rock_pi_id () or self ._orange_pi_id () or self ._armbian_id ()
180
+ board_id = (
181
+ self ._rock_pi_id ()
182
+ or self ._orange_pi_id ()
183
+ or self ._armbian_id ()
184
+ or self ._rk3588_id ()
185
+ )
181
186
elif chip_id == chips .RYZEN_V1605B :
182
187
board_id = self ._udoo_id ()
183
188
elif chip_id == chips .PENTIUM_N3710 :
@@ -559,6 +564,14 @@ def _rk3568_id(self) -> Optional[str]:
559
564
board = boards .ROCK_PI_3A
560
565
return board
561
566
567
+ def _rk3588_id (self ) -> Optional [str ]:
568
+ """Check what type of rk3588 board."""
569
+ board_value = self .detector .get_device_model ()
570
+ board = None
571
+ if board_value and "LubanCat-4" in board_value :
572
+ board = boards .LUBANCAT4
573
+ return board
574
+
562
575
def _rock_pi_id (self ) -> Optional [str ]:
563
576
"""Check what type of Rock Pi board."""
564
577
board_value = self .detector .get_device_model ()
0 commit comments