Repository navigation
【BUG】cpu型号无法显示 #1685
Description
Activity
Issue triage
Feasibility:needs-clarification | Risk:low
Related code:
srvboxm_v82.sh
Information needed to reproduce:
- Which ARM device/model and operating system exhibit the issue?
- What output do
/proc/cpuinfoandlscpuproduce on the affected machine? - What CPU model does the script display, if any, and what result is expected?
- Does the issue occur when
lscpuis installed, or should the fallback also work when it is unavailable?
Suggested labels(not applied automatically):bug, ARM, CPU detection
异构cpu型号例如 4+2 ,监控卡片只会显示ARMv8 Processor rev 4 (v8l),而不是 ARMv8 Processor rev 6 (v8l)
Thanks for the report. The plan is to read the core type from
CPU implementer/CPU partin/proc/cpuinfo(the same tablelscpuuses), so it works withoutlscpuinstalled and names each core type of a big.LITTLE CPU, e.g.2× Cortex-A76 + 4× Cortex-A55.To check the table against your machines, could you post the output of these on both of them (FnOS and OES-FT-162)?
grep -E '^(processor|model name|CPU implementer|CPU architecture|CPU variant|CPU part|CPU revision|Hardware)' /proc/cpuinfo lscpuAnd what is the CPU / board of each (e.g. Phytium FT-2000/4, RK3588)?
感谢反馈。计划改为从
/proc/cpuinfo的CPU implementer/CPU part识别核心型号(与lscpu使用同一张表),这样不依赖lscpu,异构 CPU 也会分别显示,例如2× Cortex-A76 + 4× Cortex-A55。为了核对型号表,麻烦在两台机器(FnOS 和 OES-FT-162)上分别执行上面两条命令并贴出结果,另外说明一下各自的 CPU / 主板型号(例如 飞腾 FT-2000/4、RK3588)。


描述 Bug
连接脚本srvboxm_v82.sh,读取cpu参数使用 /proc/cpuinfo,有的ARM机器 cpu型号没有model name,导致无法识别,请添加备用方案,例如lscpu 来辅助识别