[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

liveCD for audio work



hi,
I worked out a little HOWTO to make an RT kernel with aufs & squashfs.
we need to patch the module-assistant source for aufs with a patch provided by the aufs cvs on sourgeforge.

cheers
guenter

# 1. to start from scratch, i.e 
rm -rf /usr/src/linux-source-2.6.24 /usr/src/linux
rm -rf /usr/src/modules/{aufs,aufs.wcvs}

# 2. install sources
cd /usr/src
apt-get install linux-tree-2.6.24 kernel-package \
        fakeroot module-assistant

wget http://www.kernel.org/pub/linux/kernel/projects/rt/older/patch-2.6.24-rt1.bz2
tar xjf linux-source-2.6.24.tar.bz2
ln -s linux-source-2.6.24 linux
cd  linux

# 3. apply rt-patch
bzcat ../patch-2.6.24-rt1.bz2 | patch -p1 

# 4. get patch & aufs sources
module-assistant update squashfs lzma aufs
module-assistant unpack squashfs lzma aufs
mkdir -p /usr/src/modules/aufs.wcvs
cd /usr/src/modules/aufs.wcvs
cvs -d:pserver:anonymous at aufs.cvs.sourceforge.net:/cvsroot/aufs login
#(CVS password is empty)
cvs -z3 -d:pserver:anonymous at aufs.cvs.sourceforge.net:/cvsroot/aufs co aufs

# 5. use the cvs-patch to patch the m-a aufs-sources
cd /usr/src/modules/aufs
cat ../aufs.wcvs/aufs/patch/rt-compat.patch |patch

# 6. configure kernel
cd /usr/src/linux
make menuconfig

# from http://www.osadl.org/Realtime-Preempt-Kernel.kernel-rt.0.html
# Processor type and features  --->
#   Preemption Mode (Complete Preemption (Real-Time))  --->
# Debug, trace and diagnostic tools are part of the "kernel hacking" settings, 
# for example: 
#Kernel hacking  --->
#    [*] Wakeup latency timing
#    [*] Latency tracing
#    [*] wakeup latency histogram
# Make sure that stack overflow checking is disabled since this may produce # 
# large latencies: 
# Kernel hacking  --->
#     [ ] Check for stack overflows

# 7. make debs for kernel & modules
make-kpkg --rootcmd fakeroot  --added_modules aufs,lzma,squashfs \
        binary-arch modules
cd ..

# 8. in case aufs build fine, and squashfs & lzma fails to build debs.
#in that case you can run m-a again for lzma & squashfs
module-assistant -t -i -o -k linux build lzma squashfs

####################
## hint: m-a unpacks the sources every time called without -o, so our needed
## rt-compat.patch is gone in the case m-a is called for aufs w/o -o. -> # 5.

these should give you:
squashfs-modules-2.6.24-rt1_3.3-3+2.6.24-rt1-10.00.Custom_i386.deb
lzma-modules-2.6.24-rt1_4.43-12+2.6.24-rt1-10.00.Custom_i386.deb
aufs-modules-2.6.24-rt1_0+20080129-1+2.6.24-rt1-10.00.Custom_i386.deb
linux-image-2.6.24-rt1_2.6.24-rt1-10.00.Custom_i386.deb
linux-headers-2.6.24-rt1_2.6.24-rt1-10.00.Custom_i386.deb


which you can put in config/chroot_local-packages
see also:
debianLive FAQ: How do I use a custom kernel?
http://wiki.debian.org/DebianLive/FAQ#head-7f608e9cdea9be2f7b69763d6ac2bfbc02ec10d2




Reply to: