unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Sébastien Lerique" <sl@eauchat.org>
To: guix-devel@gnu.org
Subject: Devicetree overlay (on Rock64)
Date: Tue, 05 Apr 2022 21:50:10 +0900	[thread overview]
Message-ID: <874k373c0f.fsf@eauchat.org> (raw)

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ébastien


[0] https://gitlab.com/wehlutyk/matrixbox/
[1] https://forum.pine64.org/showthread.php?tid=6282&pid=40056#pid40056
[2] https://forum.pine64.org/showthread.php?tid=5522
[3] https://stackoverflow.com/questions/50877808/configfs-do-not-mount-device-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 <https://vimeo.com/183465991> 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.


             reply	other threads:[~2022-04-05 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05 12:50 Sébastien Lerique [this message]
2022-04-11 16:50 ` Devicetree overlay (on Rock64) Tobias Platen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k373c0f.fsf@eauchat.org \
    --to=sl@eauchat.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).