On 9/3/21 9:41 PM, Cédric Le Goater wrote: > From: Peter Delevoryas <p...@fb.com> > > This adds a new machine type "fuji-bmc" based on the following device tree: > > https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts > > Most of the i2c devices are not there, they're added here: > > https://github.com/facebook/openbmc/blob/helium/meta-facebook/meta-fuji/recipes-utils/openbmc-utils/files/setup_i2c.sh > > I tested this by building a Fuji image from Facebook's OpenBMC repo, > booting, and ssh'ing from host-to-guest. > > git clone https://github.com/facebook/openbmc > cd openbmc > ./sync_yocto.sh > source openbmc-init-build-env fuji build-fuji > bitbake fuji-image > dd if=/dev/zero of=/tmp/fuji.mtd bs=1M count=128 > dd if=./tmp/deploy/images/fuji/flash-fuji of=/tmp/fuji.mtd \ > bs=1k conv=notrunc > > git clone --branch aspeed-next https://github.com/peterdelevoryas/qemu
I made a comment on this line: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg01064.html > cd qemu > ./configure --target-list=arm-softmmu --disable-vnc > make -j $(nproc) > ./build/arm-softmmu/qemu-system-arm \ > -machine fuji-bmc \ > -drive file=/tmp/fuji.mtd,format=raw,if=mtd \ > -serial stdio \ > -nic user,hostfwd=::2222-:22 > sshpass -p 0penBmc ssh root@localhost -p 2222 > > Signed-off-by: Peter Delevoryas <p...@fb.com> > Reviewed-by: Cédric Le Goater <c...@kaod.org> > [ clg: checkpatch fixes ] > Message-Id: <20210903082027.704397-2-p...@fb.com> > Signed-off-by: Cédric Le Goater <c...@kaod.org> > --- > hw/arm/aspeed.c | 116 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 116 insertions(+)