当前位置:网站首页>[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB
[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB
2022-07-27 20:04:00 【AiFool】
1. install openbmc Adapted to qume
Download and Start QEMU Session
- Download the latest QEMU Applied openbmc/qemu fork
wget https://jenkins.openbmc.org/job/latest-qemu-x86/lastSuccessfulBuild/artifact/qemu/build/qemu-system-arm
chmod u+x qemu-system-arm
- download Romulus Mirror image .
wget https://jenkins.openbmc.org/job/latest-master/label=docker-builder,target=romulus/lastSuccessfulBuild/artifact/openbmc/build/tmp/deploy/images/romulus/obmc-phosphor-image-romulus.static.mtd
- Use the downloaded Romulus The image starts QEMU
** notes ** - To make REST、SSH and IPMI Work to your QEMU In the session , You must connect some host ports to QEMU In conversation REST、SSH and IPMI port . In this case , It only uses 2222、2443、2623. You can use whatever you like .
./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
notes - By default ,Jenkins and openbmc-test-automation Separate use SSH and HTTPS port 22 and 443. about IPMI port 623 By using . Use a user-defined port 2222 Of SSH The connection may not succeed . To use SSH port 22、HTTPS port 443 and IPMI port 623:
./qemu-system-arm -m 256 -machine romulus-bmc -nographic \
-drive file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd \
-net nic \
-net user,hostfwd=:127.0.0.1:22-:22,hostfwd=:127.0.0.1:443-:443,hostfwd=tcp:127.0.0.1:80-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:127.0.0.1:623-:623,hostfwd=udp:127.0.0.1:664-:664,hostname=qemu
- Waiting is based on QEMU Of BMC start-up
Use default root/0penBmc Log in ( Be careful 0 It's zero ).
- Check system status
You will see a lot of service startup in the console , You can start running obmcutil Tools to check OpenBMC The state of the state service . When you see the following , You have successfully started to “ be ready ” state .
[email protected]:~# obmcutil state
CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off
Note To exit ( And terminate ) Your QEMU conversation , Please run :ctrl+a x
2. start-up bmc
Use openbmc Official image start
If the image is not compiled , You can try it first openbmc Official lastsuccessbuild Image test , Go ahead and download :https://jenkins.openbmc.org/job/latest-master/lastSuccessfulBuild/label=docker-builder,target=romulus/

Start command :
./qemu-system-arm -m 256 -M romulus-bmc -nographic -drive file=/home/test/Documents/openbmc_ws/obmc-phosphor-image-romulus-20211214025233.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
Start with your own compiled image
I compiled it from the previous steps here ast2600-evb
./qemu-system-arm -m 1024 -M ast2600-evb -nographic -drive file=/home/test/Documents/openbmc_ws/openbmc/build/evb-ast2600/tmp/deploy/images/evb-ast2600/obmc-phosphor-image-evb-ast2600.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
3. Use bmc web
3.1 You can see that the startup method in the previous step is started by using the port mapping method , If you use the official image , Input :https://127.0.0.1:2443/

3.2 If you use ast2600-evb, By default redfish:

3.3 If you use ast2600-evb, Enable bmc web Steps for :
phosphor-webui Software package compilation depends on AngularJS Maintenance has been stopped , So here we use webui-vue:
modify ~/openbmc/build/evb-ast2600/conf/local.conf, add to :
CORE_IMAGE_EXTRA_INSTALL += "webui-vue"
New file ~/openbmc/meta-phosphor/recipes-phosphor/image/obmc-phosphor-image.bbappend, Write configuration :
OBMC_IMAGE_EXTRA_INSTALL_${MACHINE} += "webui-vue"
New file ~/openbmc/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend, Write configuration :
RDEPENDS_${PN}-inventory_${MACHINE} += "webui-vue"
Then recompile and start :
bitbake obmc-phosphor-image -c clean
bitbake obmc-phosphor-image

4. Use ssh Connect bmc
SSH port 22、HTTPS port 443 and IPMI port 623
ssh -p 2222 [email protected]

边栏推荐
- Oracle XE版安装与用户操作
- ECU的软硬件架构
- Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
- Online Judge 输出超限
- 化工巨头巴斯夫&Pasqal:利用量子神经网络优化天气预报
- File operation protection
- 电容串联与并联以及电容串联与平衡电阻
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
- China business CDP white paper | love Analysis Report
- ViewUI 中 DatePicker 日期选择器在 IE11 浏览器中兼容解决方案
猜你喜欢

GridView (implement table display icon)

Datepicker and TimePicker

Rodin 安装 SMT Solvers 插件

Detailed introduction to common coordinate system of cesium

Oracle +JDBC

1.2、基于增量式生成遮挡与对抗抑制的行人再识别(代码理解与实验进度+报告)

Gestureoverlayview (gesture recognition 2)

Hyperledger caliper is built on fabric for performance test

Cesium常用坐标系详细介绍

顶级“黑客”能厉害到什么地步?无信号也能上网,专家:高端操作!
随机推荐
VALN 11.9
PKI/TLS 工具之CFSSL —— 筑梦之路
Container summary
Built in module 10.18
【IoT】卫朋:6000+ 字解读 | 2022年产品人必备的7个产品管理工具(1.0版)
归一化(Normalization)和标准化(Standardization)
C171:考勤系统
uva1421
C# 后台GC 的前因后果
Intent (whether there is return value to jump)
No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
Function summary
Introduction to basic cesium controls
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
C#网络应用编程,实验2:IP地址转换和域名解析练习
容器总结
统一建模语言 (UML) 规范
AcWing 692. G巴士计数 差分+前缀和
Software configuration | tigervnc download, installation and configuration
ContextMenu (context menu)