Hey Stephen, On Fri, May 26, 2017 at 7:23 PM, Stephen Arnold <stephen.arnol...@gmail.com> wrote: > @Trevor what's your config/setup? Did you wind up using the > "use-mainline-bsp" thing?
Yes. As I mentioned, I was working with a wandboard, on master, therefore my layers are: - openembedded-core - meta-freescale-3rdparty - meta-freescale If I was working on some other board that didn't require meta-freescale-3rdparty I wouldn't have needed that layer. Additionally, I had started by using meta-etnaviv as well. That layer hasn't seen any commits in roughly 10 months. Back then my guess is that "upstream" didn't include very many of the bits required to get this to work, therefore meta-etnaviv had to include recipes/bbappends for mesa, libdrm, xorg-xserver, etc... in addition to the etnaviv drm pieces themselves. I created my own clone of meta-etnaviv [https://github.com/twoerner/meta-etnaviv] and pushed all my commits/updates there with the intention of, eventually, sending a pull request to its author. But by the time I was done removing all the things that are no longer needed (i.e. all the bbappends, since upstream mesa, libdrm, etc... all include the necessary bits) and updating the remaining stuff, I was left with very little. So little, in fact, that I decided to simply fold what was left back into meta-freescale itself, conditional on the "use-mainline-bsp" MACHINEOVERRIDES, and sent those patches to the meta-fsl mailing list. If the maintainers of meta-freescale accept the assumption that use-mainline-bsp could be the flag that indicates interest between the binary vivante drivers and etnaviv, then I hope they like the patches and accept them into meta-freescale itself. Otherwise I could just send that pull request to meta-etanviv's author (or re-work the patches with whatever feedback I get). In any case, for wandboard use-mainline-bsp is needed since the default kernel for wandboard is linux-wandboard which is still stuck at 4.1.15 and is too old for this etnaviv stuff. However using use-mainline-bsp with the wandboard is broken, so I had to send some patches for that (u-boot and kernel) as well (hopefully those patches are accepted as well). Due to the fact so much of etnaviv is already upstream, getting etanviv working doesn't take very much. It just took me a while to reach that point, however :-) > I pretty much had to hack up some of the meta-fsl/meta-boundary stuff and > put everything else in local.conf. It would be a little easier/cleaner if > the former had some ?= in a few places... > > Anyway, I masked the browser stuff so I haven't tested that far yet, but all > you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps with > glxgears. I like to use mesa-demos and (especially) glmark2 as my programs of choice for testing GL stuff. > I added recipes for the x11-armada stuff, which seems to work for > 2D but coughs an error in the xorg log. I'm curious to know which x11-armada stuff you're using. I couldn't get the stuff that came with meta-etnaviv to compile so I looked around and found Russell King's code which seemed more up-to-date, and compiled. Plus my xorg log doesn't have any errors (see attachment). > I probably tested more with oe-core > than poky but both should work. I just tend to stick with oe-core. I'm hoping to make a couple blog posts with my findings.
[ 20.498] X.Org X Server 1.19.1 Release Date: 2017-01-11 [ 20.502] X Protocol Version 11, Revision 0 [ 20.503] Build Operating System: Linux 4.4.62-18.6-default x86_64 [ 20.505] Current Operating System: Linux wandboard 4.9.21-fslc+gb69ecd63c123 #1 SMP Fri May 26 14:57:41 EDT 2017 armv7l [ 20.506] Kernel command line: root=PARTUUID=6ef67890-01 rootwait rw console=ttymxc0,115200 [ 20.509] Build Date: 27 May 2017 01:01:57AM [ 20.511] [ 20.513] Current version of pixman: 0.34.0 [ 20.516] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 20.517] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 20.525] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 27 05:04:39 2017 [ 20.536] (==) Using config file: "/etc/X11/xorg.conf" [ 20.537] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 20.548] (==) No Layout section. Using the first Screen section. [ 20.549] (==) No screen section available. Using defaults. [ 20.549] (**) |-->Screen "Default Screen Section" (0) [ 20.549] (**) | |-->Monitor "<default monitor>" [ 20.560] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 20.560] (**) | |-->Device "Driver0" [ 20.560] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 20.560] (==) Automatically adding devices [ 20.560] (==) Automatically enabling devices [ 20.560] (==) Automatically adding GPU devices [ 20.560] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 20.560] (WW) The directory "/usr/share/fonts/X11/misc/" does not exist. [ 20.560] Entry deleted from font path. [ 20.561] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist. [ 20.561] Entry deleted from font path. [ 20.561] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist. [ 20.561] Entry deleted from font path. [ 20.561] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist. [ 20.561] Entry deleted from font path. [ 20.561] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 20.561] Entry deleted from font path. [ 20.561] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 20.561] Entry deleted from font path. [ 20.561] (==) FontPath set to: [ 20.561] (==) ModulePath set to "/usr/lib/xorg/modules" [ 20.561] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 20.566] (II) Loader magic: 0x1c5d10 [ 20.567] (II) Module ABI versions: [ 20.567] X.Org ANSI C Emulation: 0.4 [ 20.567] X.Org Video Driver: 23.0 [ 20.567] X.Org XInput driver : 24.1 [ 20.567] X.Org Server Extension : 10.0 [ 20.570] (II) xfree86: Adding drm device (/dev/dri/card1) [ 20.574] (II) xfree86: Adding drm device (/dev/dri/card0) [ 20.575] (II) no primary bus or device found [ 20.575] falling back to /sys/devices/soc0/display-subsystem/drm/card1 [ 20.575] (II) LoadModule: "glx" [ 20.585] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 20.705] (II) Module glx: vendor="X.Org Foundation" [ 20.705] compiled for 1.19.1, module version = 1.0.0 [ 20.705] ABI class: X.Org Server Extension, version 10.0 [ 20.705] (II) LoadModule: "armada" [ 20.706] (II) Loading /usr/lib/xorg/modules/drivers/armada_drv.so [ 20.723] (II) Module armada: vendor="X.Org Foundation" [ 20.723] compiled for 1.19.1, module version = 0.0.0 [ 20.723] Module class: X.Org Video Driver [ 20.723] ABI class: X.Org Video Driver, version 23.0 [ 20.723] (II) armada: Support for Marvell LCD Controller: 88AP510 [ 20.723] (II) armada: Support for Freescale IPU: i.MX6 [ 20.723] (--) using VT number 1 [ 20.784] (II) armada(0): Added screen for KMS device /dev/dri/card1 [ 20.785] (II) armada(0): hardware: imx-drm [ 20.785] (II) armada(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 20.785] (==) armada(0): Depth 24, (--) framebuffer bpp 32 [ 20.785] (==) armada(0): RGB weight 888 [ 20.786] (==) armada(0): Default visual is TrueColor [ 20.786] (**) armada(0): Option "XvAccel" "TRUE" [ 20.786] (**) armada(0): Option "XvPreferOverlay" "TRUE" [ 20.786] (**) armada(0): Option "UseGPU" "TRUE" [ 20.786] (**) armada(0): Option "AccelModule" "etnadrm_gpu" [ 20.786] (II) Loading sub module "etnadrm_gpu" [ 20.786] (II) LoadModule: "etnadrm_gpu" [ 20.787] (II) Loading /usr/lib/xorg/modules/drivers/etnadrm_gpu.so [ 20.799] (II) Module Etnaviv GPU driver (DRM): vendor="X.Org Foundation" [ 20.799] compiled for 1.19.1, module version = 0.0.0 [ 20.799] ABI class: X.Org ANSI C Emulation, version 0.4 [ 20.800] (**) armada(0): Option "DRI" "TRUE" [ 20.805] (II) armada(0): Output HDMI1 has no monitor section [ 20.807] (II) armada(0): EDID for output HDMI1 [ 20.807] (II) armada(0): Printing probed modes for output HDMI1 [ 20.807] (II) armada(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e) [ 20.807] (II) armada(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e) [ 20.807] (II) armada(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e) [ 20.807] (II) armada(0): Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz e) [ 20.808] (II) armada(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e) [ 20.808] (II) armada(0): Output HDMI1 connected [ 20.808] (II) armada(0): Using exact sizes for initial modes [ 20.808] (II) armada(0): Output HDMI1 using initial mode 1024x768 +0+0 [ 20.808] (==) armada(0): Using gamma correction (1.0, 1.0, 1.0) [ 20.808] (==) armada(0): DPI set to (96, 96) [ 20.808] (II) Loading sub module "fb" [ 20.808] (II) LoadModule: "fb" [ 20.816] (II) Loading /usr/lib/xorg/modules/libfb.so [ 20.827] (II) Module fb: vendor="X.Org Foundation" [ 20.827] compiled for 1.19.1, module version = 1.0.0 [ 20.827] ABI class: X.Org ANSI C Emulation, version 0.4 [ 20.829] (==) Depth 24 pixmap format is 32 bpp [ 20.843] (**) armada(0): Option "HWcursor" "TRUE" [ 20.843] (**) armada(0): Option "HotPlug" "TRUE" [ 20.870] (==) armada(0): Backing store enabled [ 20.870] (==) armada(0): Silken mouse enabled [ 20.870] (--) armada(0): Vivante GC320 GPU revision 5007 (etnaviv) 2d PE2.0 [ 20.871] (II) armada(0): [DRI2] Setup complete [ 20.871] (II) armada(0): [DRI2] DRI driver: etnaviv [ 20.871] (II) armada(0): direct rendering: DRI2 enabled [ 20.877] (II) armada(0): No hardware cursor support - disabling hardware cursors [ 20.878] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 20.881] (==) armada(0): DPMS enabled [ 20.882] (**) armada(0): hotplug detection enabled [ 20.883] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target [ 20.940] (--) RandR disabled [ 21.271] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer [ 21.271] (II) AIGLX: enabled GLX_ARB_create_context [ 21.271] (II) AIGLX: enabled GLX_ARB_create_context_profile [ 21.271] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile [ 21.271] (II) AIGLX: enabled GLX_INTEL_swap_event [ 21.271] (II) AIGLX: enabled GLX_SGI_swap_control [ 21.271] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB [ 21.271] (II) AIGLX: enabled GLX_ARB_fbconfig_float [ 21.271] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float [ 21.271] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects [ 21.273] (II) AIGLX: Loaded and initialized etnaviv [ 21.274] (II) GLX: Initialized DRI2 GL provider for screen 0 [ 21.281] (II) armada(0): etnaviv: A8 target not supported [ 21.281] (II) armada(0): Setting screen physical size to 270 x 203 [ 21.678] (II) config/udev: Adding input device Mini Keyboard (/dev/input/event0) [ 21.678] (**) Mini Keyboard: Applying InputClass "evdev keyboard catchall" [ 21.678] (**) Mini Keyboard: Applying InputClass "libinput keyboard catchall" [ 21.678] (II) LoadModule: "libinput" [ 21.680] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so [ 21.722] (II) Module libinput: vendor="X.Org Foundation" [ 21.722] compiled for 1.19.1, module version = 0.24.0 [ 21.722] Module class: X.Org XInput Driver [ 21.722] ABI class: X.Org XInput driver, version 24.1 [ 21.722] (II) Using input driver 'libinput' for ' Mini Keyboard' [ 21.722] (**) Mini Keyboard: always reports core events [ 21.722] (**) Option "Device" "/dev/input/event0" [ 21.723] (**) Option "_source" "server/udev" [ 21.727] (II) input device ' Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard [ 21.728] (II) input device ' Mini Keyboard', /dev/input/event0 is a keyboard [ 21.801] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.0/0003:1997:2433.0001/input/input0/event0" [ 21.801] (II) XINPUT: Adding extended input device " Mini Keyboard" (type: KEYBOARD, id 6) [ 21.810] (II) input device ' Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard [ 21.810] (II) input device ' Mini Keyboard', /dev/input/event0 is a keyboard [ 21.824] (II) config/udev: Adding input device Mini Keyboard (/dev/input/event1) [ 21.825] (**) Mini Keyboard: Applying InputClass "evdev pointer catchall" [ 21.825] (**) Mini Keyboard: Applying InputClass "evdev keyboard catchall" [ 21.825] (**) Mini Keyboard: Applying InputClass "libinput pointer catchall" [ 21.825] (**) Mini Keyboard: Applying InputClass "libinput keyboard catchall" [ 21.825] (II) Using input driver 'libinput' for ' Mini Keyboard' [ 21.825] (**) Mini Keyboard: always reports core events [ 21.825] (**) Option "Device" "/dev/input/event1" [ 21.826] (**) Option "_source" "server/udev" [ 21.833] (II) input device ' Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse [ 21.833] (II) input device ' Mini Keyboard', /dev/input/event1 is a pointer caps [ 21.833] (II) input device ' Mini Keyboard', /dev/input/event1 is a keyboard [ 21.921] (II) libinput: Mini Keyboard: needs a virtual subdevice [ 21.921] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.1/0003:1997:2433.0002/input/input1/event1" [ 21.921] (II) XINPUT: Adding extended input device " Mini Keyboard" (type: MOUSE, id 7) [ 21.923] (**) Option "AccelerationScheme" "none" [ 21.923] (**) Mini Keyboard: (accel) selected scheme none/0 [ 21.923] (**) Mini Keyboard: (accel) acceleration factor: 2.000 [ 21.923] (**) Mini Keyboard: (accel) acceleration threshold: 4 [ 21.930] (II) input device ' Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse [ 21.931] (II) input device ' Mini Keyboard', /dev/input/event1 is a pointer caps [ 21.931] (II) input device ' Mini Keyboard', /dev/input/event1 is a keyboard [ 21.943] (II) config/udev: Adding input device Mini Keyboard (/dev/input/mouse0) [ 21.943] (II) No input driver specified, ignoring this device. [ 21.943] (II) This device may have been added with another device file. [ 22.007] (**) Mini Keyboard: Applying InputClass "evdev pointer catchall" [ 22.008] (**) Mini Keyboard: Applying InputClass "evdev keyboard catchall" [ 22.008] (**) Mini Keyboard: Applying InputClass "libinput pointer catchall" [ 22.008] (**) Mini Keyboard: Applying InputClass "libinput keyboard catchall" [ 22.008] (II) Using input driver 'libinput' for ' Mini Keyboard' [ 22.008] (**) Mini Keyboard: always reports core events [ 22.008] (**) Option "Device" "/dev/input/event1" [ 22.008] (**) Option "_source" "_driver/libinput" [ 22.008] (II) libinput: Mini Keyboard: is a virtual subdevice [ 22.009] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.1/0003:1997:2433.0002/input/input1/event1" [ 22.009] (II) XINPUT: Adding extended input device " Mini Keyboard" (type: KEYBOARD, id 8)
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto