Re: 2.6.21.1 fails to suspend/resume to disk (sort of)

Ray Lee
2007-05-24T13:56:59Z

On 5/24/07, Romano Giannetti <romanol@upcomillas.es> wrote:
> On Thu, 2007-05-24 at 10:01 +0200, Antonino Ingargiola wrote:
> > 2007/5/23, Romano Giannetti <romano.giannetti@gmail.com>:
> > [cut]
> > > Uf, I will try to find the time. I am on my way to try to compile
> > > 2.6.21.2 now. Problem is that a kernel compile "the ubuntu way" last
> > > hours here. If there is an expert on make-kpkg here, I could use some
> > > advise.
>
>
> > Is not the ubuntu or debian way to take hours to compile. Is that you
> > have to trim the config and enable the only modules you need for your
> > hardware, then a rebuild cycle could last 10-15 min.
>
> That is a problem, yes. But I was referring to the need of a make-kpkg
> clean every time you recompile changing the EXTRAVERSION, wich forces a
> make clean. I am trying to discover how to build manually and initramfs
> that works...

Yeah, the make-kpkg clean is highly annoying, and eventually made me
give up on using that tool. Instead, I've been using the deb-pkg
target that ships with the kernel. When bisecting, I use a script like
the one below to test a new kernel with a minimum of interaction. It
should give you a good idea of how to do all the steps by hand.

And yeah, paring down the .config is critical :-).

#!/bin/bash
sudo -v
make oldconfig
fakeroot make -j2 deb-pkg
sudo dpkg -i ../linux-2.6.20_2.6.20_amd64.deb
sudo update-initramfs -c -k 2.6.20