《计算机技术与发展杂志》发表论文赏析

基于国产服务器的国产 Linux 操作系统适配研究

来源:计算机技术与发展杂志2023年第04期北京时间:

作者:付志鹏;冯丹;陈红;张晓梨

单位:鹏城实验室,广东 深圳 518055 Author(s): FU Zhi-peng;FENG Dan;CHEN Hong;ZHANG Xiao-li Pengcheng Laboratory,Shenzhen 518055,China 关键词: 国产;服务器;操作系统;适配;计算平台;计算生态 Keywords: domestication;server;operating system;adaptation;computing platform;computing ecology 分类号: TP311. 54 DOI: 10. 3969 / j. issn. 1673-629X. 2023. 04. 013 摘要: 完成国产操作系统对国产服务器的适配是建设国产计算平台及计算生态的基础。 针对国产 ARM 服务器的适配需求,提出国产 Linux 操作系统在国产 ARM 服务器上的适配方案,从固件适配、处理器适配以及外设适配等方面综合考虑。 针对固件适配中存在直接启动和间接启动两种不同方式,分别设置不同的启动加载内容、加载路径以及启动参数。在处理器适配方面,针对 GPIO 驱动模块适配,通过设置 IO 数据传输实现流程来实现;针对 GIC 中断驱动模块适配,通过建立中断操作和中断源的映射关系来实现;针对内存地址随机化模块适配,采用基地址加上随机数来实现。 在外设适配方面,通过网卡注册、初始化以及数据发送接收设置等一系列步骤来实现网卡适配;通过设置渲染缓冲模块中动态多缓冲区和缓冲区池数量来实现显卡适配;通过改进命令服务层,建立不同外部存储和相应命令之间的识别对应来实现外部存储适配;通过建立系统对 RTC 时钟读写操作流程以及增加时钟漂移系数来实现 RTC 时钟芯片 DS1339 适配。 采用该方案对银河麒麟操作系统在鲲鹏服务器上的适配验证表明,该适配方案能够满足国产 Linux 操作系统在国产 ARM 服务器上的适配需求。 Abstract: Completing the adaptation of domestic operating system to domestic server is the basis for the development?of domesticcomputing platform and computing ecology. For the adaptation to domestic ARM server,we present an adaptation scheme of domesticLinux operating system,comprehensively considering the adaptation of firmware,processor and external devices. As the adapted firmwareincludes the direct startup mode and the indirect startup mode,we present different setting methods for content loading,loading directoryand startup parameters. In terms of processor adaptation, the GPIO driver module is adapted by setting an IO data transmissionimplementation workflow; the GIC interrupt driver module is adapted by establishing a mapping table between interrupts and interruptsources; the memory address randomization module is adapted by combining the base address and a randomized number. For theadaptation of external devices,the network?card is adapted by establishing a workflow of network card registration, initialization, andsettings of sending?and receiving data; the graphics card is adapted by setting the dynamic multiple buffer and the number of buffer poolsin the render buffer module; the storage is adapted by improving a command service layer to establish the corresponding identificationbetween different types of storage and their commands; the DS1339 RTC chip is adapted by setting a read / write workflow for the systemtime and adding a clock drifting quotient. An adaptation test of the Kylin operating system on Kunpeng server shows that this adaptationscheme can meet the adaptation requirements of domestic Linux operating system on domestic ARM server.

摘要:完成国产操作系统对国产服务器的适配是建设国产计算平台及计算生态的基础。 针对国产 ARM 服务器的适配需求,提出国产 Linux 操作系统在国产 ARM 服务器上的适配方案,从固件适配、处理器适配以及外设适配等方面综合考虑。 针对固件适配中存在直接启动和间接启动两种不同方式,分别设置不同的启动加载内容、加载路径以及启动参数。在处理器适配方面,针对 GPIO 驱动模块适配,通过设置 IO 数据传输实现流程来实现;针对 GIC 中断驱动模块适配,通过建立中断操作和中断源的映射关系来实现;针对内存地址随机化模块适配,采用基地址加上随机数来实现。 在外设适配方面,通过网卡注册、初始化以及数据发送接收设置等一系列步骤来实现网卡适配;通过设置渲染缓冲模块中动态多缓冲区和缓冲区池数量来实现显卡适配;通过改进命令服务层,建立不同外部存储和相应命令之间的识别对应来实现外部存储适配;通过建立系统对 RTC 时钟读写操作流程以及增加时钟漂移系数来实现 RTC 时钟芯片 DS1339 适配。 采用该方案对银河麒麟操作系统在鲲鹏服务器上的适配验证表明,该适配方案能够满足国产 Linux 操作系统在国产 ARM 服务器上的适配需求。

关键词:国产;服务器;操作系统;适配;计算平台;计算生态

填文献完整题目 获取完整文献

填写需求
联系方式
注:学术顾问会在1小时内联系您,请留意!