[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel 2.6.0 compiling problems [almost solved]



 --- Marino Fernandez <mjferna@yahoo.com> escribió: 
> On Saturday 19 July 2003 1:18 pm, Torquil Macdonald Sørensen wrote:
> > On Saturday 19 July 2003 17:30, Marino Fernandez wrote:
> > > On Saturday 19 July 2003 2:20 am, Marino Fernandez wrote:
> > > > On Saturday 19 July 2003 2:16 am, Marino Fernandez wrote:
> > > > > On Saturday 19 July 2003 1:59 am, Paul Johnson wrote:
> > > > > > On Sat, Jul 19, 2003 at 01:43:19AM -0500, Marino Fernandez wrote:
> > > > > > > I used gcc 3.3 and 2.95 to compile a 2.6 kernel.
> > >
> > > 
> For whoever interested in compiling the new kernel, so far this is what I;ve 
> done, and works almost perfectly.
> 
> 1) make a /sys folder, enter this in fstab:
> sysfs      /sys      sysfs   defaults       0       0
> 2) apt-get instal modules-init-tools
> 3) Copy .config file from the previous kernel (mine is 2.4.21)... although I 
> am not 100% sure this is needed.
> 4) make menuconfig (deselect the many many modules that won't compile; my 
> previous kernel was based on a Knoppix install, with all sorts of modules 
> that I don't really need), make (no need to do make bzImage or make dep) and 
> make modules_install
> 5) Change grub/lilo
> 6) boot... shit, black screen, no kernel messages... oh well here is the x 
> server ... SHIT!!, no keyboard nor mouse (in my case is actually a touchpad).
> 
> 7) Add this to the .configure file...
> CONFIG_INPUT=y
> CONFIG_INPUT_MOUSEDEV=y
> CONFIG_INPUT_MOUSEDEV_PSAUX=y
> CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
> CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
> CONFIG_INPUT_KEYBOARD=y
> CONFIG_KEYBOARD_ATKBD=y
> CONFIG_INPUT_MOUSE=y
> CONFIG_MOUSE_PS2=y
> CONFIG_VT=y
> CONFIG_VT_CONSOLE=y
> CONFIG_FB=y
> CONFIG_FB_VESA=y
> CONFIG_FB_3DFX=y
> CONFIG_VGA_CONSOLE=y
> 8) make, make modules_install
> 9) Change grub/lilo
> 10) boot... shit, still black screen on bootup, no kernel messages nor 
> penguin... here it comes X... OK, now keyboard and touchpad work.... yeah. 
> 
> So, if anybody can tell me how to fix the framebuffer so I can see thge
> little 
> penguin and the kernel messages, I'll appreciate it.

1.  Use make-kpkg.  It works with the new kernel and it lets you handle it
with dpkg.

2.  For the framebuffer: do you have 1 GB of RAM or more?  If so, from the
main kernel source directory, apply this patch I wrote:

--- linux-2.6.0-test1.orig/drivers/video/vesafb.c       2003-07-13
23:30:36.000000000 -0400
+++ linux/drivers/video/vesafb.c        2003-07-19 20:30:18.000000000 -0400
@@ -227,7 +227,7 @@
        vesafb_defined.xres = screen_info.lfb_width;
        vesafb_defined.yres = screen_info.lfb_height;
        vesafb_fix.line_length = screen_info.lfb_linelength;
-       vesafb_fix.smem_len = screen_info.lfb_size * 65536;
+       vesafb_fix.smem_len = screen_info.lfb_width * screen_info.lfb_height *
screen_info.lfb_depth;
        vesafb_fix.visual   = (vesafb_defined.bits_per_pixel == 8) ?
                FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
  


___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es



Reply to: