Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [v2 0/2] package: bootpc: add bootpc and bootp interface configuration
@ 2023-05-26 17:55 Colin Foster
  2023-05-26 17:55 ` [Buildroot] [v2 1/2] package/bootpc: new package Colin Foster
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Colin Foster @ 2023-05-26 17:55 UTC (permalink / raw)
  To: buildroot; +Cc: Yann E. MORIN, Thomas Petazzoni

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.


---

v2:
  * Mostly check-package fixups and formatting.
  * Remove stale reference to buildroot overlay

---

Colin Foster (2):
  package/bootpc: new package
  bootpc: add dhcp-like configuration ability

 .checkpackageignore                           |  1 +
 package/Config.in                             |  1 +
 package/bootpc/0001-main-fix-build.patch      | 49 +++++++++++
 ...Makefile-remove-strip-from-the-build.patch | 33 +++++++
 package/bootpc/Config.in                      | 20 +++++
 package/bootpc/bootpc.hash                    |  3 +
 package/bootpc/bootpc.mk                      | 39 +++++++++
 package/bootpc/bootpc_dhcp_script             | 86 +++++++++++++++++++
 8 files changed, 232 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.hash
 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

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

end of thread, other threads:[~2026-11-20 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-26 17:55 [Buildroot] [v2 0/2] package: bootpc: add bootpc and bootp interface configuration Colin Foster
2023-05-26 17:55 ` [Buildroot] [v2 1/2] package/bootpc: new package Colin Foster
2023-05-26 17:55 ` [Buildroot] [v2 2/2] bootpc: add dhcp-like configuration ability Colin Foster
2026-11-20 21:47 ` [Buildroot] [v2 0/2] package: bootpc: add bootpc and bootp interface configuration Angelo Compagnucci

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