All of lore.kernel.org
 help / color / mirror / Atom feed
* Solve the problem of bad CRC when using u-boot-aspeed-sdk
@ 2021-12-22  8:04 George Liu
  2021-12-22 10:24 ` [External] " Lei Yu
  0 siblings, 1 reply; 3+ messages in thread
From: George Liu @ 2021-12-22  8:04 UTC (permalink / raw)
  To: OpenBMC Maillist

Hi, everyone:

The 64M flash used by Inspur's fp5280g2 machine has recently found
that it cannot be saved when setting the u-boot environment variable,
and then a warning message appears when rebooting:

```
Loading Environment from SPI Flash... SF: Detected mx66l51235l with
page size 256 Bytes, erase size 64 KiB, total 64 MiB
*** Warning-bad CRC, using default environment
```

Since fp5280g2 includes `openbmc-flash-layout-64.dtsi`, the initial problem is:
1. The value of CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET[1] of u-boot is
inconsistent with the size of u-boot env of Kernel's
openbmc-flash-layout-64.dtsi[2].
2. The `Env. size` of the fw_env_ast2600_nor.config[3] file also needs
to be updated

After modifying the above problem and test by:
1. Use `setenv` to add a new environment variable in u-boot and reboot
BMC, and then use `fw_printenv` to see this value synchronously.
2. Use `fw_setenv` to add a new environment variable in BMC and reboot
BMC into u-boot, and then use `printenv` to see this value
synchronously.

We pushed a new patch to meta-inspur and it worked fine.
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/49916

[1]: https://github.com/openbmc/u-boot/blob/v2019.04-aspeed-openbmc/configs/evb-ast2500_defconfig#L5-L6
[2]: https://github.com/openbmc/linux/blob/dev-5.15/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi#L16-L19
[3]: https://github.com/openbmc/openbmc/blob/master/meta-aspeed/recipes-bsp/u-boot/files/fw_env_ast2600_nor.config#L2

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

* Re: [External] Solve the problem of bad CRC when using u-boot-aspeed-sdk
  2021-12-22  8:04 Solve the problem of bad CRC when using u-boot-aspeed-sdk George Liu
@ 2021-12-22 10:24 ` Lei Yu
  2021-12-22 10:30   ` George Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Lei Yu @ 2021-12-22 10:24 UTC (permalink / raw)
  To: George Liu; +Cc: OpenBMC Maillist

On Wed, Dec 22, 2021 at 4:05 PM George Liu <liuxiwei1013@gmail.com> wrote:
>
> Hi, everyone:
>
> The 64M flash used by Inspur's fp5280g2 machine has recently found
> that it cannot be saved when setting the u-boot environment variable,
> and then a warning message appears when rebooting:
>
> ```
> Loading Environment from SPI Flash... SF: Detected mx66l51235l with
> page size 256 Bytes, erase size 64 KiB, total 64 MiB
> *** Warning-bad CRC, using default environment
> ```
>
> Since fp5280g2 includes `openbmc-flash-layout-64.dtsi`, the initial problem is:
> 1. The value of CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET[1] of u-boot is
> inconsistent with the size of u-boot env of Kernel's
> openbmc-flash-layout-64.dtsi[2].
> 2. The `Env. size` of the fw_env_ast2600_nor.config[3] file also needs
> to be updated
>
> After modifying the above problem and test by:
> 1. Use `setenv` to add a new environment variable in u-boot and reboot
> BMC, and then use `fw_printenv` to see this value synchronously.
> 2. Use `fw_setenv` to add a new environment variable in BMC and reboot
> BMC into u-boot, and then use `printenv` to see this value
> synchronously.
>
> We pushed a new patch to meta-inspur and it worked fine.
> https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/49916

Good to know the issue is fixed.
Could you kindly re-work the patches to make it applicable for all
systems using 64MiB static layout?


-- 
BRs,
Lei YU

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

* Re: [External] Solve the problem of bad CRC when using u-boot-aspeed-sdk
  2021-12-22 10:24 ` [External] " Lei Yu
@ 2021-12-22 10:30   ` George Liu
  0 siblings, 0 replies; 3+ messages in thread
From: George Liu @ 2021-12-22 10:30 UTC (permalink / raw)
  To: Lei Yu; +Cc: OpenBMC Maillist

On Wed, Dec 22, 2021 at 6:24 PM Lei Yu <yulei.sh@bytedance.com> wrote:
>
> On Wed, Dec 22, 2021 at 4:05 PM George Liu <liuxiwei1013@gmail.com> wrote:
> >
> > Hi, everyone:
> >
> > The 64M flash used by Inspur's fp5280g2 machine has recently found
> > that it cannot be saved when setting the u-boot environment variable,
> > and then a warning message appears when rebooting:
> >
> > ```
> > Loading Environment from SPI Flash... SF: Detected mx66l51235l with
> > page size 256 Bytes, erase size 64 KiB, total 64 MiB
> > *** Warning-bad CRC, using default environment
> > ```
> >
> > Since fp5280g2 includes `openbmc-flash-layout-64.dtsi`, the initial problem is:
> > 1. The value of CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET[1] of u-boot is
> > inconsistent with the size of u-boot env of Kernel's
> > openbmc-flash-layout-64.dtsi[2].
> > 2. The `Env. size` of the fw_env_ast2600_nor.config[3] file also needs
> > to be updated
> >
> > After modifying the above problem and test by:
> > 1. Use `setenv` to add a new environment variable in u-boot and reboot
> > BMC, and then use `fw_printenv` to see this value synchronously.
> > 2. Use `fw_setenv` to add a new environment variable in BMC and reboot
> > BMC into u-boot, and then use `printenv` to see this value
> > synchronously.
> >
> > We pushed a new patch to meta-inspur and it worked fine.
> > https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/49916
>
> Good to know the issue is fixed.
> Could you kindly re-work the patches to make it applicable for all
> systems using 64MiB static layout?

Sure, We will re-test and re-push it, Thanks for your reply :)

>
>
> --
> BRs,
> Lei YU

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

end of thread, other threads:[~2021-12-22 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22  8:04 Solve the problem of bad CRC when using u-boot-aspeed-sdk George Liu
2021-12-22 10:24 ` [External] " Lei Yu
2021-12-22 10:30   ` George Liu

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.