Talk about dragon lizard hardware compatibility sig

Time:2022-5-6

Editor’s note: what does dragon lizard community hardware compatibility sig mainly do? How compatible are the hardware devices with each distribution of the dragon lizard operating system? How to evaluate? Let’s talk about the hardware compatibility. This article is compiled from the 12th live broadcast of dragon lizard lecture hall technology. Wu Chaofeng, a core member of the hardware compatibility sig of dragon lizard community and an Alibaba cloud test and development expert, shared “how to test the compatibility between hardware devices and dragon lizard operating system?”. Welcome small partners interested in hardware compatibility verification to join the group (nail group No.: 41484363).

Talk about dragon lizard hardware compatibility sig
Hardware ecology is an important cornerstone of an operating system. However, there are many kinds of hardware devices on the market. For personal computers (if the partners are hardware enthusiasts or have saved computer hosts in Zhongguancun), we must know that there are countless manufacturers of mainboards, memory, graphics cards, etc., especially various USB peripherals, such as mouse, keyboard, etc.

The same is true for server types. There are a variety of server types and board peripherals. How compatible are these hardware devices with each release of the dragon lizard operating system? How to evaluate? How do potential users of Anolis OS query the compatibility of their hardware devices with a version of Anolis OS? How can new hardware devices released by IHVs and hardware device integrators ensure compatibility with different versions of dragon lizard operating system?

Today, I’d like to talk with you about the main work of the hardware compatibility sig group of dragon lizard community, including the hardware compatibility list of dragon lizard community, the hardware compatibility application process and the hardware compatibility test suite ancert. Partners can learn about the process of hardware compatibility application, verification and release in dragon lizard community and the basic usage of hardware compatibility test suite ancert.

What does hardware compatibility sig do?

Here is a brief introduction to the dragon lizard community hardware compatibility sig group. Hardware compatibility sig is one of the first sigs established by dragon lizard community. Its main work is to test the compatibility verification between the complete server and different board peripherals of various hardware manufacturers or system integrators and dragon lizard operating system under various architectures such as x86, arm and loongarch, and promote the adaptation of the distribution version of dragon lizard community on various new hardware devices.

Hardware compatibility sig aims to promote the cooperation between dragon lizard community and various hardware manufacturers, and establish and improve hardware ecology around dragon lizard operating system. The main activities of SIG include:

  • Release and continuously update the hardware compatibility list of dragon lizard operating system.
  • Build, release and maintain the dragon lizard operating system hardware compatibility test suite ancert.
  • Build the hardware compatibility process system of dragon lizard community, including verification standard, application process, hardware test, result verification, list release and other processes.

How to publish hardware information to the hardware compatibility list?

At present, dragon lizard community has established a complete hardware compatibility test application process. If individuals or manufacturers want to publish their hardware devices to dragon lizard hardware compatibility list, they can submit hardware information to dragon lizard community in the following eight steps:

1. Register your account and log in to the official website of dragon lizard community

2. Submit the test application on the hardware compatibility page

3. Prepare the hardware equipment to be tested and install the corresponding Anolis OS version as required

4. Download and install the hardware compatibility test suite ancert

5. Test the hardware equipment to be tested

6. Upload the log results to the community application record and wait for the community to review

7. Dragon lizard community hardware compatibility sig members review the test results

8. After passing the audit, release the hardware information to the hardware compatibility list
Talk about dragon lizard hardware compatibility sig
(Figure / release hardware compatibility information flow chart)

What is the hardware compatibility list?

Dragon Dragon community has released the hardware compatibility list (see the end of the article for the link address). At present, it has covered hundreds of records of complete machine and board equipment. The covered models include servers, workstations, all-in-one computers, notebooks, desktops, etc. the covered architecture includes x86, arm and loongarch, which has basically covered the mainstream hardware manufacturers of complete machine or board equipment at home and abroad.

At the same time, the hardware compatibility list provides a convenient query function. Partners can easily and quickly query whether their models or hardware devices have passed the hardware compatibility verification of dragon lizard operating system on the hardware compatibility list home page.

Talk about dragon lizard hardware compatibility sig
(Figure / board hardware compatibility list)

Talk about dragon lizard hardware compatibility sig
(Figure / complete machine hardware compatibility list)

The entries in the hardware compatibility list record important information such as device name, device manufacturer name, operating system version and kernel version. Manufacturers or partners who need to purchase new hardware equipment can query the hardware compatibility list in advance to obtain the hardware compatibility between relevant equipment and a version of dragon lizard operating system.

How to verify the compatibility between the hardware device and the dragon lizard operating system?

So how to verify the compatibility between related hardware devices and dragon lizard operating system? We designed and developed a hardware compatibility test suite – ancert. Hardware manufacturers or partners only need to download and install this tool and run relevant tests to verify the hardware compatibility between their hardware and dragon lizard operating system, and can publish hardware device information to the hardware compatibility list of dragon lizard community.
Let’s briefly introduce the architecture, usage and some precautions of ancert.

Ancert architecture

Talk about dragon lizard hardware compatibility sig
Ancert is generally divided into three parts:
1. Hardware detection part: it mainly constructs the equipment tree, detects, identifies and classifies the hardware equipment of the whole machine.
2. Test case part: including test cases of relevant hardware equipment and metadata of test cases.
3. Test scheduling: test case execution, concurrent execution and log collection.

At present, ancert has supported CPU, memory, network, storage, FC, nvme and other hardware compatibility tests, and subsequent support for new hardware types is under development.

Build test environment

Prepare the test environment as needed according to the hardware category. The hardware compatibility tester has two modes:

  1. SUT (server under test): the machine under test, including the hardware equipment to be verified.
  2. LTS (local test server): it is a test auxiliary machine, which is mainly used for auxiliary testing of network hardware equipment scenarios.
    Hardware compatibility test is divided into complete machine test and board test. The test category can be specified through ancert -g [category]. The whole machine test includes CPU, memory, storage and network card test.

In case of network test or whole machine test, two testing machines equipped with dragon lizard operating system need to be prepared before the test: SUT and lts. The connection mode supports one to many. For network equipment or whole machine testing, it is recommended to test in the network environment of DHCP IP.

Talk about dragon lizard hardware compatibility sig
(Figure / basic usage of ancert)

After installing ancert on SUT, you can query whether the tested hardware device has been correctly recognized by the dragon lizard operating system through the ancert command. The command is ancert — list_ Hardware all can list all hardware devices on SUT.

Talk about dragon lizard hardware compatibility sig
[-] in the figure means the equipment selected by default for the whole machine test, [1] is the serial number of the optional equipment. You can select the relevant equipment for test through the — index [index] option, [*] indicates that it is not available for the current test. For example, the network card is not plugged in in the network equipment test, or there is no free disk under the tested storage controller in the storage equipment test.

Similarly, — List_ Hardware [category] can list all hardware devices under the current category. If the relevant equipment is not correctly displayed or driven, there may be a problem with the compatibility of the equipment. At this time, you need to send a bug to the dragon lizard community or seek support in the dragon lizard hardware compatibility sig group (nail search Group No. 41484363).

Ancert – G [category] can perform relevant tests. For example, the following figure tests the hardware compatibility of mellanox CX4 network card:
Talk about dragon lizard hardware compatibility sig
If all the test cases pass, the test results tar package can be submitted to the dragon lizard community step by step. After the hardware compatibility sig group members of the dragon lizard community pass the verification, the hardware information can be published on the hardware compatibility list.

Here is just a brief introduction to the usage and precautions of ancert. Please read the user manual of ancert (see the end of the article for the link address).

Ancert open source

Ancert has opened source on gitee. We welcome partners to contribute. For interested partners, please refer to the ancert developer manual (see the end of the article for the link address).

Welcome to hardware compatibility sig

That’s all for the above work related to the hardware compatibility sig of dragon lizard community. For more details about hardware compatibility SIG, please go to the dragon lizard official website. If you encounter any problems during the hardware compatibility test or want to know more about the hardware compatibility of dragon lizard, you can join the group to communicate. Welcome those interested in hardware compatibility verification to join dragon lizard hardware compatibility sig to discuss and grow together.

Relevant address

【1】 Ancert open source address:
https://gitee.com/anolis/ancert

【2】 Hardware compatibility list address:
https://eco.openanolis.cn/#/c…

【3】 Ancert user manual link:
https://openanolis.cn/sig/HCT…

【4】 Ancert developer manual link:
https://openanolis.cn/sig/HCT…

——Finish——

https://openanolis.cn