View previous topic :: View next topic |
Author |
Message |
divx4life n00b
Joined: 30 Nov 2005 Posts: 5
|
Posted: Thu Dec 01, 2005 7:02 pm Post subject: Kernel still to large after strip -R |
|
|
I'm installing Gentoo on my Sparc Ultra 10 64bit machine. I can not get my kernel under 3.5MB like it says in documentation. The smallest I can get my kernel is 3.7MB after running the strip command.
Will my system be able to run at 3.7MB? Please help me move past this point in the install. I tried making what I can modules but it's still to large. |
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Thu Dec 01, 2005 7:07 pm Post subject: |
|
|
What does your .config look like? |
|
Back to top |
|
|
nlindblad Guru
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Thu Dec 01, 2005 7:09 pm Post subject: |
|
|
I noticed this neat patchset for the kernel lately:-Tiny-Patches
http://wiki.archlinux.org/index.php/Kernel_Patches_and_Patchsets#-_Tiny-Patches
Quote: | - Tiny-Patches
"The -tiny tree is a series of patches against the 2.6 mainline Linux kernel to reduce its memory and disk footprint, as well as to add features to aid working on small systems. Target users are developers of embedded system and users of small or legacy machines such as 386s"
and maybe also for ricers
http://www.selenic.com/linux-tiny/ |
Quote: | Just about all features are option via the kernel configuration system and are available as separate patches. Linux-tiny by default will build a kernel practically identical to mainline, but custom configurations with full console, disk, and network support can be booted on standard hardware with as little as 2MB of RAM. |
I think it's worth a look if you can't strip it down by removing features/drivers... _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
|
divx4life n00b
Joined: 30 Nov 2005 Posts: 5
|
Posted: Thu Dec 01, 2005 7:12 pm Post subject: |
|
|
I do not know how to attach my .config on this forum. I basically disabled what I didn't need and made what I could modules. Can you please tell me what can not be loaded as modules? Maybe I can clean it up a little more. I ran:
make dep && make clean vmlinux image modules modules_install
Can I compress the image so that it's under 3.5MB and bootable?
Is 3.7MB to large. Does it have to be exactly 3.5MB or less? |
|
Back to top |
|
|
divx4life n00b
Joined: 30 Nov 2005 Posts: 5
|
Posted: Thu Dec 01, 2005 7:14 pm Post subject: |
|
|
This is Version 2.4.31-sparc-r2 |
|
Back to top |
|
|
nlindblad Guru
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Thu Dec 01, 2005 7:34 pm Post subject: |
|
|
divx4life wrote: | This is Version 2.4.31-sparc-r2 |
Isn't there a 2.6.x kernel for that architechture? _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
|
divx4life n00b
Joined: 30 Nov 2005 Posts: 5
|
Posted: Thu Dec 01, 2005 7:42 pm Post subject: |
|
|
I want to install the 2.4 kernel.
Will my system boot with a 3.7MB kernel? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Dec 01, 2005 7:45 pm Post subject: |
|
|
Moved from Installing Gentoo to Gentoo on Sparc.
Sparc stuff is better off in here _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Thu Dec 01, 2005 9:30 pm Post subject: |
|
|
You can install as many kernels as you like in /boot, then it's just a matter of adding a silo.conf entry for each. E.g., for your kernel, 'cp vmlinux /boot/vmlinux-test' or whatever, then in silo.conf, you might have
Code: |
image=/vmlinux-test
label="test"
root=/dev/Where-your-root-is
|
Then, it's a good idea to do 'silo -C /boot/silo.conf' just to verify everything and to make sure you are set up to boot from your disk. When you boot the system, eventually you will come to a "boot:" prompt; at that point, just enter test and it should boot your kernel. I don't recall what current size limitations for a boot image are, but I think silo has removed most of them (and I'm too lazy to go check). If your kernel won't boot, either remove features or put things you don't need for booting into kernel modules.
By the way, when you build the kernel, if you use 'make vmlinux modules image', then the properly stripped kernel is in '/usr/src/<kernel-source>/arch/sparc64/boot/image'.
E.g., /usr/src/linux-2.4.31-sparc-r2/arch/sparc64/boot/image on my U2 running that kernel. (By the way, my kernel is pretty full-featured and is 3.2MB.)
Hope this helps,
Regards, |
|
Back to top |
|
|
Toady Apprentice
Joined: 21 Dec 2004 Posts: 161 Location: South Wales, UK
|
Posted: Fri Dec 02, 2005 8:54 am Post subject: |
|
|
You will find a 2.4.31 config file (for vanilla sources) here: http://www.iscatech.plus.com/gentoo/
You may well get it to work on sparc-sources tho - try a make oldconfig and go through it that way
I cant remember the limit either - but incase it helps my kernel is 2.8 Mb. _________________ Toady
Gentoo Laptop
3.1.10-gentoo-r1, Intel Core 2 Duo (32bit)
Gnome on the desk, Intel in the box, on-board everything, but it all works! |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Fri Dec 02, 2005 1:25 pm Post subject: |
|
|
Not sure if this has already been covered, but two things
1) Running "make image" after you've built the kernel should result in a stripped image at arch/sparc64/boot/image (NOTE: this only works for sparc64 in 2.4)
2) If you running a 1.4 version of SILO, you should be able to handle kernels up to 8 MB in size. |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Sun Dec 04, 2005 7:15 pm Post subject: |
|
|
Is your kernel working now? |
|
Back to top |
|
|
|