-
Notifications
You must be signed in to change notification settings - Fork 41
Description
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