【OpenBMC】直接加载应用到QEMU
1、修改指定文件
vi workspace/sources/phosphor-state-manager/bmc_state_manager_main.cpp
2、编译修改的仓库
bitbake phosphor-state-manager
编译后的二进制文件:./workspace/sources/phosphor-state-manager/oe-workdir/package/usr/bin/phosphor-bmc-state-manager
3、创建一个安全文件系统
mkdir -p /tmp/persist/usr
mkdir -p /tmp/persist/work/usr
mount -t overlay -o lowerdir=/usr,upperdir=/tmp/persist/usr,workdir=/tmp/persist/work/usr overlay /usr
4、将编译好的文件传输到指定目录下
scp -P 2222 ./workspace/sources/phosphor-state-manager/oe-workdir/package/usr/bin/phosphor-bmc-state-manager root@127.0.0.1:/usr/bin/