OpenBMC版本
2.6.0
Qemu版本
3.1.0
设置环境变量
export TEMPLATECONF=meta-ibm/meta-palmetto/conf
. openbmc-env
编译固件
bitbake obmc-phosphor-image
qemu-system-arm目录
/home/openbmc/qemu-3.1.0/arm-softmmu/qemu-system-arm
qemu启动镜像命令
/home/openbmc/qemu-3.1.0/arm-softmmu/qemu-system-arm -m 256 -M palmetto-bmc -nographic -drive file=/home/openbmc/openbmc/build/tmp/deploy/images/palmetto/obmc-phosphor-image-palmetto-20180621070857.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostname=qemu
账户
用户名:root
密码:0penBmc
退出虚拟机
killall qemu-system-arm
清除包的缓存,编译固件必须的操作
bitbake -c cleansstate "${PACKAGE}"
将PACKAGE源码解压,之后可做修改
devtool modify "${PACKAGE}"
安装openbmc webui
npm install --no-optional
npm run-script server
登录
curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }"
查看模块
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/list
Chassis
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/Chassis/
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/Chassis/Buttons/
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/Chassis/Buttons/Power0
certs
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/certs/authority/ldap
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/certs/client
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/certs/client/ldap
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/certs/server
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/certs/server/https
control
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/power_supply_edundancy
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/power_supply_attributes
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/TPMEnable
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/turbo_allowed
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/boot
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/restriction_mode
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/auto_reboot
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/power_restore_policy
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/boot/one_time
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/control/host0/power_cap
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/minimum_ship_level_required
dump
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/dump/internal
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/dump/internal/manager
events
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/events
inventory
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/inventory/system
led
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups/enclosure_identify
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups/enclosure_fault
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups/power_on
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups/bmc_booted
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/groups/lamp_test
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/physical
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/physical/power
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/physical/identify
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/led/physical/heartbeat
logging
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/logging/internal
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/logging/internal/manager
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/logging/config
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/logging/config/remote
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/logging/rest_api_logs
network
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/config
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/config/dhcp
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0/ipv4
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0/ipv4/bcfab34
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0/ipv4/bfc5710e
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0/ipv6
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/eth0/ipv6/ff024971
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/host0
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/host0/intf
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/host0/intf/addr
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/network/snmp
object_mapper
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/object_mapper
sensors
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/sensors/temperature
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/sensors/temperature/cpu
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/sensors/temperature/ambient
software
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software/9b46f88f
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software/9b46f88f/functional
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software/9b46f88f/software_version
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software/active
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/software/functional
state
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/state/host0
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/state/chassis0
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/state/bmc0
time
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/time/owner
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/time/host
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/time/bmc
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/time/sync_method
user
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/user
curl -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/user/root