Bug 256645 - ROCK64: No HDMI output
Summary: ROCK64: No HDMI output
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 13.0-RELEASE
Hardware: arm64 Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-16 13:23 UTC by Jason W. Bacon
Modified: 2021-06-30 15:44 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2021-06-16 13:23:27 UTC
Is anyone actively looking into HDMI support on the ROCK64?

I just patched sysutils/desktop-installer so it will run on aarch64, but I cannot test X11 at the moment.  There is no output from the HDMI port and if I start xdm anyway, I get the following:

[   210.819] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[   210.819] Build Operating System: FreeBSD 13.0-ALPHA1 arm64 
[   210.819] Current Operating System: FreeBSD herring.acadix.biz 13.0-RELEASE-p1 FreeBSD 13.0-RELEASE-p1 #0: Wed May 26 22:19:21 UTC 2021     root@arm64-builder.daemonology.net:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
[   210.821] Build Date: 22 January 2021  08:47:17AM
[   210.821]  
[   210.821] Current version of pixman: 0.40.0
[   210.821]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   210.821] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   210.822] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 15 08:25:45 2021
[   210.823] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   210.823] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   210.824] (==) No Layout section.  Using the first Screen section.
[   210.824] (==) No screen section available. Using defaults.
[   210.824] (**) |-->Screen "Default Screen Section" (0)
[   210.824] (**) |   |-->Monitor "<default monitor>"
[   210.826] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[   210.826] (**) |   |-->Device "Device0"
[   210.826] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   210.826] (==) Automatically adding devices
[   210.826] (==) Automatically enabling devices
[   210.827] (==) Not automatically adding GPU devices
[   210.827] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   210.827] (==) FontPath set to:
        /usr/local/share/fonts/misc/,
        /usr/local/share/fonts/TTF/,
        /usr/local/share/fonts/OTF/,
        /usr/local/share/fonts/Type1/,
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/,
        catalogue:/usr/local/etc/X11/fontpath.d
[   210.827] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   210.827] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   210.827] (II) Loader magic: 0x43b620
[   210.827] (II) Module ABI versions:
[   210.827]    X.Org ANSI C Emulation: 0.4
[   210.827]    X.Org Video Driver: 24.1
[   210.827]    X.Org XInput driver : 24.1
[   210.827]    X.Org Server Extension : 10.0
[   210.828] (II) LoadModule: "glx"
[   210.828] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   210.838] (II) Module glx: vendor="X.Org Foundation"
[   210.838]    compiled for 1.20.9, module version = 1.0.0
[   210.838]    ABI class: X.Org Server Extension, version 10.0
[   210.838] (==) Matched modesetting as autoconfigured driver 0
[   210.838] (==) Matched scfb as autoconfigured driver 1
[   210.838] (==) Assigned the driver to the xf86ConfigLayout
[   210.838] (II) LoadModule: "modesetting"
[   210.839] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   210.839] (II) Module modesetting: vendor="X.Org Foundation"
[   210.839]    compiled for 1.20.9, module version = 1.20.9
[   210.839]    Module class: X.Org Video Driver
[   210.839]    ABI class: X.Org Video Driver, version 24.1
[   210.839] (II) LoadModule: "scfb"
[   210.840] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   210.840] (II) Module scfb: vendor="X.Org Foundation"
[   210.840]    compiled for 1.20.9, module version = 0.0.5
[   210.840]    ABI class: X.Org Video Driver, version 24.1
[   210.840] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   210.840] (II) scfb: driver for wsdisplay framebuffer: scfb
[   210.841] (EE) 
Fatal server error:
[   210.841] (EE) xf86OpenConsole: No console driver found
        Supported drivers: pccons (with X support), syscons, pcvt
        Check your kernel's console driver configuration and /dev entries(EE) 
[   210.841] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   210.841] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   210.842] (EE) 
[   210.842] (EE) Server terminated with error (1). Closing log file.
Comment 1 Wes Maag 2021-06-16 16:57:59 UTC
I think what you are looking for is here

https://github.com/evadot/drm-subtree
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2021-06-16 19:04:12 UTC
Cool, thanks.  Any chance of this making it into 13.1-RELEASE?
Comment 3 Emmanuel Vadot freebsd_committer freebsd_triage 2021-06-30 11:40:11 UTC
(In reply to Wes Maag from comment #1)

There is no support for rk3328 here (yet).

(In reply to Jason W. Bacon from comment #2)

Very small chances, I wouldn't count on this.
Comment 4 Emmanuel Vadot freebsd_committer freebsd_triage 2021-06-30 11:40:52 UTC
(In reply to Jason W. Bacon from comment #0)

Do you have hdmi setup by u-boot ?
As we have no driver we rely on efifb being there.
Comment 5 Jason W. Bacon freebsd_committer freebsd_triage 2021-06-30 15:44:49 UTC
(In reply to Emmanuel Vadot from comment #4)

Don't know much about u-boot yet, I just installed the ROCK64 image:

http://ftp6.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/13.0/FreeBSD-13.0-RELEASE-arm64-aarch64-ROCK64.img.xz

My only real interest in hdmi is helping desktop-installer users get an inexpensive ARM system up and running quickly.  If there's an easy way to do it on ROCK64, I'll certainly explore it and post instructions.

Thanks.