WWOOWW ! Thank you very much, that was a lot of work! I will try this out as soon as possible-
Just one question: how can I make shure that the latest alsa-drivers and the latest version of the module "snd-usb-caiaq" are compiled into the kernel? This is most important for my soundcard to work properly. Thanks again, Martin On Mon, Dec 21, 2009 at 10:01 PM, Ralf Mardorf <[email protected]>wrote: > Hi :) > > there's no PAE for my 64-bit configuration ;), but anyway you should be > able to disable PAE by using menuconfig and then search for PAE, resp. you > can use gedit and do the same as described for XEN. It's described later in > this howto. > > ### Open a terminal > > Push Alt + F2 > Typ gnome-terminal > Click Run > > Take care, in this email the lines might be wrapped. For the terminal > anything behind the command must not be wrapped. > > ### Get needed software > > spinymouse-s...@64studio:~$ sudo apt-get update > spinymouse-s...@64studio:~$ sudo apt-get install bin86 build-essential > bzip2 fakeroot gcc kernel-package make libncurses5-dev > > ### Download the kernel sources > > spinymouse-s...@64studio:~$ wget > http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.31.6-rt19.bz2 > spinymouse-s...@64studio:~$ wget > ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.6.tar.bz2 > > ### Extracting the sources and others > > spinymouse-s...@64studio:~$ tar xvjf linux-2.6.31.6.tar.bz2 > spinymouse-s...@64studio:~$ rm linux-2.6.31.6.tar.bz2 > spinymouse-s...@64studio:~$ mv linux-2.6.31.6 linux-2.6.31.6-rt19 > spinymouse-s...@64studio:~$ ln -s linux-2.6.31.6-rt19 linux > spinymouse-s...@64studio:~$ cd linux > spinymouse-s...@64studio:~/linux$ mv ../patch-2.6.31.6-rt19.bz2 ~/linux > spinymouse-s...@64studio:~/linux$ bunzip2 patch-2.6.31.6-rt19.bz2 > > ### Patching the vanilla kernel with the real-time patch and others > > spinymouse-s...@64studio:~/linux$ patch -p1 < patch-2.6.31.6-rt19 > spinymouse-s...@64studio:~/linux$ rm patch-2.6.31.6-rt19 > > ### Make sure that you have booted the default multimedia kernel (Your > kernel might be x86) > > spinymouse-s...@64studio:~/linux$ uname -r > 2.6.29-1-multimedia-amd64 > > ### Copy the configuration of 64 Studio's default kernel > > spinymouse-s...@64studio:~/linux$ cp /boot/config-$(uname -r) .config > > ### Setting up a new configuration > > spinymouse-s...@64studio:~/linux$ make oldconfig > > ### > You can ignore warnings. > Always just enter when you get asked anything. > > ### I couldn't find PAE, but XEN and when XEN is enabled, PAE is enabled > too. Dunno if disabling XEN will disable PAE too. > > spinymouse-s...@64studio:~/linux$ cat .config | grep PAE > spinymouse-s...@64studio:~/linux$ cat .config | grep pae > spinymouse-s...@64studio:~/linux$ cat .config | grep XEN > CONFIG_XEN=y > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > CONFIG_XEN_SAVE_RESTORE=y > # CONFIG_XEN_DEBUG_FS is not set > CONFIG_XEN_BLKDEV_FRONTEND=m > # CONFIG_NETXEN_NIC is not set > CONFIG_XEN_NETDEV_FRONTEND=m > CONFIG_XEN_KBDDEV_FRONTEND=y > CONFIG_HVC_XEN=y > CONFIG_XEN_FBDEV_FRONTEND=y > CONFIG_XEN_BALLOON=y > CONFIG_XEN_SCRUB_PAGES=y > CONFIG_XEN_DEV_EVTCHN=y > CONFIG_XENFS=y > CONFIG_XEN_COMPAT_XENFS=y > CONFIG_XEN_SYS_HYPERVISOR=y > > ### Disabling XEN > > spinymouse-s...@64studio:~/linux$ gedit .config > > ### > Push Ctrl + F (resp. Strg + F) > Wrap around search for: CONFIG_XEN > By Pushing the Find-button you should find all CONFIG_XENs that were > listed by "cat .config | grep XEN". > ### > Replace "CONFIG_XEN=y" by "# CONFIG_XEN is not set". > Keep those "# CONFIG_XEN" that beginn with a hash (#). > Delete all the other "CONFIG_XEN" that don't beginn with the hash. > ### > Push Ctrl + F (resp. Strg + F) > Wrap around search for: XEN > Find and delete any line were "XEN" is included as an own word. > E.g. delete "CONFIG_HVC_XEN=y" > ### > Save .config and close gedit. > > ### Cat now should display something similar to this: > > spinymouse-s...@64studio:~/linux$ cat .config | grep XEN > # CONFIG_XEN is not set > # CONFIG_XEN_DEBUG_FS is not set > # CONFIG_NETXEN_NIC is not set > > All "XEN" must be disabled. > > ### Again running make oldconfig should look similar like this: > > spinymouse-s...@64studio:~/linux$ make oldconfig > scripts/kconfig/conf -o arch/x86/Kconfig > # > # configuration written to .config > # > > ### Now search for PAE by using menuconfig > > spinymouse-s...@64studio:~/linux$ make menuconfig > > ### > Enter: Load an Alternate Configuration File > Load : .config > ### > Maybe I didn't search long enough, but I didn't found PAE. If you > should find PAE, disable it and ... > ... enter: Save an Alternate Configuration File > Save : .config > < Exit > > > ### Tidy up > > spinymouse-s...@64studio:~/linux$ make-kpkg clean > > ### Build the kernel > > spinymouse-s...@64studio:~/linux$ make-kpkg --rootcmd fakeroot --initrd > kernel-image kernel-headers kernel-source > > Using an AMD Athlon 2.1 GHz dual core processor it nearly takes 90 minutes > to compile the kernel. Dunno if there's a job option for make-kpkg, if there > should be one, you can start more than one job, thus the compiling will go > faster. > > ### > > spinymouse-s...@64studio:~/linux$ cd > spinymouse-s...@64studio:~$ ls -al linux* > lrwxrwxrwx 1 spinymouse-sudo spinymouse-sudo 19 2009-12-21 18:13 > linux -> linux-2.6.31.6-rt19 > -rw-r--r-- 1 spinymouse-sudo spinymouse-sudo 5869784 2009-12-21 20:36 > linux-headers-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb > -rw-r--r-- 1 spinymouse-sudo spinymouse-sudo 21222240 2009-12-21 20:33 > linux-image-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb > -rw-r--r-- 1 spinymouse-sudo spinymouse-sudo 62763724 2009-12-21 20:42 > linux-source-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_all.deb > > linux-2.6.31.6-rt19: > [snip] > > ### Try to install the kernel by dpkg -i > > spinymouse-s...@64studio:~$ sudo dpkg -i linux-image-2.6.31.6-rt19* > Selecting previously deselected package linux-image-2.6.31.6-rt19. > (Reading database ... 173812 files and directories currently installed.) > Unpacking linux-image-2.6.31.6-rt19 (from > linux-image-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb) ... > Done. > dpkg: error processing > linux-image-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb (--install): > trying to overwrite `/lib/firmware/qlogic/1040.bin', which is also in > package linux-image-2.6.31.5-rt18 > dpkg-deb: subprocess paste killed by signal (Broken pipe) > Running postrm hook script /sbin/update-grub. > Searching for GRUB installation directory ... found: /boot/grub > Searching for default file ... found: /boot/grub/default > Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst > Searching for splash image ... none found, skipping ... > Found kernel: /boot/vmlinuz-2.6.31.5-rt18 > Found kernel: /boot/vmlinuz-2.6.29.3-rt13-suspend2 > Found kernel: /boot/vmlinuz-2.6.29-1-multimedia-amd64 > Found kernel: /boot/memtest86+.bin > Updating /boot/grub/menu.lst ... done > > Errors were encountered while processing: > linux-image-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb > > ### If there will be some "trying to overwrite" errors ... > > ... you should backup your 64 Studio, because the force option might damage > your installation. I didn't backup 64 Studio, resp. I've got an outdated > backup. > > ### Installing by using the force option > > spinymouse-s...@64studio:~$ sudo dpkg -i --force-overwrite > linux-image-2.6.31.6-rt19* > (Reading database ... 173812 files and directories currently installed.) > Unpacking linux-image-2.6.31.6-rt19 (from > linux-image-2.6.31.6-rt19_2.6.31.6-rt19-10.00.Custom_amd64.deb) ... > Done. > dpkg - warning, overriding problem because --force enabled: > trying to overwrite `/lib/firmware/qlogic/1040.bin', which is also in > package linux-image-2.6.31.5-rt18 > dpkg - warning, overriding problem because --force enabled: > [snip] > Setting up linux-image-2.6.31.6-rt19 (2.6.31.6-rt19-10.00.Custom) ... > Running depmod. > Finding valid ramdisk creators. > Using mkinitramfs-kpkg to build the ramdisk. > Running postinst hook script update-grub. > Searching for GRUB installation directory ... found: /boot/grub > Searching for default file ... found: /boot/grub/default > Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst > Searching for splash image ... none found, skipping ... > Found kernel: /boot/vmlinuz-2.6.31.6-rt19 > Found kernel: /boot/vmlinuz-2.6.31.5-rt18 > Found kernel: /boot/vmlinuz-2.6.29.3-rt13-suspend2 > Found kernel: /boot/vmlinuz-2.6.29-1-multimedia-amd64 > Found kernel: /boot/memtest86+.bin > Updating /boot/grub/menu.lst ... done > > Examining /etc/kernel/postinst.d. > run-parts: executing /etc/kernel/postinst.d/dkms > > ### Configuring linux-image-2.6.31.6-rt19 > > What would you like to do about menu.lst? > Enter: keep the local version currently installed > > ### Editing menu.lst > > E.g. > > spinymouse-s...@64studio:~$ sudo gedit /media/suse11.2/boot/grub/menu.lst > > Your might need to run > > spinymouse-s...@64studio:~$ gedit /boot/grub/menu.lst > > instead, for 64 Studio's bootloader. I'm using the bootloader from another > installation. > > There are lines similar to those: > > title 64 Studio, kernel 2.6.29-1-multimedia-amd64 > root (hd0,5) > kernel /boot/vmlinuz-2.6.29-1-multimedia-amd64 > root=UUID=7517d4f5-be85-430c-a812-b0d98d24d0c7 ro quiet splash > initrd /boot/initrd.img-2.6.29-1-multimedia-amd64 > quiet > > Add new lines, but change 2.6.29-1-multimedia-amd64 to the name of your new > kernel. > > The kernels are in /boot: > > spinymouse-s...@64studio:~$ ls -al /boot > total 57632 > drwxr-xr-x 3 root root 4096 2009-12-21 21:27 . > drwxrwxrwx 23 root root 4096 2009-12-21 21:27 .. > -rw-r--r-- 1 root root 93910 2009-02-26 17:24 > config-2.6.29-1-multimedia-amd64 > -rw-r--r-- 1 root root 95157 2009-10-25 05:29 > config-2.6.29.3-rt13-suspend2 > -rw-r--r-- 1 root root 90909 2009-11-08 23:33 config-2.6.31.5-rt18 > -rw-r--r-- 1 root root 91390 2009-12-21 19:27 config-2.6.31.6-rt19 > drwxr-xr-x 2 root root 4096 2009-12-21 21:29 grub > -rw-r--r-- 1 root root 7254048 2009-04-22 12:11 > initrd.img-2.6.29-1-multimedia-amd64 > -rw-r--r-- 1 root root 6610100 2009-04-21 15:24 > initrd.img-2.6.29-1-multimedia-amd64.bak > -rw-r--r-- 1 root root 7291366 2009-10-25 13:10 > initrd.img-2.6.29.3-rt13-suspend2 > -rw-r--r-- 1 root root 7650235 2009-11-09 15:48 initrd.img-2.6.31.5-rt18 > -rw-r--r-- 1 root root 7196244 2009-11-09 01:18 > initrd.img-2.6.31.5-rt18.bak > -rw-r--r-- 1 root root 7652359 2009-12-21 21:27 initrd.img-2.6.31.6-rt19 > -rw-r--r-- 1 root root 103204 2007-09-28 13:03 memtest86+.bin > -rw-r--r-- 1 root root 1478991 2009-02-26 17:24 > System.map-2.6.29-1-multimedia-amd64 > -rw-r--r-- 1 root root 1497256 2009-10-25 06:38 > System.map-2.6.29.3-rt13-suspend2 > -rw-r--r-- 1 root root 1545780 2009-11-09 00:37 System.map-2.6.31.5-rt18 > -rw-r--r-- 1 root root 1550611 2009-12-21 20:31 System.map-2.6.31.6-rt19 > -rw-r--r-- 1 root root 2096544 2009-02-26 17:24 > vmlinuz-2.6.29-1-multimedia-amd64 > -rw-r--r-- 1 root root 2146224 2009-10-25 06:38 > vmlinuz-2.6.29.3-rt13-suspend2 > -rw-r--r-- 1 root root 2184432 2009-11-09 00:37 vmlinuz-2.6.31.5-rt18 > -rw-r--r-- 1 root root 2204432 2009-12-21 20:31 vmlinuz-2.6.31.6-rt19 > > For me the new lines are > > title 64 Studio, kernel 2.6.31.6-rt19 > root (hd0,5) > kernel /boot/vmlinuz-2.6.31.6-rt19 > root=UUID=7517d4f5-be85-430c-a812-b0d98d24d0c7 ro quiet splash > initrd /boot/initrd.img-2.6.31.6-rt19 > quiet > > Save menu.lst and close gedit. > > ### Restart 64 Studio and boot the new kernel > > ### Open a terminal > > Push Alt + F2 > Typ gnome-terminal > Click Run > > ### Check if you did boot the new kernel and if JACK will run in real-time > mode > > spinymouse-s...@64studio:~$ uname -r > 2.6.31.6-rt19 > spinymouse-s...@64studio:~$ jackd -R -dalsa -dhw:0 -r44100 -p512 -n2 -Xseq > jackdmp 1.9.3 > Copyright 2001-2005 Paul Davis and others. > Copyright 2004-2009 Grame. > jackdmp comes with ABSOLUTELY NO WARRANTY > This is free software, and you are welcome to redistribute it > under certain conditions; see the file COPYING for details > JACK server starting in realtime mode with priority 10 > creating alsa driver ... hw:0|hw:0|512|2|44100|0|0|nomon|swmeter|-|32bit > Using ALSA driver ICE1712 running on card 0 - TerraTec EWX24/96 at 0xcf00, > irq 21 > configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 2 periods > ALSA: final selected sample format for capture: 32bit integer little-endian > ALSA: use 2 periods for capture > ALSA: final selected sample format for playback: 32bit integer > little-endian > ALSA: use 2 periods for playback > port created: Midi-Through:midi/playback_1 > port created: Midi-Through:midi/capture_1 > port created: TerraTec-EWX24/96:midi/playback_1 > port created: TerraTec-EWX24/96:midi/capture_1 > port created: USB-Device-0x170b:0x11:midi/playback_1 > port created: USB-Device-0x170b:0x11:midi/capture_1 > > ### > > For my system the kernel seems to be fine :). > > Hth, > Ralf >
_______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
