Re: [LAD] Kernel Opinions: .31-rt or .33-rt?

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Thu Apr 29 2010 - 22:52:43 EEST

>> This is a good test :), when I do build a kernel the CPU is working
>> to capacity for around 1 hour, when set to
>> MAKEFLAGS="CONCURRENCY-LEVEL=2", quasi -j2. I guess your mileage
>> won't vary too much, so several kernel builds should be harder than
>> audio work.
>>
>
> 1 hour ... with both cores ?
> thats why i dont use these weird kernel buildsystems.
>
> i build a kernel in 10minutes on one core.
> simply because i turn the stuff i dont need off...
>
> but this time i missed some important option and it took pretty long to
> get the new kernel working...
>
> for the record:
> this was the solution.
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/571164
>

Thank you for sharing this :).

Yes it takes around 1 hour, but when using Suse I don't build an RPM for
the kernel, I tried to do the same as I do for Suse, when building a
kernel for Ubuntu, but there's something different, that's why I'm using
make-kpkg.

The Suse way tried on Ubuntu (64 Studio), perhaps you can help me:

$ sudo -i
# cd /usr/src
# KMAJOR=2.6.33
# KMINOR=.2
# KMICRO=-rt13
# KERNEL=${KMAJOR}${KMINOR}${KMICRO}
# echo $KERNEL
2.6.33.2-rt13
# ARCH=`uname -m`
# echo $ARCH
x86_64
# mkdir kernel
# cd kernel
# wget
http://www.kernel.org/pub/linux/kernel/v2.6/linux-${KMAJOR}.tar.bz2 <http://www.kernel.org/pub/linux/kernel/v2.6/linux-$%7BKMAJOR%7D.tar.bz2>
http://www.kernel.org/pub/linux/kernel/v2.6/patch-${KMAJOR}${KMINOR}.bz2 <http://www.kernel.org/pub/linux/kernel/v2.6/patch-$%7BKMAJOR%7D$%7BKMINOR%7D.bz2>
http://www.kernel.org/pub/linux/kernel/projects/rt/patch-${KERNEL}.bz2 <http://www.kernel.org/pub/linux/kernel/projects/rt/patch-$%7BKERNEL%7D.bz2>
# tar -jxf linux-${KMAJOR}.tar.bz2
# mv linux-${KMAJOR} linux-${KERNEL}
# cd linux-${KERNEL}
# bzip2 -dc ../patch-${KMAJOR}${KMINOR}.bz2 | patch -p1
# bzip2 -dc ../patch-${KERNEL}.bz2 | patch -p1
# rm ../linux-2.6.33.tar.bz2 ../patch-2.6.33.2.bz2
../patch-2.6.33.2-rt13.bz2
# mv -vf Makefile Makefile.orig
# cat Makefile.orig | sed 's/EXTRAVERSION =.*/EXTRAVERSION
='${KMINOR}${KMICRO}'/' > Makefile
# cat `ls -1t /boot/config-$(uname -r) | head -1` > .config
# make oldconfig
# make clean
# make -j3 all
# make modules_install
# cp -vp arch/${ARCH}/boot/bzImage /boot/vmlinuz-${KERNEL}
# cp -vp .config /boot/config-${KERNEL}
# cp -vp System.map /boot/System.map-${KERNEL}
# wget
http://de.archive.ubuntu.com/ubuntu/pool/universe/i/initrd-tools/initrd-tools_0.1.84ubuntu1_all.deb
# apt-get install cramfsprogs
# dpkg -i initrd-tools_0.1.84ubuntu1_all.deb
# rm initrd-tools_0.1.84ubuntu1_all.deb
# /usr/sbin/mkinitrd -k -o /boot/initrd.img-${KERNEL} ${KERNEL}
/usr/sbin/mkinitrd: The working directory /tmp/mkinitrd.E20565 will be kept.
cpio: (0x00007fff221ff000): Cannot stat: No such file or directory
cpio: (0x00007fff47ed8000): Cannot stat: No such file or directory
cpio: (0x00007fff61bff000): Cannot stat: No such file or directory
cpio: (0x00007fff7b7ff000): Cannot stat: No such file or directory
cpio: (0x00007fffb6965000): Cannot stat: No such file or directory
cpio: (0x00007fffd23da000): Cannot stat: No such file or directory
cpio: (0x00007fffdb3ff000): Cannot stat: No such file or directory
cpio: (0x00007fffebf01000): Cannot stat: No such file or directory
cpio: (0x00007fffecdff000): Cannot stat: No such file or directory
cpio: (0x00007ffff11bb000): Cannot stat: No such file or directory
cpio: (0x00007ffffcfff000): Cannot stat: No such file or directory
cp: cannot stat `(0x00007fff4d7ab000)': No such file or directory
cp: cannot stat `(0x00007fff68b19000)': No such file or directory
run-parts: /usr/share/initrd-tools/scripts/e2fsprogs exited with return
code 1

For Suse the command would be
# /sbin/mkinitrd -k /boot/vmlinuz-${KERNEL} -i /boot/initrd-${KERNEL} -M
/boot/System.map-${KERNEL}

Any hints are welcome!

Ralf

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Apr 30 00:15:05 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 30 2010 - 00:15:06 EEST