当前位置:   article > 正文

openbmc开发-1 初识openbmc_openbmc github

openbmc github

1.openbmc 资料

        官网:Openembedded.org

        代码:OpenBMC · GitHub

        文档:https://github.com/openbmc/docs

        Jenkins:Dashboard [Jenkins]

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 运行镜像

  1. cd openbmc/build/romulus/tmp/deploy/images/romulus
  2. wget https://jenkins.openbmc.org/job/latest-qemu-x86/lastSuccessfulBuild/artifact/qemu/build/qemu-system-arm
  3. chmod u+x qemu-system-arm
  4. ./qemu-system-arm -m 256 -M romulus-bmc -nographic \
  5. -drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd \
  6. -net nic \
  7. -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

      缺少库,需要安装。 

  1. sudo apt install libfdt1
  2. 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.重新编译

  1. bitbake obmc-phosphor-image -c clean
  2. bitbake obmc-phosphor-image

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/405459
推荐阅读
相关标签
  

闽ICP备14008679号