marco barcellona | 1 Dec 2003 08:36
Picon
Favicon

[uml-user] (virtual shared resources) Great!!

Hi Nuno,
 
Your trick works perfectly!!!!!
Now I can start playing with my cluster projects ...
 
Thanks a lot for your interest,
 
 
Marco
Nicolas Nobelis | 1 Dec 2003 09:37
Picon

Re : [uml-user] Kernel 2.4.22-5 on Debian / Unstable

Hi 

I don't know if you got an answer, but here comes the solution : the header file
of the kernel source with a Debian Unstable are wrong. You can get ride of this
error with this (your arch is the arch of your computer, in most case i386)

cp /usr/include/asm/ldt.h /usr/include/asm/ldt.h.bak
and then
cd <uml kernel source tree>
cp include/asm-<your arch>/ldt.h /usr/include/asm/ldt.h.
It's not a pretty solution, but it work.

And then, you'll have another error, with ptrace_user, so edit 
<uml kernel source tree>/arch/um/sys-i386/ptrace_user.c and add 
#include "linux/ptrace.h"
to the list of the included files in the top of the file.

And don't forget to compile also your own uml-utilities for your kernel.

For your gcc question, try to use the alternatives to update your version :
update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-2.95 0
update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-3.3  1
and then 
update-alternatives --config cc

Hope that it'll help you

Nicolas Nobelis
Student Enginner
ESSI
Sophia Antipolis, France

> Greetings List,
> 
> I am having some problems building a custom user-mode-linux kernel package
> under Debian Unstable.
> 
> I did a
> 
> apt-get source user-mode-linux
> 
> and
> 
> debian/rules unpack
> debian/rules patch
> 
> which unpacked kernel-source-2.4.22-5.tar.bz2 and patched it with the patch
> for the same kernel found in the kernel-patch-uml package.
> 
> When I then try and compile, I am getting ...
> 
> 
> make[3]: Entering directory
> `/usr/src/user-mode-linux-2.4.22-5um/kernel-source-2.4.22/arch/um/sys-i386'
> gcc-2.95   -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fn
> o-common -O2 -fomit-frame-pointer -
> U__i386__ -Ui386 -DUM_FASTCALL -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE
> 64_SOURCE  -I/usr/src/user-mode-lin
> ux-2.4.22-5um/kernel-source-2.4.22/arch/um/include -I/usr/src/user-mode-linu
> x-2.4.22-5um/kernel-source-2.4.22/a
> rch/um/kernel/skas/include -D_GNU_SOURCE -c -o bugs.o bugs.c
> In file included>  from /usr/include/asm/sigcontext.h:4,
>                  from /usr/include/bits/sigcontext.h:28,
>                  from /usr/include/signal.h:326,
>                 >  from /usr/include/sys/signal.h:1,
>                  from bugs.c:9:
> /usr/include/linux/compiler.h:17: warning: `__attribute_used__' redefined
> /usr/include/sys/cdefs.h:195: warning: this is the location of the previous
> definition
> bugs.c: In function `disable_lcall':
> vbugs.c:111: storage size of `ldt' isn't known
> vbugs.c:118: warning: implicit declaration of function `modify_ldt'
> bugs.c:111: warning: unused variable `ldt'
> make[3]: *** [bugs.o] Error 1
> make[3]: Leaving directory
> `/usr/src/user-mode-linux-2.4.22-5um/kernel-source-2.4.22/arch/um/sys-i386'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory
> `/usr/src/user-mode-linux-2.4.22-5um/kernel-source-2.4.22/arch/um/sys-i386'
> make[1]: *** [_dir_arch/um/sys-i386] Error 2
> make[1]: Leaving directory
> `/usr/src/user-mode-linux-2.4.22-5um/kernel-source-2.4.22'
> make: *** [build-stamp] Error 2
> 
> I browsed through the list archive and found a similar error from someone
> else, but there was no follow up.
> 
> Another quick question.  Why is it compiling with gcc-2.95 when I have
> gcc-3.3 installed on my system.
> 
> I doubt this error is related, but just something I noticed.
> 
> If anyone has a solution to this problem, your help would greatly be
> appreciated.
> 
> Thanks
> 
> 
> Mitchell

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
roland | 1 Dec 2003 10:12
Picon
Picon

[uml-user] Re: [uml-devel] How to copy COW files to another machine across the network?

hi !
> That's correct. It's on my todo list, but not high in the priority of things.
ohh, too bad - but many people would like it! ;)
-> http://usermodelinux.org/modules.php?name=Surveys&op=results&pollID=7&mode=&order=&thold=
regards
roland

----- Original Message ----- 
From: "Nigel Cunningham" <ncunningham <at> clear.net.nz>
To: "Henrik Nordstrom" <hno <at> marasystems.com>
Cc: "roland" <for_spam <at> gmx.de>; "Shao-Lin Joseph Chung" <sc57 <at> cs.waikato.ac.nz>; "UML User list"
<user-mode-linux-user <at> lists.sourceforge.net>; "UML Devel list" <user-mode-linux-devel <at> lists.sourceforge.net>
Sent: Monday, December 01, 2003 12:31 AM
Subject: Re: [uml-devel] How to copy COW files to another machine across the network?

> Hi.
>
> On Mon, 2003-12-01 at 10:37, Henrik Nordstrom wrote:
> > > if it would have swsusp - i could even relocate a running instance - like
> > > i can do with vmware.
> >
> > To my knowledge nobody has solved suspend with UML yet..
>
> That's correct. It's on my todo list, but not high in the priority of
> things.
>
> Regards,
>
> Nigel
> -- 
> Nigel Cunningham
> 495 St Georges Road South, Hastings 4201, New Zealand
>
> Evolution (n): A hypothetical process whereby infinitely improbable events occur
> with alarming frequency, order arises from chaos, and no one is given credit.
>

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Giorgio Bellussi | 1 Dec 2003 10:53
Picon

Re: [uml-user] problem rgarding using UML

Please look at:
http://sourceforge.net/mailarchive/message.php?msg_id=4478277
Hope this help.
G

subramaniam V wrote:

>I downloaded linux kernael version 2.4.18.
>the patched it using version 2.4.18-53.
>
>After that I downloaded various root file systems from
>this web-site
>,like Debian-3.0r0.ext2.bz2
>Debian-3.0r0.ext2.bz2.
>
>when I try running UML using 
>linux ubd0=Debian-3.0r0.ext2,
>where linux is the compiled kernel(executable)
>I get the following error.
> 
>xterm Xt error: Can't open display: 
>
>
>I really dont know how to proceed, to identify the
>source of error.
>
>Subramaniam
>
>
>________________________________________________________________________
>Yahoo! India Mobile: Download the latest polyphonic ringtones.
>Go to http://in.mobile.yahoo.com
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SF.net Giveback Program.
>Does SourceForge.net help you be more productive?  Does it
>help you create better code?  SHARE THE LOVE, and help us help
>YOU!  Click Here: http://sourceforge.net/donate/
>_______________________________________________
>User-mode-linux-user mailing list
>User-mode-linux-user <at> lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>
>  
>

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
热门推荐 | 1 Dec 2003 11:46
Favicon

[uml-user] 《木子美网络遗情风暴》

------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

Goetz Bock | 1 Dec 2003 14:31
Picon

[uml-user] kernel panic after starting klogd


Dear list,

I've got a stupid bug in my recent 2.4.22-6um kernel.

I'm running 2.4.23 with skas3 on the host (a via epia/666 with 256MB
Ram), have TEMPDIR on tmpfs and try to run 2.4.22-6um patched with mppe
and super-free-swan.

The static version (e.g. no modules) works fine, but I've to choose
between mppe or freeSwan (as both defnie sha1 / md5 and i'm not able t
link both).

The modular version with debuging enabled works fine, but the version
I'd like to use (without debuging) oopses:

    Kernel panic: Kernel mode fault at addr 0x4280e000, ip 0x400e3958

shortly after starting klogd

    daemon klogd -u syslog

when started during boot it's unable to print [ok], when started from
the shell it sometimes returns to the input prompt but panics right
afterwards.

i've suspected faulty memory, but running memtest86 for 12 runs did not
turn up any error.

Starting more programs on the host, to change the memory map did not
help either.

Any ideas how to debug this?

OTOH: if I would be able to use super-freeswan, pppoe (rp-pppoe) and
      pptp with mppe from a not modular kernel I'd be even more happy. 
      But I only got linux-2.4.19-openssl-0.9.6b-mppe.patch and can't
      find a more recent version.

BTW: I'm running Trustix 2.0 on both host and instance.
--

-- 
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /                       (c) 2003 as GPL 2.0
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
BlaisorBlade | 1 Dec 2003 20:26
Picon
Favicon

Re: [uml-user] um6 and 2.4.22

Alle 23:02, domenica 30 novembre 2003, G Henry ha scritto:
> Just tried compiling these tonight and get a header file error:
> did `make xconfig ARCH=um` first, as per website compile instructions, then
> this:
>
> `make linux ARCH=um`
> make -C arch/um/sys-i386/util mk_sc
> make[1]: Entering directory
> `/home/slim_jim/kernels/linux-2.4.22/arch/um/sys-i386/util'
> gcc -c mk_sc.c
> mk_sc.c:3:26: linux/stddef.h: No such file or directory
> mk_sc.c: In function `main':
> mk_sc.c:21: error: syntax error before "struct"
>
> running fedora core 1.
>
> stddef.h is there though.
Verify that you have a /usr/include/linux/stddef.h header(this path is the 
relevant one) and make sure it contains these lines:

#undef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)

Bye
--

-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
BlaisorBlade | 1 Dec 2003 20:34
Picon
Favicon

Re: [uml-user] problems in compiling user mode linux and normal linux v2.4.22

Alle 02:58, domenica 30 novembre 2003, subramaniam V ha scritto:
> I have been trying to compile Linux version 2.4.22 for
> the past 2 days, but were not able to do so.
>
> I want to use 2.4.22, because that is the most stable
> version.

Would you please post a lot of lines ABOVE these ones? The error text is 
above.
> make[2]: *** [sched.o] Error 1
> make[2]: Leaving directory
> `/var/local/vsu/linux-2.4.22/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory
> `/var/local/vsu/linux-2.4.22/kernel'
> make: *** [_dir_kernel] Error 2

Would you also tell us what version of Gcc and which distribution you use?
Note that to compile the normal kernel you mustn't type
 make
after "make dep", but 
 make bzImage
and then
 make modules && make modules_install

On my own, I use this contracted form after kernel configuration(make 
xconfig):
 make dep bzImage modules modules_install

or, if I have any problem, I add the cleaning with this form:
 make dep clean bzImage modules modules_install

Bye
--

-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
chip | 1 Dec 2003 15:17
Gravatar

RE: [uml-user] bug: [ 851759 ] SuSE YAST in textmode does not work

I have experienced the same problem.  I have not found the solution 
either.  To work around it I open a second session to the same UML I ran 
YaST in.  I run top and kill the stuck y2base.  It will spawn one more 
y2base that again gets "stuck" and I kill it also.  After killing it 
twice YaST proceeds forward as usual.  There are times it will not get 
stuck at all, but rarely.  Something y2base is checking in UML is not 
returning as all the CPU time goes to the kernel when it is hung.  

I think it is a UML bug, but I haven't found the time to isolate where 
it is hanging up.

What version of SuSE are you using in the UML?  I've only worked with 
8.1 and 8.2.  I'm curious if SuSE has done anything to fix this in 9.0 
since they are working more with UML now.

Chip Schweiss

> -----Original Message-----
> From: for.spam [mailto:for_spam <at> gmx.de]
> Sent: Sunday, November 30, 2003 5:04 PM
> To: user-mode-linux-devel; user-mode-linux-user
> Subject: [uml-user] bug: [ 851759 ] SuSE YAST in textmode 
> does not work
> 
> 
> Hi,
> i have submitted a bugreport related to yast:
> http://sourceforge.net/tracker/index.php?func=detail&atid=1004
> 29&aid=851759&group_id=429
> i don`t know if it`s a yast bug or if it`s a uml bug - but 
> the effect is, that yast isn`t really usable inside an uml. did others
> experience this bug?  comments?
> 
> regards
> roland
> 
> ps:
> it is important for me to fix this, because if i setup uml`s 
> for my users, the first thing they will do is firing up yast 
> to install
> packages. so - this is an essential tool which should work correct.
> 
> pps:
> sorry for flooding uml-lists with so many posts - but i had 
> just some time this weekend :D
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> 

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Chris Zimmerman | 2 Dec 2003 21:00
Picon

[uml-user] Problem compiling 2.4.22 with 2.4.22-6 patch

Anyone know what this means?

Are there any newer patches?  I have seen something mentioned about skas4 
in this list, but I have not had the opportunity to look into it.

mot2:/home/czimmer/uml/2.4.22-uml # make linux ARCH=um
cd /home/czimmer/uml/2.4.22-uml/include/asm-um && ln -sf ../asm-i386 arch
cd /home/czimmer/uml/2.4.22-uml/arch/um/include && ln -sf sysdep-i386 
sysdep
cd arch/um && ln -sf os-Linux os
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf archparam-i386.h archparam.h
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf system-i386.h system.h
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf sigcontext-i386.h sigcontext.h
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf processor-i386.h processor.h
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf ptrace-i386.h ptrace.h
cd /home/czimmer/uml/2.4.22-uml/include/asm-um/ ; \
ln -sf arch-signal-i386.h arch-signal.h
sed 's/ CONFIG/ UML_CONFIG/' 
/home/czimmer/uml/2.4.22-uml/include/linux/autoconf.h > 
arch/um/include/uml-config.h
make -C arch/um/sys-i386/util mk_sc
make[1]: Entering directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/sys-i386/util'
gcc -c mk_sc.c
gcc -o mk_sc mk_sc.o
make[1]: Leaving directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/sys-i386/util'
make -C arch/um/kernel/skas include/skas_ptregs.h
make[1]: Entering directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/kernel/skas'
make -C util
make[2]: Entering directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/kernel/skas/util'
gcc -c mk_ptregs.c
mk_ptregs.c: In function `main':
mk_ptregs.c:14: `FRAME_SIZE' undeclared (first use in this function)
mk_ptregs.c:14: (Each undeclared identifier is reported only once
mk_ptregs.c:14: for each function it appears in.)
make[2]: *** [mk_ptregs.o] Error 1
make[2]: Leaving directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/kernel/skas/util'
make[1]: *** [util/mk_ptregs] Error 2
make[1]: Leaving directory 
`/home/czimmer/uml/2.4.22-uml/arch/um/kernel/skas'
make: *** [arch/um/kernel/skas/include/skas_ptregs.h] Error 2

-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8

Gmane