From: Pravin <shi...@gm...> - 2007-01-16 17:44:56
|
Hi, I was trying to compile the UML enabled 2.6 series kernel, but i am facing many problems in the process. I am giving few attempts that I made over here Please let me know if I am doing anything wrong. -------------------------------------------------------------------------------------------- 1) Compiling kernel 2.6.18.3 in Following the instructions from http://uml.jfdi.org/uml/Wiki.jsp?page=BuildingUML the SAKS patch used is from http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/skas-2.6.18-v9-pre9/skas-2.6.18-v9-pre9.patch.bz2 {{{ make mrproper ARCH=um make menuconfig ARCH=um make linux ARCH=um }}} I got following error {{{ arch/um/os-Linux/skas/process.c: In function 'copy_context_skas0': arch/um/os-Linux/skas/process.c:328: error: 'PAGE_SHIFT' undeclared (first use in this function) arch/um/os-Linux/skas/process.c:328: error: (Each undeclared identifier is reported only once arch/um/os-Linux/skas/process.c:328: error: for each function it appears in.) arch/um/os-Linux/skas/process.c:560:2: warning: #warning need cpu pid in switch_mm_skas make[2]: *** [arch/um/os-Linux/skas/process.o] Error 1 make[1]: *** [arch/um/os-Linux/skas] Error 2 make: *** [arch/um/os-Linux] Error 2 }}} When I greped kernel source code for "#define PAGE_SHIFT" I got many entries for "#define PAGE_SHIFT 12". I also find out that "arch/um/include/uml-config.h" is included in "arch/um/os-Linux/skas/process.c" so, I added "#define PAGE_SHIFT 12" in "arch/um/include/uml-config.h" file to get rid of this error. After this modification, the compilation finished successfully Finally while trying to run it, i got following error {{{ my_machine%./linux ../../Debian-3.0r0.ext2 Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} --------------------------------------------------------------------------------------------------------------- 2) Compiling the kernel 2.6 source code. I am doing this experiment in location /home/pravin/uml/linux-2.6.13.4 I also tried to compile "kernel-2.6.13.4" with patch "skas-2.6.13-rc7-v9-pre7.patch" After fixing similar compile time problems like above, I managed to compile it. {{{ ./linux ubd0=../root_fs_slack8.1 }}} but this gave me following kernel panic {{{ VFS: Cannot open root device "98:0" or unknown-block(98,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0) EIP: 0073:[<a0182b51>] CPU: 0 Not tainted ESP: 007b:a7f09fac EFLAGS: 00200282 Not tainted EAX: 00000000 EBX: 00007929 ECX: 00000013 EDX: 00007929 ESI: 00007928 EDI: 00000000 EBP: a7f09fb8 DS: 007b ES: 007b a08b3abc: [<a0026dcc>] show_regs+0x17c/0x1e0 a08b3aec: [<a001764c>] panic_exit+0x2c/0x50 a08b3b0c: [<a003ca14>] notifier_call_chain+0x34/0x50 a08b3b2c: [<a002b0d6>] panic+0x76/0x110 a08b3b5c: [<a0001ab1>] mount_block_root+0xb1/0x120 a08b3bac: [<a0001b7f>] mount_root+0x5f/0x70 a08b3bcc: [<a0001bb3>] prepare_namespace+0x23/0xf0 a08b3bfc: [<a000e298>] init+0xe8/0x100 a08b3c2c: [<a00118e5>] run_kernel_thread+0x35/0x40 a08b3cec: [<a001c3ca>] new_thread_handler+0x9a/0xd0 a08b3d1c: [<a7f0b420>] 0xa7f0b420 }}} -------------------------------------------------------------------------------------------------------------- 3) I also tried to use the UML enabled kernel binaries available from site http://www.user-mode-linux.org/~blaisorblade/ Unfortunately, both kernels that i tried didnt worked properly... I tried out following binaries um32-2.6.13-release-mod um32-2.6.14-release-mod The error that I got was kernel panic related to start_userspace {{{ mapping mmap stub failed, errno = 12 Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256 EIP: 0073:[<a01bf071>] CPU: 0 Not tainted ESP: 007b:a7f0dfac EFLAGS: 00200282 Not tainted EAX: 00000000 EBX: 000079f4 ECX: 00000013 EDX: 000079f4 ESI: 000079f3 EDI: 00000000 EBP: a7f0dfb8 DS: 007b ES: 007b a08afa5c: [<a003071a>] show_regs+0x21a/0x230 a08afa8c: [<a001787c>] panic_exit+0x2c/0x50 a08afa9c: [<a0047665>] notifier_call_chain+0x25/0x40 a08afabc: [<a0034e41>] panic+0x71/0x100 a08afadc: [<a001bbb9>] start_userspace+0xe9/0x1a0 a08afb1c: [<a001b5ec>] init_new_context_skas+0x13c/0x160 a08afb4c: [<a0085248>] do_execve+0x238/0x240 a08afb7c: [<a000e8a6>] execve1+0x36/0x80 a08afbac: [<a000e910>] um_execve+0x20/0x60 a08afbcc: [<a000e188>] run_init_process+0x48/0x70 a08afbfc: [<a000e26d>] init+0xbd/0x130 a08afc1c: [<a0011af9>] run_kernel_thread+0x39/0x50 a08afcdc: [<a001c814>] new_thread_handler+0xc4/0x120 a08afd1c: [<a7f0f420>] 0xa7f0f420 }}} ------------------------------------------------------------------------------------------------------------- File-systems that I used were downloaded from following links {{{ http://nchc.dl.sourceforge.net/sourceforge/user-mode-linux/Debian-3.0r0.ext2.bz2 http://jaist.dl.sourceforge.net/sourceforge/user-mode-linux/root_fs_slack8.1.bz2 }}} I am using Debian system with kernel-2.6.18 Sorry for such a long mail.... Thanx in advance -- Pravin Shinde |
From: Antoine M. <an...@na...> - 2007-01-16 17:55:06
|
> the SAKS patch used is from > http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/skas-2.6.18-v9-pre9/skas-2.6.18-v9-pre9.patch.bz2 Try using 8.2 as there are problems with v9-pre9 > my_machine%./linux ../../Debian-3.0r0.ext2 > Checking that ptrace can change system call numbers...OK > Checking syscall emulation patch for ptrace...OK > Checking advanced syscall emulation patch for ptrace...OK > Checking for tmpfs mount on /dev/shm...OK > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > /dev/shm/ must be not mounted noexec as it says, do not mount /dev/shm noexec OR use another TEMP directory --------------------------------------------------------------------------------------------------------------- > 2) > Compiling the kernel 2.6 source code. > I am doing this experiment in location /home/pravin/uml/linux-2.6.13.4 > > I also tried to compile "kernel-2.6.13.4" with patch > "skas-2.6.13-rc7-v9-pre7.patch" That's quite old, don't bother. > -------------------------------------------------------------------------------------------------------------- > 3) > I also tried to use the UML enabled kernel binaries available > from site http://www.user-mode-linux.org/~blaisorblade/ > Unfortunately, both kernels that i tried didnt worked properly... > I tried out following binaries > um32-2.6.13-release-mod > um32-2.6.14-release-mod These are also too old. Have your tried the kernels that I have made? http://uml.nagafix.co.uk/ > File-systems that I used were downloaded from following links > {{{ > http://nchc.dl.sourceforge.net/sourceforge/user-mode-linux/Debian-3.0r0.ext2.bz2 > http://jaist.dl.sourceforge.net/sourceforge/user-mode-linux/root_fs_slack8.1.bz2 These are quite old too... But should still work. Same address as above for some other filesystems. |
From: Pravin <shi...@gm...> - 2007-01-17 06:12:11
|
Thanx 4 replying, > > Have your tried the kernels that I have made? > http://uml.nagafix.co.uk/ > I tested kernel32-2.4.32-bs3 from your site, This is running fine without problems :-) But I need 2.6 kernels running In UML mode properly I tried following kernel from uml.nagafix.co.uk "kernel32-2.6.15.7-bb6" and "kernel32-2.6.15.7-bb6" gave same error as following {{{ VFS: Mounted root (ext3 filesystem) readonly. mapping stub code failed, errno = 12 Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256 }}} and with "kernel32-2.6.19.2" and "kernel32-2.6.17.13-gcc3.4.6 " i am getting {{{ Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} In order to get rid of /dev/shm problem, I tried to modify the "/etc/fstab" file directly on my own, I added {{{ shm /dev/shm tmpfs exec 0 0 }}} I also tried to change the options to defaults but its not working. I am using file system "Debian 3.1" from your site for testing these things. I also used "Fedora core 5" file system for testing purpose. I do need 2.6 kernel in UML mode running, Can I get help about which exact version of kernel, and which excat version of patch will work fine some file system.... Am i doing some basic mistake in doing all these experiments...? -- Pravin Shinde |
From: Jeff D. <jd...@ad...> - 2007-01-17 06:50:34
|
On Wed, Jan 17, 2007 at 11:42:07AM +0530, Pravin wrote: > "kernel32-2.6.15.7-bb6" and "kernel32-2.6.15.7-bb6" gave same error as following > > {{{ > VFS: Mounted root (ext3 filesystem) readonly. > mapping stub code failed, errno = 12 > Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256 > }}} In this case, I'd say you need to try a recent UML (and see below). > and with "kernel32-2.6.19.2" and "kernel32-2.6.17.13-gcc3.4.6 " i am getting > {{{ > Checking for tmpfs mount on /dev/shm...OK > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > /dev/shm/ must be not mounted noexec > }}} > > In order to get rid of /dev/shm problem, > I tried to modify the "/etc/fstab" file directly on my own, > I added > {{{ > shm /dev/shm tmpfs > exec 0 0 > }}} > I also tried to change the options to defaults but its not working. Not working exactly how? > I do need 2.6 kernel in UML mode running, > Can I get help about which exact version of kernel, and which excat version > of patch will work fine some file system.... Any recent UML from kernel.org should boot any of the nagafix filesystems, I think - I have personal experience with 2-3 of the filesystems. > Am i doing some basic mistake in doing all these experiments...? Probably, but I don't see enough information to figure out what. Jeff -- Work email - jdike at linux dot intel dot com |
From: Pravin <shi...@gm...> - 2007-01-17 09:10:41
|
On 1/17/07, Jeff Dike <jd...@ad...> wrote: > On Wed, Jan 17, 2007 at 11:42:07AM +0530, Pravin wrote: > > "kernel32-2.6.15.7-bb6" and "kernel32-2.6.15.7-bb6" gave same error as following > > > > {{{ > > VFS: Mounted root (ext3 filesystem) readonly. > > mapping stub code failed, errno = 12 > > Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256 > > }}} > > In this case, I'd say you need to try a recent UML (and see below). > > > and with "kernel32-2.6.19.2" and "kernel32-2.6.17.13-gcc3.4.6 " i am getting > > {{{ > > Checking for tmpfs mount on /dev/shm...OK > > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > > /dev/shm/ must be not mounted noexec > > }}} > > > > In order to get rid of /dev/shm problem, > > I tried to modify the "/etc/fstab" file directly on my own, > > I added > > {{{ > > shm /dev/shm tmpfs > > exec 0 0 > > }}} > > I also tried to change the options to defaults but its not working. > > Not working exactly how? Even after these changes, i get same error as I was getting before these changes {{{ Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} > > > I do need 2.6 kernel in UML mode running, > > Can I get help about which exact version of kernel, and which excat version > > of patch will work fine some file system.... > > Any recent UML from kernel.org should boot any of the nagafix > filesystems, I think - I have personal experience with 2-3 of the > filesystems. I downloaded latest source code of "linux-2.6.19.tar.gz" from "http://www.kernel.org/pub/linux/kernel/v2.6/" I configured and compiled it as {{{ make menuconfig ARCH=um make linux ARCH=um }}} and then tried to run it as followes {{{ $ ./linux ./nagafix_try/Debian-3.1-x86-root_fs Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} I dont think is error is because of file-system of the contents of /etc/fstab file inside the file system, because it gives the same error even if wrong file system (ie wrong path) is given. I feel that this error is because of kernel itself. > > > Am i doing some basic mistake in doing all these experiments...? > > Probably, but I don't see enough information to figure out what. Ok, I will give you all the steps that I have taken in doing above. Please tell me if I am going wrong anywhere I am using Debian system with kernel 2.6.18 "I have not modified my working kernel in any way for UML." What I am done is 1) I downloaded kernel binaries from http://uml.nagafix.co.uk/ 2) I downloaded the Debian 3.1 file system from the same location 3) I tried running downloaded kernel with downloaded file system {{{ % /uml/nagafix_try$ ./kernel32-2.6.19.2 ubd0=Debian-3.1-x86-root_fs Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} -- Pravin Shinde |
From: Antoine M. <an...@na...> - 2007-01-17 11:45:58
|
> $ ./linux ./nagafix_try/Debian-3.1-x86-root_fs > Checking that ptrace can change system call numbers...OK > Checking syscall emulation patch for ptrace...OK > Checking advanced syscall emulation patch for ptrace...OK > Checking for tmpfs mount on /dev/shm...OK > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > /dev/shm/ must be not mounted noexec > }}} > > I dont think is error is because of file-system of the contents of > /etc/fstab file inside the file system, > because it gives the same error even if wrong file system (ie wrong > path) is given. > I feel that this error is because of kernel itself. It is because of the host setup, probably not the host's kernel. Are you sure that /dev/shm is mounted noexec? cat /proc/mount Any SELinux, grsec, etc? |
From: Pravin <shi...@gm...> - 2007-01-17 15:49:43
|
Thanx, I managed to get rid of following error. {{{ Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted /dev/shm/ must be not mounted noexec }}} But I am still getting kernel panic {{{ mapping mmap stub failed, errno = 12 Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256 EIP: 0073:[<a7fdd410>] CPU: 0 Not tainted ESP: 007b:a7ea2fa8 EFLAGS: 00200246 Not tainted }}} I am using latest kernel 2.6.19 source from www.kernel.org http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.tar.gz I also tried to set different values for 2G/3G configuration to CONFIG_HOST_VMSPLIT_* I also tried many precompiled kernels of 2.6 series from http://uml.nagafix.co.uk/ but they are also giving same error. I feel that there is something wrong with my host configuration. Is there any configuration mistake that I am doing? Any idea when and why such error comes? and how to solve it? On 1/17/07, Antoine Martin <an...@na...> wrote: > > $ ./linux ./nagafix_try/Debian-3.1-x86-root_fs > > Checking that ptrace can change system call numbers...OK > > Checking syscall emulation patch for ptrace...OK > > Checking advanced syscall emulation patch for ptrace...OK > > Checking for tmpfs mount on /dev/shm...OK > > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > > /dev/shm/ must be not mounted noexec > > }}} > > > > I dont think is error is because of file-system of the contents of > > /etc/fstab file inside the file system, > > because it gives the same error even if wrong file system (ie wrong > > path) is given. > > I feel that this error is because of kernel itself. > It is because of the host setup, probably not the host's kernel. > > Are you sure that /dev/shm is mounted noexec? > cat /proc/mount > > Any SELinux, grsec, etc? > -- Pravin Shinde |
From: Blaisorblade <bla...@ya...> - 2007-01-17 16:25:56
|
On Wednesday 17 January 2007 16:49, Pravin wrote: > Thanx, > I managed to get rid of following error. > {{{ > Checking for tmpfs mount on /dev/shm...OK > Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted > /dev/shm/ must be not mounted noexec > }}} > > But I am still getting kernel panic > {{{ > mapping mmap stub failed, errno = 12 > Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status > = 256 > > EIP: 0073:[<a7fdd410>] CPU: 0 Not tainted ESP: 007b:a7ea2fa8 EFLAGS: > 00200246 Not tainted > }}} > > I am using latest kernel 2.6.19 source from www.kernel.org > http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.tar.gz > > I also tried to set different values for 2G/3G configuration to > CONFIG_HOST_VMSPLIT_* Apply the patch I'm forwarding you separately, before retesting CONFIG_HOST_VMSPLIT_*, if you run UML in skas0 mode (and from the messages I guess you are). > I also tried many precompiled kernels of 2.6 series from > http://uml.nagafix.co.uk/ > but they are also giving same error. > > I feel that there is something wrong with my host configuration. > Is there any configuration mistake that I am doing? > Any idea when and why such error comes? > and how to solve it? -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |
From: Jeff D. <jd...@ad...> - 2007-01-17 23:12:24
|
On Wed, Jan 17, 2007 at 09:19:38PM +0530, Pravin wrote: > But I am still getting kernel panic > {{{ > mapping mmap stub failed, errno = 12 Try the patch below. It fixes UML on hosts which don't have the usual 3G/1G split. Jeff -- Work email - jdike at linux dot intel dot com Index: linux-2.6.18-mm/arch/um/Kconfig.i386 =================================================================== --- linux-2.6.18-mm.orig/arch/um/Kconfig.i386 2006-12-29 12:20:14.000000000 -0500 +++ linux-2.6.18-mm/arch/um/Kconfig.i386 2007-01-10 16:54:20.000000000 -0500 @@ -19,22 +19,22 @@ config SEMAPHORE_SLEEPERS choice prompt "Host memory split" default HOST_VMSPLIT_3G - ---help--- - This is needed when the host kernel on which you run has a non-default - (like 2G/2G) memory split, instead of the customary 3G/1G. If you did - not recompile your own kernel but use the default distro's one, you can - safely accept the "Default split" option. - - It can be enabled on recent (>=2.6.16-rc2) vanilla kernels via - CONFIG_VM_SPLIT_*, or on previous kernels with special patches (-ck - patchset by Con Kolivas, or other ones) - option names match closely the - host CONFIG_VM_SPLIT_* ones. - - A lower setting (where 1G/3G is lowest and 3G/1G is higher) will - tolerate even more "normal" host kernels, but an higher setting will be - stricter. + help + This is needed when the host kernel on which you run has a non-default + (like 2G/2G) memory split, instead of the customary 3G/1G. If you did + not recompile your own kernel but use the default distro's one, you can + safely accept the "Default split" option. + + It can be enabled on recent (>=2.6.16-rc2) vanilla kernels via + CONFIG_VM_SPLIT_*, or on previous kernels with special patches (-ck + patchset by Con Kolivas, or other ones) - option names match closely the + host CONFIG_VM_SPLIT_* ones. + + A lower setting (where 1G/3G is lowest and 3G/1G is higher) will + tolerate even more "normal" host kernels, but an higher setting will be + stricter. - So, if you do not know what to do here, say 'Default split'. + So, if you do not know what to do here, say 'Default split'. config HOST_VMSPLIT_3G bool "Default split (3G/1G user/kernel host split)" @@ -67,13 +67,13 @@ config 3_LEVEL_PGTABLES config STUB_CODE hex - default 0xbfffe000 if !HOST_2G_2G - default 0x7fffe000 if HOST_2G_2G + default 0xbfffe000 if !HOST_VMSPLIT_2G + default 0x7fffe000 if HOST_VMSPLIT_2G config STUB_DATA hex - default 0xbffff000 if !HOST_2G_2G - default 0x7ffff000 if HOST_2G_2G + default 0xbffff000 if !HOST_VMSPLIT_2G + default 0x7ffff000 if HOST_VMSPLIT_2G config STUB_START hex |
From: Blaisorblade <bla...@ya...> - 2007-01-19 23:50:58
|
On Thursday 18 January 2007 00:06, Jeff Dike wrote: > On Wed, Jan 17, 2007 at 09:19:38PM +0530, Pravin wrote: > > But I am still getting kernel panic > > {{{ > > mapping mmap stub failed, errno = 12 > > Try the patch below. It fixes UML on hosts which don't have the usual > 3G/1G split. Jeff, could you handle all HOST_VMSPLIT_* cases and send the patch to -stable and git HEAD? -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |
From: Pravin <shi...@gm...> - 2007-01-18 06:04:42
|
Hi, This patch was sent to me by "Blaisorblade" <bla...@ya...> I tried it and now its working fine without any problems. Thanx for the patch I hope that soon, this patch will become part of mainstream kernel. Regards, Pravin Shinde On 1/18/07, Jeff Dike <jd...@ad...> wrote: > On Wed, Jan 17, 2007 at 09:19:38PM +0530, Pravin wrote: > > But I am still getting kernel panic > > {{{ > > mapping mmap stub failed, errno = 12 > > Try the patch below. It fixes UML on hosts which don't have the usual > 3G/1G split. > > Jeff > > -- > Work email - jdike at linux dot intel dot com > > Index: linux-2.6.18-mm/arch/um/Kconfig.i386 > =================================================================== > --- linux-2.6.18-mm.orig/arch/um/Kconfig.i386 2006-12-29 12:20:14.000000000 -0500 > +++ linux-2.6.18-mm/arch/um/Kconfig.i386 2007-01-10 16:54:20.000000000 -0500 > @@ -19,22 +19,22 @@ config SEMAPHORE_SLEEPERS > choice > prompt "Host memory split" > default HOST_VMSPLIT_3G > - ---help--- > - This is needed when the host kernel on which you run has a non-default > - (like 2G/2G) memory split, instead of the customary 3G/1G. If you did > - not recompile your own kernel but use the default distro's one, you can > - safely accept the "Default split" option. > - > - It can be enabled on recent (>=2.6.16-rc2) vanilla kernels via > - CONFIG_VM_SPLIT_*, or on previous kernels with special patches (-ck > - patchset by Con Kolivas, or other ones) - option names match closely the > - host CONFIG_VM_SPLIT_* ones. > - > - A lower setting (where 1G/3G is lowest and 3G/1G is higher) will > - tolerate even more "normal" host kernels, but an higher setting will be > - stricter. > + help > + This is needed when the host kernel on which you run has a non-default > + (like 2G/2G) memory split, instead of the customary 3G/1G. If you did > + not recompile your own kernel but use the default distro's one, you can > + safely accept the "Default split" option. > + > + It can be enabled on recent (>=2.6.16-rc2) vanilla kernels via > + CONFIG_VM_SPLIT_*, or on previous kernels with special patches (-ck > + patchset by Con Kolivas, or other ones) - option names match closely the > + host CONFIG_VM_SPLIT_* ones. > + > + A lower setting (where 1G/3G is lowest and 3G/1G is higher) will > + tolerate even more "normal" host kernels, but an higher setting will be > + stricter. > > - So, if you do not know what to do here, say 'Default split'. > + So, if you do not know what to do here, say 'Default split'. > > config HOST_VMSPLIT_3G > bool "Default split (3G/1G user/kernel host split)" > @@ -67,13 +67,13 @@ config 3_LEVEL_PGTABLES > > config STUB_CODE > hex > - default 0xbfffe000 if !HOST_2G_2G > - default 0x7fffe000 if HOST_2G_2G > + default 0xbfffe000 if !HOST_VMSPLIT_2G > + default 0x7fffe000 if HOST_VMSPLIT_2G > > config STUB_DATA > hex > - default 0xbffff000 if !HOST_2G_2G > - default 0x7ffff000 if HOST_2G_2G > + default 0xbffff000 if !HOST_VMSPLIT_2G > + default 0x7ffff000 if HOST_VMSPLIT_2G > > config STUB_START > hex > |
From: Blaisorblade <bla...@ya...> - 2007-01-19 23:49:19
|
On Thursday 18 January 2007 07:04, Pravin wrote: > Hi, > This patch was sent to me by "Blaisorblade" <bla...@ya...> > I tried it and now its working fine without any problems. > > Thanx for the patch > I hope that soon, this patch will become part of mainstream kernel. It will. -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |