devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Henrik Nordström" <henrik-N0bZODiMPoV/1Aw6q1k8hdHuzzzSOjJt@public.gmane.org>
To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Cc: "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	ARM Linux Mailing List
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: Re: Generic communication of boot loader state to the OS
Date: Wed, 27 Aug 2014 12:14:14 +0200	[thread overview]
Message-ID: <1409134454.2701.46.camel@localhost> (raw)
In-Reply-To: <CAKON4OwG2XfGYv+BMqMStWvAf_K_AYdarhpQQw3FLHWE+D8Sxg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

tis 2014-08-26 klockan 16:50 -0400 skrev jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org:

> I wonder if DHCP client couldn't be replaced with a udev event. Set a
> timer in the kernel for the length of the lease. Then generate a udev
> event when it is ready to expire. Udev event runs an app that gets a
> new lease.  Now there is no process to kill on reboot and everyone is
> happy.

DHCP clients should release their IP back to the DHCP pool when no
longer in use and is why this is normally down on shutdown/reboot.
Special care is needed for doing this when your rootfs is on NFS, but
that's all an OS support issue in how to properly supporting NFS root,
not at all related to devicetree or bootloaders.

The question on communicating DHCP lease details between bootloader and
OS is partially valid for this discussion as an example of possible user
of such communication. It is not strictly required as we can have (and
do have) an initrd that requests a dhcp lease before kernel needs IP
running for NFS etc, but reusing the existing lease is faster (in the
range of seconds in many networks). There is however a lot of small
details in DHCP that may make that infeasible in the end, but those are
again all OS implementation details not related to how to communicate
existing lease information from bootloader to OS.

Regards
Henrik

      parent reply	other threads:[~2014-08-27 10:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 16:10 Generic communication of boot loader state to the OS jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
     [not found] ` <CAKON4Oz-PRgXyNKj=T9ymzOOhCMPjBMdYdE1Mr1CHWv3boskiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26 17:16   ` Mark Rutland
2014-08-26 18:05     ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
2014-08-26 18:31     ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
     [not found]       ` <CAKON4OyENsHnPc528zLnimVY-B2x6-gdBQ6iyYHO60PgHdnvWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26 18:43         ` Mark Rutland
2014-08-26 18:28   ` Russell King - ARM Linux
     [not found]     ` <20140826182816.GW30401-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-08-26 18:39       ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
     [not found]         ` <CAKON4Oy7SU9kj=DdJ+Oq14ukL7kHP7Qn9bPrQ3PKUL6ZJww=gw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26 19:02           ` Russell King - ARM Linux
     [not found]             ` <20140826190230.GX30401-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-08-26 20:50               ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
     [not found]                 ` <CAKON4OwG2XfGYv+BMqMStWvAf_K_AYdarhpQQw3FLHWE+D8Sxg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-27 10:14                   ` Henrik Nordström [this message]

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=1409134454.2701.46.camel@localhost \
    --to=henrik-n0bzodimpov/1aw6q1k8hdhuzzzsojjt@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).