Skip to contentSkip to conversation

Help wanted: Adding OpenSSL in FSL HAB

DISCUSSION Daniel D 2 participants 5 messages Jul 19, 2021 – Jul 21, 2021

lore
Share & tools
lore

Daniel D

author
#0 lore raw

Hi,

I would like to compile U-Boot with OpenSSL library and I'm using OpenSSL functions in Freescale's " hab.c ". I do not know how to add the ssl & crypto libraries to U-Boot's makefile (as there are many). I'm quite new to these kind of work, hence I request someone to provide some detailed explanation.

I've also raised my concern in NXP community and I'm linking that here for your reference.

Any help would be much appreciated.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer | Jasmin Infotech

Signature · 1 line
P Please consider the environment before printing this email. 
#1 lore raw

Which architecture ?There is a hab.c in ./arch/arm/mach-imx/hab.c
It is added based on the CONFIG_IMX_HAB.

You cab add your configs ( arch/configs) and port it to your custom configuration.

    On Monday, July 19, 2021, 7:38:28 AM PDT, Daniel D <[email protected]> wrote:  

Hi,

I would like to compile U-Boot with OpenSSL library and I'm using OpenSSL functions in Freescale's " hab.c ". I do not know how to add the ssl & crypto libraries to U-Boot's makefile (as there are many). I'm quite new to these kind of work, hence I request someone to provide some detailed explanation.

I've also raised my concern in NXP community and I'm linking that here for your reference.

Any help would be much appreciated.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer | Jasmin Infotech

Signature · 1 line
P Please consider the environment before printing this email. 
author
#2 lore raw

The architecture is arm (i.MX 6UL board) and I've successfully added HAB.

I want to include OpenSSL library into the U-Boot now. Can you comment on this?

Kind regards,

Daniel Selvan D.

Signature · 14 lines
P Please consider the environment before printing this email. 


From: "Jojan" <[email protected]> 
To: "u-boot" <[email protected]>, "Daniel D" <[email protected]> 
Sent: Monday, 19 July, 2021 23:40:00 
Subject: Re: Help wanted: Adding OpenSSL in FSL HAB 

Which architecture ? 
There is a hab.c in ./arch/arm/mach-imx/hab.c 

It is added based on the CONFIG_IMX_HAB. 

You cab add your configs ( arch/configs) and port it to your custom configuration. 

On Monday, July 19, 2021, 7:38:28 AM PDT, Daniel D <[email protected]> wrote:

Hi,

I would like to compile U-Boot with OpenSSL library and I'm using OpenSSL functions in Freescale's " hab.c ". I do not know how to add the ssl & crypto libraries to U-Boot's makefile (as there are many). I'm quite new to these kind of work, hence I request someone to provide some detailed explanation.

I've also raised my concern in NXP community and I'm linking that here for your reference.

Any help would be much appreciated.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer | Jasmin Infotech

Signature · 1 line
P Please consider the environment before printing this email. 
#3 lore raw

You need to enable configs , by running
make menuconfig     Library routines > Security support and enable the configs needed for the library.

    On Monday, July 19, 2021, 10:11:05 PM PDT, Daniel D <[email protected]> wrote:  

The architecture is arm (i.MX 6UL board) and I've successfully added HAB.

I want to include OpenSSL library into the U-Boot now. Can you comment on this?

Kind regards,

Daniel Selvan D.

--

P Please consider the environment before printing this email.

From: "Jojan" <[email protected]>
To: "u-boot" <[email protected]>, "Daniel D" <[email protected]>
Sent: Monday, 19 July, 2021 23:40:00
Subject: Re: Help wanted: Adding OpenSSL in FSL HAB

Which architecture ?There is a hab.c in ./arch/arm/mach-imx/hab.c
It is added based on the CONFIG_IMX_HAB.

You cab add your configs ( arch/configs) and port it to your custom configuration.

    On Monday, July 19, 2021, 7:38:28 AM PDT, Daniel D <[email protected]> wrote:  

Hi,

I would like to compile U-Boot with OpenSSL library and I'm using OpenSSL functions in Freescale's " hab.c ". I do not know how to add the ssl & crypto libraries to U-Boot's makefile (as there are many). I'm quite new to these kind of work, hence I request someone to provide some detailed explanation.

I've also raised my concern in NXP community and I'm linking that here for your reference.

Any help would be much appreciated.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer | Jasmin Infotech

Signature · 6 lines
P Please consider the environment before printing this email. 


  

Information in this email is proprietary and Confidential to Jasmin Infotech Pvt. Ltd. Any use, copying or dissemination of the information in any manner without prior approval, is strictly prohibited. If you are not the intended recipient, please destroy the message and please inform to us..
author
#4 lore raw

Thanks for the update!

I've tried the options as mentioned and cannot find the OpenSSL library in there!

Do you know how to integrate an external library (any) in U-Boot?? Are there any documentation out there?

Thanks in advance.

Kind regards,

Daniel Selvan D.

Signature · 13 lines
P Please consider the environment before printing this email. 


From: "Jojan" <[email protected]> 
To: "Daniel D" <[email protected]> 
Cc: "u-boot" <[email protected]> 
Sent: Tuesday, 20 July, 2021 22:05:59 
Subject: Re: Help wanted: Adding OpenSSL in FSL HAB 

You need to enable configs , by running 
make menuconfig 
Library routines > Security support 
and enable the configs needed for the library. 

On Monday, July 19, 2021, 10:11:05 PM PDT, Daniel D <[email protected]> wrote:

The architecture is arm (i.MX 6UL board) and I've successfully added HAB.

I want to include OpenSSL library into the U-Boot now. Can you comment on this?

Kind regards,

Daniel Selvan D.

Signature · 14 lines
P Please consider the environment before printing this email. 


From: "Jojan" <[email protected]> 
To: "u-boot" <[email protected]>, "Daniel D" <[email protected]> 
Sent: Monday, 19 July, 2021 23:40:00 
Subject: Re: Help wanted: Adding OpenSSL in FSL HAB 

Which architecture ? 
There is a hab.c in ./arch/arm/mach-imx/hab.c 

It is added based on the CONFIG_IMX_HAB. 

You cab add your configs ( arch/configs) and port it to your custom configuration. 

On Monday, July 19, 2021, 7:38:28 AM PDT, Daniel D <[email protected]> wrote:

Hi,

I would like to compile U-Boot with OpenSSL library and I'm using OpenSSL functions in Freescale's " hab.c ". I do not know how to add the ssl & crypto libraries to U-Boot's makefile (as there are many). I'm quite new to these kind of work, hence I request someone to provide some detailed explanation.

I've also raised my concern in NXP community and I'm linking that here for your reference.

Any help would be much appreciated.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer | Jasmin Infotech

Signature · 6 lines
P Please consider the environment before printing this email. 




Information in this email is proprietary and Confidential to Jasmin Infotech Pvt. Ltd. Any use, copying or dissemination of the information in any manner without prior approval, is strictly prohibited. If you are not the intended recipient, please destroy the message and please inform to us..