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 11-07-2009, 05:25 PM
Quentin Harley
 
Default Help needed to build a kernel with snd-hrtimer enabled

Ralf Mardorf wrote:
> usually building kernels for 64 Studio is fine, but today I stopped
> building the kernel, because there's something wrong, or I made a
> mistake. Please take a look at the attachment.

Hi Ralf,

This is the second line of the .config file

# Automatically generated make config: don't edit

I always use either menuconfig or xconfig to set the kernel
parameters. "make oldconfig" is also handy if you want your new kernel
to be configured the same way as your current one. That way you are
sure that you are not trying to set parameters that does not exist.

Cheers,
Quentin


_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 11-07-2009, 07:58 PM
Ralf Mardorf
 
Default Help needed to build a kernel with snd-hrtimer enabled

Quentin Harley wrote:
> Ralf Mardorf wrote:
>
>> usually building kernels for 64 Studio is fine, but today I stopped
>> building the kernel, because there's something wrong, or I made a
>> mistake. Please take a look at the attachment.
>>
>
> Hi Ralf,
>
> This is the second line of the .config file
>
> # Automatically generated make config: don't edit
>
> I always use either menuconfig or xconfig to set the kernel
> parameters. "make oldconfig" is also handy if you want your new kernel
> to be configured the same way as your current one. That way you are
> sure that you are not trying to set parameters that does not exist.
>
> Cheers,
> Quentin

Thank you Quentin . Ralf
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 
Old 11-09-2009, 12:19 AM
Ralf Mardorf
 
Default Help needed to build a kernel with snd-hrtimer enabled

Quentin Harley wrote:

Ralf Mardorf wrote:

usually building kernels for 64 Studio is fine, but today I stopped
building the kernel, because there's something wrong, or I made a
mistake. Please take a look at the attachment.



Hi Ralf,

This is the second line of the .config file

# Automatically generated make config: don't edit

I always use either menuconfig or xconfig to set the kernel
parameters. "make oldconfig" is also handy if you want your new kernel
to be configured the same way as your current one. That way you are
sure that you are not trying to set parameters that does not exist.


Cheers,
Quentin


Hi Quentin

make oldconfig did set up Xen, but Xen will cause trouble and oldconfig
will ignore hrtimer and recommend "Y" for ftrace. Ftrace can cause
latencies (it's enabled for the kernel-rt from the Suse 11.2 repository
and at startup it will inform about this issue). But oldconfig did set
up hpet as wanted. I disabled Xen by menuconfig and ftrace by oldconfig,
BUT I ADDED hrtimer MANUALLY :S.


Anyway, it seems to be fine, see the end of the attached steps I did. To
be honest, I've got qualms because of this strange kernel building .
I'll google a little bit to solve this issue.


Cheers,
Ralf
############################################
# kernel-rt hpet 64 Studio 3.0-beta3 amd64 #
############################################

1 $ cd /usr/src
2 $ wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.5.tar.bz2
3 $ tar xvjf linux-2.6.31.5.tar.bz2
4 $ rm linux-2.6.31.5.tar.bz2
5 $ mv linux-2.6.31.5 linux-2.6.31.5-rt18
6 $ ln -s linux-2.6.31.5-rt18 linux
7 $ cd linux
8 $ wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.31.5-rt18.bz2
9 $ bunzip2 patch-2.6.31.5-rt18.bz2
10 $ patch -p1 < patch-2.6.31.5-rt18
11 $ rm patch-2.6.31.5-rt18
12 $ cp /boot/config-$(uname -r) .config
13 $ make oldconfig
14 $ cp .config .config_BACKUP_AFTER_make_oldconfig_FINISHED
15 $ make menuconfig
16 $ rm .config
17 $ cp .config_make_menuconfig .config
18 $ make oldconfig
19 $ make-kpkg clean
20 exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
21 ====== making target minimal_clean [new prereqs: ]======
22 Cleaning.
23 test ! -f .config || cp -pf .config config.precious
24 test ! -e stamp-building || rm -f stamp-building
25 test ! -f Makefile ||
26 make ARCH=xen distclean
27 make[1]: Entering directory `/usr/src/linux-2.6.31.5-rt18'
28 Makefile:527: /usr/src/linux-2.6.31.5-rt18/arch/xen/Makefile: No such file or directory
29 make[1]: *** No rule to make target `/usr/src/linux-2.6.31.5-rt18/arch/xen/Makefile'. Stop.
30 make[1]: Leaving directory `/usr/src/linux-2.6.31.5-rt18'
31 make: *** [minimal_clean] Error 2
32 $ make menuconfig
33 $ rm .config
34 $ cp .config_make_menuconfig_no_xen .config
35 $ make oldconfig
36 $ make-kpkg clean
37 exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
38 ====== making target minimal_clean [new prereqs: ]======
39 Cleaning.
40 test ! -f .config || cp -pf .config config.precious
41 test ! -e stamp-building || rm -f stamp-building
42 test ! -f Makefile ||
43 make ARCH=x86_64 distclean
44 make[1]: Entering directory `/usr/src/linux-2.6.31.5-rt18'
45 CLEAN scripts/basic
46 CLEAN scripts/kconfig
47 CLEAN include/config
48 CLEAN .config .config.old include/linux/autoconf.h
49 make[1]: Leaving directory `/usr/src/linux-2.6.31.5-rt18'
50 test ! -f config.precious || mv -f config.precious .config
51 rm -f modules/modversions.h modules/ksyms.ver conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian
52
53 $ cat .config | grep CONFIG_FTRACE
54 # CONFIG_FTRACE is not set
55 $ cat .config | grep XEN
56 # CONFIG_XEN is not set
57 # CONFIG_NETXEN_NIC is not set
################################################## #########
# 58 $ cat .config | grep HRTIMER #
# 59 # CONFIG_SND_HRTIMER is not set #
# 60 $ cat .config | grep HPET #
# 61 CONFIG_HPET_TIMER=y #
# 62 CONFIG_HPET_EMULATE_RTC=y #
# 63 CONFIG_HPET=y #
# 64 CONFIG_HPET_MMAP=y #
# 65 $ echo "CONFIG_SND_HRTIMER=m" >> .config #
# 66 $ echo "CONFIG_SND_SEQ_HRTIMER_DEFAULT=y" >> .config #
# 67 $ make oldconfig #
################################################## #########
68 HOSTCC scripts/basic/fixdep
69 HOSTCC scripts/basic/docproc
70 HOSTCC scripts/basic/hash
71 HOSTCC scripts/kconfig/conf.o
72 HOSTCC scripts/kconfig/kxgettext.o
73 SHIPPED scripts/kconfig/zconf.tab.c
74 SHIPPED scripts/kconfig/lex.zconf.c
75 SHIPPED scripts/kconfig/zconf.hash.c
76 HOSTCC scripts/kconfig/zconf.tab.o
77 HOSTLD scripts/kconfig/conf
78 scripts/kconfig/conf -o arch/x86/Kconfig
################################################## ######################
# 79 .config:4039:warning: override: reassigning to symbol SND_HRTIMER #
################################################## ######################
80 #
81 # configuration written to .config
82 #
#######################################
# 83 $ cat .config | grep HRTIMER #
# 84 CONFIG_SND_HRTIMER=m #
# 85 CONFIG_SND_SEQ_HRTIMER_DEFAULT=y #
#######################################
#####################
# $ make-kpkg clean #
#####################
exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
====== making target minimal_clean [new prereqs: ]======
Cleaning.
test ! -f .config || cp -pf .config config.precious
test ! -e stamp-building || rm -f stamp-building
test ! -f Makefile ||
make ARCH=x86_64 distclean
make[1]: Entering directory `/usr/src/linux-2.6.31.5-rt18'
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config .config.old include/linux/autoconf.h
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-rt18'
test ! -f config.precious || mv -f config.precious .config
rm -f modules/modversions.h modules/ksyms.ver conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian
################################################## ###################################
# $ make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers kernel-source #
################################################## ###################################

$ cd ..
$ sudo dpkg -i linux-image-2.6.31.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb
Selecting previously deselected package linux-image-2.6.31.5-rt18.
(Reading database ... 157437 files and directories currently installed.)
Unpacking linux-image-2.6.31.5-rt18 (from linux-image-2.6.31.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb) ...
Done.
dpkg: error processing linux-image-2.6.31.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb (--install):
trying to overwrite `/lib/firmware/ess/maestro3_assp_kernel.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
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.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.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb
$ sudo dpkg -i --force-overwrite linux-image-2.6.31.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb
(Reading database ... 157437 files and directories currently installed.)
Unpacking linux-image-2.6.31.5-rt18 (from linux-image-2.6.31.5-rt18_2.6.31.5-rt18-10.00.Custom_amd64.deb) ...
Done.
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/ess/maestro3_assp_kernel.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/ess/maestro3_assp_minisrc.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/acenic/tg2.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/acenic/tg1.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/yamaha/ds1e_ctrl.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/yamaha/ds1_dsp.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/yamaha/ds1_ctrl.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/tigon/tg3_tso5.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/tigon/tg3.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/tigon/tg3_tso.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi26/firmware.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi26/bitstream.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi26/loader.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/intelliport2.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/adaptec/starfire_rx.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/adaptec/starfire_tx.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/sun/cassini.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/kaweth/trigger_code.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/kaweth/new_code.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/kaweth/trigger_code_fix.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/kaweth/new_code_fix.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi62/spdif.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi62/midi.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi62/bitstream.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/emi62/loader.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/e100/d101s_ucode.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/e100/d102e_ucode.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/e100/d101m_ucode.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/edgeport/down3.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/edgeport/down2.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/edgeport/down.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/edgeport/boot.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/edgeport/boot2.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/cxgb3/t3b_psram-1.1.0.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/cxgb3/t3c_psram-1.1.0.bin', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/korg/k1212.dsp', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/keyspan_pda/xircom_pgs.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/keyspan_pda/keyspan_pda.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/firmware/atmsar11.fw', which is also in package linux-image-2.6.29.3-rt13-suspend2
Setting up linux-image-2.6.31.5-rt18 (2.6.31.5-rt18-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.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

MENU.LST

$ sudo -i
# mount /dev/sda7 /mnt/backup
# gedit /mnt/backup/boot/grub/menu.lst
title 64 Studio 3.0-beta3, kernel 2.6.31.5-rt18 hrtimer hpet
root (hd0,5)
kernel /boot/vmlinuz-2.6.31.5-rt18 root=UUID=7517d4f5-be85-430c-a812-b0d98d24d0c7 ro quiet splash
initrd /boot/initrd.img-2.6.31.5-rt18
quiet

################################################## ############################
spinymouse-sudo@64studio:~$ sudo -i
root@64studio:~# ntpdate ntp.favey.ch
9 Nov 01:43:00 ntpdate[4685]: adjust time server 195.34.89.227 offset -0.323541 sec
root@64studio:~# uname -a
Linux 64studio 2.6.31.5-rt18 #1 SMP PREEMPT RT Sun Nov 8 23:44:41 CET 2009 x86_64 GNU/Linux
root@64studio:~# chgrp audio /dev/hpet
root@64studio:~# echo 1024 > /proc/sys/dev/hpet/max-user-freq
root@64studio:~# modprobe snd-hrtimer
root@64studio:~# logout
spinymouse-sudo@64studio:~$ lsmod | grep timer
snd_hrtimer 3184 0
snd_timer 22648 3 snd_hrtimer,snd_pcm,snd_seq
snd 65384 16 snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_co dec,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pc m,snd_i2c,snd_mpu401_uart,snd_hwdep,snd_seq_oss,sn d_rawmidi,snd_seq,snd_timer,snd_seq_device
spinymouse-sudo@64studio:~$ cat /proc/asound/timers
G0: system timer : 1000.000us (10000000 ticks)
G3: HR timer : 0.001us (1000000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
spinymouse-sudo@64studio:~$ ls -l /dev/hpet
crw-rw---- 1 root audio 10, 228 2009-11-09 02:40 /dev/hpet
spinymouse-sudo@64studio:~$ jackd -Rc h -dalsa -dhw:0 -r96000 -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|96000|0|0|nomon|swmeter|-|32bit
Using ALSA driver ICE1712 running on card 0 - TerraTec EWX24/96 at 0xcf00, irq 21
configuring for 96000Hz, period = 512 frames (5.3 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_________________________________________ ______
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 06:38 AM.

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