From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:2d51:0:0:0:0:0 with SMTP id t17csp4860485lft; Wed, 6 Jul 2022 09:50:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1shPHfUnOMtY3Obu8KarhIL/NFec4/5rAPLUhYb2/buIVPiI3w7G25FRpLSSVDXOqn7eP6v X-Received: by 2002:a0d:c144:0:b0:31b:d12b:fca4 with SMTP id c65-20020a0dc144000000b0031bd12bfca4mr46442628ywd.366.1657126257023; Wed, 06 Jul 2022 09:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657126257; cv=none; d=google.com; s=arc-20160816; b=z/78oDbnEsqBEk9Uyv2dyOj+AgVh1PvZshFp3/Ctfa4Si2i2Vp3fZ8rIvomvHJxr8U 0VcBf4+7W8PD0CkiHLtUB3kKHxMqgdhhG/DrFrfhct4JRkCXxdjU5zq+D2STpwihrYtc /R6TrajkXriaDGdXeDcvGrggNvFkEtXrGrF8edRmy10gY39KBHQHFf7twbo+dWz3q6Iv qUEAdGviweps1ulQWXYDQkzPoP+XJm6AFW+ggR4Q6ttm22Vk1HsQTpo68IgruNu94nz+ sPS3+5sGLtnRPM6DX8nLZ9JPrLROymKB5Nc+k8jz9ro6YtTO0DMT3rMaNT/zRZbk2fx6 L6Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:dkim-signature:dkim-signature; bh=KKnI6wC28U72N7o9Y37zs4FFtxaW2QBINMqrxwsdfWM=; b=B6tb8tZ2DyS0PEeAUiJzk3wCYFJd6R56Gq+GIJiLCRwfLFz9qTVIgxDBD+OgkoXjC8 C7lejge9wcbNGvlZ9YKeyWP+YEOU5uqn0YWUj5C6uEcHrYpjp8nPUlXy8yE/IOCDwn8T Mc1oFegZmeHBt+RoI97kyuko2WIPrlqkXZxP6ernOoamfMbhkjJu7fkkuKGJgeoZWjMG RH5Tm/KynSYHNZ0EsW9oAMUr3lb0K9Jy/LCmdpUkLae4hjOikVTwZwvARlPjyg+lkTGk YGFRXo6x8XeZhZLJ3Gz3hvhttYYaH0XAlu+mWuIBgW1kumLHy7idZQiVAEUoVXw0jN/l XyRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pjd.dev header.s=fm1 header.b=xhjIbmzS; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=A7NJCsnS; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a7-20020a814d07000000b0031cb402b56csi10308033ywb.342.2022.07.06.09.50.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jul 2022 09:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@pjd.dev header.s=fm1 header.b=xhjIbmzS; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=A7NJCsnS; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:46018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o98Eq-0001Eh-Da for alex.bennee@linaro.org; Wed, 06 Jul 2022 12:50:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o98Ec-0001De-P2; Wed, 06 Jul 2022 12:50:42 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:51547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o98EY-0003v9-R8; Wed, 06 Jul 2022 12:50:41 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id D2F312B059F0; Wed, 6 Jul 2022 12:50:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 06 Jul 2022 12:50:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pjd.dev; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1657126236; x=1657129836; bh=KKnI6wC28U 72N7o9Y37zs4FFtxaW2QBINMqrxwsdfWM=; b=xhjIbmzSEfpNt29tr589h97DGM OW8pvLZs/rGRdJhBZSz9QKdnjelRXjiHVLLQAmPHrhaM7iMSGd791rfPRvCK4RWq F3MNFsbaMWGH/jT7vZC0upYmiJxk0sQBDdY3jHHEgY4wtsuEZDNNMFnQ2mm1o8G4 CwO4nsJHSZSz9QbUwN8SQ6ZXd/7t+FX0Tueo89KKnah2zVnYk7TDFa54gMiSbGDU IsKyeaG+WWqV0lkC7fMT08OONKIL0rBoN0kZ1G6d6OZIq2xT93ZFvYpPk4VF93IL CV4+cGnbBnW+8yWZw+K4isu85u9iUrnDe0ZB4aq0ru4FMIOYnVeqskpgCF4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657126236; x=1657129836; bh=KKnI6wC28U72N7o9Y37zs4FFtxaW 2QBINMqrxwsdfWM=; b=A7NJCsnSq4VhVL2S/84zE+7EtYSqbsoXC4bvrIj7t5iF lauS8tt6GjG9YcwTIrtwDUEpUu66/fsEB2mLZlo7M1IQt7M/wnJKLM36YgS8dJo8 BTt5Hoo5E9SZP3/GuhOtcK1G5KFxp+GQUlQwtYT5YOZn8qJGCPP1VPwlqlvA3EOS u0N3RIfUIrlLyIaQq2WCNXDruOsYef6snBMZ89W6ee4dLvb7RzLG6lBdp2CKxNio w8voJAylUu2RDG7wMyweFQZioVNRYhG4xwFYyg111y8nsA0kGrWk9QBcU+ZVCjtr ZeEYBEtUkMD+SZknry+f/W8tWH+tyGICU/sP+nRGBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeifedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefrvght vghrucffvghlvghvohhrhigrshcuoehpvghtvghrsehpjhgurdguvghvqeenucggtffrrg htthgvrhhnpeefhedvveeifeekieelvddvfeehtdeuueegudeludevveeivdelleetffei gfetheenucffohhmrghinhepohhpvghntghomhhpuhhtvgdrohhrghdpghhithhhuhgsrd gtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep phgvthgvrhesphhjugdruggvvh X-ME-Proxy: Feedback-ID: i9e814621:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Jul 2022 12:50:34 -0400 (EDT) Date: Wed, 6 Jul 2022 09:50:33 -0700 From: Peter Delevoryas To: Joel Stanley Cc: =?iso-8859-1?Q?C=E9dric?= Le Goater , Peter Maydell , Andrew Jeffery , qemu-arm , QEMU Developers Subject: Re: [PATCH v2 9/9] docs: aspeed: Add fby35 multi-SoC machine section Message-ID: References: <20220705191400.41632-1-peter@pjd.dev> <20220705191400.41632-10-peter@pjd.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=64.147.123.27; envelope-from=peter@pjd.dev; helo=wnew2-smtp.messagingengine.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_FMBLA_NEWDOM14=0.998, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: F5UDW+qje7lk On Wed, Jul 06, 2022 at 08:21:12AM +0000, Joel Stanley wrote: > On Tue, 5 Jul 2022 at 19:14, Peter Delevoryas wrote: > > > > Signed-off-by: Peter Delevoryas > > Reviewed-by: Joel Stanley > > > --- > > docs/system/arm/aspeed.rst | 48 ++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 48 insertions(+) > > > > diff --git a/docs/system/arm/aspeed.rst b/docs/system/arm/aspeed.rst > > index 5d0a7865d3..b233191b67 100644 > > --- a/docs/system/arm/aspeed.rst > > +++ b/docs/system/arm/aspeed.rst > > @@ -136,6 +136,54 @@ AST1030 SoC based machines : > > > > - ``ast1030-evb`` Aspeed AST1030 Evaluation board (Cortex-M4F) > > > > +Facebook Yosemite v3.5 Platform and CraterLake Server (``fby35``) > > +================================================================== > > + > > +Facebook has a series of multi-node compute server designs named > > +Yosemite. The most recent version released was > > +`Yosemite v3 `. > > + > > +Yosemite v3.5 is an iteration on this design, and is very similar: there's a > > +baseboard with a BMC, and 4 server slots. The new server board design termed > > +"CraterLake" includes a Bridge IC (BIC), with room for expansion boards to > > +include various compute accelerators (video, inferencing, etc). At the moment, > > +only the first server slot's BIC is included. > > + > > +Yosemite v3.5 is itself a sled which fits into a 40U chassis, and 3 sleds > > +can be fit into a chassis. See `here ` > > +for an example. > > + > > +In this generation, the BMC is an AST2600 and each BIC is an AST1030. The BMC > > +runs `OpenBMC `, and the BIC runs > > +`OpenBIC `. > > + > > +Firmware images can be retrieved from the Github releases or built from the > > +source code, see the README's for instructions on that. This image uses the > > +"fby35" machine recipe from OpenBMC, and the "yv35-cl" target from OpenBIC. > > +Some reference images can also be found here: > > + > > +.. code-block:: bash > > + > > + $ wget https://github.com/facebook/openbmc/releases/download/openbmc-e2294ff5d31d/fby35.mtd > > + $ wget https://github.com/peterdelevoryas/OpenBIC/releases/download/oby35-cl-2022.13.01/Y35BCL.elf > > + > > +Since this machine has multiple SoC's, each with their own serial console, the > > +recommended way to run it is to allocate a pseudoterminal for each serial > > +console and let the monitor use stdio. Also, starting in a paused state is > > +useful because it allows you to attach to the pseudoterminals before the boot > > +process starts. > > + > > +.. code-block:: bash > > + > > + $ qemu-system-arm -machine fby35 \ > > + -drive file=fby35.mtd,format=raw,if=mtd \ > > + -device loader,file=Y35BCL.elf,addr=0,cpu-num=2 \ > > I came across a quirk of the qemu commandline when testing. > > -drive knows how to expand ~ in a path, but -device loader does not. > Something for someone to look into on a rainy day! > > eg: > > $ build/qemu-system-arm -M fby35 -drive > file=~/tmp/fby35.mtd,format=raw,if=mtd -device > loader,file=~/tmp/Y35BCL.elf,addr=0,cpu-num=2 -serial pty -serial pty > -serial mon:stdio -display none -S > char device redirected to /dev/pts/3 (label serial0) > char device redirected to /dev/pts/5 (label serial1) > qemu-system-arm: warning: Aspeed iBT has no chardev backend > ~/tmp/Y35BCL.elf: No such file or directory > qemu-system-arm: -device > loader,file=~/tmp/Y35BCL.elf,addr=0,cpu-num=2: Cannot load specified > image ~/tmp/Y35BCL.elf > > loader uses open(2) in load_elf_ram_sym. > > The call stack for -drive looks like this (using a bad path to make it > easier to identify what's going on): > > #0 __libc_open64 (file=file@entry=0xaaaaac009250 > "/home/joel/tmp/fby35.mtda", oflag=oflag@entry=524288) at > ../sysdeps/unix/sysv/linux/open64.c:37 > #1 0x0000aaaaab3b18bc in open64 (__oflag=524288, > __path=0xaaaaac009250 "/home/joel/tmp/fby35.mtda") at > /usr/include/aarch64-linux-gnu/bits/fcntl2.h:59 > #2 qemu_open_cloexec (mode=0, flags=0, name=0xaaaaac009250 > "/home/joel/tmp/fby35.mtda") at ../util/osdep.c:286 > #3 qemu_open_internal (name=name@entry=0xaaaaac009250 > "/home/joel/tmp/fby35.mtda", flags=flags@entry=0, mode=mode@entry=0, > errp=errp@entry=0xffffffffeb70) at ../util/osdep.c:330 > #4 0x0000aaaaab3b1f30 in qemu_open (name=name@entry=0xaaaaac009250 > "/home/joel/tmp/fby35.mtda", flags=flags@entry=0, > errp=errp@entry=0xffffffffeb70) at ../util/osdep.c:360 > #5 0x0000aaaaab30d9d8 in raw_open_common (bs=0xaaaaac002c40, > options=, bdrv_flags=155650, open_flags= out>, device=, errp=0xffffffffeb70) > at ../block/file-posix.c:680 > #6 0x0000aaaaab2a53d0 in bdrv_open_driver > (bs=bs@entry=0xaaaaac002c40, drv=drv@entry=0xaaaaabc13250 , > node_name=, options=options@entry=0xaaaaac008230, > open_flags=open_flags@entry=155650, > errp=errp@entry=0xffffffffec18) at ../block.c:1625 > #7 0x0000aaaaab2a9454 in bdrv_open_common (errp=0xffffffffec18, > options=0xaaaaac008230, file=0x0, bs=0xaaaaac002c40) at > ../block.c:1922 > #8 bdrv_open_inherit (filename=, > filename@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > reference=reference@entry=0x0, options=0xaaaaac008230, > flags=, > flags@entry=0, parent=parent@entry=0xaaaaabffb580, > child_class=child_class@entry=0xaaaaab864498 , > child_role=child_role@entry=19, errp=errp@entry=0xffffffffed48) > at ../block.c:3991 > #9 0x0000aaaaab2aa35c in bdrv_open_child_bs > (filename=filename@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > options=options@entry=0xaaaaac000a50, > bdref_key=bdref_key@entry=0xaaaaab573010 "file", > parent=parent@entry=0xaaaaabffb580, > child_class=child_class@entry=0xaaaaab864498 , > child_role=child_role@entry=19, > allow_none=allow_none@entry=true, errp=errp@entry=0xffffffffed48) > at ../block.c:3624 > #10 0x0000aaaaab2a98e4 in bdrv_open_inherit > (filename=filename@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > reference=reference@entry=0x0, options=0xaaaaac000a50, > options@entry=0xaaaaabff8b70, flags=, > parent=parent@entry=0x0, child_class=child_class@entry=0x0, > child_role=child_role@entry=0, > errp=errp@entry=0xaaaaabc62368 ) at ../block.c:3938 > #11 0x0000aaaaab2aa758 in bdrv_open > (filename=filename@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > reference=reference@entry=0x0, options=options@entry=0xaaaaabff8b70, > flags=, errp=errp@entry=0xaaaaabc62368 > ) at ../block.c:4086 > #12 0x0000aaaaab2c59c8 in blk_new_open > (filename=filename@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > reference=reference@entry=0x0, options=options@entry=0xaaaaabff8b70, > flags=, errp=errp@entry=0xaaaaabc62368 > ) at ../block/block-backend.c:454 > #13 0x0000aaaaab2956c8 in blockdev_init > (file=file@entry=0xaaaaabff9cd0 "/home/joel/tmp/fby35.mtda", > bs_opts=bs_opts@entry=0xaaaaabff8b70, errp=errp@entry=0xaaaaabc62368 > ) > at ../blockdev.c:592 > #14 0x0000aaaaab296884 in drive_new (all_opts=0xaaaaabd1a3b0, > block_default_type=, errp=0xaaaaabc62368 ) > at ../blockdev.c:981 > #15 0x0000aaaaaafea1e8 in drive_init_func (opaque=, > opts=, errp=) at ../softmmu/vl.c:648 > #16 0x0000aaaaab3c0a74 in qemu_opts_foreach (list=, > func=func@entry=0xaaaaaafea1d0 , > opaque=opaque@entry=0xaaaaabf3eb58, > errp=errp@entry=0xaaaaabc62368 ) at ../util/qemu-option.c:1135 > #17 0x0000aaaaaafee9d8 in configure_blockdev (bdo_queue=0xaaaaabb866c0 > , snapshot=0, machine_class=0xaaaaabf3eab0) at > ../softmmu/vl.c:707 > #18 qemu_create_early_backends () at ../softmmu/vl.c:1882 > #19 qemu_init (argc=, argv=0xfffffffff358, > envp=envp@entry=0x0) at ../softmmu/vl.c:3502 > #20 0x0000aaaaaadb4300 in qemu_main (envp=0x0, argv=, > argc=) at ../softmmu/main.c:35 > #21 main (argc=, argv=) at ../softmmu/main.c:45 > > and that was where I lost interest. Oh that's odd. I can go look into this, I'd be curious to find out what's happening. Thanks for reviewing everything and trying it out! Peter > > > > + -serial pty -serial pty -serial mon:stdio \ > > + -display none -S > > + $ screen /dev/tty0 # In a separate TMUX pane, terminal window, etc. > > + $ screen /dev/tty1 > > + $ (qemu) c # Start the boot process once screen is setup. > > + > > Supported devices > > ----------------- > > > > -- > > 2.37.0 > >