问题描述
由于Retimer升级需要独占I2C总线,所以需要将Retimer升级放到plugin插件里面升级,但是因为插件里面超时时间大于10分钟,就会退出,导致Retimer无法完成升级和校验;
如果Timeout设置为30分钟,也不能生效;
-- 设置超时时间为1800秒(30分钟),避免升级过程中超时,但是闭源代码会修改为10分钟
local ctx = context.new()
ctx.Timeout = UPGRADE_TIMEOUT
local call_ok, packed_result = pcall(function()
return retimer.retimer_obj.RefChip:PluginRequest(ctx, 'general_hardware', 'retimer_upgrade',
skynet.packstring(file))
end)
环境信息
-
操作系统:[如 Ubuntu 24.04]
-
软件版本:[如 OpenUBMC2509]
-
硬件配置:[如 CPU、内存等]
期望结果
ctx.Timeout 插件默认超时时间设置为2个小时,满足Retimer升级和校验时间