All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 1141] New: BusyBox based initramfs generation
@ 2010-02-19 11:44 bugzilla at busybox.net
  2010-02-21 22:33 ` [Buildroot] [Bug 1141] " bugzilla at busybox.net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2010-02-19 11:44 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1141

           Summary: BusyBox based initramfs generation
           Product: buildroot
           Version: 2009.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: serj.kalichev at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Created an attachment (id=1141)
 --> (https://bugs.busybox.net/attachment.cgi?id=1141)
BusyBox based initramfs generation patch

Sometimes it's necessary to generate not rootfs only but both real rootfs and
initramfs. Initramfs is more simpler and don't need many different packages but
only specially configured busybox and some additional scripts.

There is a makefile initramfs.mk in package/busybox dir for BusyBox based
initramfs generation. But it was unfinished and commented in Config.in. I could
not use it for real project so I try to patch BuildRoot to make it work.

Now BuildRoot can use target dir for generation initramfs. I change
target/initramfs/Config.in file to select the initramfs generation way. They
can choose "none", "initramfs from target dir" and "BusyBox based initramfs".
When you choose "initramfs from target dir" - it's a traditional way to
generate initramfs.

When the choice is "BusyBox based initramfs" BuildRoot can generate two images
- one for initramfs (put it into the bzImage) and the second for real rootfs.
The user can specify the BusyBox config file, the filesystem skeleton and a dir
with customization files for initramfs generation.

The attached patch consist of 
* target/initramfs/Config.in - to configure initramfs generation parameters
* package/busybox/initramfs.mk - to build specially configured BusyBox and
generate the initramfs image. It depends on files in the
package/busybox/initramfs_custom (by default) directory. So user can change
custom files and the initramfs will be rebuild.
* package/busybox/busybox-initramfs.config - it's only the example of
minimalist BusyBox configuration for the initramfs.
* package/busybox/initramfs_custom - it's only the example of simple init
script for the initramfs. It can mount rootfs by the UUID and LABEL.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 1141] BusyBox based initramfs generation
  2010-02-19 11:44 [Buildroot] [Bug 1141] New: BusyBox based initramfs generation bugzilla at busybox.net
@ 2010-02-21 22:33 ` bugzilla at busybox.net
  2010-06-07 14:52 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2010-02-21 22:33 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1141


Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2010.05




--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  2010-02-21 22:33:15 UTC ---
Move milestone to 2010.05 since enhancements will not be handled before the
release of 2010.02.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 1141] BusyBox based initramfs generation
  2010-02-19 11:44 [Buildroot] [Bug 1141] New: BusyBox based initramfs generation bugzilla at busybox.net
  2010-02-21 22:33 ` [Buildroot] [Bug 1141] " bugzilla at busybox.net
@ 2010-06-07 14:52 ` bugzilla at busybox.net
  2010-06-07 19:44 ` bugzilla at busybox.net
  2010-06-07 20:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2010-06-07 14:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1141

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
Peter, do we really want to go this way, and make Buildroot support the fact of
creating two separate filesystems: one small initramfs and one "normal" root
filesystem containing all libraries and applications ?

With a first look, I'd tempted to say "no" : just use Buildroot twice, once to
build your initramfs and once to build your real root filesystem. But this is
something that can be discussed, of course.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 1141] BusyBox based initramfs generation
  2010-02-19 11:44 [Buildroot] [Bug 1141] New: BusyBox based initramfs generation bugzilla at busybox.net
  2010-02-21 22:33 ` [Buildroot] [Bug 1141] " bugzilla at busybox.net
  2010-06-07 14:52 ` bugzilla at busybox.net
@ 2010-06-07 19:44 ` bugzilla at busybox.net
  2010-06-07 20:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2010-06-07 19:44 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1141

--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org>  ---
(In reply to comment #2)
> Peter, do we really want to go this way, and make Buildroot support the fact of
> creating two separate filesystems: one small initramfs and one "normal" root
> filesystem containing all libraries and applications ?
> 
> With a first look, I'd tempted to say "no" : just use Buildroot twice, once to
> build your initramfs and once to build your real root filesystem. But this is
> something that can be discussed, of course.

No, I agree with you.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 1141] BusyBox based initramfs generation
  2010-02-19 11:44 [Buildroot] [Bug 1141] New: BusyBox based initramfs generation bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2010-06-07 19:44 ` bugzilla at busybox.net
@ 2010-06-07 20:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2010-06-07 20:23 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1141

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
Ok, so I'm closing this bug, marking as WONTFIX. The rationale is that we don't
want to enter into the game where Buildroot would build two separate
filesystems.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-07 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 11:44 [Buildroot] [Bug 1141] New: BusyBox based initramfs generation bugzilla at busybox.net
2010-02-21 22:33 ` [Buildroot] [Bug 1141] " bugzilla at busybox.net
2010-06-07 14:52 ` bugzilla at busybox.net
2010-06-07 19:44 ` bugzilla at busybox.net
2010-06-07 20:23 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.