arch: arm: mach-imx: document field return in CSF template
Subsystems (3)
PATCH 1/1 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.
--- .../include/mach/habv4-imx6-gencsf-template.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +12 -0
@@ -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
Signature · 7 lines
2.30.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 17 lines · Bastian Krause
Activating the field return configuration returns a locked-down board (nearly) to its open state. In order to burn the
FIELD_RETURNfuse, the CSF must contain a specific unlock command with the device's UID.Signed-off-by Bastian Krause <[email protected]>--- .../include/mach/habv4-imx6-gencsf-template.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +0
-0@@ -39,6 +39,18 @@ hab Engine = SETUP_HABV4_ENGINE hab Features = SETUP_HABV4_FEATURES#endif
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h hab Engine = SETUP_HABV4_ENGINE · line 51
Quoted 10 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +10
-0+/* +// 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
You probably want to comment this all out in the template...
Quoted 9 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +2
-0+*/ + hab [Install Key] /* verification key index in key store (0, 2...4) */ hab Verification index = 0Signature · 1 line
2.30.2
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 18 lines · Marc Kleine-Budde
Quoted 17 lines · Bastian Krause
Activating the field return configuration returns a locked-down board (nearly) to its open state. In order to burn the
FIELD_RETURNfuse, the CSF must contain a specific unlock command with the device's UID.Signed-off-by Bastian Krause <[email protected]>--- .../include/mach/habv4-imx6-gencsf-template.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +0
-0@@ -39,6 +39,18 @@ hab Engine = SETUP_HABV4_ENGINE hab Features = SETUP_HABV4_FEATURES#endif
Quoted 12 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h hab Engine = SETUP_HABV4_ENGINE · line 51
Quoted 10 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +10
-0+/* +// 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 You probably want to comment this all out in the template...
I don't get it, that's all inside the /* commented section */.
Bastian
Quoted 10 lines
Quoted 10 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +2
-0+*/ + hab [Install Key] /* verification key index in key store (0, 2...4) */ hab Verification index = 0Signature · 1 line
2.30.2
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 31 lines · Bastian Krause
Quoted 21 lines · Marc Kleine-Budde
Quoted 20 lines · Bastian Krause
Activating the field return configuration returns a locked-down board (nearly) to its open state. In order to burn the
FIELD_RETURNfuse, the CSF must contain a specific unlock command with the device's UID.Signed-off-by Bastian Krause <[email protected]>--- .../include/mach/habv4-imx6-gencsf-template.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +4
-0@@ -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 Quoted 8 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h hab Engine = SETUP_HABV4_ENGINE · line 51
Quoted 6 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +6
-0+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, 0x08You probably want to comment this all out in the template...
Quoted 1 line
I don't get it, that's all inside the /* commented section */.
Doh!
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 8 lines · Bastian Krause
Activating the field return configuration returns a locked-down board (nearly) to its open state. In order to burn the
FIELD_RETURNfuse, the CSF must contain a specific unlock command with the device's UID.Signed-off-by Bastian Krause <[email protected]>--- .../include/mach/habv4-imx6-gencsf-template.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Applied, thanks
Sascha
Quoted 33 lines
arch/arm/mach-imx/include/mach/habv4-imx6-gencsf-template.h +12
-0@@ -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 = 0Signature · 7 lines
2.30.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox