From patchwork Wed Sep 23 23:52:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bilal Wasim X-Patchwork-Id: 1370136 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=va8w8OKC; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BxZjW4mcVz9ryj for ; Thu, 24 Sep 2020 09:52:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2C41586519; Wed, 23 Sep 2020 23:52:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jG6lpheoMe3; Wed, 23 Sep 2020 23:52:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 75A2886508; Wed, 23 Sep 2020 23:52:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1B9891BF3C8 for ; Wed, 23 Sep 2020 23:52:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 17E7A86508 for ; Wed, 23 Sep 2020 23:52:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QuDxy9eAGYix for ; Wed, 23 Sep 2020 23:52:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 9301C864D6 for ; Wed, 23 Sep 2020 23:52:21 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id e2so1755400wme.1 for ; Wed, 23 Sep 2020 16:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5oRTYO1Wtee0gYF8tfdYNl0bMS+otG3ultBU9xTYdGQ=; b=va8w8OKCERZhfJEStRG0ho7GK9TxHmheq0/D7vxQHqUhmYE/MNjp9/6TDWqX1gq8H1 CyKdPDGoWPTJ4UY5/DP8c88Oq/Zt0Rr3ss8AqRk+G3OCepvMsKFw91K2N3OxkDPWt+K7 T37ltaqrlpsu691tKprVwO0gHrHJeUJcq7MohoLxisReHsjghGOKBnziE0ElpClDlkIG c2llscEvABmdzTZY7R2la8gdEqSIyRzcS/0cZxGX/Im1yhlI9UO+ya3cj80+hAcdam82 Elkikn3fwa8ZQ3eY8Cz5sJJahqNgd3twIyOS7ioJF7wOlJ2tqdA8OzOuxXwNryaR2bWH HQkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5oRTYO1Wtee0gYF8tfdYNl0bMS+otG3ultBU9xTYdGQ=; b=PHgM30uOn+n1RIg7YqDdlPYLLvhV5nilrWF21FMUd0g4Wq7nqFG6LXsjCPXjsEQj0V RdlODAzTccJRbav9y1rFP7f+qKHMifUOnmSchY5wcbB7IMnA9SrFFObNUONBqG2LPHla 2Xd5y6CuAAFqgMLu7FG1to9aw1vg9Zg4BJ1p9ZIp0q8PNrbDA+qMvsjja9IKkeOVet0V 7yatvV2+q1nA8WOpUTq+soYHNjNHzY4Q0tVZcGTl4FUrEz4AUn9dvV4uo/dMwYkV/ONg VKQGet9iyrJfsyXdC6rmiF3Y38SiFSbMthOED8B2BwB4UPjqz4tV8yv3xoIt9X19vt2d WHYQ== X-Gm-Message-State: AOAM5327LnkOLvG2tL07eIliQxxQld3EufpAy0eYgLaQbC68HyJ6FPsh CFc64tCIzEZCGKp+1+7y7dMpDlICfBxo7g== X-Google-Smtp-Source: ABdhPJxyAcmO4AjjfSwYLX0PuJmLsgzfIyrTQLhAKq05eIt+SnWr6cRAyUVMEwHvEsAzpq8vCfwZaQ== X-Received: by 2002:a1c:ed01:: with SMTP id l1mr1976128wmh.152.1600905139643; Wed, 23 Sep 2020 16:52:19 -0700 (PDT) Received: from a-VirtualBox.Dlink ([103.120.71.253]) by smtp.gmail.com with ESMTPSA id i6sm1479598wra.1.2020.09.23.16.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 16:52:18 -0700 (PDT) From: Bilal Wasim To: buildroot@buildroot.org Date: Thu, 24 Sep 2020 04:52:12 +0500 Message-Id: <20200923235214.437005-1-bilalwasim676@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 0/2] Buildroot support for Chromebook Elm X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch series adds supports for generating Buildroot kernel + rootfs images for the Arm Elm Chromebook (https://www.acer.com/ac/en/US/content/series/acerchromebookr13). A board is added under board/chromebook which provides infrastructure necessary to generate images. For example, the kernel.its file helps to generate FIT image while the kernel.args file lists all the necessary kernel command line params. Both of these files are used to generate a signed kernel image by the sign.sh file. This folder also contains a patch which must be applied to the linux kernel to get the HDMI working. This patch is lying in "drm-misc-next" and should make it to the mainline by 5.10, at which point it should be removed from buildroot and kernel up-reved to 5.10 assuming nothing else fails. We also add a configuration necessary to build the kernel. In addition, a defconfig for Elm chromebook is added to make life easy for the user. To generate kernel+rootfs, the user only needs to do make chromebook_elm_defconfig make menuconfig # If changes are required make -j ${nproc} All of this is briefly mentioned in the readme file under the elm board file. The following changes have been made specifically in v2, -> Added myself in the DEVELOPERS file for chromebook elm -> Created seperate patches instead of a single consolidated patch. -> Moved these patches to a seperate folder to keep top-level clean. -> Made sign.sh executable. -> Fixed other misc issues reported in v1. Bilal Wasim (2): board/chromebook: Add support of Chromebook Elm DEVELOPERS: add myself as contact for chromebook elm DEVELOPERS | 4 + board/chromebook/elm/kernel.args | 1 + board/chromebook/elm/kernel.its | 38 ++ board/chromebook/elm/linux.config | 453 ++++++++++++++++++ ...ctor-Set-default-status-connected-fo.patch | 35 ++ ...ps8640-Get-the-EDID-from-eDP-control.patch | 50 ++ ...0-Return-an-error-for-incorrect-atta.patch | 35 ++ ...0-Print-an-error-if-VDO-control-fail.patch | 58 +++ ...e-ps8640-Rework-power-state-handling.patch | 162 +++++++ board/chromebook/elm/readme.txt | 56 +++ board/chromebook/elm/sign.sh | 41 ++ configs/chromebook_elm_defconfig | 35 ++ 12 files changed, 968 insertions(+) create mode 100644 board/chromebook/elm/kernel.args create mode 100644 board/chromebook/elm/kernel.its create mode 100644 board/chromebook/elm/linux.config create mode 100644 board/chromebook/elm/patches/0001-drm-bridge_connector-Set-default-status-connected-fo.patch create mode 100644 board/chromebook/elm/patches/0002-drm-bridge-ps8640-Get-the-EDID-from-eDP-control.patch create mode 100644 board/chromebook/elm/patches/0003-drm-bridge-ps8640-Return-an-error-for-incorrect-atta.patch create mode 100644 board/chromebook/elm/patches/0004-drm-bridge-ps8640-Print-an-error-if-VDO-control-fail.patch create mode 100644 board/chromebook/elm/patches/0005-drm-bridge-ps8640-Rework-power-state-handling.patch create mode 100644 board/chromebook/elm/readme.txt create mode 100755 board/chromebook/elm/sign.sh create mode 100644 configs/chromebook_elm_defconfig