changed starfive board detection function
This commit is contained in:
parent
998e553144
commit
f59895faf3
1 changed files with 6 additions and 4 deletions
|
|
@ -64,7 +64,6 @@ class Board:
|
||||||
if chip_id == chips.H3:
|
if chip_id == chips.H3:
|
||||||
board_id = self._armbian_id() or self._allwinner_variants_id()
|
board_id = self._armbian_id() or self._allwinner_variants_id()
|
||||||
elif chip_id == chips.JH7110:
|
elif chip_id == chips.JH7110:
|
||||||
print('aaaaaa')
|
|
||||||
board_id = self._starfive_id()
|
board_id = self._starfive_id()
|
||||||
elif chip_id == chips.BCM2XXX:
|
elif chip_id == chips.BCM2XXX:
|
||||||
board_id = self._pi_id()
|
board_id = self._pi_id()
|
||||||
|
|
@ -232,10 +231,13 @@ class Board:
|
||||||
def _starfive_id(self) -> Optional[str]:
|
def _starfive_id(self) -> Optional[str]:
|
||||||
model = None
|
model = None
|
||||||
board_value = self.detector.get_device_compatible()
|
board_value = self.detector.get_device_compatible()
|
||||||
if board_value == "starfive,visionfive-v2starfive,jh7110":
|
if board_value == 'starfive,visionfive-v2starfive,jh7110':
|
||||||
|
print('it is')
|
||||||
model = boards.VISIONFIVE2
|
model = boards.VISIONFIVE2
|
||||||
print(model)
|
else:
|
||||||
print(board_value)
|
print(board_value)
|
||||||
|
print('is not')
|
||||||
|
print('starfive,visionfive-v2starfive,jh7110')
|
||||||
return model
|
return model
|
||||||
def _pi_id(self) -> Optional[str]:
|
def _pi_id(self) -> Optional[str]:
|
||||||
"""Try to detect id of a Raspberry Pi."""
|
"""Try to detect id of a Raspberry Pi."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue