LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Linux 2.6.33.4 Slackware Generic Config (https://www.linuxquestions.org/questions/slackware-14/linux-2-6-33-4-slackware-generic-config-830234/)

CincinnatiKid 09-03-2010 07:57 PM

Linux 2.6.33.4 Slackware Generic Config
 
Where can I get a copy of the 2.6.33.4 config that comes with Slackware? Also, can I get a binary of the kernel, the one that comes with Slackware 13.1?

XGizzmo 09-03-2010 08:08 PM

Extract them from this xz compressed tarball.

http://slackware.oregonstate.edu/sla...3.4-i486-1.txz

dugan 09-03-2010 08:32 PM

They're also in the /kernels directory.

http://ftp.oregonstate.edu/pub/slack...gesmp.s/config

T3slider 09-03-2010 08:43 PM

If you're running the kernel you can get the config with
Code:

zcat /proc/config.gz
since Slackware kernels support that feature.

CincinnatiKid 09-03-2010 10:53 PM

I removed the kernel a while back after installing a new one, but I want the old one back. I was able to install it via slackpkg, but when I attempt to make a initrd for the kernel I am told the modules for the kernel arn't installed. How can I install the modules?

T3slider 09-04-2010 12:02 AM

You want the kernel-* packages in the a/ series of packages. In particular the kernel-modules-smp package (assuming you're using the generic-smp kernel).
Code:

kernel-firmware-2.6.33.4-noarch-1.txz
kernel-generic-2.6.33.4-i486-1.txz
kernel-generic-smp-2.6.33.4_smp-i686-1.txz
kernel-huge-2.6.33.4-i486-1.txz
kernel-huge-smp-2.6.33.4_smp-i686-1.txz
kernel-modules-2.6.33.4-i486-1.txz
kernel-modules-smp-2.6.33.4_smp-i686-1.txz


Alien Bob 09-04-2010 03:36 AM

Kernel config files here: http://mirrors.kernel.org/slackware/...13.1/source/k/

Eric

CincinnatiKid 09-04-2010 11:48 AM

I got the generic kernel up and running. The only issue I am having now, is when I try to install the nvidia driver, I get this message:
Code:

Using: nvidia-installer ncurses user interface
-> License accepted by command line option.
-> Installing NVIDIA driver version 256.44.
-> There appears to already be a driver installed on your system (version: 256.
  44).  As part of installing this driver (version: 256.44), the existing driv
  er will be uninstalled.  Are you sure you want to continue? ('no' will abort
  installation) (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.33.4-smp/source'
-> Kernel output path: '/lib/modules/2.6.33.4-smp/build'
ERROR: If you are using a Linux 2.4 kernel, please make sure
      you either have configured kernel sources matching your
      kernel or the correct set of kernel headers installed
      on your system.

      If you are using a Linux 2.6 kernel, please make sure
      you have configured kernel sources matching your kernel
      installed on your system. If you specified a separate
      output directory using either the "KBUILD_OUTPUT" or
      the "O" KBUILD parameter, make sure to specify this
      directory with the SYSOUT environment variable or with
      the equivalent nvidia-installer command line option.
     
      Depending on where and how the kernel sources (or the
      kernel headers) were installed, you may need to specify
      their location with the SYSSRC environment variable or
      the equivalent nvidia-installer command line option.

I assume installing:

kernel-generic-smp-2.6.33.4_smp-i686-1.txz
kernel-modules-smp-2.6.33.4_smp-i686-1.txz

installed this installed configured kernel sources matching my kernel, or do I have to do something else to get the configured kernel sources for my nvidia driver?

Here is the build and source symlinks:

Code:

root@slackware-laptop:/usr/src# ls /lib/modules/2.6.33.4-smp/source -l
lrwxrwxrwx 1 root root 23 2010-09-04 11:27 /lib/modules/2.6.33.4-smp/source -> /usr/src/linux-2.6.33.4/
root@slackware-laptop:/usr/src# ls /lib/modules/2.6.33.4-smp/build -l
lrwxrwxrwx 1 root root 23 2010-09-04 11:27 /lib/modules/2.6.33.4-smp/build -> /usr/src/linux-2.6.33.4/


ponce 09-04-2010 12:02 PM

you probably need to install the kernel-source-2.6.33.4-noarch-1 package.

CincinnatiKid 09-04-2010 12:13 PM

Quote:

Originally Posted by ponce (Post 4088008)
you probably need to install the kernel-source-2.6.33.4-noarch-1 package.

Do you know where I can get that? I cannot find it on the mirrors.

*nevermind, I found it. I am installing right now, I will let you know if this worked.

CincinnatiKid 09-04-2010 12:26 PM

This didn't work, I am still getting the same errors. Do you have any other suggestions or things that I can look at to help troubleshoot this?

ponce 09-04-2010 12:42 PM

the nvidia installers needs a path in which it can find the sources for the running kernel, so I think it usually relies on /lib/modules/$(uname -r)/build and /lib/modules/$(uname -r)/source.
those are symlinks that point to /usr/src/linux-2.6.33.4 (in your case it's the folder that you have installing this package).
you can also pass the option --kernel-source-path=/your/path if you got the kernel sources in a nonstandard place.
(if you pass the -A option to the nvidia installer it will show you all the possible install option).
if it gives you those errors it's because the folder it's trying to use or doesn't exists or it doesn't contain the build sources for your running kernel.

CincinnatiKid 09-04-2010 12:55 PM

Hmm... I am vexed. I installed the kernel source, you can see it here:

Code:

bash-4.1$ ls /usr/src/
linux  linux-2.6.33.4  linux-2.6.35.3

Here is /lib/modules/linux-2.6.33.4-smp:

Code:

bash-4.1$ ls -l /lib/modules/2.6.33.4-smp/
total 3448
lrwxrwxrwx  1 root root    23 2010-09-04 11:27 build -> /usr/src/linux-2.6.33.4
drwxr-xr-x  3 root root  4096 2010-08-18 12:36 extra
drwxr-xr-x 10 root root  4096 2010-05-12 22:42 kernel
-rw-r--r--  1 root root 540185 2010-09-04 11:27 modules.alias
-rw-r--r--  1 root root 525055 2010-09-04 11:27 modules.alias.bin
-rw-r--r--  1 root root  6268 2010-05-12 22:42 modules.builtin
-rw-r--r--  1 root root  8846 2010-09-04 11:27 modules.builtin.bin
-rw-r--r--  1 root root    69 2010-09-04 11:27 modules.ccwmap
-rw-r--r--  1 root root 263655 2010-09-04 11:27 modules.dep
-rw-r--r--  1 root root 373291 2010-09-04 11:27 modules.dep.bin
-rw-r--r--  1 root root  1257 2010-09-04 11:27 modules.ieee1394map
-rw-r--r--  1 root root    218 2010-09-04 11:27 modules.inputmap
-rw-r--r--  1 root root  19573 2010-09-04 11:27 modules.isapnpmap
-rw-r--r--  1 root root    74 2010-09-04 11:27 modules.ofmap
-rw-r--r--  1 root root  89866 2010-05-12 22:42 modules.order
-rw-r--r--  1 root root 325151 2010-09-04 11:27 modules.pcimap
-rw-r--r--  1 root root  1429 2010-09-04 11:27 modules.seriomap
-rw-r--r--  1 root root 210385 2010-09-04 11:27 modules.symbols
-rw-r--r--  1 root root 271966 2010-09-04 11:27 modules.symbols.bin
-rw-r--r--  1 root root 843287 2010-09-04 11:27 modules.usbmap
lrwxrwxrwx  1 root root    23 2010-09-04 11:27 source -> /usr/src/linux-2.6.33.4

When I select the paths I still get the error message I posted above.

ponce 09-04-2010 01:14 PM

I forgot to ask you before, do you have the package kernel-headers installed?
shouldn't be needed for 2.6 kernel (basing on what the error says) but who knows?

Drakeo 09-04-2010 01:45 PM

push the Alt F2 key and type kdesu konqueror put in your root password.
make sure you have /etc/modprobe.d/BLACKLIST-nouveau.conf .
if it is there go into /etc/slackpkg/mirrors and make sure you have a mirror uncomented # for slackware 13.1. save the file exit. open a terminal assume root su passward.
Quote:

type slackpkg update then type slackpkg upgrade-all and then do a slackpkg install-new
you can always type slackpkg reinstall kernel it will ask you what you want to reinstall
the headers are part of the default Slackware installation you should have them installed

after that go here http://www.nvidia.com/Download/index.aspx?lang=en-us down load it.
now restart the machine in runlevel 3 default run level for Slackware.

login as root change directory cd /your/nvidia/file and type sh Nvidia then push the tab button it will finsh the string push enter and build it.

this should work it never failed for me.


All times are GMT -5. The time now is 06:47 AM.