Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Alessio Igor Bogani
Jeremy,

2010/10/4 Jeremy Jongepier :

>> Ubuntu don't support make-pkg.
[...]
> As of which release? I've built several kernels with make-kpkg for 9.04
> and 9.10 (to include dsdt tables for my netbook). Haven't tried with
> 10.04 though.

I don't recall when make-kpkg started to create problems but you can
notice that neither Ubuntu Kernel Team Wiki
(https://wiki.ubuntu.com/Kernel/Dev/) nor Ubuntu kernel packaging
contains any reference to make-kpkg. Moreover the package which
contains that utility (that is kernel-package) is in universe so that
should be an evident sign.

Feel free to use what do you want but keep in mind that isn't the
official Ubuntu way to build a kernel (so it is unsupported).

Ciao,
Alessio

-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Jeremy Jongepier
On 10/04/2010 10:40 AM, Alessio Igor Bogani wrote:
> 2010/10/4 Jeremy Jongepier :
>> On 10/03/2010 07:41 AM, Ralf wrote:
>>> spinymo...@ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
>>
>> Hmm, and what if you try fakeroot make-kpg --initrd kernel-image
>> kernel-headers kernel-source ? Shouldn't make a difference though I think.
> 
> Ubuntu don't support make-pkg.
> 
> Ciao,
> Alessio
> 

Hello Alessio,

As of which release? I've built several kernels with make-kpkg for 9.04
and 9.10 (to include dsdt tables for my netbook). Haven't tried with
10.04 though.

Best,

Jeremy

-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Ralf Mardorf
On Mon, 2010-10-04 at 11:07 +0200, Jeremy Jongepier wrote:
> On 10/04/2010 10:40 AM, Alessio Igor Bogani wrote:
> > 2010/10/4 Jeremy Jongepier :
> >> On 10/03/2010 07:41 AM, Ralf wrote:
> >>> spinymo...@ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
> >>
> >> Hmm, and what if you try fakeroot make-kpg --initrd kernel-image
> >> kernel-headers kernel-source ? Shouldn't make a difference though I think.
> > 
> > Ubuntu don't support make-pkg.
> > 
> > Ciao,
> > Alessio
> > 
> 
> Hello Alessio,
> 
> As of which release? I've built several kernels with make-kpkg for 9.04
> and 9.10 (to include dsdt tables for my netbook). Haven't tried with
> 10.04 though.
> 
> Best,
> 
> Jeremy

I did read all emails and will reply later this day or tomorrow, the flu
I've got is a PITA, I can't stay long on the computer ;).

But this is very important. 'make-kpkg' did build:

spinymouse1...@suse11-2:~> ls /media/ubuntu_studio/usr/src/linux*
/media/ubuntu_studio/usr/src/linux-headers-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
/media/ubuntu_studio/usr/src/linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
/media/ubuntu_studio/usr/src/linux-source-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_all.deb

It's just that initrd isn't included to
linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb.

How should a kernel be build for Ubuntu today?

Cheers!

Ralf


-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Alessio Igor Bogani
2010/10/4 Jeremy Jongepier :
> On 10/03/2010 07:41 AM, Ralf wrote:
>> spinymo...@ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
>
> Hmm, and what if you try fakeroot make-kpg --initrd kernel-image
> kernel-headers kernel-source ? Shouldn't make a difference though I think.

Ubuntu don't support make-pkg.

Ciao,
Alessio

-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Jeremy Jongepier
On 10/03/2010 07:41 AM, Ralf wrote:
> spinymo...@ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd

Hmm, and what if you try fakeroot make-kpg --initrd kernel-image
kernel-headers kernel-source ? Shouldn't make a difference though I think.

Best,

Jeremy

-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-04 Thread Ralf Mardorf
On Mon, 2010-10-04 at 11:07 +0200, Jeremy Jongepier wrote:

> On 10/04/2010 10:40 AM, Alessio Igor Bogani wrote:
> > 2010/10/4 Jeremy Jongepier :
> >> On 10/03/2010 07:41 AM, Ralf wrote:
> >>> spinymo...@ubuntu:/usr/src/linux$ make-kpkg --rootcmd fakeroot --initrd
> >>
> >> Hmm, and what if you try fakeroot make-kpg --initrd kernel-image
> >> kernel-headers kernel-source ? Shouldn't make a difference though I think.
> > 
> > Ubuntu don't support make-pkg.
> > 
> > Ciao,
> > Alessio
> > 
> 
> Hello Alessio,
> 
> As of which release? I've built several kernels with make-kpkg for 9.04
> and 9.10 (to include dsdt tables for my netbook). Haven't tried with
> 10.04 though.
> 
> Best,
> 
> Jeremy


Jeremy, I did compile with make-kpkg for Hardy 8.04, resp. 64 Studio 3.0
- beta, based on Hardy and it did work.

If you should have got the time to do it, would you please try to test,
if there won't be an initrd for you too, building on Lucid or later
version of Ubuntu?

Copy and paste should be ok, if you allow HTML for received messages ;).

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
tar xvjf linux-2.6.33.7.tar.bz2
mv linux-2.6.33.7 linux-2.6.33.7-rt29
ln -s linux-2.6.33.7-rt29 linux
cd linux
mv ../patch-2.6.33.7-rt29.bz2 ../linux
bunzip2 patch-2.6.33.7-rt29.bz2
patch -p1 < patch-2.6.33.7-rt29

If uname -r is 2.6.32-25-preempt, than ...
cp /boot/config-$(uname -r) .config
make oldconfig
... should need to push enter all the times only.

I guess it's needed to disable staging on any machine, so ...
gedit .config
Editing
CONFIG_STAGING=y
to
# CONFIG_STAGING is not set
... and then
make oldconfig
There should be nothing to do when running make oldconfig.

make-kpkg clean
make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers
kernel-source

or perhaps

fakeroot first.
-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-03 Thread Ralf Mardorf
Thank you for the information Brian :).

On Sun, 2010-10-03 at 21:58 -0400, Mike Holstein wrote:
> i know there are a lot of suggestions going around, but have you tried
> falks PPA? and the kernels that are in there?
> 
> 
> ALSO you could try a custom xorg.conf file that forces vesa...
> 
> 
> im pretty confident that the RT issue is nvidia related...
> 
> 
> im my 64bit box with nvidia i had simlar issues...

As the day progresses I'll copy an xorg.conf from one of my 64 Studio
installs and try to boot a real-time kernel from the repositories again.

Thank you Mike :).


-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-03 Thread Mike Holstein
i know there are a lot of suggestions going around, but have you tried falks
PPA? and the kernels that are in there?

ALSO you could try a custom xorg.conf file that forces vesa...

im pretty confident that the RT issue is nvidia related...

im my 64bit box with nvidia i had simlar issues...


On Sun, Oct 3, 2010 at 9:43 PM, Ralf Mardorf wrote:

> On Sun, 2010-10-03 at 11:53 -0400, Mike Holstein wrote:
> > 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...
>
> I've seen no option to choose a kernel for live usage of
> KXStudio_10.04.2-LiveDVD_64bit.
> The default kernel is a generic kernel.
>
> ubu...@ubuntu:/etc/X11$ uname -a
> Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC
> 2010 x86_64 GNU/Linux
>
> Apart from that, which file gives information about the used driver?
>
> TIA Ralf
>
>
> --
> Ubuntu-Studio-users mailing list
> Ubuntu-Studio-users@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>



-- 
MH
http://www.myspace.com/mikeholstein

http://opensourcemusician.libsyn.com/
-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-03 Thread Brian Bergstrom
On Sunday, October 03, 2010 08:43:10 pm Ralf Mardorf wrote:
> On Sun, 2010-10-03 at 11:53 -0400, Mike Holstein wrote:
> > 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...
> 
> I've seen no option to choose a kernel for live usage of
> KXStudio_10.04.2-LiveDVD_64bit.
> The default kernel is a generic kernel.
> 
> ubu...@ubuntu:/etc/X11$ uname -a
> Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC
> 2010 x86_64 GNU/Linux
> 
> Apart from that, which file gives information about the used driver?
> 
> TIA Ralf

I think it happens in the KXStudio setup wizard on first boot.  There is a 
dialog to install extra software, including a lowlatency kernel and realtime 
kernel.  After instal this menu can be found by going to the menu, system 
settings, and open KXStudio Settings.  On the 'Additional Software' tab you 
can check boxes to install the audio geared kernel. :)

-Brian

-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

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

I've seen no option to choose a kernel for live usage of
KXStudio_10.04.2-LiveDVD_64bit.
The default kernel is a generic kernel.

ubu...@ubuntu:/etc/X11$ uname -a
Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC
2010 x86_64 GNU/Linux

Apart from that, which file gives information about the used driver?

TIA Ralf


-- 
Ubuntu-Studio-users mailing list
Ubuntu-Studio-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


Re: Missing initrd when building a kernel-rt

2010-10-03 Thread Ralf Mardorf
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 
> wrote:
> Hi all :)
> 
> building a kernel-rt failed. This are the steps I did:
> 
> ### Downloading the kernel sources
> spinymo...@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
> spinymo...@ubuntu:/usr/src$ tar xvjf linux-2.6.33.7.tar.bz2
> spinymo...@ubuntu:/usr/src$ rm linux-2.6.33.7.tar.bz2
> spinymo...@ubuntu:/usr/src$ mv linux-2.6.33.7
> linux-2.6.33.7-rt29
> spinymo...@ubuntu:/usr/src$ ln -s linux-2.6.33.7-rt29 linux
> spinymo...@ubuntu:/usr/src$ cd linux
> spinymo...@ubuntu:/usr/src/linux$
> mv ../patch-2.6.33.7-rt29.bz2 ../linux
> spinymo...@ubuntu:/usr/src/linux$ bunzip2
> patch-2.6.33.7-rt29.bz2
> spinymo...@ubuntu:/usr/src/linux$ patch -p1 <
> patch-2.6.33.7-rt29
> spinymo...@ubuntu:/usr/src/linux$ rm patch-2.6.33.7-rt29
> 
> ### Editing a configuration
> spinymo...@ubuntu:/usr/src/linux$ uname -r
> 2.6.32-25-preempt
> spinymo...@ubuntu:/usr/src/linux$ cp /boot/config-$(uname
> -r) .config
> spinymo...@ubuntu:/usr/src/linux$ make oldconfig
> Pushing enter only.
> 
> ### Disable staging
> spinymo...@ubuntu:/usr/src/linux$ gedit .config
> Editing
> CONFIG_STAGING=y
> to
> # CONFIG_STAGING is not set
> 
> spinymo...@ubuntu:/usr/src/linux$ make oldconfig
> Nothing to do.
> 
> ### Tidying up
> spinymo...@ubuntu:/usr/src/linux$ make-kpkg clean
> 
> ### Building the kernel
> spinymo...@ubuntu:/usr/src/linux$ export CONCURRENCY_LEVEL=2
> spinymo...@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
> spinymo...@ubuntu:/usr/src/linux$ sudo -i
> r...@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
> r...@ubuntu:~# rm -r /usr/src/linux-2.6.33.5-rt23
> r...@ubuntu:~#
> rm 
> /usr/src/linux-headers-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> r...@ubuntu:~#
> rm 
> /usr/src/linux-headers-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> r...@ubuntu:~#
> rm 
> /usr/src/linux-image-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> r...@ubuntu:~#
> rm 
> /usr/src/linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00

Re: Missing initrd when building a kernel-rt

2010-10-03 Thread Mike Holstein
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  wrote:

>  Hi all :)
>
> building a kernel-rt failed. This are the steps I did:
>
> ### Downloading the kernel sources
> spinymo...@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
> spinymo...@ubuntu:/usr/src$ tar xvjf linux-2.6.33.7.tar.bz2
> spinymo...@ubuntu:/usr/src$ rm linux-2.6.33.7.tar.bz2
> spinymo...@ubuntu:/usr/src$ mv linux-2.6.33.7 linux-2.6.33.7-rt29
> spinymo...@ubuntu:/usr/src$ ln -s linux-2.6.33.7-rt29 linux
> spinymo...@ubuntu:/usr/src$ cd linux
> spinymo...@ubuntu:/usr/src/linux$ mv ../patch-2.6.33.7-rt29.bz2 ../linux
> spinymo...@ubuntu:/usr/src/linux$ bunzip2 patch-2.6.33.7-rt29.bz2
> spinymo...@ubuntu:/usr/src/linux$ patch -p1 < patch-2.6.33.7-rt29
> spinymo...@ubuntu:/usr/src/linux$ rm patch-2.6.33.7-rt29
>
> ### Editing a configuration
> spinymo...@ubuntu:/usr/src/linux$ uname -r
> 2.6.32-25-preempt
> spinymo...@ubuntu:/usr/src/linux$ cp /boot/config-$(uname -r) .config
> spinymo...@ubuntu:/usr/src/linux$ make oldconfig
> Pushing enter only.
>
> ### Disable staging
> spinymo...@ubuntu:/usr/src/linux$ gedit .config
> Editing
> CONFIG_STAGING=y
> to
> # CONFIG_STAGING is not set
>
> spinymo...@ubuntu:/usr/src/linux$ make oldconfig
> Nothing to do.
>
> ### Tidying up
> spinymo...@ubuntu:/usr/src/linux$ make-kpkg clean
>
> ### Building the kernel
> spinymo...@ubuntu:/usr/src/linux$ export CONCURRENCY_LEVEL=2
> spinymo...@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
> spinymo...@ubuntu:/usr/src/linux$ sudo -i
> r...@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
> r...@ubuntu:~# rm -r /usr/src/linux-2.6.33.5-rt23
> r...@ubuntu:~# rm
> /usr/src/linux-headers-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> r...@ubuntu:~# rm
> /usr/src/linux-headers-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> r...@ubuntu:~# rm
> /usr/src/linux-image-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
> r...@ubuntu:~# rm
> /usr/src/linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> r...@ubuntu:~# rm
> /usr/src/linux-source-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_all.deb
> r...@ubuntu:~# rm /boot/grub/grub.cfg_Oct*
> r...@ubuntu:~# gparted
> There now should be enough free space.
> r...@ubuntu:~# logout
>
> ### Checking if everything still is ok
> spinymo...@ubuntu:/usr/src/linux$ make oldconfig
> spinymo...@ubuntu:/usr/src/linux$ echo $CONCURRENCY_LEVEL
> Everything is ok.
>
> ### Tidying up
> spinymo...@ubuntu:/usr/src/linux$ make-kpkg clean
>
> ### Building the kernel
> spinymo...@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
> spinymo...@ubuntu:/usr/src/linux$ cd ..
> spinymo...@ubuntu:/usr/src$ sudo dpkg -i
> linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
> spinymo...@ubuntu:/usr/src$ sudo gedit /boot/grub/grub.cfg
>
> ### I didn't try to boot he kernel ...
> because there's no initrd.
>
> spinymo...@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
> 

Missing initrd when building a kernel-rt

2010-10-02 Thread Ralf
Hi all :)

building a kernel-rt failed. This are the steps I did:

### Downloading the kernel sources
spinymo...@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
spinymo...@ubuntu:/usr/src$ tar xvjf linux-2.6.33.7.tar.bz2
spinymo...@ubuntu:/usr/src$ rm linux-2.6.33.7.tar.bz2
spinymo...@ubuntu:/usr/src$ mv linux-2.6.33.7 linux-2.6.33.7-rt29
spinymo...@ubuntu:/usr/src$ ln -s linux-2.6.33.7-rt29 linux
spinymo...@ubuntu:/usr/src$ cd linux
spinymo...@ubuntu:/usr/src/linux$ mv ../patch-2.6.33.7-rt29.bz2 ../linux
spinymo...@ubuntu:/usr/src/linux$ bunzip2 patch-2.6.33.7-rt29.bz2
spinymo...@ubuntu:/usr/src/linux$ patch -p1 < patch-2.6.33.7-rt29
spinymo...@ubuntu:/usr/src/linux$ rm patch-2.6.33.7-rt29

### Editing a configuration
spinymo...@ubuntu:/usr/src/linux$ uname -r
2.6.32-25-preempt
spinymo...@ubuntu:/usr/src/linux$ cp /boot/config-$(uname -r) .config
spinymo...@ubuntu:/usr/src/linux$ make oldconfig
Pushing enter only.

### Disable staging
spinymo...@ubuntu:/usr/src/linux$ gedit .config
Editing
CONFIG_STAGING=y
to
# CONFIG_STAGING is not set

spinymo...@ubuntu:/usr/src/linux$ make oldconfig
Nothing to do.

### Tidying up
spinymo...@ubuntu:/usr/src/linux$ make-kpkg clean

### Building the kernel
spinymo...@ubuntu:/usr/src/linux$ export CONCURRENCY_LEVEL=2
spinymo...@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
spinymo...@ubuntu:/usr/src/linux$ sudo -i
r...@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
r...@ubuntu:~# rm -r /usr/src/linux-2.6.33.5-rt23
r...@ubuntu:~#
rm /usr/src/linux-headers-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
r...@ubuntu:~#
rm /usr/src/linux-headers-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
r...@ubuntu:~#
rm /usr/src/linux-image-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_amd64.deb
r...@ubuntu:~#
rm /usr/src/linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
r...@ubuntu:~#
rm /usr/src/linux-source-2.6.33.5-rt23_2.6.33.5-rt23-10.00.Custom_all.deb
r...@ubuntu:~# rm /boot/grub/grub.cfg_Oct*
r...@ubuntu:~# gparted
There now should be enough free space.
r...@ubuntu:~# logout

### Checking if everything still is ok
spinymo...@ubuntu:/usr/src/linux$ make oldconfig
spinymo...@ubuntu:/usr/src/linux$ echo $CONCURRENCY_LEVEL
Everything is ok.

### Tidying up
spinymo...@ubuntu:/usr/src/linux$ make-kpkg clean

### Building the kernel
spinymo...@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
spinymo...@ubuntu:/usr/src/linux$ cd ..
spinymo...@ubuntu:/usr/src$ sudo dpkg -i
linux-image-2.6.33.7-rt29_2.6.33.7-rt29-10.00.Custom_amd64.deb
spinymo...@ubuntu:/usr/src$ sudo gedit /boot/grub/grub.cfg

### I didn't try to boot he kernel ...
because there's no initrd.

spinymo...@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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users