User login |
About kernel compiling - some advice..Though 64Studio has a very good kernel by default, it is sometimes needed to compile a new kernel from source. Here is my lengthy post, copy and paste - but remember, no warranty.. comments are welcome! This writing is about my experiences with configuring a kernel for realtime and compiling ALSA to go with the new kernel. cd kernel; It is customary to create a symbolic link named linux to the kernel source directory. ln -s linux-(version-number) linux Then unzip ALSA. cd alsa; Change to your kernel source directory. cd ../linux Copy your running kernel configuration to new kernel source directory, naming it to ".config". cp /boot/config-(your running kernel version) .config Now patch the kernel. bzcat ../your-molnar-patch-number.bz2 | patch -p1 Now start the configuring and compiling process. make menuconfig This is the stage, where you can alter things as you wish regarding your kernel. First of all I changed the setting in "Processor type" to match my processor. My machine is an old 1.2GHz Duron, so the processor architecture changed to "Athlon/Duron". make all This stage takes a lot of time depending on your machine power. Make a cup of your preferable bewerage and perhaps read something - it's not a bad idea anyways.. make-kpkg -initrd kernel_image kernel_headers Kernel headers are needed to make sure ALSA will compile cleanly - just to be sure. Also those who use display drivers distributed by Nvidia will need kernel headers, because the Nvidia drivers will not move to the new kernel without recompiling and reconfiguring. I recommend configuring your system to use the generic nvidia driver (nv) with dpkg-reconfigure xserver-xorg before rebooting. This will make sure you have some type of graphic display after installing and rebooting to the new self compiled kernel. su - (The - option changes path to the /root directory and takes roots path variables into action) Using dpkg is a good idea, because it finds your current GRUB configuration and adds your working kernel to the new bootloader configuration. This way you'll have fallback plan available if something goes wrong. It shouldn't because you merely copied your old (working) kernel configuration to new kernel - for the most part. The new kernel does not need alsa driver modules to boot. sudo shutdown -r now At the bootloader I choose single user (root) option as to be sure the kernel will boot. Once the system up and running I change to the alsa source directory, /home/username/kernel/alsa. The first to be compiled are the drivers - so: cd /home/yourusername/kernel/alsa/alsa-driver-xxx Then the libraries. cd ../alsa-lib-xxx The most important alsa software to install are the drivers, libraries and alsa utilities. Depending on your system you will have to check for other alsa software to install. alsaconf After this program has finished give the commands: /etc/init.d/alsa restart Reboot and start using your new kernel. Users of Nvidias drivers will have to compile and install their drivers once again before rebooting - remember what I said about the kernel headers..? If the new kernel doesn't work you'll always have your default kernel available through the GRUB bootloader, so no harm done. TIP: To avoid the hassle of rebooting you can use dropping your system to single user mode. This is done by changing to a virtual terminal with ctrl+alt+F1 and issuing the command: init 1. A reboot is necessary only after installing a new kernel. Single user mode in Linux requires root users password, so don't do it unless you know that. Normal running mode in Debian based systems is: init 2 (GDM,X-display, hald etc. will start).
|
Search this site:In the forums:Today's poll:What format would you prefer for downloading 64 Studio? (Register or log in to vote) DVD install image 39% DVD live image with install option 42% I don't have a DVD burner so I have to use CD-R 14% I installed version 0.1 and only used apt since :-) 4% Total votes: 157 |
Hi! I followed your
Hi! I followed your walkthrough for updating the kernel, but I must have messed something up, because when I type 'alsaconf' it says that no supported pci-cards found (asks to probe for ISA-cards). My soundcard is Echo Gina 3G, which is fully supported by alsa. Any idea what have I f*cked up, and how should I proceed in fixing this?
Also, IIRC the kernel before this new one didn't say rt after 2.6.xx.xx but multimedia (2.6.2x.xx-multimedia) so is that a different patchset than the one with rt7 after the kernel version number? And how does it differ?
Thanks in advance for the comments!