Hi :) now that I know that the proprietary nvidia driver is ok for 3.3 alpha, I tried to build the current kernel-rt for 3.0-beta3. I'm running one of my self build kernels, usually it works using make-kpkg, but today it failed 3 times, because of this I tried to build it the way I do it for Suse, but seemingly for Ubuntu at least the usage of mkinitrd differs to Suse. I planed to build the current kernel and the nvidia driver. This are the steps I did.
# sh ./NVIDIA-Linux-x86_64-195.36.15-pkg2.run --uninstall # sh ./NVIDIA-Linux-x86_64-195.36.15-pkg2.run --update # uname -r 2.6.31.12-rt20 Gustin Johnson wrote: > http://www.howtoforge.com/kernel_compilation_ubuntu > This is the way I usually build my kernels, note that there was no need to run apt-get here, but I followed this howto. # apt-get update # apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 # wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.2-rt13.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2 # tar xjf linux-2.6.33.2.tar.bz2 # ln -s linux-2.6.33.2 linux # cd /usr/src/linux # bzip2 -dc /usr/src/patch-2.6.33.2-rt13.bz2 | patch -p1 --dry-run # bzip2 -dc /usr/src/patch-2.6.33.2-rt13.bz2 | patch -p1 # rm ../linux-2.6.33.2.tar.bz2 ../patch-2.6.33.2-rt13.bz2 # cp /boot/config-$(uname -r) .config # make oldconfig # make oldconfig # make-kpkg clean # MAKEFLAGS="CONCURRENCY-LEVEL=2" # fakeroot make-kpkg --initrd --append-to-version=-1 kernel_image kernel_headers kernel-source [...] ====== making target install/linux-image-2.6.33.2-rt13-1 [new prereqs: ]====== This is kernel package version 11.001. echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.33.2-rt13-1\" "; echo "Please correct this."; exit 2 The UTS Release version in include/linux/version.h "" does not match current version: "2.6.33.2-rt13-1" Please correct this. make: *** [install/linux-image-2.6.33.2-rt13-1] Error 2 # cp -p .config ../.config # cd .. # rm -r linux linux-2.6.33.2 # wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.2-rt13.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2 # tar xjf linux-2.6.33.2.tar.bz2 # ln -s linux-2.6.33.2 linux # cd linux # bzip2 -dc ../patch-2.6.33.2-rt13.bz2 | patch -p1 # rm ../linux-2.6.33.2.tar.bz2 ../patch-2.6.33.2-rt13.bz2 # mv ../.config .config # make oldconfig # make oldconfig # make-kpkg clean # MAKEFLAGS="CONCURRENCY-LEVEL=2" # make-kpkg --rootcmd fakeroot --initrd --append-to-version=-1 kernel-image kernel-headers kernel-source [...] ====== making target install/linux-image-2.6.33.2-rt13-1 [new prereqs: ]====== This is kernel package version 11.001. echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.33.2-rt13-1\" "; echo "Please correct this."; exit 2 The UTS Release version in include/linux/version.h "" does not match current version: "2.6.33.2-rt13-1" Please correct this. make: *** [install/linux-image-2.6.33.2-rt13-1] Error 2 # cd .. # rm -r linux linux-2.6.33.2 # logout $ cd /usr/src $ wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.2-rt13.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.2.tar.bz2 $ tar xjf linux-2.6.33.2.tar.bz2 $ mv linux-2.6.33.2 linux-2.6.33.2-rt13-1 $ ln -s linux-2.6.33.2-rt13-1 linux $ cd linux $ bunzip2 ../patch-2.6.33.2-rt13.bz2 $ patch -p1 < ../patch-2.6.33.2-rt13 $ rm ../linux-2.6.33.2.tar.bz2 ../patch-2.6.33.2-rt13 $ cp /boot/config-$(uname -r) .config $ make oldconfig $ make oldconfig $ make-kpkg clean $ MAKEFLAGS="CONCURRENCY-LEVEL=2" $ echo $MAKEFLAGS $ make-kpkg --help [...] --rootcmd method A command that provides a means of gaining superuser access (for example, `sudo' or `fakeroot') as needed by dpkg-buildpackages' -r option. [...] $ make-kpkg --rootcmd fakeroot --initrd --append-to-version=-1 kernel-image kernel-headers kernel-source [...] ====== making target install/linux-image-2.6.33.2-rt13-1 [new prereqs: ]====== This is kernel package version 11.001. echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.33.2-rt13-1\" "; echo "Please correct this."; exit 2 The UTS Release version in include/linux/version.h "" does not match current version: "2.6.33.2-rt13-1" Please correct this. make: *** [install/linux-image-2.6.33.2-rt13-1] Error 2 $ cd .. $ cat include/linux/version.h #define LINUX_VERSION_CODE 132641 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) $ cd .. $ sudo rm -r linux linux-2.6.33.2-rt13-1 $ sudo -i # cd /usr/src # KMAJOR=2.6.33 # KMINOR=.2 # KMICRO=-rt13 # KERNEL=${KMAJOR}${KMINOR}${KMICRO} # echo $KERNEL 2.6.33.2-rt13 # ARCH=`uname -m` # echo $ARCH x86_64 # mkdir kernel # cd kernel # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-${KMAJOR}.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/patch-${KMAJOR}${KMINOR}.bz2 http://www.kernel.org/pub/linux/kernel/projects/rt/patch-${KERNEL}.bz2 # tar -jxf linux-${KMAJOR}.tar.bz2 # mv linux-${KMAJOR} linux-${KERNEL} # cd linux-${KERNEL} # bzip2 -dc ../patch-${KMAJOR}${KMINOR}.bz2 | patch -p1 # bzip2 -dc ../patch-${KERNEL}.bz2 | patch -p1 # rm ../linux-2.6.33.tar.bz2 ../patch-2.6.33.2.bz2 ../patch-2.6.33.2-rt13.bz2 # mv -vf Makefile Makefile.orig # cat Makefile.orig | sed 's/EXTRAVERSION =.*/EXTRAVERSION ='${KMINOR}${KMICRO}'/' > Makefile # cat `ls -1t /boot/config-$(uname -r) | head -1` > .config # make oldconfig # make clean # make -j3 all # make modules_install # cp -vp arch/${ARCH}/boot/bzImage /boot/vmlinuz-${KERNEL} # cp -vp .config /boot/config-${KERNEL} # cp -vp System.map /boot/System.map-${KERNEL} # wget http://de.archive.ubuntu.com/ubuntu/pool/universe/i/initrd-tools/initrd-tools_0.1.84ubuntu1_all.deb # apt-get install cramfsprogs # dpkg -i initrd-tools_0.1.84ubuntu1_all.deb # rm initrd-tools_0.1.84ubuntu1_all.deb # /usr/sbin/mkinitrd -k -o /boot/initrd.img-${KERNEL} ${KERNEL} /usr/sbin/mkinitrd: The working directory /tmp/mkinitrd.E20565 will be kept. cpio: (0x00007fff221ff000): Cannot stat: No such file or directory cpio: (0x00007fff47ed8000): Cannot stat: No such file or directory cpio: (0x00007fff61bff000): Cannot stat: No such file or directory cpio: (0x00007fff7b7ff000): Cannot stat: No such file or directory cpio: (0x00007fffb6965000): Cannot stat: No such file or directory cpio: (0x00007fffd23da000): Cannot stat: No such file or directory cpio: (0x00007fffdb3ff000): Cannot stat: No such file or directory cpio: (0x00007fffebf01000): Cannot stat: No such file or directory cpio: (0x00007fffecdff000): Cannot stat: No such file or directory cpio: (0x00007ffff11bb000): Cannot stat: No such file or directory cpio: (0x00007ffffcfff000): Cannot stat: No such file or directory cp: cannot stat `(0x00007fff4d7ab000)': No such file or directory cp: cannot stat `(0x00007fff68b19000)': No such file or directory run-parts: /usr/share/initrd-tools/scripts/e2fsprogs exited with return code 1 For Suse the command would be # /sbin/mkinitrd -k /boot/vmlinuz-${KERNEL} -i /boot/initrd-${KERNEL} -M /boot/System.map-${KERNEL} Cheers! Ralf _______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
