summaryrefslogtreecommitdiff
path: root/target/qemu-mips
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 18:07:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 18:07:43 +0200
commit37175a9783c561c8a3f94b6818dabf512c3674e9 (patch)
treeaf305d32733cbc31b70aa709db228dc8ce6e655f /target/qemu-mips
parent141bcc0f9d8ebfd06865420653333347d19dc39d (diff)
qemu MIPS support
- add support of all MIPS variants - MIPS32 boots fine with MALTA emulation - MIPS64 has a problem booting in 64 kernel mode, even linux 2.6.30rc7 halt on boot - remove Config.default
Diffstat (limited to 'target/qemu-mips')
-rw-r--r--target/qemu-mips/Makefile4
-rw-r--r--target/qemu-mips/device.mk6
-rw-r--r--target/qemu-mips/kernel.config8
-rw-r--r--target/qemu-mips/uclibc.config27
4 files changed, 14 insertions, 31 deletions
diff --git a/target/qemu-mips/Makefile b/target/qemu-mips/Makefile
index ac4a70d91..a66bb5d17 100644
--- a/target/qemu-mips/Makefile
+++ b/target/qemu-mips/Makefile
@@ -19,12 +19,12 @@ imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
@echo "Use following command to create a QEMU Image:"
@echo "sudo ./scripts/create-image.sh -n qemu-mips.img $(BIN_DIR)/$(ROOTFSTARBALL)"
@echo "Start qemu with following options:"
- @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -hda qemu-mips.img -append="root=/dev/hda1 init=/init"'
+ @echo 'qemu-system-mips -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -hda qemu-mips.img -append="root=/dev/hda1 init=/init"'
endif
ifeq ($(FS),initramfs)
imageinstall: $(BIN_DIR)/$(INITRAMFS)
@echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
- @echo 'qemu-system-mipsel -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -initrd ${BIN_DIR}/${INITRAMFS} -append "init=/init"'
+ @echo 'qemu-system-mips -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -initrd ${BIN_DIR}/${INITRAMFS} -append "init=/init"'
endif
diff --git a/target/qemu-mips/device.mk b/target/qemu-mips/device.mk
index 9f912f207..48e5a2352 100644
--- a/target/qemu-mips/device.mk
+++ b/target/qemu-mips/device.mk
@@ -1,7 +1,7 @@
ARCH:= mips
-CPU_ARCH:= mipsel
-KERNEL_VERSION:= 2.6.29.4
+CPU_ARCH:= mips
+KERNEL_VERSION:= 2.6.29.1
KERNEL_RELEASE:= 1
KERNEL_MD5SUM:= 4ada43caecb08fe2af71b416b6f586d8
TARGET_OPTIMIZATION:= -Os -pipe
-TARGET_CFLAGS_ARCH:= -march=mips32
+TARGET_CFLAGS_ARCH:= -march=mips32 -mabi=32
diff --git a/target/qemu-mips/kernel.config b/target/qemu-mips/kernel.config
index 8a78fd922..d88cbf633 100644
--- a/target/qemu-mips/kernel.config
+++ b/target/qemu-mips/kernel.config
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Linux kernel version: 2.6.29.4
-# Fri May 22 13:23:36 2009
+# Linux kernel version: 2.6.29.1
+# Fri May 29 17:54:14 2009
#
CONFIG_MIPS=y
@@ -74,8 +74,8 @@ CONFIG_MIPS_BONITO64=y
CONFIG_MIPS_MSC=y
# CONFIG_NO_IOPORT is not set
CONFIG_GENERIC_ISA_DMA=y
-# CONFIG_CPU_BIG_ENDIAN is not set
-CONFIG_CPU_LITTLE_ENDIAN=y
+CONFIG_CPU_BIG_ENDIAN=y
+# CONFIG_CPU_LITTLE_ENDIAN is not set
CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
CONFIG_IRQ_CPU=y
diff --git a/target/qemu-mips/uclibc.config b/target/qemu-mips/uclibc.config
index 223c3ddd9..b32f17451 100644
--- a/target/qemu-mips/uclibc.config
+++ b/target/qemu-mips/uclibc.config
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Version: 0.9.30
-# Fri Jan 9 14:41:23 2009
+# Version: 0.9.30.1
+# Fri May 29 17:00:25 2009
#
# TARGET_alpha is not set
# TARGET_arm is not set
@@ -35,23 +35,6 @@ TARGET_mips=y
TARGET_ARCH="mips"
FORCE_OPTIONS_FOR_ARCH=y
ARCH_CFLAGS="-mno-split-addresses"
-# CONFIG_GENERIC_386 is not set
-# CONFIG_386 is not set
-# CONFIG_486 is not set
-# CONFIG_586 is not set
-# CONFIG_586MMX is not set
-# CONFIG_686 is not set
-# CONFIG_PENTIUMII is not set
-# CONFIG_PENTIUMIII is not set
-# CONFIG_PENTIUM4 is not set
-# CONFIG_K6 is not set
-# CONFIG_K7 is not set
-# CONFIG_ELAN is not set
-# CONFIG_CRUSOE is not set
-# CONFIG_WINCHIPC6 is not set
-# CONFIG_WINCHIP2 is not set
-# CONFIG_CYRIXIII is not set
-# CONFIG_NEHEMIAH is not set
CONFIG_MIPS_O32_ABI=y
# CONFIG_MIPS_N32_ABI is not set
# CONFIG_MIPS_N64_ABI is not set
@@ -68,9 +51,9 @@ TARGET_SUBARCH=""
# Using ELF file format
#
ARCH_ANY_ENDIAN=y
-ARCH_LITTLE_ENDIAN=y
-# ARCH_WANTS_BIG_ENDIAN is not set
-ARCH_WANTS_LITTLE_ENDIAN=y
+ARCH_BIG_ENDIAN=y
+ARCH_WANTS_BIG_ENDIAN=y
+# ARCH_WANTS_LITTLE_ENDIAN is not set
ARCH_HAS_MMU=y
ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y