17 Star 26 Fork 91

openEuler/oec-hardware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
get_board_en.md 1.86 KB
一键复制 编辑 原始数据 按行查看 历史

Card Identification on oec-hardware

Feature Description

oec-hardware identifies the card to be tested and displays the card on the test page. You need to manually select the card to start the test. For a new card, oec-hardware has two identification results. One is that the card can be directly identified, and the other is that the card cannot be identified. If the card cannot be identified, you need to add the card identification method to oec-hardware.

Working Principle

oec-hardware uses the udevadm info --export-db command to query device information and identify cards based on the device information.

Workflow

card_recognition_flow

Identification Principles

The identification methods must be universal. The priorities of the following identification methods are in descending order.

  • Identify a type of cards. For example, identify all cards of this type based on the RAID, Fibre Channel, disk, and gpu fields.
  • Identify most of the cards of a type. For example, identify most of the cards of this type through the driver.
  • If neither of the preceding methods is applicable, the card vendor needs to add the card type field.

Method List

No. Method Module Description
1 get_devices() device Obtains device information.
2 save() document Saves device information to the device.json file.
3 sort_tests() compatibility Identifies device information.
4 get_model() device Obtains device chip and module models.
5 NO_CONFIG_DEVICES constants Specifies cards that do not require configuration information.

Card Configuration Information

No. File Description
1 test_config.yaml Template file of card configuration information.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/openeuler/oec-hardware.git
git@gitee.com:openeuler/oec-hardware.git
openeuler
oec-hardware
oec-hardware
master

搜索帮助