From patchwork Thu Jun 13 03:42:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1114935 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.136; helo=silver.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="gzj5V5o2"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45PV1G2PqNz9sBb for ; Thu, 13 Jun 2019 13:42:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9B0F922730; Thu, 13 Jun 2019 03:42:21 +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 fUlz3ijPg5HF; Thu, 13 Jun 2019 03:42:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CFE902041B; Thu, 13 Jun 2019 03:42:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 3E0EF1BF963 for ; Thu, 13 Jun 2019 03:42:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 39B0B88157 for ; Thu, 13 Jun 2019 03:42:17 +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 QZmHl3k3OFdv for ; Thu, 13 Jun 2019 03:42:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id AF1A1880F9 for ; Thu, 13 Jun 2019 03:42:16 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id f25so10084612pgv.10 for ; Wed, 12 Jun 2019 20:42:16 -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=ox+70W15fz2alofTrTORUMSLHBoh/m89ybhydTorxnQ=; b=gzj5V5o28KgqzGBDz2y25cxM1DyUo+ZxHXM7xIr1Ak8sMhWwJ+lJV5XFVZlK3Mm6KA 6qEUECbml42QKM5+z6erHjK6LPQ4+QNNo1a69h8QFg3l4X5NxeEnjT+5rFXP/hRDGgJf R/BEeWYaLlLAd0LFJS/nJ4PKUkkiXhVeqCBbWEG8e5OjJ11t5lkax0/GzIi8x6XespEI eXqzWagWdxksAU+j6ScB6vBrl6AeY5Wbi/zt9BdWgs4IDiouLz/CaLNV6jNHu6bsvisL EL+jMKE+Hujq+jVR+Qy6COkTVoxyjVhlja0F87HjjbsVKLp+1nUJkCReFUJdDXurJbUM YV7g== 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=ox+70W15fz2alofTrTORUMSLHBoh/m89ybhydTorxnQ=; b=O/f/5Js/zSAyAtPIZBJSncijAoGsuyLnfvQIg970vIWsWlOdVHlmhUy0MbCtYrFG0k p9bkFIc70MO9/S/0yXRBWPKPfzRQD4uj2GbEjPdx3YlAzvzT+e1kK3WNKNSY87VQskya nNnQJaQfhNxGP2Hrl/SInXhQHpqPksvRIOtr/8AwaS0K4v6MWHhENtnhQhR5i6mAcoL6 lPb3XWLbQUr/WeQ81dp6eEFCw6w5eUzDYItoHiLkEsxwJtTCptJyrA+4xvHHfbF1eL+3 FZalgyAc9+PEP3KmzZBz0Ry8Cyhdaqee29AK1I7jz+IZY1xgsTkGPO+0QyhbXFrF2tAb BydA== X-Gm-Message-State: APjAAAURfUg/QE3VJJswFTby1MdDe56houj10Z4YmvrNCOV5Vzb1AyP+ BDtAVZmQ1YfVR2PK/C7UWcyT00t5 X-Google-Smtp-Source: APXvYqzGlM9DvUoq/LUZq1OdBl8TB+I1vKrslyR1+1brn7ey4rt2A4k6kYvYm/zfHb5Qpb+gu0uaeA== X-Received: by 2002:a62:683:: with SMTP id 125mr83178814pfg.168.1560397335876; Wed, 12 Jun 2019 20:42:15 -0700 (PDT) Received: from voyager.ibm.com ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id g17sm1016255pfb.56.2019.06.12.20.42.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 20:42:15 -0700 (PDT) From: Joel Stanley To: buildroot@buildroot.org Date: Thu, 13 Jun 2019 13:12:08 +0930 Message-Id: <20190613034208.29451-1-joel@jms.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] 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 Tested-by: Daniel Axtens --- v2: Use default output directory for qemu command line in readme 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..a8a18db5b9ab --- /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 output/images/vmlinux -drive file=output/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