Open
新增ko,需自动加载 #25
gongztAdd on  May 20
gongztCollaborators
May 20 Create

一、ko的加载按照如下要求修改:
1、src/ub_manage/scripts/ub-pkg-common.sh
COMMON_MODULES=[
"ubfi"
"ubus"
"ummu-core"
"ummu"
"ummu-pmu"
"hisi_ubus"
"odf"
"cis"
"ub_fwctl"
"ubase"
"cdma"
"ubdevshm"
]

2、src/ub_manage/scripts/02-ub-pkg-mem.sh
MEM_MODULES=[
"obmm"
"sentry_remote_reporter"
"sentry_reporter"
]
3、src/ub_manage/scripts/01-ub-pkg-urma.sh
URMA_MODULES=[
"ubcore"
"uburma"
"ubagg"
"ipourma"
"udma"
"unic"
"ubl"
]
4、src/ub_manage/scripts/03-ub-pkg-virt.sh
VIRT_MODULES=[
"vfio-ub"
"ubmem_vmmu"
"ubmempfd"
]

5、每个包先加载COMMON_MODULES,然后加载自己的XXX_MODULES
二、所有ko加载原则:
考虑到在不同的系统上,不一定编译全量的ko或者某些ko被编译进内核,因此:
1、所有的ko加载如果找不到,则日志WARN提示找不到,不要退出,继续执行。服务不失败。
2、所有的ko加载如果失败(例如未定义或者版本不匹配),则日志ERROR,服务启动失败。

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 20 Added label: sig/sig-UnifiedBus
openeuler-ci-bot
openeuler-ci-botCollaborators
May 20 Comments:

Welcome To openEuler Community

Hey @gongzt , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-UnifiedBus ,
and any of the maintainers: @hanjunguo, @jerry_lilijun, @liliang_euler, @linyunsheng, @will_niutao ,
and any of the committers: @lostway1, @will_niutao, @zhao-lichang .

likedislike