Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 2/2] qemu: add new board support for qemu-system-sparc64
Date: Sat, 29 Aug 2015 09:59:06 +0200	[thread overview]
Message-ID: <20150829075906.GA19935@waldemar-brodkorb.de> (raw)

SPARC64 builds can be tested with Qemu.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 - Changes v1 -> v2:
   remove unused variable suggested by Thomas Petazzoni
---
 board/qemu/sparc64-sun4u/linux-4.1.config |   27 +++++++++++++++++++++++++++
 board/qemu/sparc64-sun4u/readme.txt       |    7 +++++++
 configs/qemu_sparc64_sun4u_defconfig      |   19 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 board/qemu/sparc64-sun4u/linux-4.1.config
 create mode 100644 board/qemu/sparc64-sun4u/readme.txt
 create mode 100644 configs/qemu_sparc64_sun4u_defconfig

diff --git a/board/qemu/sparc64-sun4u/linux-4.1.config b/board/qemu/sparc64-sun4u/linux-4.1.config
new file mode 100644
index 0000000..2b282f9
--- /dev/null
+++ b/board/qemu/sparc64-sun4u/linux-4.1.config
@@ -0,0 +1,27 @@
+# CONFIG_SWAP is not set
+CONFIG_SYSVIPC=y
+CONFIG_POSIX_MQUEUE=y
+CONFIG_NO_HZ_IDLE=y
+CONFIG_EMBEDDED=y
+CONFIG_MODULES=y
+CONFIG_PCI=y
+CONFIG_SUN_OPENPROMFS=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_BLK_DEV_SD=y
+CONFIG_ATA=y
+CONFIG_PATA_CMD64X=y
+CONFIG_NETDEVICES=y
+CONFIG_NE2K_PCI=y
+CONFIG_SERIAL_SUNSU=y
+CONFIG_SERIAL_SUNSU_CONSOLE=y
+CONFIG_EXT4_FS=y
+CONFIG_EXT4_USE_FOR_EXT23=y 
+CONFIG_TMPFS=y
+CONFIG_NLS=y
+CONFIG_NLS_DEFAULT="utf-8"
+CONFIG_MAGIC_SYSRQ=y
diff --git a/board/qemu/sparc64-sun4u/readme.txt b/board/qemu/sparc64-sun4u/readme.txt
new file mode 100644
index 0000000..90d1edc
--- /dev/null
+++ b/board/qemu/sparc64-sun4u/readme.txt
@@ -0,0 +1,7 @@
+Run the emulation with:
+
+  qemu-system-sparc64 -M sun4u -kernel output/images/vmlinux -append "root=/dev/sda console=ttyS0,115200" -serial stdio output/images/rootfs.ext2
+
+The login prompt will appear in the terminal that started Qemu.
+
+Tested with QEMU 2.3.0
diff --git a/configs/qemu_sparc64_sun4u_defconfig b/configs/qemu_sparc64_sun4u_defconfig
new file mode 100644
index 0000000..0bb4b3e
--- /dev/null
+++ b/configs/qemu_sparc64_sun4u_defconfig
@@ -0,0 +1,19 @@
+# Architecture
+BR2_sparc64=y
+BR2_sparc_v9=y
+
+# filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Lock to 4.1 headers to avoid breaking with newer kernels
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="4.1"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+
+# Linux kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc64-sun4u/linux-4.1.config"
-- 
1.7.10.4

             reply	other threads:[~2015-08-29  7:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-29  7:59 Waldemar Brodkorb [this message]
2015-10-08 14:07 ` [Buildroot] [PATCHv2 2/2] qemu: add new board support for qemu-system-sparc64 Gustavo Zacarias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150829075906.GA19935@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox