Missing initrd when building a kernel-rt
Mike Holstein
mikeh789 at gmail.com
Sun Oct 3 16:53:45 BST 2010
ralf, if it is a simple procedure to enable the ATI graphics chip, i think
that would be a helpful troubleshooting step... as far as i know, in this
PPA https://launchpad.net/~falk-t-j/+archive/lucid , falktx has patched
abogani's realtime kernel with the patches necessary to utilize the
proprietary nvidia drivers... i use the PPA purge feature in ubuntutweak
when testing a PPA with so many different packages in it... another easy
trouble-shooting step would be to download KXstudio, run it live, and see if
you can get to the desktop, and see if you can boot the -realtime kernel,
see what graphics driver is being used, and what kernel version...
On Sun, Oct 3, 2010 at 1:41 AM, Ralf <ralf.mardorf at alice-dsl.net> wrote:
> Hi all :)
>
> building a kernel-rt failed. This are the steps I did:
>
> ### Downloading the kernel sources
> spinymouse at ubuntu:/usr/src$ wget
> ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.7.tar.bz2
> http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.7-rt29.bz2
>
> ### Extracting the sources and patching the kernel
> spinymouse at ubuntu:/usr/src$ tar xvjf linux-2.6.33.7.tar.bz2
> spinymouse at ubuntu:/usr/src$ rm linux-2.6.33.7.tar.bz2
> spinymouse at ubuntu:/usr/src$ mv linux-2.6.33.7 linux-2.6.33.7-rt29
> spinymouse at ubuntu:/usr/src$ ln -s linux-2.6.33.7-rt29 linux
> spinymouse at ubuntu:/usr/src$ cd linux
> spinymouse at ubuntu:/usr/src/linux$ mv ../patch-2.6.33.7-rt29.bz2 ../linux
> spinymouse at ubuntu:/usr/src/linux$ bunzip2 patch-2.6.33.7-rt29.bz2
> spinymouse at ubuntu:/usr/src/linux$ patch -p1 < patch-2.6.33.7-rt29
> spinymouse at ubuntu:/usr/src/linux$ rm patch-2.6.33.7-rt29
>
> ### Editing a configuration
> spinymouse at ubuntu:/usr/src/linux$ uname -r
> 2.6.32-25-preempt
> spinymouse at ubuntu:/usr/src/linux$ cp /boot/config-$(uname -r) .config
> spinymouse at ubuntu:/usr/src/linux$ make oldconfig
> Pushing enter only.
>
> ### Disable staging
> spinymouse at ubuntu:/usr/src/linux$ gedit .config
> Editing
> CONFIG_STAGING=y
> to
> # CONFIG_STAGING is not set
>
> spinymouse at ubuntu:/usr/src/linux$ make oldconfig
> Nothing to do.
>
> ### Tidying up
> spinymouse at ubuntu:/usr/src/linux$ make-kpkg clean
>
> ### Building the kernel
> spinymouse at ubuntu:/usr/src/linux$ export CONCURRENCY_LEVEL=2
> spinymouse at ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
> kernel-image kernel-headers kernel-source
>
> ### First trial failed because of two kinds of errors I got several times
> tar: [...]: Cannot open: No such file or directory
> tar: vmlinux: Cannot write: No space left on device
>
> ### Creating space
> spinymouse at ubuntu:/usr/src/linux$ sudo -i
> root at ubuntu:~# synaptic
> Completely removed the following packages:
> linux-headers-2.6.32-23
> linux-headers-2.6.32-23-preempt
> linux-image-2.6.31-10-rt
> linux-image-2.6.31-11-rt
> linux-image-2.6.32-23-preempt
> linux-image-2.6.32-24-preempt
> linux-image-2.6.33-23-realtime
> linux-image-2.6.33-29-realtime
> linux-image-2.6.33.5-rt23
> linux-image-rt
> root at ubuntu:~# rm -r /usr/src/linux-2.6.33.5-rt23
> root at ubuntu:~# rm
> /usr/src/linux-headers-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> root at ubuntu:~# rm
> /usr/src/linux-headers-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> root at ubuntu:~# rm
> /usr/src/linux-image-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> root at ubuntu:~# rm
> /usr/src/linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> root at ubuntu:~# rm
> /usr/src/linux-source-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_all.deb
> root at ubuntu:~# rm /boot/grub/grub.cfg_Oct*
> root at ubuntu:~# gparted
> There now should be enough free space.
> root at ubuntu:~# logout
>
> ### Checking if everything still is ok
> spinymouse at ubuntu:/usr/src/linux$ make oldconfig
> spinymouse at ubuntu:/usr/src/linux$ echo $CONCURRENCY_LEVEL
> Everything is ok.
>
> ### Tidying up
> spinymouse at ubuntu:/usr/src/linux$ make-kpkg clean
>
> ### Building the kernel
> spinymouse at ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
> kernel-image kernel-headers kernel-source
> :)
>
> Didn't run 'make-kpkg clean', if something should be needed for debugging.
>
> ### Installing the image
> spinymouse at ubuntu:/usr/src/linux$ cd ..
> spinymouse at ubuntu:/usr/src$ sudo dpkg -i
> linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> spinymouse at ubuntu:/usr/src$ sudo gedit /boot/grub/grub.cfg
>
> ### I didn't try to boot he kernel ...
> because there's no initrd.
>
> spinymouse at ubuntu:/usr/src$ ls /boot -hAl
> total 21M
> -rw-r--r-- 1 root root 632K 2010-09-18 02:35 abi-2.6.32-25-preempt
> -rw-r--r-- 1 root root 109K 2010-09-18 02:35 config-2.6.32-25-preempt
> -rw-r--r-- 1 root root 108K 2010-10-03 04:53 config-2.6.33.7-rt29
> drwxr-xr-x 3 root root 12K 2010-10-03 07:31 grub
> -rw-r--r-- 1 root root 8.0M 2010-10-02 12:22 initrd.img-2.6.32-25-preempt
> -rw-r--r-- 1 root root 157K 2010-03-23 10:40 memtest86+.bin
> -rw-r--r-- 1 root root 2.1M 2010-09-18 02:35 System.map-2.6.32-25-preempt
> -rw-r--r-- 1 root root 2.1M 2010-10-03 05:57 System.map-2.6.33.7-rt29
> -rw-r--r-- 1 root root 1.4K 2010-09-18 02:38 vmcoreinfo-2.6.32-25-preempt
> -rw-r--r-- 1 root root 4.0M 2010-09-18 02:35 vmlinuz-2.6.32-25-preempt
> -rw-r--r-- 1 root root 4.0M 2010-10-03 05:57 vmlinuz-2.6.33.7-rt29
>
> What could be the reason that I don't get an initrd?
>
> Cheers!
>
> Ralf
>
> --
> Ubuntu-Studio-users mailing list
> Ubuntu-Studio-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>
>
--
MH
828.250.0037
http://www.myspace.com/mikeholstein
http://opensourcemusician.libsyn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20101003/638bfd6d/attachment.htm
More information about the Ubuntu-Studio-users
mailing list