From: Colin Foster <colin.foster@in-advantage.com>
To: buildroot@buildroot.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [v1 0/2] add bootpc package
Date: Tue, 23 May 2023 10:21:18 -0700 [thread overview]
Message-ID: <20230523172120.1948573-1-colin.foster@in-advantage.com> (raw)
Believe it or not, there are use cases for running BOOTPC instead of
DHCP or static IP addressing.
The /etc/network/interfaces configuration file allows for the
configuration option
```
iface eth0 inet bootp
```
However, this relies on two things. The first is the existence of the
bootpc application, which is added in patch 1.
That doesn't solve all the problems, however. `bootpc` only works with
interfaces that are up, which leads to a chicken-or-egg problem. Patch 2
utilizes an ancient technique to temporarily bring up an interface
before running the actual bootpc application.
The end result is an interface with the above configuration that
successfully gets an IP address and netmask from a BOOTP server.
Colin Foster (2):
package/bootpc: new package
bootpc: add dhcp-like configuration ability
package/Config.in | 1 +
package/bootpc/0001-main-fix-build.patch | 37 ++++++++
...Makefile-remove-strip-from-the-build.patch | 28 ++++++
package/bootpc/Config.in | 20 +++++
package/bootpc/bootpc.mk | 35 ++++++++
package/bootpc/bootpc_dhcp_script | 86 +++++++++++++++++++
6 files changed, 207 insertions(+)
create mode 100644 package/bootpc/0001-main-fix-build.patch
create mode 100644 package/bootpc/0002-Makefile-remove-strip-from-the-build.patch
create mode 100644 package/bootpc/Config.in
create mode 100644 package/bootpc/bootpc.mk
create mode 100644 package/bootpc/bootpc_dhcp_script
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2023-05-23 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 17:21 Colin Foster [this message]
2023-05-23 17:21 ` [Buildroot] [v1 1/2] package/bootpc: new package Colin Foster
2023-05-23 20:43 ` Yann E. MORIN
2023-05-24 17:49 ` Colin Foster
2023-05-23 17:21 ` [Buildroot] [v1 2/2] bootpc: add dhcp-like configuration ability Colin Foster
2023-05-23 21:18 ` Yann E. MORIN
2023-05-24 17:58 ` Colin Foster
2023-05-25 15:31 ` Colin Foster
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=20230523172120.1948573-1-colin.foster@in-advantage.com \
--to=colin.foster@in-advantage.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.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 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.