> Kernel patch looks good but can't get it to patch
> properly - thought it might be to do with the debian
> patched kernel. Should I get a "vanilla" kernel
> from kernel.org first then patch kernel mode then
> debian patches? I'm new to this.
Just get the latest source from kernel.org, currently its 2.6.9, and apply the kernel mode linux patch with the patch command ( patch -p1 <kml-patch ). You may need to unzip it before with gzip if it ends in .gz.
As explained at the kml website, you then need to install libc6-i686 ( apt-get install libc6-i686 ). You then need to follow the instructions at the link:
Look at step No. 4 at the bottom of the page.
In my case, I log into kernel mode linux by using a program called qlogin and configuring /etc/inittab, like so:
1:2345:respawn:/sbin/qlogin /dev/tty1 root --command="/usr/local/sbin/beg"
2:23:respawn:/sbin/qlogin /dev/tty2 root
3:23:respawn:/sbin/qlogin /dev/tty3 root
4:23:respawn:/sbin/qlogin /dev/tty4 root
5:23:respawn:/sbin/qlogin /dev/tty5 root
6:23:respawn:/sbin/qlogin /dev/tty6 root
Qlogin automatically logs you in. Do a Google search for it.
The /usr/local/sbin/beg file contains the following:
exec /trusted/ld-linux.so.2 --library-path /lib/tls/i686/cmov:/lib:/lib64:/usr/lib:/usr/lib64 /bin/bash --login
Whatever I then do at that screen executes in the kernel space, including startx. I found that it then looks for .xinitrc instead of .xsession.
As for the Debian patches, I gave up on trying to install Debian packages of the kernel, so I don't know what you mean by these patches. If it is something you need then obviously you'll need to see if they don't conflict with the kml patch ( if during the patch you get any errors you need to start over and not include some of the patches ).