Added support to SeeedStudio Odyssey X86J5105

This commit is contained in:
ecarozzo 2022-11-26 10:28:41 +01:00
parent b6f715e207
commit 024f0cf46c
5 changed files with 17 additions and 1 deletions

View file

@ -153,6 +153,8 @@ class Board:
board_id = self._rock_pi_id() or self._armbian_id()
elif chip_id == chips.ATOM_X5_Z8350:
board_id = self._rock_pi_id()
elif chip_id == chips.ATOM_J4105:
board_id = self._odyssey_id()
elif chip_id == chips.RK3288:
board_id = self._asus_tinker_board_id()
elif chip_id == chips.RK3328:
@ -529,6 +531,11 @@ class Board:
return None
def _odyssey_id(self) -> Optional[str]:
"""Try to detect the id of Seeed board."""
board = boards.ODYSSEY_X86J4105
return board
def _asus_tinker_board_id(self) -> Optional[str]:
"""Check what type of Tinker Board."""
board_value = self.detector.get_device_model()

View file

@ -290,6 +290,8 @@ class Chip:
linux_id = chips.PENTIUM_N3710
elif "X5-Z8350" in model_name:
linux_id = chips.ATOM_X5_Z8350
elif "J4105" in model_name:
linux_id = chips.ATOM_J4105
else:
linux_id = chips.GENERIC_X86
## print("linux_id = ", linux_id)

View file

@ -172,6 +172,9 @@ ROCK_PI_5 = "ROCK_PI_5"
GREATFET_ONE = "GREATFET_ONE"
#SeeedStudio boards
ODYSSEY_X86J4105 = "ODYSSEY_X86J4105"
# Udoo boards
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
@ -538,6 +541,9 @@ _ROCK_PI_IDS = (ROCK_PI_S, ROCK_PI_4, ROCK_PI_X, ROCK_PI_E, RADXA_ZERO, ROCK_PI_
# UDOO
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
#SeeedStudio boards
_SEEED_BOARD_IDS = (ODYSSEY_X86J4105)
# MaaXBoard boards
_MAAXBOARD_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")

View file

@ -68,6 +68,6 @@ MT8167 = "MT8167"
ATOM_X5_Z8350 = "X5-Z8350"
RP2040_U2IF = "RP2040_U2IF"
D1_RISCV = "D1_RISCV"
ATOM_J4105 = "ATOM_J4105"
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2835", "BCM2837"}

View file

@ -53,6 +53,7 @@ print("Is this a Clockwork Pi board?", detector.board.any_clockwork_pi_board)
print("Is this an embedded Linux system?", detector.board.any_embedded_linux)
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
print("Is this a UDOO Bolt?", detector.board.UDOO_BOLT)
print("Is this a ODYSSEY X86YJ4105?", detector.board.ODYSSEY_X86J4105)
print("Is this an ASUS Tinker Board?", detector.board.ASUS_TINKER_BOARD)
print("Is this an STM32MP1 Board?", detector.board.any_stm32mp1)
print(