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 08CA2C48BF6 for ; Thu, 29 Feb 2024 12:00:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rff3x-0000Wn-33; Thu, 29 Feb 2024 06:58:57 -0500 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 1rff3u-0000Sh-1W; Thu, 29 Feb 2024 06:58:54 -0500 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 1rff3n-0007ak-Fj; Thu, 29 Feb 2024 06:58:53 -0500 Received: from zero.eik.bme.hu (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 491594E6004; Thu, 29 Feb 2024 12:58:42 +0100 (CET) X-Virus-Scanned: amavisd-new at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by zero.eik.bme.hu (zero.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10028) with ESMTP id qeVP76avmVXJ; Thu, 29 Feb 2024 12:58:39 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id EADE74E6003; Thu, 29 Feb 2024 12:58:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id E93867456B4; Thu, 29 Feb 2024 12:58:39 +0100 (CET) Date: Thu, 29 Feb 2024 12:58:39 +0100 (CET) From: BALATON Zoltan To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org cc: Nicholas Piggin , Daniel Henrique Barboza , Bernhard Beschow , clg@kaod.org Subject: Re: [PATCH v3] docs/system/ppc: Document running Linux on AmigaNG machines In-Reply-To: <20240220232200.042DA4E6005@zero.eik.bme.hu> Message-ID: References: <20240220232200.042DA4E6005@zero.eik.bme.hu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3866299591-1940231901-1709207919=:90875" 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, SPF_HELO_NONE=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-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-1940231901-1709207919=:90875 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 21 Feb 2024, BALATON Zoltan wrote: > Documentation on how to run Linux on the amigaone, pegasos2 and > sam460ex machines is currently buried in the depths of the qemu-devel > mailing list and in the source code. Let's collect the information in > the QEMU handbook for a one stop solution. Ping? (Just so it's not missed from next pull.) Regards, BALATON Zoltan > Co-authored-by: Bernhard Beschow > Signed-off-by: BALATON Zoltan > Reviewed-by: Nicholas Piggin > Tested-by: Bernhard Beschow > --- > v3: Apply changes and Tested-by tag from Bernhard > v2: Move top level title one level up so subsections will be below it in TOC > > MAINTAINERS | 1 + > docs/system/ppc/amigang.rst | 161 ++++++++++++++++++++++++++++++++++++ > docs/system/target-ppc.rst | 1 + > 3 files changed, 163 insertions(+) > create mode 100644 docs/system/ppc/amigang.rst > > diff --git a/MAINTAINERS b/MAINTAINERS > index 7d61fb9319..0aef8cb2a6 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1562,6 +1562,7 @@ F: hw/rtc/m41t80.c > F: pc-bios/canyonlands.dt[sb] > F: pc-bios/u-boot-sam460ex-20100605.bin > F: roms/u-boot-sam460ex > +F: docs/system/ppc/amigang.rst > > pegasos2 > M: BALATON Zoltan > diff --git a/docs/system/ppc/amigang.rst b/docs/system/ppc/amigang.rst > new file mode 100644 > index 0000000000..ba1a3d80b9 > --- /dev/null > +++ b/docs/system/ppc/amigang.rst > @@ -0,0 +1,161 @@ > +========================================================= > +AmigaNG boards (``amigaone``, ``pegasos2``, ``sam460ex``) > +========================================================= > + > +These PowerPC machines emulate boards that are primarily used for > +running Amiga like OSes (AmigaOS 4, MorphOS and AROS) but these can > +also run Linux which is what this section documents. > + > +Eyetech AmigaOne/Mai Logic Teron (``amigaone``) > +=============================================== > + > +The ``amigaone`` machine emulates an AmigaOne XE mainboard by Eyetech > +which is a rebranded Mai Logic Teron board with modified U-Boot > +firmware to support AmigaOS 4. > + > +Emulated devices > +---------------- > + > + * PowerPC 7457 CPU (can also use``-cpu g3, 750cxe, 750fx`` or ``750gx``) > + * Articia S north bridge > + * VIA VT82C686B south bridge > + * PCI VGA compatible card (guests may need other card instead) > + * PS/2 keyboard and mouse > + > +Firmware > +-------- > + > +A firmware binary is necessary for the boot process. It is a modified > +U-Boot under GPL but its source is lost so it cannot be included in > +QEMU. A binary is available at > +https://www.hyperion-entertainment.com/index.php/downloads?view=files&parent=28. > +The ROM image is in the last 512kB which can be extracted with the > +following command: > + > +.. code-block:: bash > + > + $ tail -c 524288 updater.image > u-boot-amigaone.bin > + > +The BIOS emulator in the firmware is unable to run QEMU‘s standard > +vgabios so ``VGABIOS-lgpl-latest.bin`` is needed instead which can be > +downloaded from http://www.nongnu.org/vgabios. > + > +Running Linux > +------------- > + > +There are some Linux images under the following link that work on the > +``amigaone`` machine: > +https://sourceforge.net/projects/amigaone-linux/files/debian-installer/. > +To boot the system run: > + > +.. code-block:: bash > + > + $ qemu-system-ppc -machine amigaone -bios u-boot-amigaone.bin \ > + -cdrom "A1 Linux Net Installer.iso" \ > + -device ati-vga,model=rv100,romfile=VGABIOS-lgpl-latest.bin > + > +From the firmware menu that appears select ``Boot sequence`` → > +``Amiga Multiboot Options`` and set ``Boot device 1`` to > +``Onboard VIA IDE CDROM``. Then hit escape until the main screen appears again, > +hit escape once more and from the exit menu that appears select either > +``Save settings and exit`` or ``Use settings for this session only``. It may > +take a long time loading the kernel into memory but eventually it boots and the > +installer becomes visible. The ``ati-vga`` RV100 emulation is not > +complete yet so only frame buffer works, DRM and 3D is not available. > + > +Genesi/bPlan Pegasos II (``pegasos2``) > +====================================== > + > +The ``pegasos2`` machine emulates the Pegasos II sold by Genesi and > +designed by bPlan. Its schematics are available at > +https://www.powerdeveloper.org/platforms/pegasos/schematics. > + > +Emulated devices > +---------------- > + > + * PowerPC 7457 CPU (can also use``-cpu g3`` or ``750cxe``) > + * Marvell MV64361 Discovery II north bridge > + * VIA VT8231 south bridge > + * PCI VGA compatible card (guests may need other card instead) > + * PS/2 keyboard and mouse > + > +Firmware > +-------- > + > +The Pegasos II board has an Open Firmware compliant ROM based on > +SmartFirmware with some changes that are not open-sourced therefore > +the ROM binary cannot be included in QEMU. An updater was available > +from bPlan, it can be found in the `Internet Archive > +`_. > +The ROM image can be extracted from it with the following command: > + > +.. code-block:: bash > + > + $ tail -c +85581 up050404 | head -c 524288 > pegasos2.rom > + > +Running Linux > +------------- > + > +The PowerPC version of Debian 8.11 supported Pegasos II. The BIOS > +emulator in the firmware binary is unable to run QEMU‘s standard > +vgabios so it needs to be disabled. To boot the system run: > + > +.. code-block:: bash > + > + $ qemu-system-ppc -machine pegasos2 -bios pegasos2.rom \ > + -cdrom debian-8.11.0-powerpc-netinst.iso \ > + -device VGA,romfile="" -serial stdio > + > +At the firmware ``ok`` prompt enter ``boot cd install/pegasos``. > + > +Alternatively, it is possible to boot the kernel directly without > +firmware ROM using the QEMU built-in minimal Virtual Open Firmware > +(VOF) emulation which is also supported on ``pegasos2``. For this, > +extract the kernel ``install/powerpc/vmlinuz-chrp.initrd`` from the CD > +image, then run: > + > +.. code-block:: bash > + > + $ qemu-system-ppc -machine pegasos2 -serial stdio \ > + -kernel vmlinuz-chrp.initrd -append "---" \ > + -cdrom debian-8.11.0-powerpc-netinst.iso > + > +aCube Sam460ex (``sam460ex``) > +============================= > + > +The ``sam460ex`` machine emulates the Sam460ex board by aCube which is > +based on the AMCC PowerPC 460EX SoC (that despite its name has a > +PPC440 CPU core). > + > +Firmware > +-------- > + > +The board has a firmware based on an older U-Boot version with > +modifications to support booting AmigaOS 4. The firmware ROM is > +included with QEMU. > + > +Emulated devices > +---------------- > + > + * PowerPC 460EX SoC > + * M41T80 serial RTC chip > + * Silicon Motion SM501 display parts (identical to SM502 on real board) > + * Silicon Image SiI3112 2 port SATA controller > + * USB keyboard and mouse > + > +Running Linux > +------------- > + > +The only Linux distro that supported Sam460ex out of box was CruxPPC > +2.x. It can be booted by running: > + > +.. code-block:: bash > + > + $ qemu-system-ppc -machine sam460ex -serial stdio \ > + -drive if=none,id=cd,format=raw,file=crux-ppc-2.7a.iso \ > + -device ide-cd,drive=cd,bus=ide.1 > + > +There are some other kernels and instructions for booting other > +distros on aCube's product page at > +https://www.acube-systems.biz/index.php?page=hardware&pid=5 > +but those are untested. > diff --git a/docs/system/target-ppc.rst b/docs/system/target-ppc.rst > index 4f6eb93b17..87bf412ce5 100644 > --- a/docs/system/target-ppc.rst > +++ b/docs/system/target-ppc.rst > @@ -17,6 +17,7 @@ help``. > .. toctree:: > :maxdepth: 1 > > + ppc/amigang > ppc/embedded > ppc/powermac > ppc/powernv > --3866299591-1940231901-1709207919=:90875--