LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel compilation (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-compilation-488663/)

zajcev 10-02-2006 04:51 AM

kernel compilation
 
hello, I need help with kernel compilation slackware 10.2 kernel which I want to install is 2.6.18
I copy him in /usr/src/linux-2.6.18
make mrproper
make xconfig
make bzImage
make install
make modules
make modules_install
Add new bzImage to boot and in lilo, and thats OK But have some problems
I'v got asus a7n8x-x MB integrated sound card and webstar cable modem atached on lan port on my mother board.
I try to install sound card with alsaconf but he say that there is no sound card find.
With modem dont know I add /sbin/dhclient and set DHCP enable, I must forgot something to add in configuration of kernel.
Some advice will help thanx :)

PS
sorry for bad english :)

titopoquito 10-02-2006 05:23 AM

With a 2.6.x kernel the only steps you need are to edit your lilo.conf ("vmlinuz" points to the new kernel, I'd suggest to add the old kernel as well, probably "vmlinuz-ide-2.4.33" or similar) and then:

Code:

make xconfig      <- or menuconfig for CLI or whatever config
make
make modules_install
make install

This will call /sbin/lilo automatically.

AFAIR the stock kernel source has the sound modules not selected. Be sure to check the ALSA basic thing and your specific sound card when you do your "make xconfig" under Device Drivers --> Multimedia devices --> Sound

About the LAN thing: Be sure that your card is included in the kernel config. Than you can edit /etc/rc.d/rc.inet1.conf to activate DHCP for your network interface.

zajcev 10-02-2006 07:38 AM

make xconfig
make bzImage
OK
but when I type #make modules_install it finish too fast (a do this in dir where I unpack new kernel /usr/src/linux2.6.18
but when I type just #make modules it start to do something and then type make install, I figure oput that this is same like /sbin/lilo :)
Now I was looking for (my MB is asus A7N8X-X) realtek alc650 my sound card but can't find it, the same is about lan MCP integrated nvidiaMAC-realtek 8201b2 PHY, there is 81..80 but not mine?
In last kernel it works fine.
I wander something under windows I always install driver VIA but when I reading book my MB had nvidia nforce is this chipset who I need to setup in kernel?

titopoquito 10-02-2006 01:20 PM

You could of course start with the config file for the official "huge26.s" kernel from the upcoming 11.0 release. Most hardware will be compiled in the kernel or build as module -- this would leave you probably with your hardware running, and you could check the output of "lsmod" which modules are actually needed.
You could grab the file from any Slackware mirror, copy it to your kernel source dir and issue "make oldconfig" before you do "make xconfig".

"make modules" should not be necessary, too, AFAIK. "make" should build the kernel itself AND the modules in one pass. "make modules_install" should copy all modules to /lib/modules/2.6.18 and make should copy the kernel and its config file to /boot and call lilo to update your boot loader.

BTW, "make bzImage" should not be necessary AFAIK. You had to do it with a 2.4.x kernel, but not any longer with 2.6.x

titopoquito 10-02-2006 01:32 PM

Try to compile the "forcedeth" module to get your network card working: Device drivers --> Network device support --> Ethernet (10 or 100 Mbit) --> nForce Ethernet support.

EDIT: According to that post (http://www.driverheaven.net/archive/...p/t-49744.html see posting from RAMChYLD) you need the "Intel 8x0" sound driver which you find in the kernel's Device drivers --> Multimedia devices section.

zajcev 10-02-2006 02:59 PM

ok man help me a lot, I succesfuly install modem and sound card, now I got some other questions:
-How to check is everything ok with kernel I just compile, have to explain this, I install valknut and I have problem when he s started my system go drastycly slowly, but for now this is only with valknut before he was just fine so I wonder. I also got some sense that system is slowly then before.
-How to check how much memory I have, I know that I got 1GB RAM bit when I start slackware kinfosys he shows me that I'v got 883MB, here is picture this is image from 2.4kernel ut same thing is in 2.6.18

This is one of reason why I compile kernel but it's still same.
- I'v got pioneer DVD-RW 110 and install nero burning rom becouse I have to burn dvd's and k3b make some shit with dvd disc's, in recorder I have only image recorder, I suppose this is becouse I again forget something to add in kernel :)

zajcev 10-02-2006 03:00 PM

http://img243.imageshack.us/my.php?i...apshot1lp6.png

titopoquito 10-02-2006 03:12 PM

There should be nothing special in the kernel configuratio to use your cd burner (unless you deactivated much, but I had never trouble with my NEC burner, neither with a vanilla kernel source nor with the Slackware kernels). And you don't need the "append" line in lilo.conf that you needed with a 2.4.x kernel.
About the memory: As far as I remember (I searched for this some months ago) this should be no problem, your computer should take the 1GB but just show the 883 MB, that's normal. I think else you have to activate the 4GB memory ability (I think it's under "General ..." at the beginning of the kernel configure). AFAIR you need this only if you want to install more than 1GB. The 883MB doesn't harm I think, but maybe you want to feed Google again to make sure about this.

If I start k3b the first time after a fresh install, there is a pop up window which asks me about changing the CD recorder's permissions so that normal users can use it and not just root. Have you seen/changed this?

Sorry don't know anything about the slow processing. BTW have you enabled udev? It's necessary for 2.6.18 and is not activated (executable bit set) if you do a fresh Slackware install...


All times are GMT -5. The time now is 06:04 PM.