Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] ext2+isofs initrd too big
Date: Sun, 19 Oct 2008 18:05:20 +0200	[thread overview]
Message-ID: <20081019160520.GI11249@mx.loc> (raw)
In-Reply-To: <e4c675870810190300h6274b470nefb816ae6798d301@mail.gmail.com>

On Sun, Oct 19, 2008 at 12:00:13PM +0200, Roberto A. Foglietta wrote:
>2008/10/19 Roberto A. Foglietta <roberto.foglietta@gmail.com>:
>> 2008/10/18 Roberto A. Foglietta <roberto.foglietta@gmail.com>:
>>> 2008/10/18 Roberto A. Foglietta <roberto.foglietta@gmail.com>:
>>>> 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)

  reply	other threads:[~2008-10-19 16:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-18 18:57 [Buildroot] ext2+isofs initrd too big Roberto A. Foglietta
2008-10-18 19:56 ` Roberto A. Foglietta
2008-10-18 23:55   ` Roberto A. Foglietta
2008-10-19 10:00     ` Roberto A. Foglietta
2008-10-19 16:05       ` Bernhard Reutner-Fischer [this message]
2008-10-20 10:55         ` Roberto A. Foglietta
2008-10-20 12:32           ` Roberto A. Foglietta
2008-10-20 23:31             ` Roberto A. Foglietta
2008-10-21 10:20               ` Roberto A. Foglietta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081019160520.GI11249@mx.loc \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox