Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] Kernel version dependency

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Hamish Greig <hgreig AT bigpond.net.au>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] Kernel version dependency
  • Date: Mon, 12 Jan 2004 09:56:03 +1100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 12 Jan 2004 09:34, Robin Sheat wrote:
> On Sun, Jan 11, 2004 at 11:24:29PM +0100, Mads Laursen wrote:
> > the right headers should be possible. Replacing the binaries on disk
> > should not be a problem, this is not Windows after all ;-)
> >
> > But without trying it's just guessing.
>
> That is the way it used to work, until NVidia changed their driver
> structure. Restart X and pow! new drivers :)

Because I have an nvidia card and because I spend so much time installing
xfree86-* spells and kernels I used to have a custom build for NVIDIA_driver.

it altered the makefile to not run the rmmod-check during the install stage.
updating to 2.6 broke this for me, but aside from that it was a nasty hack
and
not something I would support for all our users. it is included here for
anyones interest, but I don't know if it still works on the latest release
Hamish

ps there is an easter egg in this also, don't tell NVIDIA please :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAAdSH8fSufZR6424RAjM1AJ9IldLob4dp3n0XetEbhGbuxB1CYwCfS/OI
3uZiPeYxvgnEH/G3PfJlzYc=
=myB0
-----END PGP SIGNATURE-----
(

sh $SOURCE_CACHE/$SOURCE --extract-only
cd NVIDIA-Linux-x86-$VERSION
echo -n "MODULE_LICENSE(\"GPL\");" >> usr/src/nv/nv.c &&
sedit "s/rmmod-check//" usr/src/nv/Makefile &&
if [[ $VIA4X == "y" ]]; then sedit "s/NVreg_EnableVia4x
=0;/NVreg_EnableVia4x = 1;/" usr/src/nv/os-registry.c; fi &&

if [[ $ALiAGP == "y" ]]; then sedit "s/NVreg_EnableALiAGP =
0;/NVreg_EnableALiAGP = 1;/" usr/src/nv/os-registry.c; fi &&

if [[ $AGPSBA == "y" ]]; then sedit "s/NVreg_EnableAGPSBA =
0;/NVreg_EnableAGPSBA = 1;/" usr/src/nv/os-registry.c; fi &&

if [[ $AGPFW == "y" ]]; then sedit "s/NVreg_EnableAGPFW =
0;/NVreg_EnableAGPFW = 1;/" usr/src/nv/os-registry.c; fi &&

cd usr/src/nv &&

# We look at the Makefile in the kernel sources for the Version Number!
KPATCHLEVEL=`head -2 /usr/src/linux/Makefile | tail -1 | sed 's/.*=//'`

if [[ $KPATCHLEVEL == 5 ]] || [[ $KPATCHLEVEL == 6 ]]
then
patch -p1 < $SOURCE_CACHE/$SOURCE2
ln -s Makefile.kbuild Makefile
fi &&
#please no-one remove this???
cd $SOURCE_DIRECTORY/NVIDIA-Linux-x86-$VERSION &&

prepare_install &&
mkdir -p /usr/X11R6/lib/modules/extensions &&
mkdir -p /usr/X11R6/lib/modules/drivers &&
export IGNORE_CC_MISMATCH=1 &&
make install

) > $C_FIFO 2>&1



Archive powered by MHonArc 2.6.24.

Top of Page