On Fri, 2008-08-15 at 07:40 +0200, Thorsten Leemhuis wrote: > On 15.08.2008 07:10, Mogens Kjaer wrote: > > Dave Burns wrote: > > ... > >> using rpmbuild command? What switches? > > This is not rocket science :-) > > > > For my x86_64 machine: > > > > # rpm -i nvidia-kmod-173.14.12-2.lvn9.src.rpm > > # rpm -i buildsys-build-rpmfusion-9.1-9.lvn9.src.rpm > > Just FYI, you don't need to download or modify buildsys-build-rpmfusion > to build a single kmod; it's way easier then that; quoting > > http://rpmfusion.org/Packaging/KernelModules/Kmods2 > > > === Is it possible to compile a kmod against self compiled or other kernels? === > > > > Yes, easily, it's just a few steps. If you don't have a rpm build environment set one up like this > > {{{ > > $ su -c "yum -y install rpmdevtools kmodtool kernel-devel" > > $ rpmdev-setuptree > > }}} > > > > Now download the kmod src.rpm to the local directory and rebuild it for the running kernel: > > {{{ > > $ yumdownloader --source kmod-foo > > $ rpmbuild --rebuild foo-kmod*.src.rpm --define "kernels $(uname -r)" --target $(uname -m) > > }}} > > > > At the end of the build output you will see the names of the RPMs rpmbuild built. Use yum to install it with a command like this > > {{{ > > $ su -c "yum --nogpgcheck install ~/rpmbuild/RPMS/i686/kmod-foo-1.0-4.i686.rpm" > > }}} > > > More details and notes: > http://rpmfusion.org/Packaging/KernelModules/Kmods2#head-a6ef94d0e888ea41a2335d30fe7da26814e23f8f > > CU > knurd > > P.S.: Hopefully the livna builder is back up in a few hours > Hi My version of Rocket Science !! John A new day !! A clean start As ja cd ~ rm -rf rpmbuild rpmdev-setuptree This downloads source rpms into home directory yumdownloader --enable=livna --source nvidia-kmod-173.14.12-2.lvn9. yumdownloader --enable=livna --source xorg-x11-drv-nvidia-173.14.12-1.lvn9 This rebuilds the binary rpms in the rpmbuild directory structure rpmbuild --rebuild nvidia-kmod-173.14.12-2.lvn9.src.rpm --define "kernels $(uname -r)" --target $(uname -m) rpmbuild --rebuild xorg-x11-drv-nvidia-173.14.12-1.lvn9.src.rpm --define "kernels $(uname -r)" --target $(uname -m) su cd rpmbuild/RPMS/x86_64 ls -l -rw-r--r-- 1 ja sysadmin 2688970 2008-08-16 09:45 kmod-nvidia-2.6.25.14-108.fc9.x86_64-173.14.12-2.fc9.x86_64.rpm -rw-r--r-- 1 ja sysadmin 572099 2008-08-16 09:45 nvidia-kmod-debuginfo-173.14.12-2.fc9.x86_64.rpm -rw-r--r-- 1 ja sysadmin 3221967 2008-08-16 09:47 xorg-x11-drv-nvidia-173.14.12-1.fc9.x86_64.rpm -rw-r--r-- 1 ja sysadmin 24655 2008-08-16 09:47 xorg-x11-drv-nvidia-debuginfo-173.14.12-1.fc9.x86_64.rpm -rw-r--r-- 1 ja sysadmin 163031 2008-08-16 09:47 xorg-x11-drv-nvidia-devel-173.14.12-1.fc9.x86_64.rpm -rw-r--r-- 1 ja sysadmin 6016490 2008-08-16 09:47 xorg-x11-drv-nvidia-libs-173.14.12-1.fc9.x86_64.rpm yum --nogpgcheck localinstall \ kmod-nvidia-2.6.25.14-108.fc9.x86_64-173.14.12-2.fc9.x86_64.rpm \ xorg-x11-drv-nvidia-173.14.12-1.fc9.x86_64.rpm \ xorg-x11-drv-nvidia-libs-173.14.12-1.fc9.x86_64.rpm Add remove livna/nvidia rpms as yum complains and repeat above yum --enable=livna install livna-config-display yum remove nvidia-settings If present Reboot ?? -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list