[meta-freescale] [meta-fsl-arm][PATCH] u-boot-fslc: mx6sabresd: Enable HDMI video in bootargs

Fabio Estevam festevam at gmail.com
Thu Jun 11 05:47:27 PDT 2015


Hi Nikolay,

Sorry for the delay.

On Sun, May 31, 2015 at 6:01 PM, Nikolay Dimitrov <picmaster at mail.bg> wrote:

> ++#ifndef VIDEO_ARGS
> ++#define VIDEO_ARGS ""
> ++#endif
> ++
> + #define CONFIG_EXTRA_ENV_SETTINGS \
> +       "script=boot.scr\0" \
> +       "image=zImage\0" \
> +@@ -149,7 +153,8 @@
> +               "fi\0" \
> +       EMMC_ENV          \
> +       "mmcargs=setenv bootargs console=${console},${baudrate} " \
> +-              "root=${mmcroot}\0" \
> ++              "root=${mmcroot} " \
> ++              VIDEO_ARGS "\0" \

This only affects mmc boot, but what if people boot from NFS?

> +       "loadbootscript=" \
> +               "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
> +       "bootscript=echo Running bootscript from mmc ...; " \
> +diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h
> +index dab2fd2..1bd4912 100644
> +--- a/include/configs/mx6sabresd.h
> ++++ b/include/configs/mx6sabresd.h
> +@@ -31,6 +31,12 @@
> +
> + #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
> +
> ++#define VIDEO_ARGS    "video=mxcfb0:dev=hdmi,1280x720M at 60,if=RGB24 " \
> ++                              "video=mxcfb1:off " \
> ++                              "video=mxcfb2:off " \
> ++                              "video=mxcfb3:off " \
> ++                              "fbmem=28M"
> ++
> + #include "mx6sabre_common.h"

To be honest I don't know what is the best way to handle this.

We could also use the 'hdmidet' command in U-boot and set HDMI as
video argument if a HDMI is connected, but then there is also the
issue that the FSL kernel hangs with HDMI enabled in U-boot.

Regards,

Fabio Estevam


More information about the meta-freescale mailing list