anyone know if there have 2.6.8 default kernel for suse yet ? Thanks. -- HK Celtic Orchestra leader and coordanator: Thomas Graham Lau Phone number: 852-93239670 (24hours a day, 7days a week non-stop phone) Web site: http://sml.dyndns.org Email: lkthomas@sml.dyndns.org
On Saturday 21 August 2004 05:09, Thomas Graham wrote:
anyone know if there have 2.6.8 default kernel for suse yet ? Thanks.
There is, on the ftp server under /pub/people/mantel But don't use it. 2.6.8 and 2.6.8.1 have some fairly serious bugs. Wait for the next release
how about 2.6.7 kernel ? also, I forget the step to compile suse kernel, can you remind me a little bit please ? Thanks.
On Saturday 21 August 2004 05:09, Thomas Graham wrote:
anyone know if there have 2.6.8 default kernel for suse yet ? Thanks.
There is, on the ftp server under /pub/people/mantel
But don't use it. 2.6.8 and 2.6.8.1 have some fairly serious bugs. Wait for the next release
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- HK Celtic Orchestra leader and coordanator: Thomas Graham Lau Phone number: 852-93239670 (24hours a day, 7days a week non-stop phone) Web site: http://sml.dyndns.org Email: lkthomas@sml.dyndns.org
Thomas Graham wrote:
how about 2.6.7 kernel ? also, I forget the step to compile suse kernel, can you remind me a little bit please ? Thanks.
This is edited from my last build, which was 2.6.7 from kernel.org together with some SuSE and some other patches. You probably won't get a dramatic improvement over your current kernel even if you optimise for the processor. Better to post questions to suse-programming-e about how to optimise your favourite apps for your processor. I've managed up to 60% improvement in some specialised libraries. (1) Install all the tools for compiling. These are probably only available on SuSE pro and certainly include gcc, binutils and make. If the kernel won't compile, install something else. The appropriate packages can be found in YaST by choosing the "Package groups" filter and the "Development" package group. The gcc version (3.3.3) that comes with SuSE should work. (2) Download the kernel and patches. I downloaded them to /home/jdl/kernel and used the following versions and sources. Kernel: linux-2.6.7.tar.bz2 Mirror of http://www.kernel.org/ You can try the kernels from ftp://ftp.suse.com/pub/people/matel/ though there probably isn't a 2.6.7 kernel there. Submount: submount-0.9.tar.gz http://sourceforge.net/project/showfiles.php?group_id=81174 TIOCGDEV, bootsplash: kernel-source.src.rpm ftp://ftp.suse.com/pub/people/mantel/kernel-of-the-day/i386/ (This really is using a sledgehammer to crack a nut. You don't actually need TIOCGDEV and this downloads 40Mb to get an 11Kb patch, which may be identical to the patch on the DVD.) nVIDIA: NVIDIA-Linux-x86-1.0-6111-pkg1.run http://www.nvidia.com/object/linux_display_ia32_1.0-6111.html (Only needed if you have an nVIDIA graphics card.) (3) Assemble your kernel sources. $ cd /home/jdl/kernel $ rpm2cpio kernel-source.src.rpm | cpio -idmuv patches.fixes.tar.bz2 $ tar jxvf patches.fixes.tar.bz2 (last two lines only if you're pedantic and want TIOCGDEV) $ tar jxvf linux-2.6.7.tar.bz2 $ cd linux-2.6.7 $ patch -p1 < ../patches.fixes/tiocgdev >> patch.log 2>&1 $ less patch.log (last two lines only if you're pedantic and want TIOCGDEV) Bootsplash: use the same method as for TIOCGDEV. I haven't checked whether this works because bootsplash conflicts with another patch I use. Check the man pages for rpm2cpio and cpio to see how to list and extract bits of the src.rpm package. Bootsplash just gives you the graphical boot and doesn't affcet performance. (4) Configure the kernel $ make distclean $ make oldconfig (This creates a .config based on the current SuSE kernel.) $ make xconfig (requires Qt to be installed) Check the following: Processor type and features You might as well choose a kernel to match your processor. I use processor family: Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon because this optimises the build for my PC. Now save and also save as with some name like config.kernel so that you can modify everything if something doesn't work. Then quit xconfig. Finally edit Makefile with your favourite editor and change the line EXTRAVERSION = to EXTRAVERSION = -mykernel or something similar. This causes the build process to put modules in /lib/modules/2.6.7-mykernel so that, for example, a future online update won't overwrite your kernel modules. (5) Build and install the kernel $ make bzImage (takes a few minutes) $ make modules If everything went well become root $ su # make modules_install (installs the modules in /lib/modules/2.6.7-mykernel) # cp arch/i386/boot/bzImage /boot/vmlinuz-mykernel (copies the new kernel to a boot location) # cp System.map /boot/System.map-mykernel # cd /boot # mkinitrd -k wmlinuz-2.6.7-mykernel -i initrd-2.6.7-mykernel (creates initial ram disk) # cd /boot/grub/ Edit menu.lst. This is my new entry ###JDL added 7/8/04 ----------------------------------------------------### title Linux-2.6.7 kernel (hd0,5)/vmlinuz-2.6.7-mykernel root=/dev/hda8 vga=0x31a desktop resume=/dev/hda7 showopts acpi=off initrd (hd0,5)/initrd-2.6.7-mykernel You should copy the existing standard entry and change the names of vmlinuz and initrd. I also change the number after default so that the new kernel gets booted. (6) Try it out. I edit /etc/inittab as root and change the line id:5:initdefault: to id:3:initdefault: temporarily. This forces a boot to runlevel 3, which is appropriate for installing the nVIDIA driver and a little safer anyway. Reboot and make sure you get the new kernel. (7) Install extra kernel modules. Log in as root and execute the following. # uname -a (Check you really have the right kernel) Linux uyea 2.6.7-mykernel #1 Fri Aug 13 21:42:34 BST 2004 i686 i686 i386 GNU/Linux The clue is "2.6.7-mykernel". # cd /home/jdl/kernel (replace with the location you used for downloads) # /bin/sh NVIDIA-Linux-x86-1.0-6111-pkg1.run Follow the instructions. I compiled a kernel interface. You might want to try to download one. If you do and connect to the internet with a modem, you can use cinternet (see man cinternet) to dial up when KInternet is not available). When you have installed nVIDIA, test it with # startx This is safer than changing to runlevel 5 and will give error messages if something goes wrong. If you had nV/home/jdl/home/kernel/submount-0.9/subfs-0.9IDIA installed before, everything should work with your old configuration and nothing will be changed. If you didn't have nVIDIA installed or this doesn't work, try # sax2 and enable 3D. This will change any existing configuration. So you might want to save the old configuration with (say) # cp /etc/X11/XF86Config /etc/X11/XF86Config.mysave in case you try to undo everything. If all this works (or you don't need nVIDIA), use # init 5 to get a graphical login and install submount as follows. Start a konsole and $ cd /home/jdl/kernel/ (replace with your directory) $ tar zxvf submount-0.9.tar.gz $ cd submount-0.9/subfs-0.9 $ make $ su # make install Do make sure you are running the right kernel and check the INSTALL file in submount-0.9/subfs-0.9. You should can ignore anything in submount-0.9/submountd-0.9 because that is already installed in SuSE 9.1 (8) Tidy up Make sure that /etc/inittab is set to the right runlevel. Typically, change id:3:initdefault: to id:5:initdefault: You may want to make sure (in /boot/grub/menu.lst) that your new kernel is the one that is loaded by default. Check subfs by putting a data CD in the CD/DVD drive. (Appparently this isn't yet 100% reliable on SuSE 9.1 anyway, but you should get the same effect as before you installed the new kernel). Check for any unusual messages at the end of /var/log/messages, particularly warnings or failures that you didn't get before. Reboot (or use CTRL+ALT+F1 to logout as root). -- JDL
participants (3)
-
Anders Johansson
-
John Lamb
-
Thomas Graham