mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* habv4 on imx6
@ 2016-11-17 13:42 Jan Remmet
  2016-11-17 15:29 ` Jan Remmet
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Remmet @ 2016-11-17 13:42 UTC (permalink / raw)
  To: barebox

Hello,
I'm trying to get hab signature working on a imx6.

So far I have added 
 #include <mach/habv4-imx6-gencsf.h
to the .imxcfg flash header.

and set
 ONFIG_HABV4, CONFIG_HABV4_TABLE_BIN, CONFIG_HABV4_CSF_CRT_PEM and CONFIG_HABV4_IMG_CRT_PEM

I also added this to images/Makefile.imx

CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg
FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib-signed.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg
image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib-signed.img

I got this:
...
  IMX-IMG images/start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg
  Missing --i argument
  Failed to open
  images/start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg.csfbin: No such
  file or directory
  barebox/2016.09.0-phy1-r7.0/cst
  failed

Is my setup ok so far? Maybe this is an issue with my version of cst?

It wants
-i, --input <csf text file>:
Input CSF text filename

cst -v
Code Signing Tool release version BLN_CST_MAIN_02.03.00

Jan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: habv4 on imx6
  2016-11-17 13:42 habv4 on imx6 Jan Remmet
@ 2016-11-17 15:29 ` Jan Remmet
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Remmet @ 2016-11-17 15:29 UTC (permalink / raw)
  To: barebox

On Thu, Nov 17, 2016 at 02:42:21PM +0100, Jan Remmet wrote:
> Hello,
> I'm trying to get hab signature working on a imx6.
> 
> So far I have added 
>  #include <mach/habv4-imx6-gencsf.h
> to the .imxcfg flash header.
> 
> and set
>  ONFIG_HABV4, CONFIG_HABV4_TABLE_BIN, CONFIG_HABV4_CSF_CRT_PEM and CONFIG_HABV4_IMG_CRT_PEM
> 
> I also added this to images/Makefile.imx
> 
> CFG_start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg = $(board)/phytec-som-imx6/flash-header-phytec-pcm058-1gib.imxcfg
> FILE_barebox-phytec-phycore-imx6q-som-emmc-1gib-signed.img = start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg
> image-$(CONFIG_MACH_PHYTEC_SOM_IMX6) += barebox-phytec-phycore-imx6q-som-emmc-1gib-signed.img
> 
> I got this:
> ...
>   IMX-IMG images/start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg
>   Missing --i argument
>   Failed to open
>   images/start_phytec_phycore_imx6q_som_emmc_1gib.pblx.simximg.csfbin: No such
>   file or directory
>   barebox/2016.09.0-phy1-r7.0/cst
>   failed
> 
> Is my setup ok so far? Maybe this is an issue with my version of cst?
> 
> It wants
> -i, --input <csf text file>:
> Input CSF text filename
> 
> cst -v
> Code Signing Tool release version BLN_CST_MAIN_02.03.00

Ok according to the cst Release_Notes.txt it was added in CST 2.3.2. 
I changed imx-image.c to write the csf buffer to a file, but ran into

Error: Cannot open key file ../CSF1_1_sha256_4096_65537_v3_usr_key.pem
30345296:error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password
read:pem_pkey.c:109:
cst tool failed: No such file or directory

Jan

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-17 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-17 13:42 habv4 on imx6 Jan Remmet
2016-11-17 15:29 ` Jan Remmet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox