[PATCH 14/16] defaultenv: base: add new devboot script
Sascha Hauer
s.hauer at pengutronix.de
Wed Mar 18 02:50:27 PDT 2026
On Thu, Mar 12, 2026 at 03:44:57PM +0100, Ahmad Fatoum wrote:
> +The devboot script
> +------------------
> +
> +The ``devboot`` command (``/env/bin/devboot``) automates the override
> +workflow for network-based development:
> +
> +1. Brings up the network (``ifup -a1``).
> +2. Changes into the fetch directory
> + (:ref:`global.net.fetchdir <magicvar_global_net_fetchdir>`, default
> + ``/mnt/tftp``).
Is this default actually set somewhere? I can't find it.
> +3. Sources a configuration script named
> + ``${global.user}-devboot-${global.hostname}``. If that file does not
> + exist, it falls back to ``${global.user}-devboot-${global.arch}``.
> +4. Translates the variables set by the script into ``boot -o`` arguments.
> +5. Passes any extra arguments through to the ``boot`` command.
> +
> +.. note::
> +
> + TFTP is not a real file system, e.g., listing of directories is not
> + possible. Keep that in mind if the devboot script does more than
> + just fetch files by name from TFTP.
> +
> +Usage
> +^^^^^
> +
> +.. code-block:: sh
> +
> + # Boot from MMC with devboot overrides
> + devboot mmc
> +
> + # Boot from the default boot entry
> + devboot
> +
> + # Make devboot the default for subsequent boots
> + nv.boot.default=devel
So that would be equivalent to a permanent "devboot". Is there also a
way to specifiy permanent "devboot mmc"?
Sascha
--
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 |
More information about the barebox
mailing list