From patchwork Fri Aug 9 15:09:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1970986 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=K/wYTQtc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23b; helo=mail-lj1-x23b.google.com; envelope-from=swupdate+bncbd2zdgn6sekrbjxc3c2qmgqesrwwk6y@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x23b.google.com (mail-lj1-x23b.google.com [IPv6:2a00:1450:4864:20::23b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WgS4Y2bp4z1ybT for ; Sat, 10 Aug 2024 01:09:32 +1000 (AEST) Received: by mail-lj1-x23b.google.com with SMTP id 38308e7fff4ca-2ef286cf0e8sf20979511fa.0 for ; Fri, 09 Aug 2024 08:09:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723216168; cv=pass; d=google.com; s=arc-20160816; b=x4fse0p37ItTfILL8OISS2dD7XCy5f691/yoBynYJeVdLJRDe8GBewWDLP9BQPPKDs d50R0gMiGKN7KzkULrEHY2/p2S8JrGvkG15ijFaDxrJRm52TMCl7Ui6EIEC3NKAIuS9q Y9fxZBsA3PLh34o6zdl/WDbXYqupDcfMRn8eY4fPxrDzdZqgy9L6NnGqJibfxr3B/QBV EQekwsb4EHispmN3EuNE+kDTFMeXdvkY6bSHN45TZX9rYmqIEeMgA68WuXMN950ObXMG y3X6Z5x2vK9Dz2K3yiARrFgh1Vi5IkEJkBWMeg/+UMj0xD7FEs33GB2krhPQ4aEc8Jjz YbIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=d/8DJfPo6wagzhAE5N7FSilhOxxvnC+VgCnEOdL2jOI=; fh=0cYi0sR24oJTg2L4342fcp6/oxu7uztW2TCV5nz1tf0=; b=oQITsqtEZJOMAFSXuDpJUqvIAhFEmdzMcXPzk8R30p6iZWDtDAx2BpEGbUMgYwDVa3 jfPvyHeQxNe+IVBi4AKU86BNSHuyelEvnJ7ja9EbJ8KQGzXMcYXdtn1f2CfjzCY7oMFw 7GfV6Uz4dEuF08uU2rAKC//fUAy4MZ0PMlg8RgmqbIxdct5dRa5hd04xkHLUG3sdUne8 +8tLVKspBatZVzbRiprMv7xp/Ud3esE4g0oBYx0d/7uhWLVLIsciE/khKcuiILyx2YZk upqVkmNG6UHVklijtiaLMHOeHicpViSLOkdXDEfYgzAtOMwbrCku2c5jN5cfPf/GXy4/ I0Yg==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=D0S8CGMZ; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1723216168; x=1723820968; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:message-id:date :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=d/8DJfPo6wagzhAE5N7FSilhOxxvnC+VgCnEOdL2jOI=; b=K/wYTQtcBhvgwXP89wfeYGIJqIHhLNt1I/YBrChmrOTwpb2YlAa7h4gMRrZIf/qFrI TdIuAQNGmC2DSdrUXUnnuoyADMCw8jNFFf4ZjVMPcM6JuI9TinaBPJS+GPKzTNwiNu4U p2S0GzXyxHW5XU3o3yzxhv6VPSwoWmEXy3VwAXWJCGL3vLuX2ygpy23/2OZIbNkwJUI1 r/nNUBfMNmJwD0rVTCWyM0PHoMz8A0rciqQjKmtPyQVs4o+LhS9ODIQInn9uMkeA+UEV SA844GwhR6ij3sFz2Rcv4P9/zWNHtHyOaePtSDAr7gLZtD1nNOwbr0qPa6Hl0utZmKCk 4fFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723216168; x=1723820968; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=d/8DJfPo6wagzhAE5N7FSilhOxxvnC+VgCnEOdL2jOI=; b=OyXLvDrAKyBFp4ooi/PIDnA1ZlQxwPW/2jBLxBY6ricXeDAqZokUxuZX+sbCFGz5yw ytaD8qweXq6w9ACJ2ygkzNFtSOFV39e55+2QZgHv65GkcueuSuZCZIHj+9z5tFM9OiEZ cUlCqY052f077ItC4WRPMCzQluQBYTyZdXF/y9WJ/e9lHuB3NhUtX2S2pJ8XreVxEuby izVC+K+wj2IaSxZwp+C5z9XNJ4Wav7ZsrEzPaXLzxFqWDuLAoS4o7zgsQSLpa3fR1Dmd Q62UcBJYhmp7vjNSFH59muGWwH/L/86QllDTW6ENDR5RgXx65yH5UDsXWjWJzQd+hESF qF+g== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWmeFtERgf85EUMQM/J4TNLFVDHCFBppFg+F6GEegi/f0XoJu06eHbHs16YDHXetoUT4LzRU8W4tnzmfzqE9D2tRepclhmSto1ylaMQaw== X-Gm-Message-State: AOJu0Yx/YYFFLzHu1q15d0byuxk3FttaNXEVYhQLeeeYJtzJ+2p3O0Im WVDsZ/VVrnG44vHd5mHbtzeRFgeTXU2cFNI1iU8CtMr/zJ+FW7bQ X-Google-Smtp-Source: AGHT+IGVkn5TJwgmSyszsuo/yO2IYgfBHdlNAydRhXoTk1I7tiO+GVlCeZZl1advTsHrjkCEaoD/7w== X-Received: by 2002:a05:651c:2228:b0:2f1:59ed:879d with SMTP id 38308e7fff4ca-2f1a6c44873mr17986841fa.1.1723216167419; Fri, 09 Aug 2024 08:09:27 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:2243:0:b0:2ef:1eb3:4738 with SMTP id 38308e7fff4ca-2f19bb19e74ls8158011fa.0.-pod-prod-06-eu; Fri, 09 Aug 2024 08:09:24 -0700 (PDT) X-Received: by 2002:a2e:98cd:0:b0:2ef:216c:c97 with SMTP id 38308e7fff4ca-2f1a6c65834mr14503471fa.19.1723216163839; Fri, 09 Aug 2024 08:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723216163; cv=none; d=google.com; s=arc-20160816; b=i/zZym6Ucm9KyT3zUgIvWBwthfXgb9VscaaLIcZScNcZY1rMeZpY9xxhsAALCj3BPz yoDg+QaBzJp7eRJDxhoIPpZZ0AjJTvRiW36qWF+AFo32ez2J6sX8OsAxk3ylX1IaCQPk jlJyYRIt9mSsqST2U1la0JEm46DsD4kCfgwLSqnjZdXynzN0YowkLPQYk8za/KP1QDuW zeAOVZ7MpD51HvI8FW/7jaBLPo2hRs+smGZz4kLbfhLs5ja5dNCntban4xhIn8/Nd616 6xXV7sMfX9PbrtqvAeI/KvZxzw+xAfbkvnADt88c311Neffimh+RGmWUvuLKorkwXUgN lC6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:dkim-signature; bh=dgh5sPy71nREDlrSgHYgLzC4f+qv/LmKYdA3hX0OMxY=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=WurwZMoWODcnBKL6ywwYCqdq4DNRRlhAV+xmmGS9KoQ6I731zSsSedzOvuXx4zkwzZ wLiodrwLwPVjojNBHldcecngsPNKkLoBwhVVKg9DKYjEDtd7BfvJgTRtiSH+Jvw3+oa/ NkIusteGu7mSOmAewKVqc/O5yvmKeUQKTGBWJj7TAeUv5VvBFdciKGUcNyeN/1JTs9QA xJU+l/1eYGYNpdUrHPn/1YVcFiKCIvWTk/DeS5f+MrdsM4pGMc6bn+6O+RpSvvxCcVuH vHMgYw4LLep1TjIcjKP9Q/DN5dcvmHwN6hXX6orIkTuwN1AkHnV3qHDEERwvF7S3LxGf Z0rg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=D0S8CGMZ; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.131]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4290c72f036si787135e9.0.2024.08.09.08.09.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 08:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) client-ip=212.227.126.131; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MiJIk-1rxJnp1Sbu-00dQV9; Fri, 09 Aug 2024 17:09:23 +0200 From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [SWUpdateGUI][PATCH] Switch to drm Date: Fri, 9 Aug 2024 17:09:20 +0200 Message-Id: <20240809150920.648440-1-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:36VM1NI4s44xg1qgACHM1OywpYQCLLL6IjpzByUx6HeGy2FC0YY ayntEawMF68nW4xb8+581bVxn2/KbVpeWv0xOX4cWJbJXYbs2gClxuNoJoW+3J4c8lNDiGJ mZPKzrUgi2+z+rL2Hlu+otgzjiKkiYSl+uwv0Ss9iGvgdwc4oa4pkYBuHfaRgh5kLTQmofw rRWHILlM4we6P626Jz9Dg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SA9BWZtfOdU=;PwjEGzlyfL+hnnFanf4YeOsL/yg TxczvHUbSWdg3tkpeQVsDdMSO7FCSvHgYucfp2dru0iod+89be7APjaF1B9N3GM1lltANBzcs VNP2tf4pk0SF9k8vYANZzO7WbtyAReeIOEhEUsS78W3eHnooPDhwYA7P2h97xfG8Er/MHG1FB Bm7pMBog9aWaAEZClfQ64lk/azHj8z6NjycjatP5uVo715KCimxrWvHpaiFg1382+PsKA5xWd JPuURL45YTf5Y8sUokxxI/QTbrSuwDQ4F8mWpikklepXxAOxHWqxLDKO10yrYb4X5PXNy5ygI L2/vGEyt/CnrcyNE/HpkwLtLsC8sVoMCxygg43pFloqCtHoVX+hJxDaKwKOJLRcHCRlo7qdGt P0/hoD97H99zjseg142f0mTED0S+D0nUJ1YB+k1WGBra/JqBZOwzEaVWkI43LTcIkv7lIikJP ymiRoqrnlxOu25YfQjr4sru2MtDkIc4CSTaWCzDZIqrLoWvp6NmxzZQchNS+793gl3lnEvHji tD66dGSDzvvxvW4wjxf4Zop6WLANbn94Al2O4WtJ84dq0fIRozxVvqx2q1yh5jWBm80x22WSj nUtb9vpgCDf0zp5OuBlp4lNi4eSS3yH8uLNw/iOoGkgIQYr8mhThiEQ5uLDaXQiUgkSXe6XxA Ejbi6YsgZXE88kvGds5Jf6dNopp1m+GDV3fAGQdeuaAPKD73k/XlgPHy4rl/VAbNlQKBtVzk1 m+r2R1h3A31OXucQLQxveQxT/Q3+f3kQw== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=D0S8CGMZ; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Framebuffer is discouraged and drm should be used. Signed-off-by: Stefano Babic --- CMakeLists.txt | 2 +- rec-lvgl-init.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.34.1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 156dfb0..0b2c040 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required( VERSION 3.1 ) +cmake_minimum_required( VERSION 3.15 ) project( recovery_gui ) diff --git a/rec-lvgl-init.c b/rec-lvgl-init.c index 8f34d4a..6e8f922 100644 --- a/rec-lvgl-init.c +++ b/rec-lvgl-init.c @@ -36,13 +36,13 @@ static void gui_lvgl_initializeDisplayDriver(void) const struct RecoveryParameters *RecoveryParameters = util_config_getRecoveryParameters(); - lv_display_t *displayObj = lv_linux_fbdev_create(); + lv_display_t *displayObj = lv_linux_drm_create(); if (NULL == displayObj) { LV_LOG_ERROR("lv_linux_fbdev_create() failed."); exit(1); } - lv_linux_fbdev_set_file(displayObj, "/dev/fb"); + lv_linux_drm_set_file(displayObj, "/dev/dri/card0", -1); lv_display_set_default(displayObj); const lv_display_rotation_t displayRotation =