* [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE @ 2023-04-14 8:39 Heinrich Schuchardt 2023-04-18 8:44 ` Ilias Apalodimas 2023-04-18 16:47 ` Simon Glass 0 siblings, 2 replies; 9+ messages in thread From: Heinrich Schuchardt @ 2023-04-14 8:39 UTC (permalink / raw) To: Simon Glass Cc: Ilias Apalodimas, u-boot, Sughosh Ganu, AKASHI Takahiro, Heinrich Schuchardt Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> --- configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index ca95b2c5d2..01c191818d 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -335,6 +335,7 @@ CONFIG_ERRNO_STR=y CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y CONFIG_EFI_CAPSULE_ON_DISK=y CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y +CONFIG_EFI_CAPSULE_AUTHENTICATE=y CONFIG_EFI_SECURE_BOOT=y CONFIG_TEST_FDTDEC=y CONFIG_UNIT_TEST=y diff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig index e9fcc5b0cb..8c2bceae22 100644 --- a/configs/sandbox_flattree_defconfig +++ b/configs/sandbox_flattree_defconfig @@ -226,6 +226,7 @@ CONFIG_ERRNO_STR=y CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y CONFIG_EFI_CAPSULE_ON_DISK=y CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y +CONFIG_EFI_CAPSULE_AUTHENTICATE=y CONFIG_UNIT_TEST=y CONFIG_UT_TIME=y CONFIG_UT_DM=y -- 2.39.2 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-14 8:39 [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE Heinrich Schuchardt @ 2023-04-18 8:44 ` Ilias Apalodimas 2023-04-18 16:47 ` Simon Glass 1 sibling, 0 replies; 9+ messages in thread From: Ilias Apalodimas @ 2023-04-18 8:44 UTC (permalink / raw) To: Heinrich Schuchardt; +Cc: Simon Glass, u-boot, Sughosh Ganu, AKASHI Takahiro On Fri, 14 Apr 2023 at 11:39, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote: > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > --- > configs/sandbox_defconfig | 1 + > configs/sandbox_flattree_defconfig | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig > index ca95b2c5d2..01c191818d 100644 > --- a/configs/sandbox_defconfig > +++ b/configs/sandbox_defconfig > @@ -335,6 +335,7 @@ CONFIG_ERRNO_STR=y > CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y > CONFIG_EFI_CAPSULE_ON_DISK=y > CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y > +CONFIG_EFI_CAPSULE_AUTHENTICATE=y > CONFIG_EFI_SECURE_BOOT=y > CONFIG_TEST_FDTDEC=y > CONFIG_UNIT_TEST=y > diff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig > index e9fcc5b0cb..8c2bceae22 100644 > --- a/configs/sandbox_flattree_defconfig > +++ b/configs/sandbox_flattree_defconfig > @@ -226,6 +226,7 @@ CONFIG_ERRNO_STR=y > CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y > CONFIG_EFI_CAPSULE_ON_DISK=y > CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y > +CONFIG_EFI_CAPSULE_AUTHENTICATE=y > CONFIG_UNIT_TEST=y > CONFIG_UT_TIME=y > CONFIG_UT_DM=y > -- > 2.39.2 > Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-14 8:39 [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE Heinrich Schuchardt 2023-04-18 8:44 ` Ilias Apalodimas @ 2023-04-18 16:47 ` Simon Glass 2023-04-19 6:05 ` Ilias Apalodimas 1 sibling, 1 reply; 9+ messages in thread From: Simon Glass @ 2023-04-18 16:47 UTC (permalink / raw) To: Heinrich Schuchardt Cc: Ilias Apalodimas, u-boot, Sughosh Ganu, AKASHI Takahiro Hi Heinrich, On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote: > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > --- > configs/sandbox_defconfig | 1 + > configs/sandbox_flattree_defconfig | 1 + > 2 files changed, 2 insertions(+) > Reviewed-by: Simon Glass <sjg@chromium.org> This still has the problem that it reboots in the middle of the test. Can we get that fixed? If someone at Linaro isn't interested I could take a look at it. Regards, Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-18 16:47 ` Simon Glass @ 2023-04-19 6:05 ` Ilias Apalodimas 2023-04-19 22:40 ` Simon Glass 0 siblings, 1 reply; 9+ messages in thread From: Ilias Apalodimas @ 2023-04-19 6:05 UTC (permalink / raw) To: Simon Glass; +Cc: Heinrich Schuchardt, u-boot, Sughosh Ganu, AKASHI Takahiro On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt > <heinrich.schuchardt@canonical.com> wrote: > > > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > > --- > > configs/sandbox_defconfig | 1 + > > configs/sandbox_flattree_defconfig | 1 + > > 2 files changed, 2 insertions(+) > > > > Reviewed-by: Simon Glass <sjg@chromium.org> > > This still has the problem that it reboots in the middle of the test. > Can we get that fixed? If someone at Linaro isn't interested I could > take a look at it. I think we discussed this in the past. We *need* to reboot as that's what the EFI describes. Why is it a problem? Regards /Ilias > > Regards, > Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-19 6:05 ` Ilias Apalodimas @ 2023-04-19 22:40 ` Simon Glass 2023-04-20 6:30 ` Ilias Apalodimas 0 siblings, 1 reply; 9+ messages in thread From: Simon Glass @ 2023-04-19 22:40 UTC (permalink / raw) To: Ilias Apalodimas Cc: Heinrich Schuchardt, u-boot, Sughosh Ganu, AKASHI Takahiro Hi Ilias, On Wed, 19 Apr 2023 at 18:05, Ilias Apalodimas <ilias.apalodimas@linaro.org> wrote: > > On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: > > Hi Heinrich, > > > > On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt > > <heinrich.schuchardt@canonical.com> wrote: > > > > > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > > > --- > > > configs/sandbox_defconfig | 1 + > > > configs/sandbox_flattree_defconfig | 1 + > > > 2 files changed, 2 insertions(+) > > > > > > > Reviewed-by: Simon Glass <sjg@chromium.org> > > > > This still has the problem that it reboots in the middle of the test. > > Can we get that fixed? If someone at Linaro isn't interested I could > > take a look at it. > > I think we discussed this in the past. We *need* to reboot as that's what > the EFI describes. Why is it a problem? Would you like me to provide a patch that shows it not rebooting? It is a simple matter of kicking off the update process, which we can do directly, without a reboot. Regards, Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-19 22:40 ` Simon Glass @ 2023-04-20 6:30 ` Ilias Apalodimas 2023-04-20 7:12 ` AKASHI Takahiro 0 siblings, 1 reply; 9+ messages in thread From: Ilias Apalodimas @ 2023-04-20 6:30 UTC (permalink / raw) To: Simon Glass; +Cc: Heinrich Schuchardt, u-boot, Sughosh Ganu, AKASHI Takahiro Hi Simon, On Thu, 20 Apr 2023 at 01:41, Simon Glass <sjg@chromium.org> wrote: > > Hi Ilias, > > On Wed, 19 Apr 2023 at 18:05, Ilias Apalodimas > <ilias.apalodimas@linaro.org> wrote: > > > > On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt > > > <heinrich.schuchardt@canonical.com> wrote: > > > > > > > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > > > > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > > > > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > > > > --- > > > > configs/sandbox_defconfig | 1 + > > > > configs/sandbox_flattree_defconfig | 1 + > > > > 2 files changed, 2 insertions(+) > > > > > > > > > > Reviewed-by: Simon Glass <sjg@chromium.org> > > > > > > This still has the problem that it reboots in the middle of the test. > > > Can we get that fixed? If someone at Linaro isn't interested I could > > > take a look at it. > > > > I think we discussed this in the past. We *need* to reboot as that's what > > the EFI describes. Why is it a problem? > > Would you like me to provide a patch that shows it not rebooting? It > is a simple matter of kicking off the update process, which we can do > directly, without a reboot. I know it's a single efidebug command to trigger this without a reboot. However it is not going to test the final code which is meant to run capsule updates on a reboot as the spec defines. So again, why is rebooting a problem? Regards /Ilias > > Regards, > Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-20 6:30 ` Ilias Apalodimas @ 2023-04-20 7:12 ` AKASHI Takahiro 2023-04-20 7:34 ` Heinrich Schuchardt 0 siblings, 1 reply; 9+ messages in thread From: AKASHI Takahiro @ 2023-04-20 7:12 UTC (permalink / raw) To: Ilias Apalodimas; +Cc: Simon Glass, Heinrich Schuchardt, u-boot, Sughosh Ganu On Thu, Apr 20, 2023 at 09:30:24AM +0300, Ilias Apalodimas wrote: > Hi Simon, > > On Thu, 20 Apr 2023 at 01:41, Simon Glass <sjg@chromium.org> wrote: > > > > Hi Ilias, > > > > On Wed, 19 Apr 2023 at 18:05, Ilias Apalodimas > > <ilias.apalodimas@linaro.org> wrote: > > > > > > On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: > > > > Hi Heinrich, > > > > > > > > On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt > > > > <heinrich.schuchardt@canonical.com> wrote: > > > > > > > > > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > > > > > > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > > > > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > > > > > > > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > > > > > --- > > > > > configs/sandbox_defconfig | 1 + > > > > > configs/sandbox_flattree_defconfig | 1 + > > > > > 2 files changed, 2 insertions(+) > > > > > > > > > > > > > Reviewed-by: Simon Glass <sjg@chromium.org> > > > > > > > > This still has the problem that it reboots in the middle of the test. > > > > Can we get that fixed? If someone at Linaro isn't interested I could > > > > take a look at it. > > > > > > I think we discussed this in the past. We *need* to reboot as that's what > > > the EFI describes. Why is it a problem? > > > > Would you like me to provide a patch that shows it not rebooting? It > > is a simple matter of kicking off the update process, which we can do > > directly, without a reboot. > > I know it's a single efidebug command to trigger this without a > reboot. However it is not going to test the final code which is meant > to run capsule updates on a reboot as the spec defines. So again, why > is rebooting a problem? I guess that what we are looking for are different. Simon's aim is to do, so called, an unit test first, using an internal function, while what I, rather we?, intended to do a system test or standard-conformance test. I believe that we need to have some consensus on test methodology to be added to U-Boot repository. -Takahiro Akashi > Regards > /Ilias > > > > Regards, > > Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-20 7:12 ` AKASHI Takahiro @ 2023-04-20 7:34 ` Heinrich Schuchardt 2023-04-24 19:42 ` Simon Glass 0 siblings, 1 reply; 9+ messages in thread From: Heinrich Schuchardt @ 2023-04-20 7:34 UTC (permalink / raw) To: AKASHI Takahiro; +Cc: Ilias Apalodimas, Simon Glass, u-boot, Sughosh Ganu On 4/20/23 09:12, AKASHI Takahiro wrote: > On Thu, Apr 20, 2023 at 09:30:24AM +0300, Ilias Apalodimas wrote: >> Hi Simon, >> >> On Thu, 20 Apr 2023 at 01:41, Simon Glass <sjg@chromium.org> wrote: >>> >>> Hi Ilias, >>> >>> On Wed, 19 Apr 2023 at 18:05, Ilias Apalodimas >>> <ilias.apalodimas@linaro.org> wrote: >>>> >>>> On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: >>>>> Hi Heinrich, >>>>> >>>>> On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt >>>>> <heinrich.schuchardt@canonical.com> wrote: >>>>>> >>>>>> Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: >>>>>> >>>>>> * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py >>>>>> * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py >>>>>> >>>>>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> >>>>>> --- >>>>>> configs/sandbox_defconfig | 1 + >>>>>> configs/sandbox_flattree_defconfig | 1 + >>>>>> 2 files changed, 2 insertions(+) >>>>>> >>>>> >>>>> Reviewed-by: Simon Glass <sjg@chromium.org> >>>>> >>>>> This still has the problem that it reboots in the middle of the test. >>>>> Can we get that fixed? If someone at Linaro isn't interested I could >>>>> take a look at it. >>>> >>>> I think we discussed this in the past. We *need* to reboot as that's what >>>> the EFI describes. Why is it a problem? >>> >>> Would you like me to provide a patch that shows it not rebooting? It >>> is a simple matter of kicking off the update process, which we can do >>> directly, without a reboot. >> >> I know it's a single efidebug command to trigger this without a >> reboot. However it is not going to test the final code which is meant >> to run capsule updates on a reboot as the spec defines. So again, why >> is rebooting a problem? > > I guess that what we are looking for are different. > Simon's aim is to do, so called, an unit test first, using an internal function, > while what I, rather we?, intended to do a system test or standard-conformance test. > > I believe that we need to have some consensus on test methodology to be > added to U-Boot repository. > > -Takahiro Akashi Unit tests could cover aspects of capsule updates. But what we enable here are the integration tests. For such a complicated functionality as capsule updates unit tests alone are inadequate. They could be added on top to test individual functions. Best regards Heinrich ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE 2023-04-20 7:34 ` Heinrich Schuchardt @ 2023-04-24 19:42 ` Simon Glass 0 siblings, 0 replies; 9+ messages in thread From: Simon Glass @ 2023-04-24 19:42 UTC (permalink / raw) To: Heinrich Schuchardt Cc: AKASHI Takahiro, Ilias Apalodimas, u-boot, Sughosh Ganu Hi Heinrich, On Thu, 20 Apr 2023 at 01:34, Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote: > > On 4/20/23 09:12, AKASHI Takahiro wrote: > > On Thu, Apr 20, 2023 at 09:30:24AM +0300, Ilias Apalodimas wrote: > >> Hi Simon, > >> > >> On Thu, 20 Apr 2023 at 01:41, Simon Glass <sjg@chromium.org> wrote: > >>> > >>> Hi Ilias, > >>> > >>> On Wed, 19 Apr 2023 at 18:05, Ilias Apalodimas > >>> <ilias.apalodimas@linaro.org> wrote: > >>>> > >>>> On Tue, Apr 18, 2023 at 10:47:24AM -0600, Simon Glass wrote: > >>>>> Hi Heinrich, > >>>>> > >>>>> On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt > >>>>> <heinrich.schuchardt@canonical.com> wrote: > >>>>>> > >>>>>> Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > >>>>>> > >>>>>> * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > >>>>>> * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > >>>>>> > >>>>>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> > >>>>>> --- > >>>>>> configs/sandbox_defconfig | 1 + > >>>>>> configs/sandbox_flattree_defconfig | 1 + > >>>>>> 2 files changed, 2 insertions(+) > >>>>>> > >>>>> > >>>>> Reviewed-by: Simon Glass <sjg@chromium.org> > >>>>> > >>>>> This still has the problem that it reboots in the middle of the test. > >>>>> Can we get that fixed? If someone at Linaro isn't interested I could > >>>>> take a look at it. > >>>> > >>>> I think we discussed this in the past. We *need* to reboot as that's what > >>>> the EFI describes. Why is it a problem? > >>> > >>> Would you like me to provide a patch that shows it not rebooting? It > >>> is a simple matter of kicking off the update process, which we can do > >>> directly, without a reboot. > >> > >> I know it's a single efidebug command to trigger this without a > >> reboot. However it is not going to test the final code which is meant > >> to run capsule updates on a reboot as the spec defines. So again, why > >> is rebooting a problem? > > > > I guess that what we are looking for are different. > > Simon's aim is to do, so called, an unit test first, using an internal function, > > while what I, rather we?, intended to do a system test or standard-conformance test. > > > > I believe that we need to have some consensus on test methodology to be > > added to U-Boot repository. > > > > -Takahiro Akashi > > Unit tests could cover aspects of capsule updates. But what we enable > here are the integration tests. For such a complicated functionality as > capsule updates unit tests alone are inadequate. They could be added on > top to test individual functions. I would be happy with an architecture that splits the tests into parts. But today all we have is the functional test. When it fails, where do I look? I'm not so wedded to unit tests, or at least not in the traditional sense. Most of the tests in U-Boot are hybrid, in that they test one subsystem / function while relying on lots of others to work as expected. For example, we require block devices, partitions, environment variables, etc. to work in the case of capsule updates, but we are not actually trying to test those things. We mostly use traditional unit tests only for 'leaf' functionality, like GPIOs, string processing, environment. In any case, we need to design our code for testing, to actually find bugs and to tell you where the bug is, so far as possible. Regards, Simon ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-04-24 19:47 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-14 8:39 [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE Heinrich Schuchardt 2023-04-18 8:44 ` Ilias Apalodimas 2023-04-18 16:47 ` Simon Glass 2023-04-19 6:05 ` Ilias Apalodimas 2023-04-19 22:40 ` Simon Glass 2023-04-20 6:30 ` Ilias Apalodimas 2023-04-20 7:12 ` AKASHI Takahiro 2023-04-20 7:34 ` Heinrich Schuchardt 2023-04-24 19:42 ` Simon Glass
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox