On 5/4/22 18:34, Peter Delevoryas wrote:
On May 4, 2022, at 12:39 AM, Cédric Le Goater <c...@kaod.org> wrote:
On 5/4/22 00:59, Peter Delevoryas wrote:
Add the 'fby35-bmc' machine type based on the kernel DTS[1] and userspace
i2c setup scripts[2]. Undefined values are inherited from the AST2600-EVB.
Reference images can be found in Facebook OpenBMC Github Release assets
as "fby35.mtd". [3]
You can boot the reference images as follows (fby35 uses dual-flash):
qemu-system-arm -machine fby35-bmc \
-drive file=fby35.mtd,format=raw,if=mtd \
-drive file=fby35.mtd,format=raw,if=mtd \
-nographic
[1]
https://github.com/facebook/openbmc-linux/blob/412d5053258007117e94b1e36015aefc1301474b/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts
[2]
https://github.com/facebook/openbmc/blob/e2294ff5d31dd65c248fe396a385286d6d5c463d/meta-facebook/meta-fby35/recipes-fby35/plat-utils/files/setup-dev.sh
[3] https://github.com/facebook/openbmc/releases
Signed-off-by: Peter Delevoryas <p...@fb.com>
Reviewed-by: Cédric Le Goater <c...@kaod.org>
Thanks!
Could you please send a v2 with an update of the documentation ?
or a follow up ? no need to resend the first patch unless you
want to change something. A one-liner in :
https://qemu.readthedocs.io/en/latest/system/arm/aspeed.html
[ ... ]
As a matter of fact yes! I tested booting our OpenBIC Zephyr kernel last week
with the 1030, that worked. I also used the experimental i2c multi-master
patches from Klaus to make a i2c-netdev device that connects two separate QEMU
instances through a socket and sends their i2c messages back and forth. I was
able to test a basic MCTP transaction.
Nice ! And do you need anything special from the I2C Aspeed models ?
Apart from :
https://patchwork.ozlabs.org/project/qemu-devel/list/?series=292928
I’m hoping to help however possible with merging Klaus’s changes,
They don't need much work. Klaus doesn't have the datasheet, so we
should help him with the changes requiring some internal knowledge.
and then propose the i2c-netdev thing too.
I was going to ask since I didn't see any models for such devices.
I hope to do something similar with the usb-net device but it needs
fixes first.
Thanks,
C.