From patchwork Wed Jun 12 12:49:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1114551 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O5HY+htG"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45P6FQ3Rb0z9s00 for ; Wed, 12 Jun 2019 22:51:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AF32E853E6; Wed, 12 Jun 2019 12:51:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z-+jl+AjfDKw; Wed, 12 Jun 2019 12:51:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 550B085EE8; Wed, 12 Jun 2019 12:51:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 30A2B1BF3AD for ; Wed, 12 Jun 2019 12:50:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2A11B20517 for ; Wed, 12 Jun 2019 12:50:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pabfPmczgPpD for ; Wed, 12 Jun 2019 12:50:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by silver.osuosl.org (Postfix) with ESMTPS id E665020500 for ; Wed, 12 Jun 2019 12:50:05 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id s24so6592863plr.8 for ; Wed, 12 Jun 2019 05:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uZNjwZu8HNjXloPjoXdzzV+Y6ZUefMUXOTsIcIV1dCc=; b=O5HY+htGw0GnkO4tHul89pNqj/sJhJdVvcgNUPq6uL8K/2Yy5JwA6j9lrIJys1PVD7 u42NdnhBwSplqwYUb8GbrFLp3YgXfANkDvH8H/Vs74Vk3dhuqUoR6tYgFBb/xSE6dfeR 3lHPQ2s96Y+lnpQ6xr5Ud4rN3dEVl4n0wbONO228HwOo6jDzTejk5bCE2DXwkxJ6XFhH XW/g8iBJgKSKE7LjrB7NQw50J1wlXgO6dwPtLymkO+0Y4tUGspPBrjNp78H1ALrILidy 1pq1dIcpZyYHfkryFUAbSJikxGA2v8Tw0GJgiAFmqqNWJDkiQ+9eK1A+TmJ9T9ycBsUn rdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=uZNjwZu8HNjXloPjoXdzzV+Y6ZUefMUXOTsIcIV1dCc=; b=t8DOFi8D6YePniD3HBKUOYlIJLr2Fa9mI20eduRCGJqEvcmgMJO5SW5J1aE7J1Ug0n Rsl6MkFT1l8KpIEOg9AH36OzKMTxqN/Q9S317xXoRnyJ1Ktf1RpyYm5gyOZ2Y4p2x8ZE 9/QM8QQaUb2VHjrJ2xPn7+Go4rR6VQRhNQCBvmCpx7K12w45VJB4kGcxjOPGwKhCTn3P U19UNl/sDFtDCdD+hY/6on4gEnWUFZIO84d7S9K0nBQCi3txeG3m4uSOV3DGfzayy3Nm E32Q4hwr/XwL1HcCX3Lo4Xs5sdZ4gkOEdhG2yBfGc/8tZ4+1gRr+q01iFgn1K9pQR3zP lZsQ== X-Gm-Message-State: APjAAAWLTYx1a9V/opowy8IM/Bbx2nl8ymt60P16Psxe0uIBED0pRMaf vIbVcPaVqZolgHxcgw09Y8taX8WEzEY= X-Google-Smtp-Source: APXvYqzJ1KlmVKWAicgQgXdwIP1ybSPJilbByK78fhHnnLsNyGDiBv96JciNJ0M5mpiTVTrdHRwpXA== X-Received: by 2002:a17:902:3341:: with SMTP id a59mr52035932plc.186.1560343804978; Wed, 12 Jun 2019 05:50:04 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id c98sm8186295pje.1.2019.06.12.05.50.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 05:50:04 -0700 (PDT) From: Joel Stanley To: buildroot@buildroot.org Date: Wed, 12 Jun 2019 22:19:38 +0930 Message-Id: <20190612124938.20129-1-joel@jms.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] board: Add PowerPC mac99 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Ellerman , aneesh.kumar@linux.ibm.com, Daniel Axtens Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" PowerPC kernel developers were after a userspace for testing 32-bit powerpc kernels. This machine both suits that requirement and has support in qemu. It's also a fairly common piece of 32-bit ppc hardware. Signed-off-by: Joel Stanley --- DEVELOPERS | 2 ++ board/qemu/ppc-mac99/linux.fragment | 3 +++ board/qemu/ppc-mac99/readme.txt | 5 +++++ configs/qemu_ppc_mac99_defconfig | 10 ++++++++++ 4 files changed, 20 insertions(+) create mode 100644 board/qemu/ppc-mac99/linux.fragment create mode 100644 board/qemu/ppc-mac99/readme.txt create mode 100644 configs/qemu_ppc_mac99_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index b64f8b8a94ce..691ce719a276 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1143,6 +1143,8 @@ N: Joel Stanley F: package/pdbg/ F: board/qemu/ppc64le-pseries/ F: configs/qemu_ppc64le_pseries_defconfig +F: board/qemu/ppc-mac99/ +F: configs/qemu_ppc_mac99_defconfig N: Johan Derycke F: package/python-libconfig/ diff --git a/board/qemu/ppc-mac99/linux.fragment b/board/qemu/ppc-mac99/linux.fragment new file mode 100644 index 000000000000..b1975f8253f7 --- /dev/null +++ b/board/qemu/ppc-mac99/linux.fragment @@ -0,0 +1,3 @@ +CONFIG_SERIAL_PMACZILOG=y +CONFIG_SERIAL_PMACZILOG_TTYS=y +CONFIG_SERIAL_PMACZILOG_CONSOLE=y diff --git a/board/qemu/ppc-mac99/readme.txt b/board/qemu/ppc-mac99/readme.txt new file mode 100644 index 000000000000..dfb42a56b85d --- /dev/null +++ b/board/qemu/ppc-mac99/readme.txt @@ -0,0 +1,5 @@ +Run the emulation with: + + qemu-system-ppc -nographic -vga none -M mac99 -cpu g4 -m 1G -kernel mac99/images/vmlinux -drive file=mac99/images/rootfs.ext2,format=raw -net nic,model=sungem -net user -append "root=/dev/sda" + +Tested with QEMU 3.1.0 diff --git a/configs/qemu_ppc_mac99_defconfig b/configs/qemu_ppc_mac99_defconfig new file mode 100644 index 000000000000..daddaddb369f --- /dev/null +++ b/configs/qemu_ppc_mac99_defconfig @@ -0,0 +1,10 @@ +BR2_powerpc=y +BR2_powerpc_7400=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_SYSTEM_DHCP="eth0" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_DEFCONFIG="pmac32" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc-mac99/linux.fragment" +BR2_LINUX_KERNEL_VMLINUX=y +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set