Skip to content

Commit

Permalink
bootscript: Remove vendor name and slash from DTB file name
Browse files Browse the repository at this point in the history
After that, the script successfully loads the DTB file from
two possible paths and overlays. If the file does not exist,
then the default file will be uploaded.
  • Loading branch information
The-going committed Dec 4, 2024
1 parent 18a925f commit 2811464
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/bootscripts/boot-sun50i-next.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ setenv bootlogo "false"
setenv vendor "allwinner"

# Remember the default u-boot fdtfile
setenv deffdt_file ${fdtfile}
if setexpr subfdt sub ${vendor}/ "" ${fdtfile};then
setenv deffdt_file ${subfdt}
else
setenv deffdt_file ${fdtfile}
fi

# Remember the default u-boot fdtdir
setenv deffdt_dir "${prefix}dtb"
Expand Down

0 comments on commit 2811464

Please sign in to comment.