[U-Boot] [PATCH 1/4] wandboard: Set fdt based on board_rev and board_name

Fabio Estevam festevam at gmail.com
Mon Jul 10 20:14:33 UTC 2017


On Mon, Jul 10, 2017 at 5:04 PM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> From: Fabio Berton <fabio.berton at ossystems.com.br>
>
> New kernel linux-wandboard version 4.1.15_1.1.0_ga changed device tree
> name adding board revision on file name. The new names are:
>
>  - imx6dl-wandboard-revb1
>  - imx6dl-wandboard-revc1
>  - imx6q-wandboard-revb1
>  - imx6q-wandboard-revc1
>
> This fixes the Wandboard C1 revision device tree files.
>
> Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
>  include/configs/wandboard.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h
> index 2a6c6fbb70..4291be4068 100644
> --- a/include/configs/wandboard.h
> +++ b/include/configs/wandboard.h
> @@ -105,9 +105,9 @@
>                 "fi\0" \
>         "findfdt="\
>                 "if test $board_name = C1 && test $board_rev = MX6Q ; then " \
> -                       "setenv fdtfile imx6q-wandboard.dtb; fi; " \
> +                       "setenv fdtfile imx6q-wandboard-revc1.dtb; fi; " \

This breaks the usage of mainline kernel as there is no -revc1 suffix
in the wandboard dtb files there.

linux-wandboard needs to rename the dts files like mainline does:

imx6q-wandboard.dtb (for rev C1)
imx6q-wandboard-revb1.dtb
imx6dl-wandboard.dtb  (for rev C1)
imx6dl-wandboard-revb1.dtb

If they can't rename their dts, then they would need to carry this
patch on their own U-Boot tree.


More information about the U-Boot mailing list