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

Re: Image too large to fit into destination with 2.6.0-test9



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 18 November 2003 22:31, Ben Collins wrote:
> Sounds to me like you just need to make some things modules.

Like I said, I modulized as much as I could. The rest needs to be in there.
I now even modulized IPv6 (which has been buggy in the past when compiled as
module), and IPSec. I also turned off verbose SCSI errors, even though I want
them, as well as .config in the kernel.

Unstripped arch/sparc/boot/image:
    2.9M Nov 19 01:57 /boot/vmlinux-2.6.0-test9
    1.2M Nov 19 01:58 /boot/vmlinuz-2.6.0-test

Stripped with "strip -R .comment -R .note image -o image.stripped"
   2.3M Nov 19 02:17 /boot/vmlinux-2.6.0-test9
  1021k Nov 19 02:18 /boot/vmlinuz-2.6.0-test9

Well... the stripped one booted. Almost. It seems the kernel would prefer it
it had AF_UNIX in the kernel. Right now it just loops the
insert-modules/mount all filesystems part of the startup. Or did I forget
make modules_install?

No, I found the bug. csum_partial is not exported in sparc, but it's exported
in sparc64. Damn 64bit snobs won't fix it in the 32bit boxen. :-)

While I was in there I checked if there were any other symbols that might be
missing. Yup. sparc_flush_page_to_ram

*sigh*

I tried insmodding every module (except the nls ones), and in the end:
$ lsmod  | wc -l
    109

I added sparc_flush_page_to_ram and csum_partial to
arch/sparc/kernel/sparc_ksyms.c and rebooted (I compile over nfs you see, and
sunrpc wanted csum_partial).

Hmm, so it's 3:27am and my left foot is freezing since I've misplaced that
sock. Time for another compile.
Aaah, found the sock. Much better.

Well. This time it booted and seems to work fine, except for keyboard and
mouse not working (like Otto said), and the framebuffer seems to be on
vacation too. Correction, it just crashed. The screen is all-white, and 
Stop-A doesn't work. Oh well, fun while it lasted. Back to 2.4.x I go.

Oh, and debian related. I got this:
  warning: process `update' used the obsolete bdflush system call
  Fix your initscripts?
Fixed in sarge/sid? (this box runs woody + module-init-tools)

What I added to arch/sparc/kernel/sparc_ksyms.c was:
EXPORT_SYMBOL(sparc_flush_page_to_ram);
EXPORT_SYMBOL(csum_partial);

I'll send a mail to lkml about this.

- ---------
typedef struct me_s {
  char name[]      = { "Thomas Habets" };
  char email[]     = { "thomas@habets.pp.se" };
  char kernel[]    = { "Linux 2.4" };
  char *pgpKey[]   = { "http://www.habets.pp.se/pubkey.txt"; };
  char pgp[] = { "A8A3 D1DD 4AE0 8467 7FDE  0945 286A E90A AD48 E854" };
  char coolcmd[]   = { "echo '. ./_&. ./_'>_;. ./_" };
} me_t;





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/uuRSKGrpCq1I6FQRAmy3AJsFvmgIduywcWtGCnkpNovyOuGoIgCguZ5t
EeoFwstPDnqQcsD8Y2OTsNY=
=/ifx
-----END PGP SIGNATURE-----



Reply to: