Hi Matwey, On 2025-03-30 13:52, Matwey V. Kornilov wrote: > вс, 30 мар. 2025 г. в 14:45, Jonas Karlman <[email protected]>: >> >> Hi Vasily, >> >> On 2025-03-23 23:50, Vasily Khoruzhick wrote: >>> Enable HDMI output and USB keyboard on Rock64 board >>> >>> Signed-off-by: Vasily Khoruzhick <[email protected]> >>> --- >>> v2: no change >>> >>> configs/rock64-rk3328_defconfig | 10 ++++++++++ >>> 1 file changed, 10 insertions(+) >>> >>> diff --git a/configs/rock64-rk3328_defconfig >>> b/configs/rock64-rk3328_defconfig >>> index 6d00b52e62f..ae3512625cf 100644 >>> --- a/configs/rock64-rk3328_defconfig >>> +++ b/configs/rock64-rk3328_defconfig >>> @@ -21,7 +21,9 @@ CONFIG_FIT_VERBOSE=y >>> CONFIG_SPL_FIT_SIGNATURE=y >>> CONFIG_SPL_LOAD_FIT=y >>> CONFIG_LEGACY_IMAGE_FORMAT=y >>> +CONFIG_USE_PREBOOT=y >> >> This will add a large delay during boot as it forces a run of the slow >> "usb start" and is something we want to avoid for normal use, please >> drop this. >> >>> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3328-rock64.dtb" >>> +# CONFIG_SYS_DEVICE_NULLDEV is not set >>> # CONFIG_DISPLAY_CPUINFO is not set >>> CONFIG_DISPLAY_BOARDINFO_LATE=y >>> CONFIG_SPL_MAX_SIZE=0x40000 >>> @@ -72,6 +74,7 @@ CONFIG_DM_ETH_PHY=y >>> CONFIG_PHY_GIGE=y >>> CONFIG_ETH_DESIGNWARE=y >>> CONFIG_GMAC_ROCKCHIP=y >>> +CONFIG_PHY_ROCKCHIP_INNO_HDMI=y >>> CONFIG_PHY_ROCKCHIP_INNO_USB2=y >>> CONFIG_PINCTRL=y >>> CONFIG_SPL_PINCTRL=y >>> @@ -80,6 +83,8 @@ CONFIG_PMIC_RK8XX=y >>> CONFIG_SPL_DM_REGULATOR=y >>> CONFIG_DM_REGULATOR_FIXED=y >>> CONFIG_SPL_DM_REGULATOR_FIXED=y >>> +CONFIG_DM_REGULATOR_GPIO=y >>> +CONFIG_SPL_DM_REGULATOR_GPIO=y >> >> The ROCK64 does not use any regulator-gpio, this look unrelated and can >> be dropped? >> >>> CONFIG_REGULATOR_RK8XX=y >>> CONFIG_PWM_ROCKCHIP=y >>> CONFIG_RAM=y >>> @@ -104,6 +109,11 @@ CONFIG_USB_OHCI_GENERIC=y >>> CONFIG_USB_DWC2=y >>> CONFIG_USB_DWC3=y >>> CONFIG_USB_DWC3_GENERIC=y >>> +CONFIG_USB_KEYBOARD=y >>> +CONFIG_VIDEO=y >>> +CONFIG_DISPLAY=y >>> +CONFIG_VIDEO_ROCKCHIP=y >>> +CONFIG_DISPLAY_ROCKCHIP_HDMI=y >> >> This will force a small delay of at least a 300ms timeout for all users >> that does not have HDMI connected during boot. > > It already takes about 2 sec to initialize Ethernet. I would say that > nobody notices another 300ms.
If it takes 2 seconds then I think you may have something wrong in your configuration? Please share a "bootstage report". The Ethernet initialization should be fast, trying to use the Ethernet will however be slow. The Ethernet PHY reset should be around 10+50ms. Reaching eth_common_init may take some time, but eth_initialize should be relative fast. Regards, Jonas > >> >> Maybe this could be extracted to a rockchip-hdmi.config-file to make it >> more optional? >> >> E.g. use "make rock64-rk3328_defconfig rockchip-hdmi.config" to build >> with something like: >> >> > cat rockchip-hdmi.config >> CONFIG_VIDEO=y >> CONFIG_DISPLAY=y >> CONFIG_VIDEO_ROCKCHIP=y >> CONFIG_DISPLAY_ROCKCHIP_HDMI=y >> >> Regards, >> Jonas >> >>> CONFIG_SPL_TINY_MEMSET=y >>> CONFIG_TPL_TINY_MEMSET=y >>> CONFIG_ERRNO_STR=y >> > >

