DEBIAN

apt-cache  search linux-image | grep PREEMPT_RT | sort -rn
sudo apt-get install linux-image-rt-amd64 linux-headers-rt-amd64
sudo apt-get install rtirq-init

ObsoletE :

deb http://kernel-archive.buildserver.net/debian-kernel/ trunk main
wget http://people.redhat.com/mingo/realtime-preempt/patch-2.6.20-rt5\
  -O - | patch -p1 -b # [[RT]]

Resources

Real Time [[Linux]]

wget http://people.redhat.com/mingo/realtime-preempt/older/patch-2.6.18-rt7 \
  -O - | patch -p1 -b # [[RT]]
# "Processor type and features" / High Resolution Timer Support 
sudo apt-get install schedutils htop
dmesg | grep "Real-Time Preemption Support" 
ps aux | grep "\[IRQ"
cat /proc/interrupts 

Jackd : qjackctl and RT indicator

qjackctl
jackd -R -P80 -v -d alsa
ps aux | grep jackd
rzr      10780  0.8  7.4  36128 36156 pts/2    SLl+ 14:26   0:00 jackd -R -P80 -v -d alsa
htop 
11186 rzr      -81   0 36160 36156  3012 S  0.6  3.4  0:00.88 jackd -R -P80 -p128 -dalsa -dhw:0 -r44100 -p1024 -n2 -S

should be SLsl :

7947  0.9  1.3  20388 20400 ?        SLsl 14:29   0:02 jackd -R -p128 -dalsa -dhw:0 -r44100 -p128 -n3 -P -o2

errors:

jackd  -R -d alsa
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd 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 compiled with System V SHM support.
cannot use real-time scheduling (FIFO at priority 10) [for thread -1210325328, from thread -1210325328] (1: Operation not permitted)
cannot create engine


sudo jackd  -R -d alsa
[sudo] password for rzr: 
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd 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 compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian

[[Sound]]

LANG=C /usr/bin/qjackctl
#  cannot use real-time scheduling (FIFO at priority 0)
# [for thread -1225036880, from thread -1225036880] (22: Invalid argument)

Realtime Linux Security Module

# http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.11.tar.bz2
sudo apt-get install realtime-lsm-source realtime-lsm # [[Debian]]
sudo m-a --text-mode prepare update
sudo m-a auto-install --text-mode  realtime-lsm
# Failed: Security Capabilities not configured as module
# Realtime LSM will not work with /lib/modules/2.6.15.6-k7-amiloa/source

Set Y in linux-kernel/security options

[[Misc]]

MORE

rt.txt · Last modified: 2022/04/16 12:24 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki