mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] initramfs
@ 2018-06-15 16:37 Jon Ringle
  2018-06-18  9:49 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Ringle @ 2018-06-15 16:37 UTC (permalink / raw)
  To: ptxdist

In 4e8ea1703cad595f3136f0d48ae93de73a180c40 (remove obsolete and
broken klibc/initramfs), I agree that klibc is broken and should be
removed. However, I use initramfs. I have in the ptxconfig for
building my kernel image:
PTXCONF_INITMETHOD_INITRAMFS=y
PTXCONF_INITRAMFS_TOOLS=y
PTXCONF_INITRAMFS_SPEC=y
PTXCONF_INITRAMFS_SPEC_FILE="${PTXDIST_WORKSPACE}/configs/ec1k-kernel/initramfs_spec"
PTXCONF_INITRAMFS_TOOLS_SCRIPTS_INIT=y
PTXCONF_INITRAMFS_TOOLS_SCRIPTS_LOCAL=y
PTXCONF_INITRAMFS_TOOLS_SCRIPTS_NFS=y

Would you accept a patch that restores this functionality?

Regards,
-Jon

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] initramfs
  2018-06-15 16:37 [ptxdist] initramfs Jon Ringle
@ 2018-06-18  9:49 ` Michael Olbrich
  2018-06-18 12:11   ` Jon Ringle
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2018-06-18  9:49 UTC (permalink / raw)
  To: ptxdist

Hi,

On Fri, Jun 15, 2018 at 12:37:11PM -0400, Jon Ringle wrote:
> In 4e8ea1703cad595f3136f0d48ae93de73a180c40 (remove obsolete and
> broken klibc/initramfs), I agree that klibc is broken and should be
> removed. However, I use initramfs. I have in the ptxconfig for
> building my kernel image:
> PTXCONF_INITMETHOD_INITRAMFS=y
> PTXCONF_INITRAMFS_TOOLS=y
> PTXCONF_INITRAMFS_SPEC=y
> PTXCONF_INITRAMFS_SPEC_FILE="${PTXDIST_WORKSPACE}/configs/ec1k-kernel/initramfs_spec"
> PTXCONF_INITRAMFS_TOOLS_SCRIPTS_INIT=y
> PTXCONF_INITRAMFS_TOOLS_SCRIPTS_LOCAL=y
> PTXCONF_INITRAMFS_TOOLS_SCRIPTS_NFS=y
> 
> Would you accept a patch that restores this functionality?

Probably not, there should be a better way to do this.

What exactly is in your initramfs?
If it's the whole rootfs, then just use the option you found. See my other
mail.
If not, then you can create a new image for your initramfs and overwrite
the image-kernel rule to use that instead.
Take a look at the documentation section I've just pushed. The use-case is
different, but it should give you some ideas about creating a new image.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] initramfs
  2018-06-18  9:49 ` Michael Olbrich
@ 2018-06-18 12:11   ` Jon Ringle
  2018-06-19 14:31     ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Ringle @ 2018-06-18 12:11 UTC (permalink / raw)
  To: ptxdist

On Mon, Jun 18, 2018 at 5:49 AM Michael Olbrich
<m.olbrich@pengutronix.de> wrote:
>
> Hi,
>
> On Fri, Jun 15, 2018 at 12:37:11PM -0400, Jon Ringle wrote:
> > In 4e8ea1703cad595f3136f0d48ae93de73a180c40 (remove obsolete and
> > broken klibc/initramfs), I agree that klibc is broken and should be
> > removed. However, I use initramfs. I have in the ptxconfig for
> > building my kernel image:
> > PTXCONF_INITMETHOD_INITRAMFS=y
> > PTXCONF_INITRAMFS_TOOLS=y
> > PTXCONF_INITRAMFS_SPEC=y
> > PTXCONF_INITRAMFS_SPEC_FILE="${PTXDIST_WORKSPACE}/configs/ec1k-kernel/initramfs_spec"
> > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_INIT=y
> > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_LOCAL=y
> > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_NFS=y
> >
> > Would you accept a patch that restores this functionality?
>
> Probably not, there should be a better way to do this.

Please see my patch. It only deals with restoring the initramfs-tools
package. It is what I need. It is just like a normal package that
installs files provided by that package.

Thanks,
-Jon

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] initramfs
  2018-06-18 12:11   ` Jon Ringle
@ 2018-06-19 14:31     ` Michael Olbrich
  2018-06-29 20:07       ` Jon Ringle
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2018-06-19 14:31 UTC (permalink / raw)
  To: ptxdist

On Mon, Jun 18, 2018 at 08:11:49AM -0400, Jon Ringle wrote:
> On Mon, Jun 18, 2018 at 5:49 AM Michael Olbrich
> <m.olbrich@pengutronix.de> wrote:
> > On Fri, Jun 15, 2018 at 12:37:11PM -0400, Jon Ringle wrote:
> > > In 4e8ea1703cad595f3136f0d48ae93de73a180c40 (remove obsolete and
> > > broken klibc/initramfs), I agree that klibc is broken and should be
> > > removed. However, I use initramfs. I have in the ptxconfig for
> > > building my kernel image:
> > > PTXCONF_INITMETHOD_INITRAMFS=y
> > > PTXCONF_INITRAMFS_TOOLS=y
> > > PTXCONF_INITRAMFS_SPEC=y
> > > PTXCONF_INITRAMFS_SPEC_FILE="${PTXDIST_WORKSPACE}/configs/ec1k-kernel/initramfs_spec"
> > > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_INIT=y
> > > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_LOCAL=y
> > > PTXCONF_INITRAMFS_TOOLS_SCRIPTS_NFS=y
> > >
> > > Would you accept a patch that restores this functionality?
> >
> > Probably not, there should be a better way to do this.
> 
> Please see my patch. It only deals with restoring the initramfs-tools
> package. It is what I need. It is just like a normal package that
> installs files provided by that package.

I'll take a look.

I'd still like to know a bit more about your use-case. I know very little
about what other people out there are doing with PTXdist, so it's sometimes
hard to decide if I can rip out some old stuff of if it's still needed.

It it a initramfs only setup, or is there a normal rootfs as well? In the
later case, how do you create the initramfs? Which packages are part of
initramfs?

Regards,
Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] initramfs
  2018-06-19 14:31     ` Michael Olbrich
@ 2018-06-29 20:07       ` Jon Ringle
  0 siblings, 0 replies; 5+ messages in thread
From: Jon Ringle @ 2018-06-29 20:07 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1320 bytes --]

Sorry for the delay in response on this. My laptop died and spent a couple
days rebuilding it and catching up on work before going on vacation...

On Tue, Jun 19, 2018 at 10:31 AM Michael Olbrich <m.olbrich@pengutronix.de>
wrote:
> I'd still like to know a bit more about your use-case. I know very little
> about what other people out there are doing with PTXdist, so it's
sometimes
> hard to decide if I can rip out some old stuff of if it's still needed.
>
> It it a initramfs only setup, or is there a normal rootfs as well? In the
> later case, how do you create the initramfs? Which packages are part of
> initramfs?

We have separate ptxdist projects that build the real rootfs vs the linux
kernel image with an embedded initramfs image.
The initramfs content is simply whatever packages are selected and whatever
they install via the targetinstall for each package.
Our initramfs has 3 purposes:

1. Emergency recovery console (mainly used as a means to break out of a
reboot loop encountered during development)
For this we have busybox, ash and a few other tools

2. As a means of performing firmware updates.
I use the initramfs-tools to provide the init script and use the script
hooks it provides to check if a firmware update is needed before the real
rootfs is mounted.

3. Mounting the real rootfs

-Jon

[-- Attachment #1.2: Type: text/html, Size: 1831 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-15 16:37 [ptxdist] initramfs Jon Ringle
2018-06-18  9:49 ` Michael Olbrich
2018-06-18 12:11   ` Jon Ringle
2018-06-19 14:31     ` Michael Olbrich
2018-06-29 20:07       ` Jon Ringle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox