Skip to contentSkip to conversation

qemu: add new board support for qemu-system-sparc64

PATCH New Waldemar Brodkorb 2 participants 2 messages Aug 11, 2015 – Aug 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 qemu: add new board support for qemu-system-sparc64

SPARC64 builds can be tested with Qemu.

---
 board/qemu/sparc64-sun4u/linux-4.1.config |   27 +++++++++++++++++++++++++++
 board/qemu/sparc64-sun4u/readme.txt       |    7 +++++++
 configs/qemu_sparc64_sun4u_defconfig      |   21 +++++++++++++++++++++
 3 files changed, 55 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
board/qemu/sparc64-sun4u/linux-4.1.config new file +27 -0
new file mode 100644
index 0000000..2b282f9
@@ -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
board/qemu/sparc64-sun4u/readme.txt new file +7 -0
new file mode 100644
index 0000000..90d1edc
@@ -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
configs/qemu_sparc64_sun4u_defconfig new file +21 -0
new file mode 100644
index 0000000..5c5bcb3
@@ -0,0 +1,21 @@
+# Architecture
+BR2_sparc64=y
+BR2_sparc_v9=y
+
+BR2_GLOBAL_PATCH_DIR="board/qemu/sparc64-sun4u"
+
+# 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"
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 qemu: add new board support for qemu-system-sparc64

Dear Waldemar Brodkorb,

configs/qemu_sparc64_sun4u_defconfig line 5

Quoted 11 lines · Waldemar Brodkorb
configs/qemu_sparc64_sun4u_defconfig new file +5 -0
new file mode 100644
index 0000000..5c5bcb3
@@ -0,0 +1,21 @@
+# Architecture
+BR2_sparc64=y
+BR2_sparc_v9=y
+
+BR2_GLOBAL_PATCH_DIR="board/qemu/sparc64-sun4u"

Why do you need this option set?

THanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com