Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel still to large after strip -R
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
divx4life
n00b
n00b


Joined: 30 Nov 2005
Posts: 5

PostPosted: Thu Dec 01, 2005 7:02 pm    Post subject: Kernel still to large after strip -R Reply with quote

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
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Dec 01, 2005 7:07 pm    Post subject: Reply with quote

What does your .config look like?
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Thu Dec 01, 2005 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
divx4life
n00b
n00b


Joined: 30 Nov 2005
Posts: 5

PostPosted: Thu Dec 01, 2005 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
divx4life
n00b
n00b


Joined: 30 Nov 2005
Posts: 5

PostPosted: Thu Dec 01, 2005 7:14 pm    Post subject: Reply with quote

This is Version 2.4.31-sparc-r2
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Thu Dec 01, 2005 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
divx4life
n00b
n00b


Joined: 30 Nov 2005
Posts: 5

PostPosted: Thu Dec 01, 2005 7:42 pm    Post subject: Reply with quote

I want to install the 2.4 kernel.

Will my system boot with a 3.7MB kernel?
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Thu Dec 01, 2005 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Thu Dec 01, 2005 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Toady
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 161
Location: South Wales, UK

PostPosted: Fri Dec 02, 2005 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Fri Dec 02, 2005 1:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Sun Dec 04, 2005 7:15 pm    Post subject: Reply with quote

Is your kernel working now?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum