Skip to content

Overwriting dtbs on storage devices #49

Description

@vali-um

Hello,

As discussed in the forum the current u-boot setup in many cases overwrites the dtb on mmc. This seems to be done to support the different memory sizes and ethernet variations.
While it might be beneficial to do this for the in-memory dtb upon boot overwriting it on the storage medium itself is really bad. This file might be supplied by the user or distro and editing it will lead to confusion and issues.

The relevant code parts are https://github.com/starfive-tech/u-boot/blob/JH7110_VisionFive2_devel/include/configs/starfive-visionfive2.h#L151 and https://github.com/starfive-tech/u-boot/blob/JH7110_VisionFive2_devel/include/configs/starfive-visionfive2.h#L155

I'd suggest removing the write commands.
While looking at this i noticed the two branches do the same thing so the if statement could be removed to simplify the command.

Thanks,
Valentin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions