@@ -187,6 +187,8 @@ def id(self) -> Optional[str]:
187
187
or self ._armbian_id ()
188
188
or self ._rk3588_id ()
189
189
)
190
+ elif chip_id == chips .RV1106 :
191
+ board_id = self ._rv1106_id ()
190
192
elif chip_id == chips .RYZEN_V1605B :
191
193
board_id = self ._udoo_id ()
192
194
elif chip_id == chips .PENTIUM_N3710 :
@@ -605,6 +607,14 @@ def _rk3588_id(self) -> Optional[str]:
605
607
board = boards .LUBANCAT4
606
608
return board
607
609
610
+ def _rv1106_id (self ) -> Optional [str ]:
611
+ """Check what type of rv1106 board."""
612
+ board_value = self .detector .get_device_model ()
613
+ board = None
614
+ if board_value and "Luckfox Pico Max" in board_value :
615
+ board = boards .LUCKFOX_PICO_MAX
616
+ return board
617
+
608
618
def _rock_pi_id (self ) -> Optional [str ]:
609
619
"""Check what type of Rock Pi board."""
610
620
board_value = self .detector .get_device_model ()
@@ -984,6 +994,11 @@ def any_olimex_lime2_board(self):
984
994
def any_repka_board (self ):
985
995
"""Check whether the current board is any Repka device."""
986
996
return self .id in boards ._REPKA_PI_IDS
997
+
998
+ @property
999
+ def any_luckfox_pico_board (self ):
1000
+ """Check whether the current board is any Luckfox Pico device."""
1001
+ return self .id in boards ._LUCKFOX_IDS
987
1002
988
1003
@property
989
1004
def os_environ_board (self ) -> bool :
@@ -1050,6 +1065,7 @@ def lazily_generate_conditions():
1050
1065
yield self .any_olimex_lime2_board
1051
1066
yield self .any_repka_board
1052
1067
yield self .any_milkv_board
1068
+ yield self .any_luckfox_pico_board
1053
1069
1054
1070
return any (condition for condition in lazily_generate_conditions ())
1055
1071
0 commit comments