FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > 64 Studio > 64 Studio User

 
 
LinkBack Thread Tools
 
Old 12-21-2009, 08:01 PM
Ralf Mardorf
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

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-sudo@64studio:~$ sudo apt-get update
spinymouse-sudo@64studio:~$ sudo apt-get install bin86 build-essential
bzip2 fakeroot gcc kernel-package make libncurses5-dev

### Download the kernel sources

spinymouse-sudo@64studio:~$ wget
http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.31.6-rt19.bz2
spinymouse-sudo@64studio:~$ wget
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.6.tar.bz2

### Extracting the sources and others

spinymouse-sudo@64studio:~$ tar xvjf linux-2.6.31.6.tar.bz2
spinymouse-sudo@64studio:~$ rm linux-2.6.31.6.tar.bz2
spinymouse-sudo@64studio:~$ mv linux-2.6.31.6 linux-2.6.31.6-rt19
spinymouse-sudo@64studio:~$ ln -s linux-2.6.31.6-rt19 linux
spinymouse-sudo@64studio:~$ cd linux
spinymouse-sudo@64studio:~/linux$ mv ../patch-2.6.31.6-rt19.bz2 ~/linux
spinymouse-sudo@64studio:~/linux$ bunzip2 patch-2.6.31.6-rt19.bz2

### Patching the vanilla kernel with the real-time patch and others

spinymouse-sudo@64studio:~/linux$ patch -p1 < patch-2.6.31.6-rt19
spinymouse-sudo@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-sudo@64studio:~/linux$ uname -r
2.6.29-1-multimedia-amd64

### Copy the configuration of 64 Studio's default kernel

spinymouse-sudo@64studio:~/linux$ cp /boot/config-$(uname -r) .config

### Setting up a new configuration

spinymouse-sudo@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-sudo@64studio:~/linux$ cat .config | grep PAE
spinymouse-sudo@64studio:~/linux$ cat .config | grep pae
spinymouse-sudo@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-sudo@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-sudo@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-sudo@64studio:~/linux$ make oldconfig
scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#

### Now search for PAE by using menuconfig

spinymouse-sudo@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-sudo@64studio:~/linux$ make-kpkg clean

### Build the kernel

spinymouse-sudo@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-sudo@64studio:~/linux$ cd
spinymouse-sudo@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-sudo@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-sudo@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-sudo@64studio:~$ sudo gedit /media/suse11.2/boot/grub/menu.lst

Your might need to run

spinymouse-sudo@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-sudo@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-sudo@64studio:~$ uname -r
2.6.31.6-rt19
spinymouse-sudo@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
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 12-21-2009, 08:24 PM
Martin Horn
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

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 <ralf.mardorf@alice-dsl.net> 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-sudo@64studio:~$ sudo apt-get update

spinymouse-sudo@64studio:~$ sudo apt-get install bin86 build-essential bzip2 fakeroot gcc kernel-package make libncurses5-dev



### Download the kernel sources



spinymouse-sudo@64studio:~$ wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.31.6-rt19.bz2

spinymouse-sudo@64studio:~$ wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.6.tar.bz2



### Extracting the sources and others



spinymouse-sudo@64studio:~$ tar xvjf linux-2.6.31.6.tar.bz2

spinymouse-sudo@64studio:~$ rm linux-2.6.31.6.tar.bz2

spinymouse-sudo@64studio:~$ mv linux-2.6.31.6 linux-2.6.31.6-rt19

spinymouse-sudo@64studio:~$ ln -s linux-2.6.31.6-rt19 linux

spinymouse-sudo@64studio:~$ cd linux

spinymouse-sudo@64studio:~/linux$ mv ../patch-2.6.31.6-rt19.bz2 ~/linux

spinymouse-sudo@64studio:~/linux$ bunzip2 patch-2.6.31.6-rt19.bz2



### Patching the vanilla kernel with the real-time patch and others



spinymouse-sudo@64studio:~/linux$ patch -p1 < *patch-2.6.31.6-rt19

spinymouse-sudo@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-sudo@64studio:~/linux$ uname -r

2.6.29-1-multimedia-amd64



### Copy the configuration of 64 Studio's default kernel



spinymouse-sudo@64studio:~/linux$ cp /boot/config-$(uname -r) .config



### Setting up a new configuration



spinymouse-sudo@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-sudo@64studio:~/linux$ cat .config | grep PAE

spinymouse-sudo@64studio:~/linux$ cat .config | grep pae

spinymouse-sudo@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-sudo@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-sudo@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-sudo@64studio:~/linux$ make oldconfig

scripts/kconfig/conf -o arch/x86/Kconfig

#

# configuration written to .config

#



### Now search for PAE by using menuconfig



spinymouse-sudo@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-sudo@64studio:~/linux$ make-kpkg clean



### Build the kernel



spinymouse-sudo@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-sudo@64studio:~/linux$ cd

spinymouse-sudo@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-sudo@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-sudo@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-sudo@64studio:~$ sudo gedit /media/suse11.2/boot/grub/menu.lst



Your might need to run



* spinymouse-sudo@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-sudo@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-sudo@64studio:~$ uname -r

2.6.31.6-rt19

spinymouse-sudo@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
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 12-21-2009, 09:18 PM
Ralf Mardorf
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

Martin Horn wrote:
> 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

There's a folder in the kernel's source including the driver:
/PATH_TO_/linux-2.6.31.6-rt19/sound/usb/caiaq
As part of the kernel image package snd-usb-caiaq.ko is here for the
installed kernel: /lib/modules/2.6.31.6-rt19/kernel/sound/usb/caiaq

ChangeLog,
http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.31.6, is from
"Mon Nov 9 16:32:31 2009 -0800".

Here are the ALSA drivers: ftp://ftp.alsa-project.org/pub/driver/

alsa-driver-1.0.22.tar.bz2 is from 12/16/2009
alsa-driver-1.0.21.tar.bz2 is from 08/31/2009

I guess the ALSA driver version for kernel 2.6.31.6 is 1.0.21 or 1.0.20,
but it can't be 1.0.22.

I don't know a command that will show the actual driver version.

Cheers,
Ralf
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 12-21-2009, 10:27 PM
Ralf Mardorf
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

Martin Horn wrote:
>
> On Mon, Dec 21, 2009 at 11:18 PM, Ralf Mardorf
> <ralf.mardorf@alice-dsl.net <mailto:ralf.mardorf@alice-dsl.net>> wrote:
>
> Martin Horn wrote:
>
> 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
>
>
> There's a folder in the kernel's source including the driver:
> /PATH_TO_/linux-2.6.31.6-rt19/sound/usb/caiaq
> As part of the kernel image package snd-usb-caiaq.ko is here for
> the installed kernel:
> /lib/modules/2.6.31.6-rt19/kernel/sound/usb/caiaq
>
> ChangeLog,
> http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.31.6, is
> from "Mon Nov 9 16:32:31 2009 -0800".
>
> Here are the ALSA drivers: ftp://ftp.alsa-project.org/pub/driver/
>
> alsa-driver-1.0.22.tar.bz2 is from 12/16/2009
> alsa-driver-1.0.21.tar.bz2 is from 08/31/2009
>
> I guess the ALSA driver version for kernel 2.6.31.6 is 1.0.21 or
> 1.0.20, but it can't be 1.0.22.
>
>
> OK, and there is no way to include alsa-1.0.22 in my build instead of
> the older version included in the kernel?
> What about replacing the older caiaq-files in the kernels source with
> the newer version of the same files before building it? Could that work?
>
> Thanks,
> Martin
>
> I don't know a command that will show the actual driver version.
>
> Cheers,
> Ralf
>

If you install a kernel and it's source you can build ALSA independent
of the used kernel version. E.g. you could use Quentin's kernel 2.6.29
and build latest ALSA drivers, by following the advices in the file
INSTALL .

You can build the kernel 2.6.31 by using my howto or use a kernel build
by Gustin and then compile ALSA drivers.

Btw. I've got the packages for x86_64 architecture. Do you need x86? Or
is this Centrino a 64-bit CPU?

As Gustin asked before. What version and architecture of 64 Studio do
you use?

If you don't know, post the output of

uname -a

It's better if you reply to the list too.
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 12-23-2009, 10:46 AM
Ralf Mardorf
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

Martin Horn wrote:
> WWOOWW ! Thank you very much, that was a lot of work!

But I made a mistake, sorry.

> spinymouse-sudo@64studio:~/linux$ make oldconfig
>
> ###
> You can ignore warnings.
> Always just enter when you get asked anything.
>

spinymouse-sudo@64studio:~$ cat /boot/config-2.6.31.6-rt19 | grep FTRACE
[snip]
CONFIG_FTRACE=y
[snip]

But it should be
# CONFIG_FTRACE is not set
to avoid latencies.

IIRC from building 2.6.31.5-rt18 you will be asked about FTRACE by
oldconfig. If not disable it by running menuconfig or just change it by
editing it with gedit, before you compile the kernel.

Cheers,
Ralf

--
Download Internet Explorer 8 and win a
Red Tick Beer
brewed with dogs swimming in the fermenting tank
http://simpsonspedia.net/images/9/91/Red-Tick-Beer-2.jpg

_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 01-02-2010, 09:35 PM
Martin Horn
 
Default Howto build kernel 2.6.31.6-rt19 and customize it's configuration

Hi Ralf, hi all,

finally I managed to compile the kernel following your instructions! Thanks a lot for that, everything went fine.

I also found out how to check for your currently installed alsa version:


martin@64studio:~$ cat /proc/asound/version

Advanced Linux Sound Architecture Driver Version 1.0.20.
martin@64studio:~$

While updating alsa I ran into problems which I describe in another mail to the list. Also the rtirq script does not work, again another mail.


Happy new year to everybody,
Martin


On Wed, Dec 23, 2009 at 12:46 PM, Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
>
> Martin Horn wrote:

>>
>> WWOOWW ! Thank you very much, that was a lot of work!

>
> But I made a mistake, sorry.
>
>> * *spinymouse-sudo@64studio:~/linux$ make oldconfig
>>
>> * * *###
>> * * *You can ignore warnings.
>> * * *Always just enter when you get asked anything.


>>
>
> spinymouse-sudo@64studio:~$ cat /boot/config-2.6.31.6-rt19 | grep FTRACE
> [snip]
> CONFIG_FTRACE=y
> [snip]
>
> But it should be
> # CONFIG_FTRACE is not set


> to avoid latencies.
>
> IIRC from building 2.6.31.5-rt18 you will be asked about FTRACE by oldconfig. If not disable it by running menuconfig or just change it by editing it with gedit, before you compile the kernel.


>
> Cheers,
> Ralf
>
> --
> Download Internet Explorer 8 and win a
> Red Tick Beer
> brewed with dogs swimming in the fermenting tank
> http://simpsonspedia.net/images/9/91/Red-Tick-Beer-2.jpg


>


_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 

Thread Tools




All times are GMT. The time now is 12:54 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org