[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#410497: CONFIG_DEBUG_FS affects D-I too (was: sparc32 kernel is too big, fails to boot)



On Sunday 11 February 2007 07:54, Jurij Smakov wrote:
> The config variable CONFIG_DEBUG_FS, enabled recently for all kernel
> flavours adds over 400K to the size of the compressed image size on
> sparc32. As a result, it does not boot anymore (uncompressed image
> does not fit into the allotted space).

I see that this variable is also set for the 486 kernel for i386, which 
means that the size of the kernel for d-i images was also increased by 
the CONFIG_DEBUG_FS change, even though DEBUG options are not really of 
any use in a D-I environment.

This is a real issue for continued support of installations from floppy, 
and also from a general "D-I should use as little memory as possible" 
POV.

As you can see from the output below, there is currently precious little 
space left on the boot floppy, practically only because of the size of 
the kernel. And we've already left out USB support (for USB-keyboards).
The only other thing that could be left out is the splash image.

$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/home/fjp/boot.img        1424      1258       166  89% /mnt

$ ls -l
total 1258
-rwxr-xr-x 1 root root      67 2007-02-15 11:04 boot.txt
-rwxr-xr-x 1 root root      65 2007-02-15 11:04 disk.lbl
-rwxr-xr-x 1 root root     568 2007-02-15 11:04 f10.txt
-rwxr-xr-x 1 root root     865 2007-02-15 11:04 f1.txt
-rwxr-xr-x 1 root root     666 2007-02-15 11:04 f2.txt
-rwxr-xr-x 1 root root     616 2007-02-15 11:04 f3.txt
-rwxr-xr-x 1 root root     416 2007-02-15 11:04 f4.txt
-rwxr-xr-x 1 root root     806 2007-02-15 11:04 f5.txt
-rwxr-xr-x 1 root root    1069 2007-02-15 11:04 f6.txt
-rwxr-xr-x 1 root root     916 2007-02-15 11:04 f7.txt
-rwxr-xr-x 1 root root    1102 2007-02-15 11:04 f8.txt
-rwxr-xr-x 1 root root     766 2007-02-15 11:04 f9.txt
-rwxr-xr-x 1 root root  117155 2007-02-15 11:04 initrd.gz
-r-xr-xr-x 1 root root    9964 2007-02-15 11:04 ldlinux.sys
-rwxr-xr-x 1 root root 1137546 2007-02-15 11:04 linux
-rwxr-xr-x 1 root root    9519 2007-02-15 11:04 splash.rle
-rwxr-xr-x 1 root root     591 2007-02-15 11:04 syslinux.cfg

Post Etch I will be looking if the size of the kernel can be reduced 
significantly by playing with the config and IMO we should then consider 
using a different kernel config for D-I kernels from the 486 one.
That would of course potentially reduce the compatibility of the D-I 
kernel with the installed kernel.

Of course, it would be even better if options that are not strictly 
necessary could be disabled in the 486 kernel flavor.
The same goes for other arches of course, though most don't have the 
floppy problem.

Cheers,
FJP

Attachment: pgpmU6m_HaJaW.pgp
Description: PGP signature


Reply to: