Re: [uml-devel] uml doesn't work on 2.6.24-rc2

Jiri Olsa
2007-11-23T10:54:55Z

Hi,

after applying following changes, the mainline is working for me.

Jiri Olsa

diff --git a/arch/um/Kconfig.i386 b/arch/um/Kconfig.i386
index e0ac74e..234fcb4 100644
--- a/arch/um/Kconfig.i386
+++ b/arch/um/Kconfig.i386
@@ -8,6 +8,13 @@ config UML_X86
bool
default y

+config X86_32
+ bool
+ default y
+
+config RWSEM_XCHGADD_ALGORITHM
+ def_bool y
+
config 64BIT
bool
default n
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 31999bc..ba6813a 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -168,7 +168,7 @@ ifneq ($(KBUILD_SRC),)
$(Q)mkdir -p $(objtree)/include/asm-um
$(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) include/asm-um/arch
else
- $(Q)cd $(TOPDIR)/include/asm-um && ln -fsn ../asm-$(SUBARCH) arch
+ $(Q)cd $(TOPDIR)/include/asm-um && ln -fsn ../asm-$(HEADER_ARCH) arch
endif

$(objtree)/$(ARCH_DIR)/include:

Karol Swietlicki wrote:
> On 23/11/2007, Jeff Dike <jdike@addtoit.com> wrote:
>> On Thu, Nov 22, 2007 at 07:08:47PM +0100, Miklos Szeredi wrote:
>>> Thanks. My other problem is (probably you are aware) that recent -mm
>>> kernels don't compile for UML.
>> The patch below fixes the build for rc3-mm1 for me.
>>
>> Jeff
>
> There must be something more to it. I got a clean -mm and it still
> does not build after applying the patch. It does have less problems,
> but it still won't build. I tried to get it to compile for half an
> hour, but considering the amount of sleep I got (and my experience),
> there is no surprise that I failed miserably. After fixing the
> complaint about a structure not having a 'x86' member, it died in the
> linker complaining about stuff relating to rwsem.h.
>
> Karol Swietlicki
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>