Index: arch/mips32/include/elf.h
===================================================================
--- arch/mips32/include/elf.h	(revision f7ea8fab193904c8fb98dc5ae80e55c0da346a8f)
+++ arch/mips32/include/elf.h	(revision 9295b0cfdf14b47adcdef065750baf781094aec6)
@@ -31,5 +31,11 @@
 
 #define	ELF_MACHINE		EM_MIPS
-#define ELF_DATA_ENCODING	ELFDATA2MSB
+
+#ifdef BIG_ENDIAN
+#  define ELF_DATA_ENCODING	ELFDATA2MSB
+#else
+#  define ELF_DATA_ENCODING	ELFDATA2LSB
+#endif
+
 #define ELF_CLASS		ELFCLASS32
 
Index: contrib/conf/spmips.conf
===================================================================
--- contrib/conf/spmips.conf	(revision f7ea8fab193904c8fb98dc5ae80e55c0da346a8f)
+++ contrib/conf/spmips.conf	(revision 9295b0cfdf14b47adcdef065750baf781094aec6)
@@ -23,5 +23,5 @@
               (0x180003ff,      tty0,         0,            7,          1),
               (0x1c000000,      hfs0,         0,            0,         16),
-	      (0x01000000,	initmem0,     0,	    0,	0x20000))
+	      (0x01000000,	initmem0,     0,	    0,	0x100000))
 }
 
@@ -44,5 +44,5 @@
 OBJECT initmem0-image TYPE image {
 	queue: cpu0
-	size: 0x20000
+	size: 0x100000
 	files: (("../../../uspace/init/init", "ro", 0,0))
 }
