Cannot compile kernel without Initial RAM filesystem and RAM disk (initramfs/initrd) support

giacof at tiscali.it giacof at tiscali.it
Thu Nov 8 15:08:39 UTC 2007


> On Thursday 08 November 2007 13:19:58 giacof at tiscali.it wrote:
> > Hello, I tried to build a custom 2.6.22 kernel on Kubuntu Gutsy without
> > initramfs support, but the compilation stops with the following error:
> >
> > init/built-in.o: In function `start_kernel':
> > /usr/src/linux-source-2.6.22/init/main.c:635: undefined reference to
> > `early_populate_rootfs' make[1]: *** [.tmp_vmlinux1] Error 1
> > make[1]: Leaving directory `/usr/src/linux-source-2.6.22'
> > make: *** [debian/stamp-build-kernel] Error 2
> >
> > I can post my .config, if needed. In any case, I don't like the idea to
> > be forced to enable initramfs. Any help would be highly appreciated.
> >
> > Federico
>
> Can you describe your build process?

Sure:

cd /usr/src/linux-source-2.6.22
make-kpkg clean
make xconfig
	[deselecting option 'Initial RAM filesystem and RAM disk (initramfs/initrd) support']
	[switchting options related to file system and HDD controller from module to kernel, etc.]

fakeroot make-kpkg --append-to-version=-custom --revision=0.2 kernel_image kernel_headers  

Note: previous revision (0.1) had no relevant difference other than the ones reported in brackets, and was successfully compiled.

Many thanks,
Federico




More information about the kubuntu-users mailing list