diff options
author | Bastian Krause <bst@pengutronix.de> | 2022-02-25 11:03:44 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-28 10:30:11 +0100 |
commit | 2c573ff69d50a9676e8c730bb733ceb2c9aa5157 (patch) | |
tree | 720fba7faa31c93fc77ea5119f93edaf0b8a6674 /arch/arm | |
parent | 30c889fcb1495f27976463e4ea69c92b01b88c11 (diff) | |
download | barebox-2c573ff69d50a9676e8c730bb733ceb2c9aa5157.tar.gz barebox-2c573ff69d50a9676e8c730bb733ceb2c9aa5157.tar.xz |
arch: arm: mach-imx: document field return in CSF template
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>
Link: https://lore.barebox.org/20220225100344.4166248-1-bst@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 |