Missing initrd when building a kernel-rt

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Oct 4 00:43:25 BST 2010


On Sun, 2010-10-03 at 11:53 -0400, Mike Holstein wrote:
> 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...

Hi Mike,

downloading KXstudio is started. The ATI graphics on Linux is a PITA,
that's why I switched to the NVidia card and I don't wish to switch back
again. For the ATI I never got 3D support working on Linux, for the
NVidia it depends to the used Linux, but even if I don't need 3D, since
some years X is PITA regarding to set up frequencies and resolution for
the monitors I used, resp. for the one I'm using now. For each Linux
install I need to set up X by trial and error.

Anyway, searching the web, I didn't find any information about the
reason, that I don't get an initrd when building a kernel.
Doing it the way I tried to do it for Ubuntu Studio does work for 64
Studio Hardy. I wonder what's different for Ubuntu Studio Lucid.

Maybe I'll switch to Arch or Gentoo, because Ubuntu and Suse become more
and more inscrutable for me.

*waiting for the download, still 16 minutes to wait*

Ralf


> 
> 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/





More information about the Ubuntu-Studio-users mailing list