public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
@ 2019-05-27 23:34 rebecca
  2019-05-28  8:39 ` [edk2-devel] " Leif Lindholm
  0 siblings, 1 reply; 7+ messages in thread
From: rebecca @ 2019-05-27 23:34 UTC (permalink / raw)
  To: devel@edk2.groups.io, Ard Biesheuvel, Leif Lindholm,
	Michael D Kinney

I've been working with the MACCHIATObin board, and noticed settings for
HTTP and TLS in Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc in
the repo
https://github.com/MarvellEmbeddedProcessors/edk2-open-platform.git .
I'd like to enable them if possible to help with debugging a problem
with a boot loader. I added TlsLib to the build and things appeared to
work, but enrolling a server certificate, and entering an HTTP boot URL
fails ("HTTP is disabled"), presumably because I didn't build in the
underlying support.


I'm not sure if this is the right place to ask about it since it's in
the MarvellEmbeddedProcessors project and not TianoCore, but - I was
wondering where the place would be to add support libraries needed to
enable HTTP and TLS support? Would it be in
Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc, or in
NetworkPkg/Network.dsc.inc in the main edk2 repo?


-- 
Rebecca Cran


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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-27 23:34 Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo) rebecca
@ 2019-05-28  8:39 ` Leif Lindholm
  2019-05-28  9:47   ` Marcin Wojtas
  2019-05-29  1:36   ` rebecca
  0 siblings, 2 replies; 7+ messages in thread
From: Leif Lindholm @ 2019-05-28  8:39 UTC (permalink / raw)
  To: devel, rebecca; +Cc: Ard Biesheuvel, Michael D Kinney, Marcin Wojtas

Hi Rebecca,

On Mon, May 27, 2019 at 05:34:08PM -0600, rebecca@bluestop.org wrote:
> I've been working with the MACCHIATObin board, and noticed settings for
> HTTP and TLS in Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc in
> the repo
> https://github.com/MarvellEmbeddedProcessors/edk2-open-platform.git .
> I'd like to enable them if possible to help with debugging a problem
> with a boot loader. I added TlsLib to the build and things appeared to
> work, but enrolling a server certificate, and entering an HTTP boot URL
> fails ("HTTP is disabled"), presumably because I didn't build in the
> underlying support.

This was actually enabled in the upstream edk2-platforms repository as
part of the "use fragment config files for network config" set:
205d5621a35eb6251481526039d24b17374efdf0

Since the PCIe updates just went in, that should now be a valid
replacement for the MarvellEmbededProcessors repo.

And will let you include HTTP with -D NETWORK_HTTP_BOOT_ENABLE=TRUE.

/
    Leif

> 
> I'm not sure if this is the right place to ask about it since it's in
> the MarvellEmbeddedProcessors project and not TianoCore, but - I was
> wondering where the place would be to add support libraries needed to
> enable HTTP and TLS support? Would it be in
> Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc, or in
> NetworkPkg/Network.dsc.inc in the main edk2 repo?
> 
> 
> -- 
> Rebecca Cran
> 
> 
> 
> 

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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-28  8:39 ` [edk2-devel] " Leif Lindholm
@ 2019-05-28  9:47   ` Marcin Wojtas
  2019-05-28 23:19     ` rebecca
  2019-05-29  2:18     ` rebecca
  2019-05-29  1:36   ` rebecca
  1 sibling, 2 replies; 7+ messages in thread
From: Marcin Wojtas @ 2019-05-28  9:47 UTC (permalink / raw)
  To: Rebecca Cran
  Cc: edk2-devel-groups-io, Leif Lindholm, Ard Biesheuvel,
	Michael D Kinney

Hi Rebecca,

wt., 28 maj 2019 o 10:39 Leif Lindholm <leif.lindholm@linaro.org> napisał(a):
>
> Hi Rebecca,
>
> On Mon, May 27, 2019 at 05:34:08PM -0600, rebecca@bluestop.org wrote:
> > I've been working with the MACCHIATObin board, and noticed settings for
> > HTTP and TLS in Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc in
> > the repo
> > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform.git .
> > I'd like to enable them if possible to help with debugging a problem
> > with a boot loader. I added TlsLib to the build and things appeared to
> > work, but enrolling a server certificate, and entering an HTTP boot URL
> > fails ("HTTP is disabled"), presumably because I didn't build in the
> > underlying support.
>
> This was actually enabled in the upstream edk2-platforms repository as
> part of the "use fragment config files for network config" set:
> 205d5621a35eb6251481526039d24b17374efdf0
>
> Since the PCIe updates just went in, that should now be a valid
> replacement for the MarvellEmbededProcessors repo.

Please use the Tianocore repo only. With the latest changes, there is
no point to use old MarvellEmbededProcessors branch, I do not maintain
it. I also plan to update MacchiatoBin wiki with the reference to the
mainline repositories.

Best regards,
Marcin

>
> And will let you include HTTP with -D NETWORK_HTTP_BOOT_ENABLE=TRUE.
>
> /
>     Leif
>
> >
> > I'm not sure if this is the right place to ask about it since it's in
> > the MarvellEmbeddedProcessors project and not TianoCore, but - I was
> > wondering where the place would be to add support libraries needed to
> > enable HTTP and TLS support? Would it be in
> > Silicon/Marvell/Armada7k8k/Armada7k8k.dsc.inc, or in
> > NetworkPkg/Network.dsc.inc in the main edk2 repo?
> >
> >
> > --
> > Rebecca Cran
> >
> >
> > 
> >

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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-28  9:47   ` Marcin Wojtas
@ 2019-05-28 23:19     ` rebecca
  2019-05-29  2:18     ` rebecca
  1 sibling, 0 replies; 7+ messages in thread
From: rebecca @ 2019-05-28 23:19 UTC (permalink / raw)
  To: Marcin Wojtas
  Cc: edk2-devel-groups-io, Leif Lindholm, Ard Biesheuvel,
	Michael D Kinney

On 2019-05-28 03:47, Marcin Wojtas wrote:
> Please use the Tianocore repo only. With the latest changes, there is
> no point to use old MarvellEmbededProcessors branch, I do not maintain
> it. I also plan to update MacchiatoBin wiki with the reference to the
> mainline repositories.



Thank you! That makes things a whole lot easier.


-- 

Rebecca Cran


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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-28  8:39 ` [edk2-devel] " Leif Lindholm
  2019-05-28  9:47   ` Marcin Wojtas
@ 2019-05-29  1:36   ` rebecca
  1 sibling, 0 replies; 7+ messages in thread
From: rebecca @ 2019-05-29  1:36 UTC (permalink / raw)
  To: Leif Lindholm, devel; +Cc: Ard Biesheuvel, Michael D Kinney, Marcin Wojtas

On 2019-05-28 02:39, Leif Lindholm wrote:
>
> This was actually enabled in the upstream edk2-platforms repository as
> part of the "use fragment config files for network config" set:
> 205d5621a35eb6251481526039d24b17374efdf0
>
> Since the PCIe updates just went in, that should now be a valid
> replacement for the MarvellEmbededProcessors repo.
>
> And will let you include HTTP with -D NETWORK_HTTP_BOOT_ENABLE=TRUE.


Thanks. I've also just realized that the devel-OpenPlatformPkg branch
(and probably the others, like devel-MinnowBoardMax-UDK2017) in
edk2-platforms is no longer used. 

Should the Readme.md files be updated to suggest people use master
instead, or perhaps the branches deleted (or closed, if that's something
that can be done in git)? I vaguely remember a discussion here about
switching to using the master branch, but other people coming back to it
might need a bit of a reminder!


-- 
Rebecca Cran


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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-28  9:47   ` Marcin Wojtas
  2019-05-28 23:19     ` rebecca
@ 2019-05-29  2:18     ` rebecca
  2019-05-29  5:04       ` Liming Gao
  1 sibling, 1 reply; 7+ messages in thread
From: rebecca @ 2019-05-29  2:18 UTC (permalink / raw)
  To: Marcin Wojtas
  Cc: edk2-devel-groups-io, Leif Lindholm, Ard Biesheuvel,
	Michael D Kinney

On 2019-05-28 03:47, Marcin Wojtas wrote:
> Please use the Tianocore repo only. With the latest changes, there is
> no point to use old MarvellEmbededProcessors branch, I do not maintain
> it. I also plan to update MacchiatoBin wiki with the reference to the
> mainline repositories.


I can configure HTTP boot entries now if I build with
-DNETWORK_HTTP_BOOT_ENABLE=TRUE -DNETWORK_ALLOW_HTTP_CONNECTIONS .

However, I get an error if I try and enable HTTPS by building with
-DNETWORK_TLS_ENABLE :


build.py...
/home/bcran/workspace/edk2-platforms/Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc(...):
error 4000: Instance of library class [TlsLib] is not found
        in [/home/bcran/workspace/edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
[AARCH64]
        consumed by module
[/home/bcran/workspace/edk2/NetworkPkg/TlsDxe/TlsDxe.inf]


-- 
Rebecca Cran


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

* Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo)
  2019-05-29  2:18     ` rebecca
@ 2019-05-29  5:04       ` Liming Gao
  0 siblings, 0 replies; 7+ messages in thread
From: Liming Gao @ 2019-05-29  5:04 UTC (permalink / raw)
  To: devel@edk2.groups.io, rebecca@bluestop.org, Marcin Wojtas
  Cc: Leif Lindholm, Ard Biesheuvel, Kinney, Michael D


TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf is required to be added into [LibraryClasses] of edk2-platforms\Silicon\Marvell\Armada7k8k\Armada7k8k.dsc.inc

>-----Original Message-----
>From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
>rebecca@bluestop.org
>Sent: Wednesday, May 29, 2019 10:19 AM
>To: Marcin Wojtas <mw@semihalf.com>
>Cc: edk2-devel-groups-io <devel@edk2.groups.io>; Leif Lindholm
><leif.lindholm@linaro.org>; Ard Biesheuvel <ard.biesheuvel@linaro.org>;
>Kinney, Michael D <michael.d.kinney@intel.com>
>Subject: Re: [edk2-devel] Adding HTTP and TLS support to Armada80x0McBin
>(from the MarvellEmbeddedProcessors edk2-open-platforms repo)
>
>On 2019-05-28 03:47, Marcin Wojtas wrote:
>> Please use the Tianocore repo only. With the latest changes, there is
>> no point to use old MarvellEmbededProcessors branch, I do not maintain
>> it. I also plan to update MacchiatoBin wiki with the reference to the
>> mainline repositories.
>
>
>I can configure HTTP boot entries now if I build with
>-DNETWORK_HTTP_BOOT_ENABLE=TRUE -
>DNETWORK_ALLOW_HTTP_CONNECTIONS .
>
>However, I get an error if I try and enable HTTPS by building with
>-DNETWORK_TLS_ENABLE :
>
>
>build.py...
>/home/bcran/workspace/edk2-
>platforms/Platform/SolidRun/Armada80x0McBin/Armada80x0McBin.dsc(...):
>error 4000: Instance of library class [TlsLib] is not found
>        in [/home/bcran/workspace/edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
>[AARCH64]
>        consumed by module
>[/home/bcran/workspace/edk2/NetworkPkg/TlsDxe/TlsDxe.inf]
>
>
>--
>Rebecca Cran
>
>
>


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

end of thread, other threads:[~2019-05-29  5:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-27 23:34 Adding HTTP and TLS support to Armada80x0McBin (from the MarvellEmbeddedProcessors edk2-open-platforms repo) rebecca
2019-05-28  8:39 ` [edk2-devel] " Leif Lindholm
2019-05-28  9:47   ` Marcin Wojtas
2019-05-28 23:19     ` rebecca
2019-05-29  2:18     ` rebecca
2019-05-29  5:04       ` Liming Gao
2019-05-29  1:36   ` rebecca

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