All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] qemu mips64 sample config
@ 2012-07-25 21:24 Gustavo Zacarias
  2012-07-25 21:24 ` [Buildroot] [PATCH 1/2] mips64: remove toolchain kludge Gustavo Zacarias
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gustavo Zacarias @ 2012-07-25 21:24 UTC (permalink / raw)
  To: buildroot

This is a small set that introduces the mips64 qemu sample configuration.
It's prerequisite is my mips64 tuple patch or Thomas's updated patch that
enables the mips64 tuple also.
Tested with qemu 1.1.1 it's flaky, i can't say for sure if it's a toolchain,
qemu and/or kernel configuration issue since i lack real mips64 hardware to
test on.
The biggest issue is login segfaulting so you can't login to the new sample
shiny emulation, though you can append the old init=/bin/sh to get things
rolling somehow, though you'll get some other segfaults eventually.

Gustavo Zacarias (2):
  mips64: remove toolchain kludge
  qemu/mips64-malta: add new sample config

 board/qemu/mips64-malta/linux-3.3.config |   78 ++++++++++++++++++++++++++++++
 board/qemu/mips64-malta/readme.txt       |    7 +++
 configs/qemu_mips64_malta_defconfig      |   24 +++++++++
 package/Makefile.in                      |    4 --
 4 files changed, 109 insertions(+), 4 deletions(-)
 create mode 100644 board/qemu/mips64-malta/linux-3.3.config
 create mode 100644 board/qemu/mips64-malta/readme.txt
 create mode 100644 configs/qemu_mips64_malta_defconfig

-- 
1.7.8.6

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/2] mips64: remove toolchain kludge
  2012-07-25 21:24 [Buildroot] [PATCH 0/2] qemu mips64 sample config Gustavo Zacarias
@ 2012-07-25 21:24 ` Gustavo Zacarias
  2012-07-25 21:24 ` [Buildroot] [PATCH 2/2] qemu/mips64-malta: add new sample config Gustavo Zacarias
  2012-07-26  6:53 ` [Buildroot] [PATCH 0/2] qemu mips64 " Thomas Petazzoni
  2 siblings, 0 replies; 5+ messages in thread
From: Gustavo Zacarias @ 2012-07-25 21:24 UTC (permalink / raw)
  To: buildroot

-mno-abicalls is an old kludge for some (probably) old issue.
Remove it since it's actually harmful, static busybox doesn't build with
it for a modern-ish toolchain (defaults as of this commit, uClibc
0.9.33.2 + gcc 4.5.4).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Makefile.in |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 6fad224..340e387 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -87,10 +87,6 @@ endif
 
 TARGET_CFLAGS=$(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
 
-ifeq ($(findstring yy,$(BR2_mips)$(BR2_MIPS_ABI64)),yy)
-TARGET_CFLAGS+=-fno-pic -mno-abicalls
-endif
-
 ifeq ($(BR2_LARGEFILE),y)
 TARGET_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 endif
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] qemu/mips64-malta: add new sample config
  2012-07-25 21:24 [Buildroot] [PATCH 0/2] qemu mips64 sample config Gustavo Zacarias
  2012-07-25 21:24 ` [Buildroot] [PATCH 1/2] mips64: remove toolchain kludge Gustavo Zacarias
@ 2012-07-25 21:24 ` Gustavo Zacarias
  2012-07-26  6:53 ` [Buildroot] [PATCH 0/2] qemu mips64 " Thomas Petazzoni
  2 siblings, 0 replies; 5+ messages in thread
From: Gustavo Zacarias @ 2012-07-25 21:24 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 board/qemu/mips64-malta/linux-3.3.config |   78 ++++++++++++++++++++++++++++++
 board/qemu/mips64-malta/readme.txt       |    7 +++
 configs/qemu_mips64_malta_defconfig      |   24 +++++++++
 3 files changed, 109 insertions(+), 0 deletions(-)
 create mode 100644 board/qemu/mips64-malta/linux-3.3.config
 create mode 100644 board/qemu/mips64-malta/readme.txt
 create mode 100644 configs/qemu_mips64_malta_defconfig

diff --git a/board/qemu/mips64-malta/linux-3.3.config b/board/qemu/mips64-malta/linux-3.3.config
new file mode 100644
index 0000000..6e7f7ee
--- /dev/null
+++ b/board/qemu/mips64-malta/linux-3.3.config
@@ -0,0 +1,78 @@
+CONFIG_MIPS_MALTA=y
+CONFIG_CPU_MIPS64_R1=y
+CONFIG_64BIT=y
+CONFIG_64BIT_PHYS_ADDR=y
+CONFIG_MIPS_MT_SMP=y
+CONFIG_NO_HZ=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_HZ_100=y
+CONFIG_EXPERIMENTAL=y
+CONFIG_SYSVIPC=y
+CONFIG_LOG_BUF_SHIFT=15
+CONFIG_SYSFS_DEPRECATED_V2=y
+CONFIG_RELAY=y
+CONFIG_NAMESPACES=y
+CONFIG_UTS_NS=y
+CONFIG_IPC_NS=y
+CONFIG_PID_NS=y
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_EMBEDDED=y
+# CONFIG_SYSCTL_SYSCALL is not set
+# CONFIG_COMPAT_BRK is not set
+CONFIG_SLAB=y
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+CONFIG_MODVERSIONS=y
+CONFIG_MODULE_SRCVERSION_ALL=y
+# CONFIG_BLK_DEV_BSG is not set
+CONFIG_PCI=y
+CONFIG_PM=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_IP_PNP=y
+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
+# CONFIG_INET_XFRM_MODE_TUNNEL is not set
+# CONFIG_INET_XFRM_MODE_BEET is not set
+# CONFIG_INET_LRO is not set
+# CONFIG_INET_DIAG is not set
+# CONFIG_IPV6 is not set
+# CONFIG_WIRELESS is not set
+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+# CONFIG_MISC_DEVICES is not set
+CONFIG_IDE=y
+CONFIG_BLK_DEV_IDECD=y
+CONFIG_IDE_GENERIC=y
+CONFIG_BLK_DEV_GENERIC=y
+CONFIG_BLK_DEV_PIIX=y
+CONFIG_NETDEVICES=y
+CONFIG_NET_ETHERNET=y
+CONFIG_NET_PCI=y
+CONFIG_PCNET32=y
+# CONFIG_NETDEV_1000 is not set
+# CONFIG_NETDEV_10000 is not set
+# CONFIG_WLAN is not set
+# CONFIG_INPUT_KEYBOARD is not set
+# CONFIG_INPUT_MOUSE is not set
+# CONFIG_SERIO_I8042 is not set
+CONFIG_VT_HW_CONSOLE_BINDING=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+# CONFIG_HW_RANDOM is not set
+# CONFIG_HWMON is not set
+# CONFIG_MFD_SUPPORT is not set
+CONFIG_FB=y
+CONFIG_FB_CIRRUS=y
+# CONFIG_VGA_CONSOLE is not set
+# CONFIG_HID_SUPPORT is not set
+# CONFIG_USB_SUPPORT is not set
+CONFIG_EXT2_FS=y
+CONFIG_EXT3_FS=y
+CONFIG_QUOTA=y
+CONFIG_PROC_KCORE=y
+CONFIG_TMPFS=y
+CONFIG_NFS_FS=y
+CONFIG_NFS_V3=y
+CONFIG_ROOT_NFS=y
+# CONFIG_RCU_CPU_STALL_DETECTOR is not set
diff --git a/board/qemu/mips64-malta/readme.txt b/board/qemu/mips64-malta/readme.txt
new file mode 100644
index 0000000..5087b01
--- /dev/null
+++ b/board/qemu/mips64-malta/readme.txt
@@ -0,0 +1,7 @@
+Run the emulation with:
+
+ qemu-system-mips64 -M malta -kernel output/images/vmlinux -serial stdio -hda output/images/rootfs.ext2 -append "root=/dev/hda"
+
+The login prompt will appear in the terminal that started Qemu. The
+graphical window is the framebuffer. No keyboard support has been
+enabled.
diff --git a/configs/qemu_mips64_malta_defconfig b/configs/qemu_mips64_malta_defconfig
new file mode 100644
index 0000000..4271bb3
--- /dev/null
+++ b/configs/qemu_mips64_malta_defconfig
@@ -0,0 +1,24 @@
+# Architecture
+BR2_mips=y
+BR2_mips_64=y
+BR2_MIPS_ABI64=y
+
+# Toolchain
+# uClibc dynamic loader seems broken for mips64
+BR2_PREFER_STATIC_LIB=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.3.8"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mips64-malta/linux-3.3.config"
+BR2_LINUX_KERNEL_VMLINUX=y
+
+# Serial port config
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 0/2] qemu mips64 sample config
  2012-07-25 21:24 [Buildroot] [PATCH 0/2] qemu mips64 sample config Gustavo Zacarias
  2012-07-25 21:24 ` [Buildroot] [PATCH 1/2] mips64: remove toolchain kludge Gustavo Zacarias
  2012-07-25 21:24 ` [Buildroot] [PATCH 2/2] qemu/mips64-malta: add new sample config Gustavo Zacarias
@ 2012-07-26  6:53 ` Thomas Petazzoni
  2012-07-26 11:47   ` Gustavo Zacarias
  2 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2012-07-26  6:53 UTC (permalink / raw)
  To: buildroot

Hello,

Le Wed, 25 Jul 2012 18:24:11 -0300,
Gustavo Zacarias <gustavo@zacarias.com.ar> a ?crit :

> This is a small set that introduces the mips64 qemu sample configuration.
> It's prerequisite is my mips64 tuple patch or Thomas's updated patch that
> enables the mips64 tuple also.
> Tested with qemu 1.1.1 it's flaky, i can't say for sure if it's a toolchain,
> qemu and/or kernel configuration issue since i lack real mips64 hardware to
> test on.
> The biggest issue is login segfaulting so you can't login to the new sample
> shiny emulation, though you can append the old init=/bin/sh to get things
> rolling somehow, though you'll get some other segfaults eventually.

Do you mind if I ask this information to the readme.txt file, so that
the documentation doesn't pretend that it works perfectly if it
doesn't?

Also, with which Qemu version did you try? Did you try with the latest
Git? I was told that some mips64 fixes were merged recently in Qemu.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 0/2] qemu mips64 sample config
  2012-07-26  6:53 ` [Buildroot] [PATCH 0/2] qemu mips64 " Thomas Petazzoni
@ 2012-07-26 11:47   ` Gustavo Zacarias
  0 siblings, 0 replies; 5+ messages in thread
From: Gustavo Zacarias @ 2012-07-26 11:47 UTC (permalink / raw)
  To: buildroot

On 07/26/12 03:53, Thomas Petazzoni wrote:

> Do you mind if I ask this information to the readme.txt file, so that
> the documentation doesn't pretend that it works perfectly if it
> doesn't?
> 
> Also, with which Qemu version did you try? Did you try with the latest
> Git? I was told that some mips64 fixes were merged recently in Qemu.
> 
> Thanks!
> 
> Thomas

I wouldn't mind of course, no need to ask.
With 1.1.1 as i said, i can't get the latest git qemu to build at the
moment (some undefined references to pit_*).
We should probably do our own host-qemu as you said once, it would
enable us to get a precise target with, if needed, necessary patches to
fix some particular scenarios.
Unfortunately i'm terribly busy on weekdays, maybe i can look into it
during the weekend.
Regards.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-26 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 21:24 [Buildroot] [PATCH 0/2] qemu mips64 sample config Gustavo Zacarias
2012-07-25 21:24 ` [Buildroot] [PATCH 1/2] mips64: remove toolchain kludge Gustavo Zacarias
2012-07-25 21:24 ` [Buildroot] [PATCH 2/2] qemu/mips64-malta: add new sample config Gustavo Zacarias
2012-07-26  6:53 ` [Buildroot] [PATCH 0/2] qemu mips64 " Thomas Petazzoni
2012-07-26 11:47   ` Gustavo Zacarias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.