From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Mark Diener <markdiener10@gmail.com>, barebox@lists.infradead.org
Subject: Re: ENV
Date: Mon, 18 May 2026 10:53:26 +0200 [thread overview]
Message-ID: <32dbf417-df9b-4084-914a-37216e2ea64f@pengutronix.de> (raw)
In-Reply-To: <CAC3g_BFiUrH19_yab4Bn+jNAH9akcupYAvvbzbZh++SiDap4Ng@mail.gmail.com>
Hello Mark,
On 5/14/26 11:53 PM, Mark Diener wrote:
> Is there better resources to detail how to properly understand the
> details behind /env/ (its creation and components)?
What are you missing in the official documentation?
> I cannot get the barebox.efi to actually execute the /env/bin/init script.
Scripts in /env/bin are added to PATH, so you can execute them by just
their name (instead of their full path), but they are not automatically
executed.
If you want a script to be executed automatically at init time, add it
into /env/init/.
> bareboxenv seems like a utility that would be involved.
If you want to modify the script from Linux, yes. bareboxenv is also
used by barebox itself during the build process and can be used to bake
a built-in environment into barebox.
That's the preferred way of shipping the default environment.
What do you want to do in your init script?
> Also, when I bootm my bzImage, it hangs up and seems to lose track of
> mounting the storage so it just stops processing.
Hanging as in seeing a
Kernel panic - not syncing: Attempted to kill init
?
If so, you must have barebox add a root= option to inform the kernel
where it can find its rootfs.
You can try it out manually using:
global linux.bootargs.myroot="root=<insert your root device or PARTUUID,
..etc. here>"
> My barebox.efi is launching, but tripping on properly have the
> /env/bin/init directory established
/env/bin/init is an optional init script you can provide. I just Cc'd
you on changes to the docs that make this clearer.
Putting your init scripts in /env/init/ is what you are likely after.
Cheers,
Ahmad
>
> Any comments appreciated,
>
> Marco
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2026-05-18 8:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 21:53 ENV Mark Diener
2026-05-18 8:53 ` Ahmad Fatoum [this message]
[not found] ` <CAC3g_BGjw58QYiEbTEqrZtm-qZ78ireKAk_2yWArYWkd4VoDJQ@mail.gmail.com>
2026-05-18 10:58 ` ENV Ahmad Fatoum
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=32dbf417-df9b-4084-914a-37216e2ea64f@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=markdiener10@gmail.com \
/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