Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilkinson <kinsham@verizon.net>
To: buildroot@busybox.net
Subject: [Buildroot] Creating initrd
Date: Thu, 11 Oct 2012 17:45:31 -0400	[thread overview]
Message-ID: <1349991931.14474.39.camel@Homeserver> (raw)
In-Reply-To: <20121011172356.6af76f39@skate>

Clean/make on a stock v3.4.7 kernel gives the following

-rw-r--r-- 1 chrisw chrisw 1.5M Oct 11 17:19 rootfs.cpio
-rw-r--r-- 1 chrisw chrisw 718K Oct 11 17:19 rootfs.cpio.gz
-rwxr-xr-x 1 chrisw chrisw 2.7M Oct 11 17:18 zImage

So it seems that the size problem originates in my customized kernel.
2.7MB is still too big so I need to investigate the config settings in
both my customized kernel and the stock one.

Chris

On Thu, 2012-10-11 at 17:23 +0200, Thomas Petazzoni wrote:
> On Thu, 11 Oct 2012 11:16:09 -0400, Chris Wilkinson wrote:
> > The .config is here
> > 
> > http://pastebin.com/84LqnBXS
> 
> Are you sure you did a "make clean; make" after doing all your
> configuration changes? Your configuration has almost no packages
> enabled, the generated root filesystem definitely shouldn't be that big.
> 
> > This shows what I'm trying to achieve.
> > 
> > http://d-i.alioth.debian.org/manual/en.armel/ch05s01.html#boot-firmware. 
> > 
> > The output on the serial console goes like this on power up.
> > 
> > >>
> > No network interfaces found
> > 
> > EM-7210 ver.T04 2005-12-12 (For ver.AA)
> > == Executing boot script in 1.000 seconds - enter ^C to abort
> > 
> > At this point, hit Control-C to interrupt the boot loader[4]. This
> > will give you the RedBoot prompt. Enter the following commands:
> > 
> > > load -v -r -b 0x01800000 -m ymodem ramdisk.gz
> > > load -v -r -b 0x01008000 -m ymodem zImage
> > > exec -c "console=ttyS0,115200 rw root=/dev/ram mem=256M at 0xa0000000" -r 0x01800000
> 
> You have two choices:
> 
>  1 Use an initramfs embedded inside the kernel image. This is what
>    Buildroot does when you enable the BR2_TARGET_ROOTFS_INITRAMFS
>    option. In that case, you only need to load zImage to RAM, and
>    execute it, it already contains the initramfs.
> 
>  2 Use an initramfs outside the kernel image. In that case, don't
>    enable the BR2_TARGET_ROOTFS_INITRAMFS Buildroot option, and simply
>    generated a compressed cpio archive for the root filesystem, thanks
>    to BR2_TARGET_ROOTFS_CPIO + BR2_TARGET_ROOTFS_CPIO_GZIP. Then, make
>    sure your kernel as the support for initramfs enabled.
> 
> I am quite familiar with choice 1, but I haven't tested choice 2 with
> Buildroot.
> 
> Best regards,
> 
> Thomas

  parent reply	other threads:[~2012-10-11 21:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 14:05 [Buildroot] Creating initrd Chris Wilkinson
2012-10-11 14:48 ` Thomas Petazzoni
2012-10-11 15:16   ` Chris Wilkinson
2012-10-11 15:23     ` Thomas Petazzoni
2012-10-11 17:28       ` Chris Wilkinson
2012-10-11 18:53         ` Thomas Petazzoni
     [not found]           ` <1349988968.14474.34.camel@Homeserver>
     [not found]             ` <20121012091408.6184bb9f@skate>
     [not found]               ` <1350049738.14474.52.camel@Homeserver>
2012-10-12 14:12                 ` Thomas Petazzoni
2012-10-12 15:19                   ` Chris Wilkinson
2012-10-12 14:23                 ` Thomas Petazzoni
2012-10-11 21:45       ` Chris Wilkinson [this message]
2012-10-12  7:10         ` Thomas Petazzoni

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=1349991931.14474.39.camel@Homeserver \
    --to=kinsham@verizon.net \
    --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