LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 09-17-2004, 04:10 AM   #1
EggZ
LQ Newbie
 
Registered: Sep 2004
Location: Sweden
Posts: 3

Rep: Reputation: 0
User Mode Linux (UML)


I'm trying to install user mode linux on FC2, but I've run into some trouble.
I downloaded the 2.6.7 source from kernel.org and the UML patch from user-mode-linux.org/~blaisorblade (uml-patch-2.6.7-01.bz2).

I applied the patch with "bzcat uml-patch-2.6.7-01.bz2 |patch -p1".
Then I configured the kernel using "make gconfig ARCH=um", and only added the PROC/mm option.
After that "make linux modules ARCH=um".
Compiles for some time, and the end result becomes (last couple of lines):

Code:
gcc -Wl,-T,arch/um/uml.lds.s -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
-o linux arch/um/main.o vmlinux -L/usr/lib -lutil
vmlinux(.text+0x6acf): In function `mem_init':
arch/um/kernel/mem.c:71: undefined reference to `phys_page'
vmlinux(.init.text+0x3268): In function `kmap_init':
include/asm/pgtable.h:394: undefined reference to `pte_offset'
collect2: ld returned 1 exit status
make: *** [linux] Error 1
[root@UML-TEST linux]#
I have not compiled that many kernels before, so this is kind of new to me. What am I doing wrong?
Should I give it a try on a 2.4 kernel instead?
 
Old 09-17-2004, 06:18 AM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Are you using the correct gcc version,
AFAIK the only "valid" gcc version to compile a kernel is 2.95
Anything else you're on your own.....
 
Old 09-17-2004, 06:25 AM   #3
EggZ
LQ Newbie
 
Registered: Sep 2004
Location: Sweden
Posts: 3

Original Poster
Rep: Reputation: 0
gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

So are you saying you can't compile a kernel with this one, or you can't compile a UML kernel?
 
Old 09-20-2004, 09:02 AM   #4
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Gcc

I am implying that,
when you are using a different version of gcc, you are on your own.

To check, install gcc 2.95 and try again,
the error message you see _can_ come from an incompatible gcc.
I know this sounds strange.
But I know for a fact that the kernel is very picky on the gcc version you want to use,
same goes for libtool and your complete build chain.

Samething when you try to compile modules for your kernel with a different gcc version,
it might work, it may not.
 
Old 09-20-2004, 10:46 AM   #5
EggZ
LQ Newbie
 
Registered: Sep 2004
Location: Sweden
Posts: 3

Original Poster
Rep: Reputation: 0
When using a kernel configuration I found on the internet, it compiled properly.
http://www.citi.umich.edu/projects/a.../2.6.6uml.html

Now I'm having problem with the uml segfaulting when trying to start it But atleast I'm on track again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Mode Linux theblaze Linux - Software 1 11-22-2005 03:15 PM
UML--->compiling user mode linux in kernel 2.6 waqasgujjar Red Hat 0 12-18-2004 03:20 PM
user mode linux supradrvr Linux - Software 0 06-01-2004 10:29 PM
user mode linux? ZoZo Linux - Newbie 1 09-21-2002 11:54 AM
User-Mode Linux darkmage Linux - General 2 08-05-2002 06:08 PM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration