mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Bastian Krause <bst@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] arch: arm: mach-imx: document field return in CSF template
Date: Mon, 28 Feb 2022 10:30:26 +0100	[thread overview]
Message-ID: <20220228093026.GF19585@pengutronix.de> (raw)
In-Reply-To: <20220225100344.4166248-1-bst@pengutronix.de>

On Fri, Feb 25, 2022 at 11:03:44AM +0100, Bastian Krause wrote:
> Activating the field return configuration returns a locked-down board
> (nearly) to its open state. In order to burn the FIELD_RETURN fuse, the
> CSF must contain a specific unlock command with the device's UID.
> 
> Signed-off-by: Bastian Krause <bst@pengutronix.de>
> ---
>  .../include/mach/habv4-imx6-gencsf-template.h        | 12 ++++++++++++
>  1 file changed, 12 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h b/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h
> index a60b485292..45da2981cb 100644
> --- a/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h
> +++ b/arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h
> @@ -39,6 +39,18 @@ hab Engine = SETUP_HABV4_ENGINE
>  hab Features = SETUP_HABV4_FEATURES
>  #endif
>  
> +/*
> +// allow fusing FIELD_RETURN
> +// # ocotp0.permanent_write_enable=1
> +// # mw -l -d /dev/imx-ocotp 0xb8 0x1
> +hab [Unlock]
> +hab Engine = OCOTP
> +hab Features = FIELD RETURN
> +// device-specific UID:
> +// $ dd if=/sys/bus/nvmem/devices/imx-ocotp0/nvmem bs=4 skip=1 count=2 status=none | hexdump -ve '1/1 "0x%.2x, "' | sed 's/, $//'
> +hab UID = 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08
> +*/
> +
>  hab [Install Key]
>  /* verification key index in key store (0, 2...4) */
>  hab Verification index = 0
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
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


      parent reply	other threads:[~2022-02-28  9:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-25 10:03 Bastian Krause
2022-02-25 10:25 ` Marc Kleine-Budde
2022-02-25 10:46   ` Bastian Krause
2022-02-25 10:55     ` Marc Kleine-Budde
2022-02-28  9:30 ` 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=20220228093026.GF19585@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=bst@pengutronix.de \
    /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