sm-sorcery AT lists.ibiblio.org
Subject: Discussion of Sorcery related topics
List archive
- 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 10:14:55 +1100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 12 Jan 2004 09:56, Hamish Greig wrote:
> 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 :)
rmmod-check seems to have become rmmod-sanity-check this BUILD should work
for
2.4 kernels, for 2.6 kernels you'll get a FATAL because the module is already
in the kernel. The Makefile tries to modprobe the new module :( this too
could be hacked but someone else can finish this off
Hamish
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAAdjv8fSufZR6424RAtx3AJ9EHDeRENdD8W5Fre8M1CnQy1Kg4ACeLHWj
Gei6QfHL3XSV+wxW5yoMgVw=
=VJss
-----END PGP SIGNATURE-----
(
sh $SOURCE_CACHE/$SOURCE --extract-only &&
cd $SOURCE_DIRECTORY/NVIDIA-Linux-x86-$VERSION/usr/src/nv &&
### We look at the Makefile in the kernel sources for the Version Number!
KPATCHLEVEL=$(head -n 2 /lib/modules/$(uname -r)/build/Makefile | tail -n 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 &&
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 &&
echo -n "MODULE_LICENSE(\"GPL\");" >>
$SOURCE_DIRECTORY/NVIDIA-Linux-x86-$VERSION/usr/src/nv/nv.c &&
sedit "s/ rmmod-sanity-check//"
$SOURCE_DIRECTORY/NVIDIA-Linux-x86-$VERSION/usr/src/nv/Makefile &&
prepare_install &&
mkdir -p ${INSTALL_ROOT}/usr/X11R6/lib/modules/drivers &&
mkdir -p ${INSTALL_ROOT}/usr/X11R6/lib/modules/extensions &&
export IGNORE_CC_MISMATCH=1 &&
make install
) > $C_FIFO 2>&1
-
Re: [SM-Sorcery] Kernel version dependency
, (continued)
-
Re: [SM-Sorcery] Kernel version dependency,
Hamish Greig, 01/10/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Jose Bernardo Silva, 01/11/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Paul, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Jose Bernardo Silva, 01/11/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Robin Sheat, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Paul, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Robin Sheat, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Mads Laursen, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Robin Sheat, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Hamish Greig, 01/11/2004
- Re: [SM-Sorcery] Kernel version dependency, Hamish Greig, 01/11/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Paul, 01/11/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Jose Bernardo Silva, 01/11/2004
-
Re: [SM-Sorcery] Kernel version dependency,
Hamish Greig, 01/10/2004
Archive powered by MHonArc 2.6.24.