mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Trostel Alain <Alain.Trostel@haslerrail.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: How to configure and enable the barebox state?
Date: Fri, 14 Oct 2016 11:58:24 +0200	[thread overview]
Message-ID: <20161014095824.rlkpofx5bsvxfi3f@pengutronix.de> (raw)
In-Reply-To: <F6D4D53A3E6A8043A8517794EE9C52320CE989@HRSRV03.haslerrail.net>

Hi Alain,

On Thu, Oct 13, 2016 at 01:38:36PM +0000, Trostel Alain wrote:
> Hi,
> 
> I would like to configure and enable the barebox state. My assumption is
> that I need to change the following device tree for my Phytec AM335x
> SOM:
> 
> arch/arm/dts/am335x-phytec-phycore-som.dts
> 
> But from the documentation
> (http://www.barebox.org/doc/latest/devicetree/bindings/barebox/barebox,state.html)
> it is not clear to me where exactly I need to add the variable node
> example.

You can put it anywhere in the device tree that is parsed by the device
parser. I would recommend putting it directly in the root node.

> Furthermore, I have check that the 'CONFIG_OFDEVICE' is
> enabled.
> So, where is the correct place to add the variable node configuration
> and what needs to be enabled in barebox?

for using the state framework you'll need:

CONFIG_STATE
CONFIG_STATE_DRV
CONFIG_CMD_STATE

If you want to use the bootchooser ontop of state you'll also need:

CONFIG_BOOTCHOOSER
CONFIG_CMD_BOOTCHOOSER

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2016-10-14  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 13:38 Trostel Alain
2016-10-14  9:58 ` Sascha Hauer [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=20161014095824.rlkpofx5bsvxfi3f@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=Alain.Trostel@haslerrail.com \
    --cc=barebox@lists.infradead.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