LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Newbie Guide To Compiling A Kernel! (https://www.linuxquestions.org/questions/linux-general-1/newbie-guide-to-compiling-a-kernel-73436/)

DrOzz 02-08-2004 12:45 PM

well i personally hate ati, so no i dont' have the card, and no i didn't try to install the drivers for it in a 2.6.x kernel ....
but ...
http://linuxquestions.org/questions/history/140329

if you look throught that thread, you may see some stuff that could be potentially helpful ...
starting at post 10
http://www.linuxquestions.org/questi...557#post732557
there ....

and there is a link posted under that post to another thread (with supposedly more info) but i never clicked it, so you can see if any of that helps you ...
goodlucK!

dbh21 02-11-2004 09:10 PM

Explanation
 
DrOzz, thanks for the guide. It really helped me get up and running. I have a couple of custom kernels built. Still playing around, but I have a question.

I discovered this command:
# find /lib/modules/<kernel version>/ -type f -iname '*.o'
which is supposed to list all available modules.

So I tested it on my original kernel installed by Mandrake 9.2, and I got:
/lib/modules/2.4.22-10mdk/kernel/drivers/net/nvnet.o
/lib/modules/2.4.22-10mdk/kernel/drivers/sound/nvaudio.o
Which should be the nVidia drivers I installed after my Mandrake install.

Then I run the command on a custom kernel that I built using the "make oldconfig" command (which is just supposed to duplicate the existing configuration right?), and I get hundreds of modules listed.

Do you know what the difference is?

Just curious.

Thanks for any help

vara 02-16-2004 03:22 PM

I'm running Slackware 9.1 with 2.4.24 kernel. I followed your instuctions to install
2.6.2 kernel and everything seems to go well. On reboot I select the new kernel fro lilo and then it attempts to boot and I just get a blank screen and nothing going on.

Help pleaseeeeeee.
vara

dbh21 02-16-2004 03:43 PM

Vera,

I ran into the same issue with 2.6.x. I bet you didn't set the frame buffer support.

Check out : http://www.linuxquestions.org/questi...t=frame+buffer

vara 02-16-2004 04:05 PM

dbh21,
Thanks for your help. I commented out the frame buffer line and sure enough it works. Although the resolution sucks. I will rebuild the kernel and make sure frame buffer is checked.
vara

vara 02-16-2004 05:56 PM

I recompiled the kernel and frame buffer is on. Still no console.
Here is my config file
#
# Console drivers
#
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
# CONFIG_MDA_CONSOLE is not set

#
# Frame-buffer support
#
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_RIVA=m
CONFIG_FB_CLGEN=m
CONFIG_FB_PM2=m
# CONFIG_FB_PM2_FIFO_DISCONNECT is not set
CONFIG_FB_PM2_PCI=y
CONFIG_FB_PM3=m
CONFIG_FB_CYBER2000=m
CONFIG_FB_VESA=y
CONFIG_FB_VGA16=m
CONFIG_FB_HGA=m
CONFIG_VIDEO_SELECT=y
CONFIG_FB_MATROX=m
CONFIG_FB_MATROX_MILLENIUM=y
CONFIG_FB_MATROX_MYSTIQUE=y
CONFIG_FB_MATROX_G450=y
CONFIG_FB_MATROX_G100=y
CONFIG_FB_MATROX_I2C=m
CONFIG_FB_MATROX_MAVEN=m
CONFIG_FB_MATROX_PROC=m
CONFIG_FB_MATROX_MULTIHEAD=y
CONFIG_FB_ATY=m
CONFIG_FB_ATY_GX=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_ATY_GENERIC_LCD=y
CONFIG_FB_RADEON=m
CONFIG_FB_ATY128=m
CONFIG_FB_INTEL=m
CONFIG_FB_SIS=m
CONFIG_FB_SIS_300=y
CONFIG_FB_SIS_315=y
CONFIG_FB_NEOMAGIC=m
CONFIG_FB_3DFX=m
CONFIG_FB_VOODOO1=m
CONFIG_FB_TRIDENT=m
# CONFIG_FB_VIRTUAL is not set
CONFIG_FBCON_ADVANCED=y
CONFIG_FBCON_MFB=m
CONFIG_FBCON_CFB2=m
CONFIG_FBCON_CFB4=m
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
# CONFIG_FBCON_AFB is not set
# CONFIG_FBCON_ILBM is not set
# CONFIG_FBCON_IPLAN2P2 is not set
# CONFIG_FBCON_IPLAN2P4 is not set
# CONFIG_FBCON_IPLAN2P8 is not set
# CONFIG_FBCON_MAC is not set
# CONFIG_FBCON_VGA_PLANES is not set
CONFIG_FBCON_VGA=y
CONFIG_FBCON_HGA=m
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
CONFIG_FBCON_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set

Any ideas.
vara

init 02-16-2004 08:57 PM

I have the same issue vara, I have the ATI Drivers installed Im wondering if that may have something to do with it. I'm goint to uninstall ATI stuff and try again. Any help would be great guys. When I boot to my 2.6 kernel nothing but a black screen and a spinning hard drive.

init 02-16-2004 10:27 PM

If I copy my old .config to my new /usr/src/linux directory and do a make menuconfig will this pick up all of my previous settings? If so I have a few issues with my system and the 2.6.2 kernel.

My syslog is generaly cleaner, but I throw some errors and have no internet. (I should not have to set up my net again ?)

Feb 16 22:01:29 Xhost sshd[367]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Feb 16 22:01:39 Xhost kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Feb 16 22:01:39 Xhost kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Feb 16 22:01:39 Xhost kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Feb 16 22:01:39 Xhost kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.

Any help would be cool, BTW great post DrOzz It gave me the guts needed to try my first kernel upgrade with out up2date :) almost there I think

vara 02-16-2004 11:05 PM

init,

Quote:

If I copy my old .config to my new /usr/src/linux directory and do a make menuconfig will this pick up all of my previous settings? If so I have a few issues with my system and the 2.6.2 kernel.
I believe it should. I too had net problems but quickly found that my network card was not compiled in the new kernel.

I have installed ATI modules but this didn't help. I compared my config files for 2.4.24 and 2.6.2 and am looking into setting up frame buffer with VESA VGA. I'm hoping this will fix the problem.

Nope, that didn't do it.
I give up. Anyone have any ideas, I would be eternally grateful.
vara

vara 02-17-2004 12:08 AM

Finally got it working.
Here is the fix that worked for me.

Make sure Frame Buffer Console support is y (compiled).
That did it for me.
You should also have the following compiled
compiled-in fonts
VGA 8x8 font
VGA 8x16 font
VESA VGA

Hope this helps someone else. It took me quite a few compiles to finally get it working.
vara

Flitched 02-19-2004 10:44 PM

Re: Why recreate the wheel
 
Edit.

painkiller 02-20-2004 05:12 PM

Does you explantion apply to SUSE 9.0 also
 
Is it the Same or should i do something else...

10x
Painkiller

Dr. Ephemeron 02-20-2004 06:00 PM

Re: Does you explantion apply to SUSE 9.0 also
 
Quote:

Originally posted by painkiller
Is it the Same or should i do something else...

Yeah try starting a new thread. :D

andzerger 02-22-2004 02:51 PM

i just did a compilation for the first time
thanks drOzz make bzImage finally got me aroung that error message about me being a dummy or something ;)
that was an exhaustive process, and i dont understand most of the configuration process, ocasionally i would see something i recognized and i got to hit yes for sure, the rest of it .. um . sure? maybe .. why not? no no no .. thats kind of familiar..
im thinking i may have to take this thing apart and make a database of all the chip types it has before i do this again
anyway, thanks again


granny 02-23-2004 02:52 PM

what if I don't have the kernel compiling/developement tools installed on my system? What do I need to install/have installed before recompiling my kernel?


All times are GMT -5. The time now is 02:29 AM.