2009-04-13 07:16:54 how to cut down the size of kernel and rootfs?
david wang (CHINA)
Message: 72583
Hi, all
I've a large user application but the flash is only 4MB, and I don't want to use a 8MB flash for the cost resean. So I 'm tring to make the kernel and root file system as small as possible. But after I remove many unused module by make menuconfig, the kernel is still 900KB and rootfs is 1.6MB. I find in the romfs/lib directory, there're many dynamic libs, some name with fortran and C++. My app did not use all of them, so I delete them. it seems the app still run well.
My problem is, is it safe to delete those libs? if yes, are there any more libs can be deleted? or, is there better way to doing this job, Is there any guide? thanks!
QuoteReplyEditDelete
2009-04-13 07:37:33 Re: how to cut down the size of kernel and rootfs?
Mike Frysinger (UNITED STATES)
Message: 72585
no, there is no guide to deleting internal C and gcc libraries. you just have to be with them.
here's a small guide to the gcc libs:
libstdc++ - required for C++
libgfortran - required for fortran
libgomp - required for OpenMP
libmudflap* - required for -fmudflap
libobjc* - required for Objective C
if you arent using any of those language/features, then you can delete the corresponding files. iirc, pretty much nothing in the distribution uses anything there other than C++, so unless you're using it, it's a safe bet no one is.
QuoteReplyEditDelete
2009-04-13 12:10:15 Re: how to cut down the size of kernel and rootfs?
Robin Getz (UNITED STATES)
Message: 72599
There is something in the faq that displays the required libraries. - but it doesn't do the inverse.
-Robin
QuoteReplyEditDelete
2009-04-14 02:03:10 Re: how to cut down the size of kernel and rootfs?
david wang (CHINA)
Message: 72624
Hi, Robin
Where is the FAQ? thanks!
QuoteReplyEditDelete
2009-04-14 02:39:07 Re: how to cut down the size of kernel and rootfs?
Yi Li (CHINA)
Message: 72625
docs.blackfin.uclinux.org/doku.php?id=fast_boot_example
This doc covers some information (and the FAQ refers to this doc).
QuoteReplyEditDelete
2009-04-14 10:21:17 how to cut down the size of kernel and rootfs?
Michael Hennerich (GERMANY)
Message: 72639 You may also want to take a look here:
docs.blackfin.uclinux.org/doku.php?id=fast_boot_example
-Michael