From patchwork Sat Mar 4 19:41:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 735327 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vbGdX0jTZz9s7N for ; Sun, 5 Mar 2017 06:41:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WSKQ+U5s"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1DB2282530; Sat, 4 Mar 2017 19:41:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4bGQXP0oUS+i; Sat, 4 Mar 2017 19:41:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5F7898AC22; Sat, 4 Mar 2017 19:41:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B79F11BFF88 for ; Sat, 4 Mar 2017 19:41:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A26E189E82 for ; Sat, 4 Mar 2017 19:41:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dMMaZXGeTFsA for ; Sat, 4 Mar 2017 19:41:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 37FDB89E81 for ; Sat, 4 Mar 2017 19:41:23 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id m124so70136218oig.1 for ; Sat, 04 Mar 2017 11:41:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DVnev2p2C9fuTz/S1bquLg19h2XWoIT82i0i8CZuqlM=; b=WSKQ+U5sQ5Du+Y6PgZIOBa/+T6tJGAnPEM6OYvpqeSDjf8Ronw5mjdVD+dYYu9QUAN 0a2wxUcXSj4OYIzHONJJ/27L9K1ZJAdFPgTrvXtMvTzgoedLdXWdtKf80i4kgL6AjHCs JyhJojijNvIEChCyBbrC1VIkJtiTfg8pgqrcKezNTKtUi5gCjiRS/i8+3XMSP17I+iLH k6je4j06YjohtEgj42dHtJxDu+c6stbnlcCHJ9ZZrAECKm/8JoAo+MbWYn/KPnyLGO1b IKiXZD4lydyZJmTsDW/dH77OzWxL06G2DeU91alvsK5bWEnpSRrOr0AWbjfd1HaPiMyG rWAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DVnev2p2C9fuTz/S1bquLg19h2XWoIT82i0i8CZuqlM=; b=eLr7SNBVHmH2kM9M5X5zlAwNUtJ1JizxGmCWM4G7cngveMCUxbI0Yf/8UVGJ54MiOp f4hrkh/T7GayDPcHqYpaUq9kEh80p5ChWJvVt4cUgwkz9cMVGSg4zjN2c6lTwgmPUPr2 nBXg+Oa11DLErDEmvjpQa/Drm3Ffqe18xm1dIv6ou8LCR41VDJWUmIKdlxYuAYA2f7Ei Gc0fr1skGJmOcIz5FgGQHaZ5lSrN0WHD6pm0z0MJprFW2Y0d1BFGl78Ud90QFl441xvi pQz78qq9IinwmmOUv5pGm1h3G4zctzZXMTzGpZZ1KynDbg8qvbi6ojvJuzIk07MF45xv nTgw== X-Gm-Message-State: AMke39myozGDLnDA9+aHRkK/mRso9K7qLFU4TRCY7iUnoGkCMjcOUCmPhiIruatzRLOnlvv5TXXnQWdlB3gycg== X-Received: by 10.202.78.5 with SMTP id c5mr1022198oib.77.1488656482479; Sat, 04 Mar 2017 11:41:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.13.44 with HTTP; Sat, 4 Mar 2017 11:41:21 -0800 (PST) In-Reply-To: References: From: Fabio Estevam Date: Sat, 4 Mar 2017 16:41:21 -0300 Message-ID: To: Gary Bisson Cc: Jagan Teki , buildroot@buildroot.org Subject: Re: [Buildroot] libqeglfs.so not found on imx6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" On Sat, Mar 4, 2017 at 11:47 AM, Fabio Estevam wrote: > Hi Gary, > > On Sat, Mar 4, 2017 at 9:33 AM, Fabio Estevam wrote: > >> Not yet, still stuck at the "drmModeGetResources failed" error. > > I can also get this same error with the new kmscube package from: > https://cgit.freedesktop.org/mesa/kmscube/log/ > > # kmscube > drmModeGetResources failed: Invalid argument > failed to initialize legacy DRM > > It works if I explicitly pass the /dev/dri device: > > kmscube -D /dev/dri/card1 > > I think QT5 is trying to access /dev/dri/card0, but it should be using > /dev/dri/card1 instead. Yes, this is the problem. If I do an ugly hack like this: return false; --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsdevice.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsdevice.cpp @@ -344,7 +344,7 @@ bool QEglFSKmsDevice::open() Q_ASSERT(m_gbm_device == Q_NULLPTR); qCDebug(qLcEglfsKmsDebug) << "Opening device" << m_path; - m_dri_fd = qt_safe_open(m_path.toLocal8Bit().constData(), O_RDWR | O_CLOEXEC); + m_dri_fd = qt_safe_open("/dev/dri/card1", O_RDWR | O_CLOEXEC); if (m_dri_fd == -1) { qErrnoWarning("Could not open DRM device %s", qPrintable(m_path));