> On Sep 3, 2021, at 8:30 AM, Philippe Mathieu-Daudé <[email protected]> wrote:
> 
> On 9/3/21 10:20 AM, [email protected] wrote:
>> From: Peter Delevoryas <[email protected]>
>> 
>> 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
> 
> Please don't bury this in the mainstream repository, since the
> commit description might be read and tested during years.

Oh, sorry about that, yeah I’m happy to remove this from the commit description 
(or maybe Cedric could remove it?). Do you mean the whole testing section 
(cloning OpenBMC/etc), or just the link to my repo branch? Either way, feel 
free to remove it, or change it to whatever subset makes sense.

> 
>> 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 <[email protected]>
>> ---
>> hw/arm/aspeed.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 112 insertions(+)

Reply via email to