All of lore.kernel.org
 help / color / mirror / Atom feed
* Clarify some questions about host tool (burn_my_bmc)
@ 2019-08-12  9:43 Andrew MS1 Peng
  2019-08-13 14:33 ` Patrick Venture
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew MS1 Peng @ 2019-08-12  9:43 UTC (permalink / raw)
  To: Patrick Venture; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

Hi Patrick,


1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?

2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?



Regards,

Andrew


[-- Attachment #2: Type: text/html, Size: 7837 bytes --]

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

* Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-12  9:43 Clarify some questions about host tool (burn_my_bmc) Andrew MS1 Peng
@ 2019-08-13 14:33 ` Patrick Venture
  2019-08-13 15:15   ` 答复: [External] " Andrew MS1 Peng
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Venture @ 2019-08-13 14:33 UTC (permalink / raw)
  To: Andrew MS1 Peng; +Cc: openbmc

On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
>
> Hi Patrick,
>
>
>
> 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?

I'm curious why it's harmful to check more frequently?

>
> 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?

Since one of the design goals was to keep the interface from the host
simple, and mostly agonistic to what was taking place, consideration
wasn't given for a mechanism for adding extra parameters.  We're in a
similar boat where we want a mechanism for changing the level of
upgrade, so I'll go over the design today at some point and see
whether we can do it agnostically.

>
>
>
> Regards,
>
> Andrew
>
>

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

* 答复: [External]  Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-13 14:33 ` Patrick Venture
@ 2019-08-13 15:15   ` Andrew MS1 Peng
  2019-08-13 15:49     ` Patrick Venture
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew MS1 Peng @ 2019-08-13 15:15 UTC (permalink / raw)
  To: Patrick Venture; +Cc: openbmc



-----邮件原件-----
发件人: Patrick Venture <venture@google.com> 
发送时间: 2019年8月13日 22:34
收件人: Andrew MS1 Peng <pengms1@lenovo.com>
抄送: openbmc@lists.ozlabs.org
主题: [External] Re: Clarify some questions about host tool (burn_my_bmc)

On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
>
> Hi Patrick,
>
>
>
> 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?

I'm curious why it's harmful to check more frequently?

		I showed some source code of helper.cpp as below, the checking status total time was 100 sec (5*20) but it was not enough for bios update and therefore I would like to extension the time from 100 sec to 300 sec.

				  	static constexpr auto verificationSleep = 5s;
    				ipmi_flash::ActionStatus result = ipmi_flash::ActionStatus::unknown;

   					try
    				{
        				static constexpr int commandAttempts = 20;
       					 int attempts = 0;
						............................................

>
> 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?

Since one of the design goals was to keep the interface from the host simple, and mostly agonistic to what was taking place, consideration wasn't given for a mechanism for adding extra parameters.  We're in a similar boat where we want a mechanism for changing the level of upgrade, so I'll go over the design today at some point and see whether we can do it agnostically.

>
>
>
> Regards,
>
> Andrew
>
>

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

* Re: [External] Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-13 15:15   ` 答复: [External] " Andrew MS1 Peng
@ 2019-08-13 15:49     ` Patrick Venture
  2019-08-13 20:54       ` Patrick Venture
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Venture @ 2019-08-13 15:49 UTC (permalink / raw)
  To: Andrew MS1 Peng; +Cc: openbmc

On Tue, Aug 13, 2019 at 8:15 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
>
>
>
> -----邮件原件-----
> 发件人: Patrick Venture <venture@google.com>
> 发送时间: 2019年8月13日 22:34
> 收件人: Andrew MS1 Peng <pengms1@lenovo.com>
> 抄送: openbmc@lists.ozlabs.org
> 主题: [External] Re: Clarify some questions about host tool (burn_my_bmc)
>
> On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> >
> > Hi Patrick,
> >
> >
> >
> > 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?
>
> I'm curious why it's harmful to check more frequently?
>
>                 I showed some source code of helper.cpp as below, the checking status total time was 100 sec (5*20) but it was not enough for bios update and therefore I would like to extension the time from 100 sec to 300 sec.
>
>                                         static constexpr auto verificationSleep = 5s;
>                                 ipmi_flash::ActionStatus result = ipmi_flash::ActionStatus::unknown;
>
>                                         try
>                                 {
>                                         static constexpr int commandAttempts = 20;
>                                          int attempts = 0;
>                                                 ............................................

So you're not asking to check it less frequently, you're asking it to
allow for a longer period before timing out.

>
> >
> > 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?
>
> Since one of the design goals was to keep the interface from the host simple, and mostly agonistic to what was taking place, consideration wasn't given for a mechanism for adding extra parameters.  We're in a similar boat where we want a mechanism for changing the level of upgrade, so I'll go over the design today at some point and see whether we can do it agnostically.
>
> >
> >
> >
> > Regards,
> >
> > Andrew
> >
> >

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

* Re: [External] Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-13 15:49     ` Patrick Venture
@ 2019-08-13 20:54       ` Patrick Venture
  2019-08-15  7:16         ` 答复: " Andrew MS1 Peng
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Venture @ 2019-08-13 20:54 UTC (permalink / raw)
  To: Andrew MS1 Peng; +Cc: openbmc

On Tue, Aug 13, 2019 at 8:49 AM Patrick Venture <venture@google.com> wrote:
>
> On Tue, Aug 13, 2019 at 8:15 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> >
> >
> >
> > -----邮件原件-----
> > 发件人: Patrick Venture <venture@google.com>
> > 发送时间: 2019年8月13日 22:34
> > 收件人: Andrew MS1 Peng <pengms1@lenovo.com>
> > 抄送: openbmc@lists.ozlabs.org
> > 主题: [External] Re: Clarify some questions about host tool (burn_my_bmc)
> >
> > On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> > >
> > > Hi Patrick,
> > >
> > >
> > >
> > > 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?
> >
> > I'm curious why it's harmful to check more frequently?
> >
> >                 I showed some source code of helper.cpp as below, the checking status total time was 100 sec (5*20) but it was not enough for bios update and therefore I would like to extension the time from 100 sec to 300 sec.
> >
> >                                         static constexpr auto verificationSleep = 5s;
> >                                 ipmi_flash::ActionStatus result = ipmi_flash::ActionStatus::unknown;
> >
> >                                         try
> >                                 {
> >                                         static constexpr int commandAttempts = 20;
> >                                          int attempts = 0;
> >                                                 ............................................
>
> So you're not asking to check it less frequently, you're asking it to
> allow for a longer period before timing out.
>
> >
> > >
> > > 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?

Today I'm submitting https://gerrit.openbmc-project.xyz/24402 for
review to just lengthen the wait.  I'll submit a patch parameterizing
it later.

> >
> > Since one of the design goals was to keep the interface from the host simple, and mostly agonistic to what was taking place, consideration wasn't given for a mechanism for adding extra parameters.  We're in a similar boat where we want a mechanism for changing the level of upgrade, so I'll go over the design today at some point and see whether we can do it agnostically.

For this, I think it could make sense to just have multiple targets
for BMC updates.  You can define multiple in a single json (by the
way), so you could have multiple /flash/image, /flash/factory or
something and choosing one would have a different behavior because it
would start a different update service.

> >
> > >
> > >
> > >
> > > Regards,
> > >
> > > Andrew
> > >
> > >

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

* 答复: [External] Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-13 20:54       ` Patrick Venture
@ 2019-08-15  7:16         ` Andrew MS1 Peng
  2019-08-15 14:00           ` Patrick Venture
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew MS1 Peng @ 2019-08-15  7:16 UTC (permalink / raw)
  To: Patrick Venture; +Cc: openbmc



-----邮件原件-----
发件人: Patrick Venture <venture@google.com> 
发送时间: 2019年8月14日 4:55
收件人: Andrew MS1 Peng <pengms1@lenovo.com>
抄送: openbmc@lists.ozlabs.org
主题: Re: [External] Re: Clarify some questions about host tool (burn_my_bmc)

On Tue, Aug 13, 2019 at 8:49 AM Patrick Venture <venture@google.com> wrote:
>
> On Tue, Aug 13, 2019 at 8:15 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> >
> >
> >
> > -----邮件原件-----
> > 发件人: Patrick Venture <venture@google.com>
> > 发送时间: 2019年8月13日 22:34
> > 收件人: Andrew MS1 Peng <pengms1@lenovo.com>
> > 抄送: openbmc@lists.ozlabs.org
> > 主题: [External] Re: Clarify some questions about host tool 
> > (burn_my_bmc)
> >
> > On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> > >
> > > Hi Patrick,
> > >
> > >
> > >
> > > 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?
> >
> > I'm curious why it's harmful to check more frequently?
> >
> >                 I showed some source code of helper.cpp as below, the checking status total time was 100 sec (5*20) but it was not enough for bios update and therefore I would like to extension the time from 100 sec to 300 sec.
> >
> >                                         static constexpr auto verificationSleep = 5s;
> >                                 ipmi_flash::ActionStatus result = 
> > ipmi_flash::ActionStatus::unknown;
> >
> >                                         try
> >                                 {
> >                                         static constexpr int commandAttempts = 20;
> >                                          int attempts = 0;
> >                                                 ............................................
>
> So you're not asking to check it less frequently, you're asking it to 
> allow for a longer period before timing out.
>
> >
> > >
> > > 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?

Today I'm submitting https://gerrit.openbmc-project.xyz/24402 for review to just lengthen the wait.  I'll submit a patch parameterizing it later.

> >
> > Since one of the design goals was to keep the interface from the host simple, and mostly agonistic to what was taking place, consideration wasn't given for a mechanism for adding extra parameters.  We're in a similar boat where we want a mechanism for changing the level of upgrade, so I'll go over the design today at some point and see whether we can do it agnostically.

For this, I think it could make sense to just have multiple targets for BMC updates.  You can define multiple in a single json (by the way), so you could have multiple /flash/image, /flash/factory or something and choosing one would have a different behavior because it would start a different update service.
		I added two object in single json file, the configuration could be loaded as below and it seems to work well. Do you have any plans to support flexible blob-id in host flash tool or we need to modify it by ourselves? 
			Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/bios
			Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/bios1
			Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/image

> >
> > >
> > >
> > >
> > > Regards,
> > >
> > > Andrew
> > >
> > >

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

* Re: [External] Re: Clarify some questions about host tool (burn_my_bmc)
  2019-08-15  7:16         ` 答复: " Andrew MS1 Peng
@ 2019-08-15 14:00           ` Patrick Venture
  0 siblings, 0 replies; 7+ messages in thread
From: Patrick Venture @ 2019-08-15 14:00 UTC (permalink / raw)
  To: Andrew MS1 Peng; +Cc: openbmc

On Thu, Aug 15, 2019 at 12:16 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
>
>
>
> -----邮件原件-----
> 发件人: Patrick Venture <venture@google.com>
> 发送时间: 2019年8月14日 4:55
> 收件人: Andrew MS1 Peng <pengms1@lenovo.com>
> 抄送: openbmc@lists.ozlabs.org
> 主题: Re: [External] Re: Clarify some questions about host tool (burn_my_bmc)
>
> On Tue, Aug 13, 2019 at 8:49 AM Patrick Venture <venture@google.com> wrote:
> >
> > On Tue, Aug 13, 2019 at 8:15 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> > >
> > >
> > >
> > > -----邮件原件-----
> > > 发件人: Patrick Venture <venture@google.com>
> > > 发送时间: 2019年8月13日 22:34
> > > 收件人: Andrew MS1 Peng <pengms1@lenovo.com>
> > > 抄送: openbmc@lists.ozlabs.org
> > > 主题: [External] Re: Clarify some questions about host tool
> > > (burn_my_bmc)
> > >
> > > On Mon, Aug 12, 2019 at 2:43 AM Andrew MS1 Peng <pengms1@lenovo.com> wrote:
> > > >
> > > > Hi Patrick,
> > > >
> > > >
> > > >
> > > > 1.      It took about 4 minutes and 30 seconds for BIOS update with 64MB rom image. Could we extension the pollstatus time from 100 sec to 300 sec to get the final status?
> > >
> > > I'm curious why it's harmful to check more frequently?
> > >
> > >                 I showed some source code of helper.cpp as below, the checking status total time was 100 sec (5*20) but it was not enough for bios update and therefore I would like to extension the time from 100 sec to 300 sec.
> > >
> > >                                         static constexpr auto verificationSleep = 5s;
> > >                                 ipmi_flash::ActionStatus result =
> > > ipmi_flash::ActionStatus::unknown;
> > >
> > >                                         try
> > >                                 {
> > >                                         static constexpr int commandAttempts = 20;
> > >                                          int attempts = 0;
> > >                                                 ............................................
> >
> > So you're not asking to check it less frequently, you're asking it to
> > allow for a longer period before timing out.
> >
> > >
> > > >
> > > > 2.      If user can choose to preserve BMC configuration (rw area) or BIOS configuration when upgrade firmware, do you have any suggestions with regards to preserve configuration implementation or could the host tool support to send a parameter to support it?
>
> Today I'm submitting https://gerrit.openbmc-project.xyz/24402 for review to just lengthen the wait.  I'll submit a patch parameterizing it later.
>
> > >
> > > Since one of the design goals was to keep the interface from the host simple, and mostly agonistic to what was taking place, consideration wasn't given for a mechanism for adding extra parameters.  We're in a similar boat where we want a mechanism for changing the level of upgrade, so I'll go over the design today at some point and see whether we can do it agnostically.
>
> For this, I think it could make sense to just have multiple targets for BMC updates.  You can define multiple in a single json (by the way), so you could have multiple /flash/image, /flash/factory or something and choosing one would have a different behavior because it would start a different update service.
>                 I added two object in single json file, the configuration could be loaded as below and it seems to work well. Do you have any plans to support flexible blob-id in host flash tool or we need to modify it by ourselves?

I'll have that patch up today.  And update the README to require that
the blob id starts with "/flash/."

>                         Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/bios
>                         Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/bios1
>                         Aug 12 20:54:22 hr630 ipmid[778]: config loaded: /flash/image
>
> > >
> > > >
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Andrew
> > > >
> > > >

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

end of thread, other threads:[~2019-08-15 14:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12  9:43 Clarify some questions about host tool (burn_my_bmc) Andrew MS1 Peng
2019-08-13 14:33 ` Patrick Venture
2019-08-13 15:15   ` 答复: [External] " Andrew MS1 Peng
2019-08-13 15:49     ` Patrick Venture
2019-08-13 20:54       ` Patrick Venture
2019-08-15  7:16         ` 答复: " Andrew MS1 Peng
2019-08-15 14:00           ` Patrick Venture

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.