Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BB8DCCF9E5 for ; Mon, 27 Oct 2025 20:20:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDTfz-0003zZ-Ig; Mon, 27 Oct 2025 16:18:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vDTfs-0003yF-P8; Mon, 27 Oct 2025 16:18:40 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vDTfk-0004as-NK; Mon, 27 Oct 2025 16:18:40 -0400 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id F36F75972E6; Mon, 27 Oct 2025 21:18:23 +0100 (CET) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id CC39OZBD8NS3; Mon, 27 Oct 2025 21:18:21 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id E20925972E2; Mon, 27 Oct 2025 21:18:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id DFD4659703F; Mon, 27 Oct 2025 21:18:21 +0100 (CET) Date: Mon, 27 Oct 2025 21:18:21 +0100 (CET) From: BALATON Zoltan To: Yogesh Vyas cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Nicholas Piggin , Markus Armbruster , Harsh Prateek Bora Subject: Re: [PATCH v3 00/13] Pegasos2 clean up and pegasos1 emulation In-Reply-To: <38673ed9-4690-472b-9e0f-c8a736247097@gmail.com> Message-ID: References: <26f74e6c-a89f-4be0-aa6c-78ad88e2cba3@gmail.com> <993819c9-cf87-ec91-31ac-f8988c8d3d67@eik.bme.hu> <38673ed9-4690-472b-9e0f-c8a736247097@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3866299591-1418406676-1761596301=:603" Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3866299591-1418406676-1761596301=:603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 27 Oct 2025, Yogesh Vyas wrote: > On 10/26/25 10:15 PM, BALATON Zoltan wrote: >> On Sun, 26 Oct 2025, Yogesh Vyas wrote: >>> On 10/26/25 4:39 PM, BALATON Zoltan wrote: >>>> On Sun, 26 Oct 2025, Yogesh Vyas wrote: >>>>> On Sun, Oct 19, 2025 at 5:37 PM BALATON Zoltan >>>>> wrote: >>>>>> On Sun, 19 Oct 2025, Yogesh Vyas wrote: >>>>>>> When I run QEMU with the ROM option, the machine boots successfully >>>>>>> with >>>>>>> the below command: >>>>>>> >>>>>>> qemu-system-ppc64 -machine pegasos2 -bios pegasos2.rom \ >>>>>>>                  -cdrom debian-8.11.0-powerpc-netinst.iso \ >>>>>>>                  -device VGA,romfile="" -serial stdio >>>>>>> >>>>>>> However, when I try to boot the machine without the ROM using VOF, the >>>>>>> machine does not come up and no logs appear on stdout: >>>>>>> >>>>>>> qemu-system-ppc64 -machine pegasos2 -serial stdio \ >>>>>>>                  -kernel vmlinuz-chrp.initrd -append "---" \ >>>>>>>                  -cdrom debian-8.11.0-powerpc-netinst.iso >>>>>>> >>>>>>> Please let me know if I am missing any parameters or setup required >>>>>>> for >>>>>>> booting via VOF on Pegasos2. >>>>>>> >>>>>>> Documentation referred: qemu/docs/system/ppc/amigang.rst >>>>>> >>>>>> Maybe you did not use the right vmlinuz-chrp.initrd. Pegasos2 is a 32 >>>>>> bit >>>>>> machine so you need /install/powerpc/vmlinuz-chrp.initrd for it (see in >>>>>> the /install/pegasos script that is used with firmware). Even if you >>>>>> call >>>>>> it from qemu-system-ppc64 which includes both 32 bit and 64 bit >>>>>> machines >>>>>> but does not make 32 bit machines 64 bit so you still need the 32 bit >>>>>> OS. >>>>>> >>>>>> >>>>> Hi Balaton, >>>>> I am using 32bit images only and looks like VOF boot works with the >>>>> distro >>>>> provided Qemu (both ppc and pp64), however doesn't work with upstream >>>>> Qemu >>>>> for VOF. >>>> >>>> That's odd, it works for me with QEMU master so I can't reproduce this. >>>> >>>>> yogi@fedora:~/work/images$ file vmlinuz-chrp.initrd >>>>> vmlinuz-chrp.initrd: ELF 32-bit MSB executable, PowerPC or cisco 4500, >>>>> version 1 (SYSV), statically linked, not stripped >>>> >>>> The file command says 32-bit for both >>>> /install/powerpc/vmlinuz-chrp.initrd and >>>> /install/powerpc64/vmlinuz-chrp.initrd but only the first one should >>>> work. Can you double check you have the right vmlinuz-chrp.initrd file? >>>> But if you say the same file works with 9.2.4 I have no idea why. I see >>>> these files on the CD >>>> >>>>   9301172 Jun 19  2018 /install/powerpc/vmlinuz-chrp.initrd >>>>  10534888 Jun 19  2018 /install/powerpc64/vmlinuz-chrp.initrd >>> >>> >>> I am also using the same file: >>> >>> yogi@fedora:~/work/images$ ls -lrt vmlinuz-chrp.initrd >>> -r--r--r--. 1 yogi yogi 9301172 Oct 18 23:50 vmlinuz-chrp.initrd >>> >>>> >>>> File command says: >>>> >>>> vmlinuz-chrp.initrd:   ELF 32-bit MSB executable, PowerPC or cisco 4500, >>>> version 1 (SYSV), statically linked, not stripped >>>> vmlinuz-chrp.initrd64: ELF 32-bit MSB executable, PowerPC or cisco 4500, >>>> version 1 (SYSV), statically linked, not stripped >>>> >>>> but only the first from the powerpc directory is supposed to work and it >>>> does boot for me with QEMU master. You can also check following the other >>>> way described in qemu/docs/system/ppc/amigang.rst using -bios >>>> pegasos2.rom which loads the correct image from the CD. Does that work? >>> >>> Yes, I had mentioned it in my first mail that ROM option works as >>> expected. It is only an issue when using VOF with upstream Qemu. >> >> Or if you suspect it's a VOF issue you can try -trace enable="vof*" >> > Hi Balaton, > > As suggested, I tried both options in upstream: > yogi@fedora:~/work/git/fork/qemu/build$ ./qemu-system-ppc -machine pegasos2 > -serial stdio -kernel ~/work/images/vmlinuz-chrp.initrd -append "---" -cdrom > ~/work/images/debian-8.11.0-powerpc-netinst.iso -d guest_errors -trace > enable="vof*" > > I could see the below trace and the error message: >  vof_getproplen ph=0x13 "subsystem-vendor-id" => len=4 > vof_getprop ph=0x13 "subsystem-vendor-id" => len=4 [00001100] > vof_getproplen ph=0x13 "reg" => len=20 > vof_getprop ph=0x13 "reg" => len=20 [00000000 00000000 00000000 00000000 > 00000000] > vof_write ih=0x2 [22] "Device tree strings 0x" > vof_write ih=0x2 [8] "01b0d000" > vof_write ih=0x2 [6] " -> 0x" > vof_write ih=0x2 [8] "01b0d405" > vof_write ih=0x2 [2] " > " > vof_write ih=0x2 [22] "Device tree struct  0x" > vof_write ih=0x2 [8] "01b0e000" > vof_write ih=0x2 [6] " -> 0x" > vof_write ih=0x2 [8] "01b0f000" > vof_write ih=0x2 [2] " > " > vof_getprop ph=0x3 "stdin" => len=4 [00000001] > vof_write ih=0x2 [18] "Calling quiesce..." > vof_write ih=0x2 [2] " > " > vof_claimed 0x0..0xd80 size=0xd80 > vof_claimed 0x8000..0x10000 size=0x8000 > vof_claimed 0x400000..0xcd8dfc size=0x8d8dfc > vof_claimed 0xd00000..0x15a1ec0 size=0x8a1ec0 > vof_claimed 0x15a2000..0x1b0b90d size=0x56990d > vof_claimed 0x1b0c000..0x1c0c000 size=0x100000 > vof_claimed 0x1ffff000..0x1ffff014 size=0x14 > vof_write ih=0x2 [24] "returning from prom_init" > vof_write ih=0x2 [2] " > " > Trying to read invalid spr 1012 (0x3f4) at c0013f48 Then VOF works too and the Linux kernel loader starts but it stops somewhere when the actual kernel starts. I get: vof_write ih=0x1 [18] "Calling quiesce..." vof_write ih=0x1 [2] " " vof_claimed 0x0..0xd80 size=0xd80 vof_claimed 0x8000..0x10000 size=0x8000 vof_claimed 0x400000..0xcd8dfc size=0x8d8dfc vof_claimed 0xd00000..0x15a1ec0 size=0x8a1ec0 vof_claimed 0x15a2000..0x1b0b90d size=0x56990d vof_claimed 0x1b0c000..0x1c0c000 size=0x100000 vof_claimed 0x1ffff000..0x1ffff014 size=0x14 vof_write ih=0x1 [24] "returning from prom_init" vof_write ih=0x1 [2] " " Trying to read invalid spr 1012 (0x3f4) at 00000000c0013f48 [ 0.000000] Using CHRP machine description [ 0.000000] Total memory = 512MB; using 1024kB for hash table (at cff00000) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.16.0-6-powerpc (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08) [ 0.000000] Found initrd at 0xc15a2000:0xc1b0b90d [ 0.000000] chrp type = 6 [Genesi Pegasos] Are you using this same vmlinuz-chrp.initrd? $ md5sum vmlinuz-chrp.initrd a440d76c1d2ccfa86bdff6dba017cf39 vmlinuz-chrp.initrd If so then probably there's something with your QEMU installation. Regards, BALATON Zoltan --3866299591-1418406676-1761596301=:603--