From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EKSqN6lFTGKuPAAAgWs5BA (envelope-from ) for ; Tue, 05 Apr 2022 15:35:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KOVyNKlFTGIGTQEA9RJhRA (envelope-from ) for ; Tue, 05 Apr 2022 15:35:37 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8887BC186 for ; Tue, 5 Apr 2022 15:35:37 +0200 (CEST) Received: from localhost ([::1]:36326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbj4d-00087D-4b for larch@yhetil.org; Tue, 05 Apr 2022 09:18:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbj4B-000875-2C for guix-devel@gnu.org; Tue, 05 Apr 2022 09:17:51 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:43914 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbj49-0001bC-3p for guix-devel@gnu.org; Tue, 05 Apr 2022 09:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1649164665; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=f3x9JJiqpQHeZb3PIdjR3HyDxhbpQeVdDy/jjliIImc=; b=LrESiP1CIN6mD561FA03+sneI1ZYtQsX6Qh1TjRy5oS3oVkQnCiHf11RERJoezjaZh1gej epeEzagsNrwvgwXPOB77Gq9+3UGk+tNBZKqEWOLqvuAo/qgxPgPDLz426gQfs9rqsq+smA MnzwWvtMe2DocdPxKHhxYDozVSxs1e4= From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: guix-devel@gnu.org Subject: Devicetree overlay (on Rock64) Date: Tue, 05 Apr 2022 21:50:10 +0900 Message-ID: <874k373c0f.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649165737; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=f3x9JJiqpQHeZb3PIdjR3HyDxhbpQeVdDy/jjliIImc=; b=XQuz9LMtSzlsSCJGmhhu7vB5FhJyjoit1jsPO6PsReHhLphsExmoV6nDFbRgpf0iqlAjPW 4Vq7qJhWvtusaj5hhjoPERXph/eHXprDAdOWK0Y7jfrYGTrCyOSj6XQfrSC3Kjr/e8TG9s W+5INhroabKgeTUYQsQ1hjsBGtO6khxKdbXvBBhVDg6d7Eg/Hj9rC5NrhLfCpLE8MJt8Ca eYfWhf0lCEs3K0usrSFuBiYEM1vvG46lnSvxjB8xfZdQhadSWH1MB31rD9ypDVJ6SVhEn6 OvXkzj2plhR+ya1x9OcVrWp8cOn94lBafrQeLUoPYJYXZV4fmP1bJhOiFObCCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649165737; a=rsa-sha256; cv=none; b=Dfoq3HBwuh0TzpBq09Nl8xLe1gN5XLFqEXISX2Z76P40UQ9hTcJzMNc7mLS6MPkCoy/klP m2d3yEPkaxg0OwG7f+/C5qG5qJ+quIDEO6naSCMPqi66Avf2oMM3WfJo5grhz4XZMCpQ3/ 2a/WFJEtLSKJpbWlKUvv1Wu5PcbzSs4kqvL/lcnWgzPL1YqrLa8XzDROO2Pol6FYcYd2qj SU02apk+PXZnFWaup5jwMezE2WwFPs1q4YcwswdLWIP4jpeadDAJSd89jr8LvSIGwOX/bp VWpBREnxReG+VxzzSGisVK/SeCHwpQjiRN3EIIKhSxgQM1EEgrJc2p+EYu7XPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=LrESiP1C; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=LrESiP1C; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8887BC186 X-Spam-Score: 5.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: nJiawTAo5BWO Hi Guix! (Re-posting from help-guix@gnu.org as I didn't get any answers there.) I'm starting a small embedded project using a Rock64, successfully running Guix on it (and keeping track of config at [0]). It seems that the Rock64 has a few design mistakes (as always I guess, but in this case they matter to me), such that I would need to use a tiny devicetree overlay to get access to the board's SPI device. The pine64 forum has a couple threads on this: [1] [2]. Trying to use the kernel's configfs to set up an overlay (as in the first thread above, [1]) doesn't seem possible, as the devicetree in configfs seems to be only made available on board-maintained versions of the kernel [3]. My question: is there a standard way to change a devicetree using Guix's bootloader+kernel tooling? U-Boot's docs [4] mention either manually loading an overlay, or putting it in a Flat Image Tree, but I haven't figured out how to do that with Guix's tooling. I'm also not understanding whether I would need to do this for both u-boot and the kernel, or if the first would be enough. This thread [5] from help-guix mentions it would be nice to be able to parse custom devicetrees, but that wasn't enough to find next steps in exploring this. Do guixers have experience that could help here? Any hints or help would be very welcome! Happy hacking -- and please let me know if this doesn't belong on this list, S=C3=A9bastien [0] https://gitlab.com/wehlutyk/matrixbox/ [1] https://forum.pine64.org/showthread.php?tid=3D6282&pid=3D40056#pid40056 [2] https://forum.pine64.org/showthread.php?tid=3D5522 [3] https://stackoverflow.com/questions/50877808/configfs-do-not-mount-devi= ce-tree-overlays [4] https://u-boot.readthedocs.io/en/stable/usage/fdt_overlays.html#ways-to= -utilize-overlays-in-u-boot [5] https://mail.gnu.org/archive/html/help-guix/2020-04/msg00052.html PS: in case anybody is interested, the project is to implement a Marble Answering Machine on top of Matrix, with added message-sending buttons, to enable young children (and grown-ups) to message friends and relatives while still avoiding screen exposure.