All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [v1 0/2] add bootpc package
@ 2023-05-23 17:21 Colin Foster
  2023-05-23 17:21 ` [Buildroot] [v1 1/2] package/bootpc: new package Colin Foster
  2023-05-23 17:21 ` [Buildroot] [v1 2/2] bootpc: add dhcp-like configuration ability Colin Foster
  0 siblings, 2 replies; 8+ messages in thread
From: Colin Foster @ 2023-05-23 17:21 UTC (permalink / raw)
  To: buildroot; +Cc: 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.


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

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

end of thread, other threads:[~2023-05-25 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23 17:21 [Buildroot] [v1 0/2] add bootpc package Colin Foster
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

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.