[uml-user] modifying page table permissions

2008-11-24 Thread Jon Rafkind
I am trying some experiments involving the modification of the permissions on pages but I can't seem to get a valid pte in the first place. I wrote a little driver that has the following code in its init routine. void init(){ void * memory; pgd_t * pgd; pud_t * pud; pmd_t * pmd;

Re: [uml-user] How to build the UML for the Linux kernel 2.6.14

2008-10-23 Thread Jon Rafkind
version will work. I'm not linux developer but I would guess that a patch or linux must be made against the latest version. I don't see how a patch against 2.6.14 could be included in the main distribution (unless it applies cleanly to the latest of course). > - Original Message

Re: [uml-user] How to build the UML for the Linux kernel 2.6.14

2008-10-23 Thread Jon Rafkind
What version of gcc are you using? Also, is there a good reason you want to use 2.6.14 instead of a newer kernel? [EMAIL PROTECTED] wrote: > Dear Sir, > > I failed to build the user-mode Linux with the Linux kerenl 2.6.14. The Linux > kernel is downloaded > from www.kernel.org. The commands used

Re: [uml-user] could not boot

2008-08-28 Thread Jon Rafkind
Looks like a simple matter of the rootfs file not being there. Did you bunzip2 FedoraCora5-x86-root_fs.bz2? guodonn wrote: Hi All. I am new to UML, i download the linux-2.6.24-rc7.bz2 and FedoraCora5-x86-root_fs.bz2 from http://user-mode-linux.sourceforge.net/ Then i follow the instructions:

Re: [uml-user] cant boot 2.6.25

2008-04-17 Thread Jon Rafkind
Jeff Dike wrote: > On Thu, Apr 17, 2008 at 11:43:09AM -0600, Jon Rafkind wrote: > >> If I used root=/dev/ubd0 or root=/dev/ubda I get basically the same error >> > > Looks like a severe misconfiguration problem - like you used the > host's .config. I wou

Re: [uml-user] cant boot 2.6.25

2008-04-17 Thread Jon Rafkind
n unknown-block(0,0) Adding con0=... did not get rid of the parse_chan_pair errors. Antoine Martin wrote: > have you tried adding root=/dev/ubda ? > > using ubda/b/c instead of ubd0/1/2? > > And for the parse_chan_pair warnings, you may also want: > con0=fd:0,fd:1 con=null > >

[uml-user] cant boot 2.6.25

2008-04-17 Thread Jon Rafkind
I just tried UML with the new 2.6.25 kernel but it would not boot up properly. I was using the same rootfs with 2.6.21.3 and it worked fine. $ file rootfs/Gentoo-2006.1-AMD64-root_fs rootfs/Gentoo-2006.1-AMD64-root_fs: Linux rev 1.0 ext3 filesystem data (large files) $ ./linux ubd0=rootfs/Gentoo

Re: [uml-user] looking for network-ready fedora 8 kernel and root fs

2008-03-04 Thread Jon Rafkind
You can try this blog post I wrote about UML and networking. I wrote it after the fact so it might be missing things but I did do things manually all the way through. http://www.rafkind.com/jon/showproject.php?id=34 Robert P. J. Day wrote: > On Wed, 5 Mar 2008, Antoine Martin wrote: > > >> ---

[uml-user] parse_chan_pair failed

2007-12-17 Thread Jon Rafkind
Hi, I am getting a new error message with UML. First a few lines of Using a channel type which is configured out of UML parse_chan_pair failed for device 15 : Configuration failed and then the vfs can't mount the root partition specified with ubd0. VFS: Cannot open root device "98:0" or unknow

[uml-user] getting uml talk to outside network

2007-11-17 Thread Jon Rafkind
I set up tuntap so that my uml instance has an ip, 192.168.0.1, and can talk to the host, 192.168.0.254, which works fine but when I try to talk to the rest of the world from uml any command will just hang. # wget www.google.com --08:41:58-- http://www.google.com/ => `index.html' Resol

Re: [uml-user] gdb + uml

2007-10-29 Thread Jon Rafkind
Jon Rafkind wrote: > Jeff Dike wrote: > >> On Tue, Sep 18, 2007 at 01:48:09PM -0600, Jon Rafkind wrote: >> >> >>> How can I use gdb to debug uml? I get a segfault because I have been >>> hacking on the ext3 code but I can't seem to us

Re: [uml-user] gdb + uml

2007-10-29 Thread Jon Rafkind
Jeff Dike wrote: > On Tue, Sep 18, 2007 at 01:48:09PM -0600, Jon Rafkind wrote: > >> How can I use gdb to debug uml? I get a segfault because I have been >> hacking on the ext3 code but I can't seem to use gdb to set breakpoints >> in uml >> >&g

[uml-user] printk before console is set up

2007-09-27 Thread Jon Rafkind
Is there a way to view printk's from UML before the console is fully set up? I am getting a segfault before printk can make its way to the console so I can't view any output. Basically my session is this: ... Checking for the skas3 patch in the host: - /proc/mm...not found: No such file or direc

[uml-user] gdb + uml

2007-09-18 Thread Jon Rafkind
How can I use gdb to debug uml? I get a segfault because I have been hacking on the ext3 code but I can't seem to use gdb to set breakpoints in uml gdb) break ext3_fill_super gdb) run ... Program received signal SIGSEGV, Segmentation fault. 0x080d9e97 in ext3_count_free_blocks (sb=0x87e38c0) at fs

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
>>> >>> >> It's a 32-bit binary on a 32-bit host, or 64-on-64? >> >> > Hm, thats interesting too. My host is 64-bit which is what I copied all > the files from for the UML fs. I must be compiling linux as 64-bit, > though, and /sbin/init as well as /bin/sh can exec ok. > Sor

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
Jeff Dike wrote: > On Wed, Aug 29, 2007 at 09:43:27AM -0600, Jon Rafkind wrote: > >>> What happens if you chroot to mnt and try to run sulogin? >>> >>> >> I was able to run sulogin at first although it complained about the >> password fi

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
Jon Rafkind wrote: >>> I think I have all the right libraries for /sbin/sulogin in my image but >>> it still won't exec. Any ideas? >>> >>> $ ldd mnt/sbin/sulogin >>> linux-gate.so.1 => (0xe000) >>> libcrypt.so.1 =&

Re: [uml-user] [newbie] sulogin tries to open /dev/console

2007-08-29 Thread Jon Rafkind
>> I think I have all the right libraries for /sbin/sulogin in my image but >> it still won't exec. Any ideas? >> >> $ ldd mnt/sbin/sulogin >> linux-gate.so.1 => (0xe000) >> libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebe000) >> libc.so.6 => /lib/libc.so.6 (0xb7d96000) >>

[uml-user] [newbie] sulogin tries to open /dev/console

2007-08-28 Thread Jon Rafkind
I'm trying to use UML so that I can hack on linux a bit but am having trouble getting UML up and running. Initially I tried the kernel and fs listed on the UML.sf.net site which worked ok except it didn't want to load the hostfs module so I couldn't easily copy over any files on my host system. I'