赞
踩
1.openbmc 资料
文档:https://github.com/openbmc/docs
2.openbmc 开发环境
参考如下:
https://github.com/openbmc/docs/blob/master/development/dev-environment.md
https://github.com/openbmc/openbmc/blob/master/README.md
PS:建议ubuntu20.04及以上。实测18.04有的库安装失败,20.04 22.04顺利安装成功。
3.openbmc 编译镜像
. setup romulus
bitbake obmc-phosphor-image
4.openbmc 运行镜像
- cd openbmc/build/romulus/tmp/deploy/images/romulus
-
- wget https://jenkins.openbmc.org/job/latest-qemu-x86/lastSuccessfulBuild/artifact/qemu/build/qemu-system-arm
-
- chmod u+x qemu-system-arm
-
- ./qemu-system-arm -m 256 -M romulus-bmc -nographic \
- -drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd \
- -net nic \
- -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=udp:127.0.0.1:2623-:623,hostname=qemu
缺少库,需要安装。
- sudo apt install libfdt1
- sudo apt install libslirp0
usr/pwd:root/0penBmc
退出:ctrl+a 再 x
浏览器:https://127.0.0.1:2443
ssh:
ssh -p 2222 root@127.0.0.1
PS:浏览器打开失败,添加webui-vue
1.修改openbmc/build/romulus/conf/local.conf
CORE_IMAGE_EXTRA_INSTALL += "webui-vue"
2.新建openbmc/meta-phosphor/recipes-phosphor/image/obmc-phosphor-image.bbappend
OBMC_IMAGE_EXTRA_INSTALL_${MACHINE} += "webui-vue"
3.新建openbmc/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
RDEPENDS_${PN}-inventory_${MACHINE} += "webui-vue"
4.重新编译
- bitbake obmc-phosphor-image -c clean
- bitbake obmc-phosphor-image
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。