From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6GetEYuEImX97wAA9RJhRA:P1 (envelope-from ) for ; Sun, 08 Oct 2023 12:29:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6GetEYuEImX97wAA9RJhRA (envelope-from ) for ; Sun, 08 Oct 2023 12:29:31 +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 268B654CDD for ; Sun, 8 Oct 2023 12:29:31 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=XqbBXh55; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696760971; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=z/GCZGxe6iaUQ4Id/cBWzKhywIFdnz770Ogk0ra26hs=; b=BNefHxTNuH6UwnyBXyIyxr82uRiejxTHNdP5+W4eYmAY4jqpHEvskVFaL87t+2MPvWMKbx 2k2zHUhtPTx7RufamBLdo83jMQRdbVyP/tjBhWM1lgVS9hO0df28j4zdgKTjwoc2nFxdMh GybbNvZ1q8BKGEmrIX9Fh4xiR+TVXswhcRiPJEubG8dTE1NYZmdko+reHSTa/1xipVW3vI uQ3beKryoJ/6tATuUXY+Sb8ZgGu8Nif4XBduxUIb6YFnWmyYqUfGEsStk2FUyLCvk6ERXw U71AJTV1kRSJA1A/nBCZROkS1cx2af+f1oVPPJbGb3HxZvstGMXu5tUeybi2AA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=XqbBXh55; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696760971; a=rsa-sha256; cv=none; b=Vp6mBdoL4EwRHBjIh3+5TETTy+aWGRugQnw4tinTFsINd30h/sL1lTEyoc7HMRD5w6T7sC f/jn7snvw7DbVgkJAKYDiOejFwqLds0DWvLyX56jNTkjjbyOVSfl1SfYO7lQayrm0HM9ep iV7nJqHAiq95K0N451QzZaDFcgNA4kL76K/kF/109znXcEjExsOjdw5Ij80ZuSQoKMwzfx sFR9CRwz+MF5ODNtUI4dPt/k4fuk4IscdI3kCROqASqowdvSzAdv0Rn8QcVvBYOBde7Yn8 qVzbWuxhv2HGRV/0n5E2O1yMSl6czHIVFqrUEGuB1C6v/eZN7aqegGm0ls82kg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpR1z-0002rP-Pq; Sun, 08 Oct 2023 06:29:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpR1z-0002rB-2i for help-guix@gnu.org; Sun, 08 Oct 2023 06:29:03 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpR1v-000398-KE for help-guix@gnu.org; Sun, 08 Oct 2023 06:29:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1696760934; x=1697020134; bh=z/GCZGxe6iaUQ4Id/cBWzKhywIFdnz770Ogk0ra26hs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=XqbBXh559ZW57cDxFwDTL7PF3mfqmyHs9QvHLxzHqbLOJ3zL0nUai9aPB0HVJvBhN ivQaAMaXtizI2XYGHS6On11dK7SLHCUahFi96QM1uDUlOoj1yCxp5bfX9EdVwSE8PM DEpbPMz78kSGKoIlmAZjRcU41mAHERNCtllFWmHqmJ5CxSNQM+ZYq+SIbu0UFQjrzC i6PuMTlo73nnFm7+5beTDOVpwAbxXc411jSF/0dIYcq3KwxYBBb9XWrwo93F+Z3y0S u8x7HtGX+g666wUGErnYpzskLx7tCBMC5iIQLGLRswycxxXioQU/0ZZI4j93eLB/Z0 EC4csDcPPYA3w== Date: Sun, 08 Oct 2023 10:28:43 +0000 To: Fredrik Salomonsson From: Ekaitz Zarraga Cc: help-guix Subject: Re: Question regarding qmk firmware Message-ID: In-Reply-To: <87r0m6xh3c.fsf@posteo.net> References: <87r0m6xh3c.fsf@posteo.net> Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=ekaitz@elenq.tech; helo=mail-4018.proton.ch 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.59 X-Spam-Score: -9.59 X-Migadu-Queue-Id: 268B654CDD X-Migadu-Scanner: mx2.migadu.com X-TUID: 8e2OU+FY6Tjf ------- Original Message ------- On Saturday, October 7th, 2023 at 21:23, Fredrik Salomonsson wrote: > Hi, >=20 > Today I was tweaking a keymap for one of my qmk based keyboards but some > of the packages I used when building the firmware has been removed. My > commad was as follows: >=20 > `sh guix shell avr-toolchain dfu-programmer qmk -- qmk flash -kb ergodox_= infinity -km plattfot -bl dfu-split-left` >=20 > But `avr-toolchain` is gone. When I tried to just drop it and see if it > worked I get >=20 > `=CE=A8 Compiling keymap with make --jobs=3D1 ergodox_infinity:plattfot:d= fu-split-left QMK Firmware 0.14.19 Making ergodox_infinity with keymap plat= tfot and target dfu-split-left /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-= bash-minimal-5.1.16/bin/sh: line 1: arm-none-eabi-gcc: command not found` >=20 > It seems `arm-none-eabi-toolchain` is also removed. Looking at the > commit history for guix it looks like they got replaced by > [proceduers][0] instead. >=20 > [0] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D35c1df5bd6317= b1cd038c1a4aca1c7e4a52d4d93 >=20 > My question is how do I get access to the arm-none-eabi-toolchain from > the commandline with guix shell? >=20 > Thanks 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. You can even make a package for your firmware and let guix compile it for y= ou (and maybe flash it too?). Cheers, Ekaitz