From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Reutner-Fischer Date: Sun, 19 Oct 2008 18:05:20 +0200 Subject: [Buildroot] ext2+isofs initrd too big In-Reply-To: References: Message-ID: <20081019160520.GI11249@mx.loc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sun, Oct 19, 2008 at 12:00:13PM +0200, Roberto A. Foglietta wrote: >2008/10/19 Roberto A. Foglietta : >> 2008/10/18 Roberto A. Foglietta : >>> 2008/10/18 Roberto A. Foglietta : >>>> Hi, >>>> >>>> using buildroot I have compiled a system which is big enough to not >>>> fit in the initrd image (default size is 4Mb but could be enlarged by >>>> kernel .config). Attached patch prepare a initrd of 16Mb and I can >>>> enlarge it more in order to put all my system inside. However this is >>>> not the best solution because has no future itself, initrd image could >>>> not enlarged forever. >>> >>> _Attached patch_ forgot, until now >>> >> >> >> a) stripping modules (previous patch was wrong, see below) >> >> Using strip on .ko does not work at all without --strip-unneeded. >> >> http://mailman.uclinux.org/pipermail/uclinux-dev/2007-January/041616.html >> >> strip -R .comment -R .note -g --strip-unneeded >> > > Stripping modules belong to the kernel Makefile.in and Makefile.in.advanced > > Declaring INSTALL_MOD_STRIP=1 in modules_install should be enough, >however find,xargs,strip has been added also. > > Ciao, >-- >/roberto > linux26-modules: cross-depmod26 $(LINUX26_DIR)/.modules_installed >+ find $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION) -name \*.ko | xargs strip -R .comment -R .note -g --strip-unneeded This is wrong. Proper thing to do is $(STIPCMD) $(STRIP_STRIP_UNNEEDED)