[PATCH] starfive: visionfive2: switch to standard boot
Milan P. Stanić
mps at arvanta.net
Mon Mar 18 21:34:31 CET 2024
On Thu, 2024-03-14 at 13:04, Nam Cao wrote:
> On 13/Mar/2024 Milan P. Stanić wrote:
> > On Wed, 2024-02-21 at 13:00, Nam Cao wrote:
> > > Distro boot scripts are deprecated. Use standard boot instead.
> > I had to enable 'CONFIG_CMD_SYSBOOT=y' in
> > configs/starfive_visionfive2_defconfig because it doesn't boot without
> > it. With this option it boots fine with this patch.
>
> You should not have to do that for it to work, otherwise this patch
> introduced a bug.
>
> CONFIG_CMD_SYSBOOT adds the "sysboot" command, which is only used by
> distroboot. So I suspect that you were actually still using distro boot,
> because you didn't "update" your environment variable (that can be checked
> with "printenv bootcmd"). For this patch to work, the environment variables
> also need to be updated with:
> env default
> env save -a
>
> This makes me realize that the patch breaks boards if the users forget to
> update the environment variables. I am not sure if this is considered a
> bug. What do maintainers think?
Rebuild it again and it worked out of the box.
Tested-by: Milan P. Stanić <mps at arvanta.net>
More information about the U-Boot
mailing list