基于meta-romulus 创建layer,配置dts和yaml config之后,FRU device 服务没起来
DTS 配置如下:
&i2c3 {
status = "okay";
eeprom@50 {
compatible = "atmel,24c64";
reg = <0x50>;
};
};
Modify the yaml file to add my fru configuration
Yaml config如下:
1:
/xyz/openbmc_project/FruDevice/XX0123456789ABEVT001:
entityID: 3
entityInstance: 1
interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruProperty: Mfg Date
IPMIFruSection: Board
Manufacturer:
IPMIFruProperty: Manufacturer
IPMIFruSection: Board
PartNumber:
IPMIFruProperty: Part Number
IPMIFruSection: Board
SerialNumber:
IPMIFruProperty: Serial Number
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruProperty: Custom Field 2
IPMIFruSection: Board
IPMIFruValueDelimiter: 58
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruProperty: Name
IPMIFruSection: Board
启动BMC
FRU Device service 没起来
root@sky:/etc/systemd/system/multi-user.target.wants# systemctl status nbmc_project.FruDevice.service
* xyz.openbmc_project.FruDevice.service - Fru Device
Loaded: loaded (/lib/systemd/system/xyz.openbmc_project.FruDevice.service; disabled; vendor preset: disabled)
Active: inactive (dead)
root@sky:
检查编译目录,发现preset里配置服务被disable
work/sky-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/rootfs/lib/systemd/system-preset/98-fru-device.preset:1:disable xyz.openbmc_project.FruDevice.service
请问是哪里配置不正确吗?原本romulus的代码修改完dts可以正常启动FRU Device服务,感觉像是新建的layer哪里没配置对。
OpenBMC Information:
root@sky:/etc/systemd/system/multi-user.target.wants# cat /etc/os-release
ID=openbmc-romulus
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="2.9.0-0"
VERSION_ID=2.9.0-0-g835472cca-dirty
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 2.9.0-0"
BUILD_ID="2.9.0"
OPENBMC_TARGET_MACHINE="sky"
root@sky:/etc/systemd/system/multi-user.target.wants# uname -a
Linux sky 5.8.17 #1 Mon Dec 6 09:41:35 UTC 2021 armv6l GNU/Linux
root@sky:/etc/systemd/system/multi-user.target.wants#