From: Fredrik Salomonsson <plattfot@posteo.net>
To: Ekaitz Zarraga <ekaitz@elenq.tech>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Question regarding qmk firmware
Date: Tue, 10 Oct 2023 19:32:28 +0000 [thread overview]
Message-ID: <87lecaqnn7.fsf@posteo.net> (raw)
In-Reply-To: <fDW1GEWPl6kOciPrHcUcIVHkdwg4Jcc0UsuPK6md3lfp_ev9uoQOQW7eUTWH0jPS-WOQvwkcdA2TN_cBrcw1JJQQWL4ESy2h2o5ZlkBKlQ0=@elenq.tech>
Hi Ekaitz,
Ekaitz Zarraga <ekaitz@elenq.tech> writes:
> Hi Fredrik,
>
> Now what you need to do is call to the `make-avr-toolchain` function from `(gnu packages avr)` to get that.
>
> Maybe the easiest way is to create a `manifest.scm` where you do something like this (i'm doing it by memory):
>
> ``` scheme
> (use-modules (gnu packages avr)
> (gnu packages flashing-tools)
> (gnu packages firmware))
>
> (packages->manifest (list (make-avr-toolchain) dfu-programmer qmk))
> ```
>
> Then use `guix shell -m manifest.scm`.
>
> There are other ways to do it, but I find this the easiest.
Thank you for pointing me in the right direction! This is what I ended
up with:
```scheme
(use-modules
(gnu packages embedded)
(gnu packages flashing-tools)
(gnu packages firmware))
(packages->manifest
(list (make-arm-none-eabi-nano-toolchain-6)
dfu-util
qmk))
```
Then just simply run
```sh
guix shell -m manifest.scm -- qmk flash -kb ergodox_infinity -km plattfot -bl dfu-util-split-left
```
And that worked like a charm.
I had forgotten that my ergodox is using different tools than my kyria.
Also the nano lib threw me for a loop. I was using the
`make-arm-none-eabi-toolchain-6` at first.
> You can even make a package for your firmware and let guix compile it
> for you (and maybe flash it too?).
Oh, that sounds that it might be useful. Especially if it can flash it
too. As I have a few keyboards and not all keymaps are pushed upstream
(yet).
--
s/Fred[re]+i[ck]+/Fredrik/g
next prev parent reply other threads:[~2023-10-10 19:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-07 21:23 Question regarding qmk firmware Fredrik Salomonsson
2023-10-08 10:28 ` Ekaitz Zarraga
2023-10-10 19:32 ` Fredrik Salomonsson [this message]
2023-10-08 10:34 ` Fw: " Ekaitz Zarraga
2023-10-09 1:30 ` John Kehayias
2023-10-10 19:46 ` Fredrik Salomonsson
2023-10-14 15:57 ` Maxim Cournoyer
[not found] <mailman.67.1696780842.10213.help-guix@gnu.org>
2023-10-10 14:20 ` Peter Polidoro
2023-10-10 17:43 ` Ekaitz Zarraga
2023-10-10 18:32 ` Maxim Cournoyer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lecaqnn7.fsf@posteo.net \
--to=plattfot@posteo.net \
--cc=ekaitz@elenq.tech \
--cc=help-guix@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.