You are not logged in.

#1 2004-03-01 17:16:46

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Kernel source (or headers)

Why doesn't Arch provide a kernel2x-source package? Or at least a kernel-header package? This will really come in handy when installing the commercial nVidia drivers for example.

Offline

#2 2004-03-01 23:00:54

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: Kernel source (or headers)

You can always get the source from kernel.org. Its just untarring.

I think the headers come w/ the kernel package. They used to at least.


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#3 2004-03-01 23:28:30

FX
Member
Registered: 2004-01-31
Posts: 19

Re: Kernel source (or headers)

They come with the 2.4 kernel, but with the 2.6 I don't believe they do.

FX


I'd be ripping my hair out if I had any.

Offline

#4 2004-03-02 00:22:25

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Kernel source (or headers)

the kernel headers do come with the kernel (2.4 and 2.6).

so you know the reason that NVIDIA driver does not install with the arch headers is because it is not a header that is causing the problem it is a Makefile. the solution to this problem is to feature request through the bug tracker that the need file be included.


AKA uknowme

I am not your friend

Offline

#5 2004-03-02 13:14:26

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Kernel source (or headers)

See http://lwn.net/Articles/21823/ for more info.

Offline

#6 2004-03-15 13:55:22

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Kernel source (or headers)

sarah31 wrote:

the kernel headers do come with the kernel (2.4 and 2.6).

so you know the reason that NVIDIA driver does not install with the arch headers is because it is not a header that is causing the problem it is a Makefile. the solution to this problem is to feature request through the bug tracker that the need file be included.

I did and the Makefile has been added in 2.6.4, but still no success with installing NVIDIA drivers without downloading the entire source.

Offline

#7 2004-03-15 17:00:42

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Kernel source (or headers)

sad  that kinda sucks  sad


AKA uknowme

I am not your friend

Offline

#8 2004-03-16 12:27:15

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Kernel source (or headers)

sarah31 wrote:

sad  that kinda sucks  sad

I had a look @ kernel24, but I didn't any difference between 2.4 and 2.6 in /usr/src/ and /lib/modules/. Does anyone know why nvidia drivers work with a stock 2.4.x, but don't with  a stock 2.6.x

Offline

#9 2004-03-16 13:25:53

rberry88
Member
From: Arlington Heights, IL USA
Registered: 2004-01-07
Posts: 53

Re: Kernel source (or headers)

I got the Nvidia installer to work with the stock 2.6.4 kernel that I downloaded from www.kernel.org . I felt like I was running in circles trying to get the nvidia drivers to work with 2.6.4 using the arch build but what I did was this:

1. download the 2.6.4 kernel ( I used the tar.gz version) from kernel.org to  /home/user
2. cd /usr/src
3. rm linux (takes any symlink out)
4. tar -xzvf /home/usr/linux-2.6.4
5. cd linux-2.6.4  (NOTE: do not create a symlink)
6. make menuconfig (adjust anything necessary for your system but make sure you INCLUDE (*) AGPGART into the kernel.
7. make all
8. cp arch/i386/boot/bzImage /boot/Arch-2.6.4  (<--name it what you want)
9. edit your bootloader accordingly  (Grub or Lilo)
10. Reboot into new kernel
11. cd to directory where you downloaded the Nvidia file. (NVIDIA.......run)
12. sh NVIDIA.......run --add-this-kernel (let this finish - it may seem like it stops but leave it for a few minutes and it will finish and build a custom NVIDIA .run file for you to install the driver with)
13. Do sh NVIDIA..........custom.run  (<--your newly created one)
14. Change your XF86Config file to show the "nvidia" driver.
15. Do "modprobe nvidia"
16. startx

You may or may not have to add extra options to your XF86Config file for the nvidia driver, here is what mine looks like and it works flawlessly:

# Device configured by xf86config:

Section "Device"
    Identifier  "Geforce"
    Driver      "nvidia"
    Option "NvAGP" "1"
    Option "NoDDC" "false"
    Option "DMPS"
    Option "RenderAccel" "True"
    Option "AGPMode" "4"
    Option "AGPFastWrite" "true"
    Option "EnableDepthMoves" "true"
    Option "EnablePageFlip" "true"

    #VideoRam    262144
    # Insert Clocks lines here if appropriate
EndSection

All these options and more can be found in the NVIDIA README file.

rberry88

Offline

#10 2004-03-16 14:13:41

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Kernel source (or headers)

um that sounds like you built your own kernel to me.


AKA uknowme

I am not your friend

Offline

#11 2004-03-16 14:39:17

rberry88
Member
From: Arlington Heights, IL USA
Registered: 2004-01-07
Posts: 53

Re: Kernel source (or headers)

That was exactly my point, I couldn't get the Arch-way to work so I thought I would share the step-by-step for others that are having the same problems.

Its nice to have more than one way to get something accomplished, which is a very nice feature of Arch.

rberry88 8)  8)  8)

Offline

#12 2004-03-16 15:33:59

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Kernel source (or headers)

rberry88 wrote:

That was exactly my point, I couldn't get the Arch-way to work so I thought I would share the step-by-step for others that are having the same problems.

Its nice to have more than one way to get something accomplished, which is a very nice feature of Arch.

rberry88 8)  8)  8)

You can also extract the vanilla source to /usr/src/2.6.x...

My point was it should be possible to install nvidia drivers by just running the script. For the sake of easyness smile

Offline

#13 2004-03-16 16:19:43

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Kernel source (or headers)

LB06 wrote:

You can also extract the vanilla source to /usr/src/2.6.x...

My point was it should be possible to install nvidia drivers by just running the script. For the sake of easyness smile

exactly, obviously what exactly the NVIDIA installer requires from the source needs to be looked at further. I have no clue why they keep making changes from their first 2.6 capable installer which worked well with the stock kernel with little modification.


AKA uknowme

I am not your friend

Offline

#14 2004-03-17 01:29:36

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Kernel source (or headers)

I've had a hard time installing the nvidia drivers on my 2.6.4 kernel.  I tried a couple of suggestions here on the forums, but other than recompiling my own kernel from scratch, which way actually works?

I'm thinking that it may be time to start to have an arch package for the nvidia driver like there used to be.

Offline

#15 2004-03-17 15:23:13

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Kernel source (or headers)

beniro wrote:

I've had a hard time installing the nvidia drivers on my 2.6.4 kernel.  I tried a couple of suggestions here on the forums, but other than recompiling my own kernel from scratch, which way actually works?

I'm thinking that it may be time to start to have an arch package for the nvidia driver like there used to be.

Just extract the kernel-sources from kernel.org to /usr/src/ and run the installer.

I don't thinks there's ever been a nvidia-driver package or something.

Offline

#16 2004-03-18 01:12:49

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Kernel source (or headers)

I just tried that as well, and it says "no kernel interfaces were found".

Now what?

I've tried this and I tried alexthelion's solution here:

http://bbs.archlinux.org/viewtopic.php? … nvidia+2+6

And neither have worked.  If I recall correctly, The original nvidia driver package was removed because the install was so easy...

http://bbs.archlinux.org/viewtopic.php? … dia+driver

I think it's time for someone to come up with a definite solution or reinstate the old nvidia driver package.  I only say this because despite my most sincere efforts, I've been unable to get the driver installed.

Thanks, and keep up the good work!  smile

Offline

#17 2004-03-18 03:20:29

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Kernel source (or headers)

I finally got mine working (my nvidia card).  I abs'd my own kernel to /usr/src/linux-2.6.4, then...

I ran the nvidia installer like this:

sh NVIDIA-PKG-NAME.run --kernel-source=/usr/src/linux-2.6.4

And I add the module to my rc.conf file, and edited my XF86CONFIG file according to the rule in the nvidia README.

VOILA!

I don't know if this is the correct way...

Offline

#18 2004-04-05 02:23:32

slacker
Member
Registered: 2004-04-03
Posts: 12

Re: Kernel source (or headers)

rberry88 wrote:

6. make menuconfig (adjust anything necessary for your system but make sure you INCLUDE (*) AGPGART into the kernel.
rberry88

this is the only line i do not understand. i have never compiled a kernel. i am running 2.6.3 from the standard 0.6 arch install. i downloaded the kernel from kernel.org (tar.gz file)

please clarify step 6. do i even need to do this? cant i just untar the file and have the kernel source (headers) on my system?


Murphy's Law: If anything can go bad, it will.
Cole's Law: Thinly sliced cabbage.

Offline

#19 2004-04-05 02:25:07

slacker
Member
Registered: 2004-04-03
Posts: 12

Re: Kernel source (or headers)

beniro wrote:

I finally got mine working (my nvidia card).  I abs'd my own kernel to /usr/src/linux-2.6.4, then...

I ran the nvidia installer like this:

sh NVIDIA-PKG-NAME.run --kernel-source=/usr/src/linux-2.6.4

And I add the module to my rc.conf file, and edited my XF86CONFIG file according to the rule in the nvidia README.

VOILA!

I don't know if this is the correct way...

what is abs? also why addthe module to rc.conf? i never did this on slackware, just changed the driver line in XF86Config


Murphy's Law: If anything can go bad, it will.
Cole's Law: Thinly sliced cabbage.

Offline

Board footer

Powered by FluxBB